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
f01696c5
Commit
f01696c5
authored
Apr 22, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/Drawings/Hit to function-closure
parent
73626abd
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
7 deletions
+21
-7
build/configs/webexcel.json
build/configs/webexcel.json
+1
-1
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+1
-1
build/configs/webword.json
build/configs/webword.json
+1
-1
common/Drawings/ArcTo.js
common/Drawings/ArcTo.js
+3
-0
common/Drawings/Format/Path.js
common/Drawings/Format/Path.js
+3
-0
common/Drawings/Format/Shape.js
common/Drawings/Format/Shape.js
+2
-1
common/Drawings/Hit.js
common/Drawings/Hit.js
+7
-3
slide/Editor/Format/GraphicFrame.js
slide/Editor/Format/GraphicFrame.js
+1
-0
word/Editor/ParagraphContent.js
word/Editor/ParagraphContent.js
+2
-0
No files found.
build/configs/webexcel.json
View file @
f01696c5
...
...
@@ -12,6 +12,7 @@
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
...
...
@@ -90,7 +91,6 @@
"../common/Shapes/SerializeWriter.js"
,
"../common/SerializeCommonWordExcel.js"
,
"../common/SerializeChart.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/States.js"
,
"../common/Drawings/DrawingObjectsHandlers.js"
,
"../common/Drawings/TrackObjects/AdjustmentTracks.js"
,
...
...
build/configs/webpowerpoint.json
View file @
f01696c5
...
...
@@ -12,6 +12,7 @@
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
...
...
@@ -65,7 +66,6 @@
"../word/Editor/Common.js"
,
"../word/Editor/Sections.js"
,
"../word/Editor/History.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/States.js"
,
"../common/Drawings/DrawingObjectsHandlers.js"
,
"../common/Drawings/TrackObjects/AdjustmentTracks.js"
,
...
...
build/configs/webword.json
View file @
f01696c5
...
...
@@ -15,6 +15,7 @@
"../common/editorscommon.js"
,
"../common/NumFormat.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
...
...
@@ -61,7 +62,6 @@
"../common/Drawings/TrackObjects/RotateTracks.js"
,
"../common/Drawings/TrackObjects/Spline.js"
,
"../common/Drawings/DrawingObjectsHandlers.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/Joined.js"
,
"../common/Drawings/TextDrawer.js"
,
"../word/Editor/GraphicObjects/Format/ShapePrototype.js"
,
...
...
common/Drawings/ArcTo.js
View file @
f01696c5
...
...
@@ -25,6 +25,9 @@
"
use strict
"
;
(
function
(){
// Import
var
HitInBezier4
=
AscFormat
.
HitInBezier4
;
// arcTo new version
function
Arc3
(
ctx
,
fX
,
fY
,
fWidth
,
fHeight
,
fStartAngle
,
fSweepAngle
)
{
...
...
common/Drawings/Format/Path.js
View file @
f01696c5
...
...
@@ -42,6 +42,9 @@ var cToRad = AscFormat.cToRad;
var
HitToArc
=
AscFormat
.
HitToArc
;
var
ArcToCurvers
=
AscFormat
.
ArcToCurvers
;
var
ArcToOnCanvas
=
AscFormat
.
ArcToOnCanvas
;
var
HitInLine
=
AscFormat
.
HitInLine
;
var
HitInBezier4
=
AscFormat
.
HitInBezier4
;
var
HitInBezier3
=
AscFormat
.
HitInBezier3
;
var
cToRad2
=
(
Math
.
PI
/
60000
)
/
180
;
...
...
common/Drawings/Format/Shape.js
View file @
f01696c5
...
...
@@ -35,7 +35,8 @@ function (window, undefined) {
var
c_oAscSizeRelFromH
=
AscCommon
.
c_oAscSizeRelFromH
;
var
c_oAscSizeRelFromV
=
AscCommon
.
c_oAscSizeRelFromV
;
var
checkNormalRotate
=
AscFormat
.
checkNormalRotate
;
var
checkNormalRotate
=
AscFormat
.
checkNormalRotate
;
var
HitInLine
=
AscFormat
.
HitInLine
;
var
c_oAscFill
=
Asc
.
c_oAscFill
;
...
...
common/Drawings/Hit.js
View file @
f01696c5
...
...
@@ -24,7 +24,7 @@
*/
"
use strict
"
;
(
function
(){
function
HitInLine
(
context
,
px
,
py
,
x0
,
y0
,
x1
,
y1
)
{
/* var l = Math.min(x0, x1);
...
...
@@ -136,5 +136,9 @@ function HitInBezier3(context, px, py, x0, y0, x1, y1, x2, y2)
return
context
.
isPointInPath
(
px
,
py
);
}
//--------------------------------------------------------export----------------------------------------------------
window
[
'
AscFormat
'
]
=
window
[
'
AscFormat
'
]
||
{};
window
[
'
AscFormat
'
].
HitInLine
=
HitInLine
;
window
[
'
AscFormat
'
].
HitInBezier4
=
HitInBezier4
;
window
[
'
AscFormat
'
].
HitInBezier3
=
HitInBezier3
;
})();
slide/Editor/Format/GraphicFrame.js
View file @
f01696c5
...
...
@@ -26,6 +26,7 @@
// Import
var
CShape
=
AscFormat
.
CShape
;
var
HitInLine
=
AscFormat
.
HitInLine
;
function
CGraphicFrame
()
{
...
...
word/Editor/ParagraphContent.js
View file @
f01696c5
...
...
@@ -46,6 +46,8 @@
// Import
var
g_oTableId
=
AscCommon
.
g_oTableId
;
var
HitInLine
=
AscFormat
.
HitInLine
;
var
c_oAscRelativeFromH
=
Asc
.
c_oAscRelativeFromH
;
var
c_oAscRelativeFromV
=
Asc
.
c_oAscRelativeFromV
;
...
...
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