Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
189b30f0
Commit
189b30f0
authored
Apr 22, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/Drawings/ArcTo to function-closure
parent
e6a605a4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
36 deletions
+41
-36
build/configs/webexcel.json
build/configs/webexcel.json
+2
-1
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+2
-1
build/configs/webword.json
build/configs/webword.json
+2
-1
common/Drawings/ArcTo.js
common/Drawings/ArcTo.js
+30
-33
common/Drawings/Format/Geometry.js
common/Drawings/Format/Geometry.js
+2
-0
common/Drawings/Format/Path.js
common/Drawings/Format/Path.js
+3
-0
No files found.
build/configs/webexcel.json
View file @
189b30f0
...
...
@@ -11,6 +11,8 @@
"../common/apiCommon.js"
,
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/Format/Constants.js"
,
"../common/Drawings/CommonController.js"
,
...
...
@@ -83,7 +85,6 @@
"../cell/view/EventsController.js"
,
"../cell/view/WorkbookView.js"
,
"../word/Editor/SerializeCommon.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
"../common/Shapes/Serialize.js"
,
"../common/Shapes/SerializeWriter.js"
,
...
...
build/configs/webpowerpoint.json
View file @
189b30f0
...
...
@@ -11,6 +11,8 @@
"../common/apiCommon.js"
,
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/Format/Constants.js"
,
"../common/Drawings/CommonController.js"
,
...
...
@@ -82,7 +84,6 @@
"../common/Shapes/Serialize.js"
,
"../common/Shapes/SerializeWriter.js"
,
"../word/Editor/SerializeCommon.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
"../slide/Editor/Format/Presentation.js"
,
"../cell/view/DrawingObjectsController.js"
,
...
...
build/configs/webword.json
View file @
189b30f0
...
...
@@ -14,6 +14,8 @@
"../common/apiCommon.js"
,
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/Format/Constants.js"
,
"../common/Drawings/CommonController.js"
,
...
...
@@ -57,7 +59,6 @@
"../common/Drawings/TrackObjects/ResizeTracks.js"
,
"../common/Drawings/TrackObjects/RotateTracks.js"
,
"../common/Drawings/TrackObjects/Spline.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
"../common/Drawings/DrawingObjectsHandlers.js"
,
"../common/Drawings/Hit.js"
,
...
...
common/Drawings/ArcTo.js
View file @
189b30f0
/*
*
* (c) Copyright Ascensio System Limited 2010-2016
*
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
*
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
*
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
*
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
*
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* in every copy of the program you distribute.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
*
*/
/*
*
* (c) Copyright Ascensio System Limited 2010-2016
*
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
*
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
*
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
*
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
*
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* in every copy of the program you distribute.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
*
*/
"
use strict
"
;
var
ArcToCurvers
=
null
;
var
ArcToOnCanvas
=
null
;
var
HitToArc
=
null
;
(
function
(){
// arcTo new version
function
Arc3
(
ctx
,
fX
,
fY
,
fWidth
,
fHeight
,
fStartAngle
,
fSweepAngle
)
...
...
@@ -213,8 +210,6 @@ var HitToArc = null;
}
}
ArcToCurvers
=
Arc3
;
// ----------------------------------------------------------------------- //
function
_ArcToOnCanvas
(
context
,
start_x
,
start_y
,
width_r
,
height_r
,
start_ang
,
sweep_ang
)
...
...
@@ -563,7 +558,9 @@ var HitToArc = null;
}
}
ArcToOnCanvas
=
_ArcToOnCanvas
;
HitToArc
=
_HitToArc
;
// ----------------------------------------------------------------------- //
})();
\ No newline at end of file
//--------------------------------------------------------export----------------------------------------------------
window
[
'
AscFormat
'
]
=
window
[
'
AscFormat
'
]
||
{};
window
[
'
AscFormat
'
].
ArcToCurvers
=
Arc3
;
window
[
'
AscFormat
'
].
HitToArc
=
_HitToArc
;
window
[
'
AscFormat
'
].
ArcToOnCanvas
=
_ArcToOnCanvas
;
})();
common/Drawings/Format/Geometry.js
View file @
189b30f0
...
...
@@ -30,6 +30,8 @@
* @param {undefined} undefined
*/
function
(
window
,
undefined
)
{
// Import
var
ArcToCurvers
=
AscFormat
.
ArcToCurvers
;
var
EPSILON_TEXT_AUTOFIT
=
0.001
;
var
FORMULA_TYPE_MULT_DIV
=
0
,
...
...
common/Drawings/Format/Path.js
View file @
189b30f0
...
...
@@ -39,6 +39,9 @@ var moveTo=0,
// Import
var
cToRad
=
AscFormat
.
cToRad
;
var
HitToArc
=
AscFormat
.
HitToArc
;
var
ArcToCurvers
=
AscFormat
.
ArcToCurvers
;
var
ArcToOnCanvas
=
AscFormat
.
ArcToOnCanvas
;
var
cToRad2
=
(
Math
.
PI
/
60000
)
/
180
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment