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
fcd72bcd
Commit
fcd72bcd
authored
Jul 05, 2017
by
Sergey Luzyanin
Committed by
GitHub
Jul 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #139 from ONLYOFFICE/feature/bug35317
Feature/bug35317
parents
5ccfec3b
d41566d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
common/Drawings/TrackObjects/ConnectorTrack.js
common/Drawings/TrackObjects/ConnectorTrack.js
+9
-6
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+2
-1
No files found.
common/Drawings/TrackObjects/ConnectorTrack.js
View file @
fcd72bcd
...
...
@@ -113,6 +113,7 @@
_endConnectionParams
=
this
.
originalObject
.
convertToConnectionParams
(
_rot
,
_flipH
,
_flipV
,
_transform
,
_bounds
,
g_conn_info
);
}
if
(
_startConnectionParams
||
_endConnectionParams
){
var
bMoveInGroup
=
false
;
if
(
!
_startConnectionParams
){
if
(
this
.
beginShape
&&
oConnectorInfo
.
stCnxIdx
!==
null
){
...
...
@@ -122,6 +123,7 @@
if
((
this
.
endTrack
instanceof
AscFormat
.
MoveShapeImageTrack
)){
var
_dx
,
_dy
;
if
(
this
.
originalObject
.
group
){
bMoveInGroup
=
true
;
var
_oCopyMatrix
=
this
.
originalObject
.
group
.
invertTransform
.
CreateDublicate
();
_oCopyMatrix
.
tx
=
0
;
_oCopyMatrix
.
ty
=
0
;
...
...
@@ -154,11 +156,12 @@
if
((
this
.
beginTrack
instanceof
AscFormat
.
MoveShapeImageTrack
)){
var
_dx
,
_dy
;
if
(
this
.
originalObject
.
group
){
// var _oCopyMatrix = this.originalObject.group.invertTransform.CreateDublicate();
// _oCopyMatrix.tx = 0;
// _oCopyMatrix.ty = 0;
_dx
=
this
.
beginTrack
.
lastDx
;
//_oCopyMatrix.TransformPointX(this.beginTrack.lastDx, this.beginTrack.lastDy);
_dy
=
this
.
beginTrack
.
lastDy
;
//_oCopyMatrix.TransformPointY(this.beginTrack.lastDx, this.beginTrack.lastDy);
bMoveInGroup
=
true
;
var
_oCopyMatrix
=
this
.
originalObject
.
group
.
invertTransform
.
CreateDublicate
();
_oCopyMatrix
.
tx
=
0
;
_oCopyMatrix
.
ty
=
0
;
_dx
=
_oCopyMatrix
.
TransformPointX
(
this
.
beginTrack
.
lastDx
,
this
.
beginTrack
.
lastDy
);
_dy
=
_oCopyMatrix
.
TransformPointY
(
this
.
beginTrack
.
lastDx
,
this
.
beginTrack
.
lastDy
);
}
else
{
_dx
=
this
.
beginTrack
.
lastDx
;
...
...
@@ -170,7 +173,7 @@
this
.
geometry
=
this
.
oSpPr
.
geometry
;
this
.
overlayObject
.
geometry
=
this
.
geometry
;
if
(
!
this
.
originalObject
.
group
){
if
(
!
this
.
originalObject
.
group
||
bMoveInGroup
){
this
.
oSpPr
.
xfrm
.
setOffX
(
this
.
oSpPr
.
xfrm
.
offX
);
this
.
oSpPr
.
xfrm
.
setOffY
(
this
.
oSpPr
.
xfrm
.
offY
);
this
.
oSpPr
.
xfrm
.
setFlipH
(
this
.
oSpPr
.
xfrm
.
flipH
);
...
...
slide/Editor/Format/Presentation.js
View file @
fcd72bcd
...
...
@@ -1931,7 +1931,8 @@ CPresentation.prototype =
}
}
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
paragraphAdd
(
ParaItem
,
bRecalculate
);
if
(
AscFormat
.
getTargetTextObject
(
this
.
Slides
[
this
.
CurPage
].
graphicObjects
)
instanceof
AscFormat
.
CGraphicFrame
){
var
oTargetTextObject
=
AscFormat
.
getTargetTextObject
(
this
.
Slides
[
this
.
CurPage
].
graphicObjects
);
if
(
!
oTargetTextObject
||
(
oTargetTextObject
instanceof
AscFormat
.
CGraphicFrame
)){
bRecalculate
=
false
;
}
if
(
oMathShape
)
...
...
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