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
a5bf6d84
Commit
a5bf6d84
authored
Apr 29, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paragraphContent.js to common
parent
1de92e73
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
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/editor/paragraphContent.js
common/editor/paragraphContent.js
+4
-7
No files found.
build/configs/webexcel.json
View file @
a5bf6d84
...
...
@@ -29,6 +29,7 @@
"../common/editor/paragraph.js"
,
"../common/editor/document.js"
,
"../common/editor/documentContent.js"
,
"../common/editor/paragraphContent.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
...
...
@@ -127,7 +128,6 @@
"../word/Editor/Comments.js"
,
"../word/Editor/FlowObjects.js"
,
"../word/Editor/ParagraphContent.js"
,
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Field.js"
,
...
...
build/configs/webpowerpoint.json
View file @
a5bf6d84
...
...
@@ -29,6 +29,7 @@
"../common/editor/paragraph.js"
,
"../common/editor/document.js"
,
"../common/editor/documentContent.js"
,
"../common/editor/paragraphContent.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
...
...
@@ -117,7 +118,6 @@
"../slide/Editor/Format/Layout.js"
,
"../slide/Editor/Format/Comments.js"
,
"../word/Editor/Numbering.js"
,
"../word/Editor/ParagraphContent.js"
,
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Field.js"
,
...
...
build/configs/webword.json
View file @
a5bf6d84
...
...
@@ -32,6 +32,7 @@
"../common/editor/paragraph.js"
,
"../common/editor/document.js"
,
"../common/editor/documentContent.js"
,
"../common/editor/paragraphContent.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
...
...
@@ -101,7 +102,6 @@
"../word/Editor/CollaborativeEditing.js"
,
"../word/Editor/Comments.js"
,
"../word/Editor/FlowObjects.js"
,
"../word/Editor/ParagraphContent.js"
,
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Field.js"
,
...
...
word/Editor/P
aragraphContent.js
→
common/editor/p
aragraphContent.js
View file @
a5bf6d84
...
...
@@ -28,9 +28,6 @@ var isRealObject = AscCommon.isRealObject;
var
History
=
AscCommon
.
History
;
var
CRFonts
=
AscCommon
.
CRFonts
;
var
HitInLine
=
AscFormat
.
HitInLine
;
var
MOVE_DELTA
=
AscFormat
.
MOVE_DELTA
;
var
c_oAscRelativeFromH
=
Asc
.
c_oAscRelativeFromH
;
var
c_oAscRelativeFromV
=
Asc
.
c_oAscRelativeFromV
;
...
...
@@ -4977,10 +4974,10 @@ ParaDrawing.prototype =
if
(
this
.
GraphicObj
.
bNeedUpdatePosition
||
!
(
AscFormat
.
isRealNumber
(
this
.
GraphicObj
.
posX
)
&&
AscFormat
.
isRealNumber
(
this
.
GraphicObj
.
posY
))
||
!
(
Math
.
abs
(
this
.
GraphicObj
.
posX
-
_x
)
<
MOVE_DELTA
&&
Math
.
abs
(
this
.
GraphicObj
.
posY
-
_y
)
<
MOVE_DELTA
))
!
(
Math
.
abs
(
this
.
GraphicObj
.
posX
-
_x
)
<
AscFormat
.
MOVE_DELTA
&&
Math
.
abs
(
this
.
GraphicObj
.
posY
-
_y
)
<
AscFormat
.
MOVE_DELTA
))
this
.
GraphicObj
.
updatePosition
(
_x
,
_y
);
if
(
this
.
GraphicObj
.
bNeedUpdatePosition
||
!
(
AscFormat
.
isRealNumber
(
this
.
wrappingPolygon
.
posX
)
&&
AscFormat
.
isRealNumber
(
this
.
wrappingPolygon
.
posY
))
||
!
(
Math
.
abs
(
this
.
wrappingPolygon
.
posX
-
_x
)
<
MOVE_DELTA
&&
Math
.
abs
(
this
.
wrappingPolygon
.
posY
-
_y
)
<
MOVE_DELTA
))
!
(
Math
.
abs
(
this
.
wrappingPolygon
.
posX
-
_x
)
<
AscFormat
.
MOVE_DELTA
&&
Math
.
abs
(
this
.
wrappingPolygon
.
posY
-
_y
)
<
AscFormat
.
MOVE_DELTA
))
this
.
wrappingPolygon
.
updatePosition
(
_x
,
_y
);
this
.
calculateSnapArrays
();
},
...
...
@@ -6889,7 +6886,7 @@ ParaDrawing.prototype =
vy
=
cur_point
.
y
-
previous_point
.
y
;
if
(
Math
.
abs
(
vx
)
>
0
||
Math
.
abs
(
vy
)
>
0
)
{
if
(
HitInLine
(
this
.
drawingDocument
.
CanvasHitContext
,
x
,
y
,
previous_point
.
x
,
previous_point
.
y
,
cur_point
.
x
,
cur_point
.
y
))
if
(
AscFormat
.
HitInLine
(
this
.
drawingDocument
.
CanvasHitContext
,
x
,
y
,
previous_point
.
x
,
previous_point
.
y
,
cur_point
.
x
,
cur_point
.
y
))
return
{
hit
:
true
,
hitType
:
WRAP_HIT_TYPE_SECTION
,
pointNum1
:
arr_point
.
length
-
1
,
pointNum2
:
0
};
}
...
...
@@ -6903,7 +6900,7 @@ ParaDrawing.prototype =
if
(
Math
.
abs
(
vx
)
>
0
||
Math
.
abs
(
vy
)
>
0
)
{
if
(
HitInLine
(
this
.
drawingDocument
.
CanvasHitContext
,
x
,
y
,
previous_point
.
x
,
previous_point
.
y
,
cur_point
.
x
,
cur_point
.
y
))
if
(
AscFormat
.
HitInLine
(
this
.
drawingDocument
.
CanvasHitContext
,
x
,
y
,
previous_point
.
x
,
previous_point
.
y
,
cur_point
.
x
,
cur_point
.
y
))
return
{
hit
:
true
,
hitType
:
WRAP_HIT_TYPE_SECTION
,
pointNum1
:
point_index
-
1
,
pointNum2
:
point_index
};
}
}
...
...
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