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
4e095b71
Commit
4e095b71
authored
Apr 24, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getMatchingShape
parent
63348556
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
common/Drawings/Format/Shape.js
common/Drawings/Format/Shape.js
+12
-8
slide/Editor/Format/ShapePrototype.js
slide/Editor/Format/ShapePrototype.js
+2
-1
slide/Editor/Format/Slide.js
slide/Editor/Format/Slide.js
+1
-1
No files found.
common/Drawings/Format/Shape.js
View file @
4e095b71
...
...
@@ -1160,26 +1160,29 @@ CShape.prototype.isGroup = function () {
return
false
;
};
CShape
.
prototype
.
getHierarchy
=
function
()
{
//if (this.recalcInfo.recalculateShapeHierarchy)
CShape
.
prototype
.
getHierarchy
=
function
()
{
//if(this.recalcInfo.recalculateShapeHierarchy)
{
this
.
compiledHierarchy
=
[];
var
hierarchy
=
this
.
compiledHierarchy
;
if
(
this
.
parent
&&
this
.
isPlaceholder
())
{
if
(
this
.
isPlaceholder
())
{
var
ph_type
=
this
.
getPlaceholderType
();
var
ph_index
=
this
.
getPlaceholderIndex
();
switch
(
this
.
parent
.
kind
)
{
var
b_is_single_body
=
this
.
getIsSingleBody
&&
this
.
getIsSingleBody
();
switch
(
this
.
parent
.
kind
)
{
case
AscFormat
.
TYPE_KIND
.
SLIDE
:
{
hierarchy
.
push
(
this
.
parent
.
Layout
.
getMatchingShape
(
ph_type
,
ph_index
));
hierarchy
.
push
(
this
.
parent
.
Layout
.
Master
.
getMatchingShape
(
ph_type
,
ph_index
));
hierarchy
.
push
(
this
.
parent
.
Layout
.
getMatchingShape
(
ph_type
,
ph_index
,
b_is_single_body
));
hierarchy
.
push
(
this
.
parent
.
Layout
.
Master
.
getMatchingShape
(
ph_type
,
ph_index
,
b_is_single_body
));
break
;
}
case
AscFormat
.
TYPE_KIND
.
LAYOUT
:
case
AscFormat
.
TYPE_KIND
.
NOTES
:
{
hierarchy
.
push
(
this
.
parent
.
Master
.
getMatchingShape
(
ph_type
,
ph_index
));
hierarchy
.
push
(
this
.
parent
.
Master
.
getMatchingShape
(
ph_type
,
ph_index
,
b_is_single_body
));
break
;
}
}
...
...
@@ -1189,6 +1192,7 @@ CShape.prototype.getHierarchy = function () {
return
this
.
compiledHierarchy
;
};
CShape
.
prototype
.
getPaddings
=
function
()
{
var
paddings
=
null
;
var
shape
=
this
;
...
...
slide/Editor/Format/ShapePrototype.js
View file @
4e095b71
...
...
@@ -753,7 +753,8 @@ CShape.prototype.getIsSingleBody = function(x, y)
{
if
(
!
this
.
isPlaceholder
())
return
false
;
if
(
this
.
getPlaceholderType
()
!==
AscFormat
.
phType_body
)
var
ph_type
=
this
.
getPlaceholderType
();
if
(
this
.
getPlaceholderType
()
!==
AscFormat
.
phType_body
&&
ph_type
!==
null
)
return
false
;
if
(
this
.
parent
&&
this
.
parent
.
cSld
&&
Array
.
isArray
(
this
.
parent
.
cSld
.
spTree
))
{
...
...
slide/Editor/Format/Slide.js
View file @
4e095b71
...
...
@@ -459,7 +459,7 @@ Slide.prototype =
}
}
if
(
body_count
===
1
&&
type
===
AscFormat
.
phType_body
&&
bSingleBody
)
if
(
body_count
===
1
&&
_input_reduced_
type
===
AscFormat
.
phType_body
&&
bSingleBody
)
{
return
last_body
;
}
...
...
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