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
Show 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
...
...
@@ -12,6 +12,8 @@
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/Format/Constants.js"
,
"../common/Drawings/CommonController.js"
,
"../common/Drawings/Format/CreateGeometry.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
...
...
@@ -12,6 +12,8 @@
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/Format/Constants.js"
,
"../common/Drawings/CommonController.js"
,
"../common/Drawings/Format/CreateGeometry.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
...
...
@@ -15,6 +15,8 @@
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/Format/Constants.js"
,
"../common/Drawings/CommonController.js"
,
"../common/Drawings/Format/CreateGeometry.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
...
...
@@ -24,9 +24,6 @@
*/
"
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
;
// ----------------------------------------------------------------------- //
//--------------------------------------------------------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