Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
33e58298
Commit
33e58298
authored
May 06, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed expand into layout
parent
b6898c89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
layout.default.js
src/module/layout.default.js
+7
-7
No files found.
src/module/layout.default.js
View file @
33e58298
...
@@ -423,7 +423,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -423,7 +423,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
if
(
nodeType
!==
"root"
&&
node
.
getChildren
().
length
!==
0
)
{
if
(
nodeType
!==
"root"
&&
node
.
getChildren
().
length
!==
0
)
{
if
(
!
Layout
.
shicon
)
{
if
(
!
Layout
.
shicon
)
{
Layout
.
shicon
=
new
ShIcon
(
node
);
Layout
.
shicon
=
new
ShIcon
(
node
);
if
(
node
.
getData
(
'expand'
)
)
{
if
(
Layout
.
expand
)
{
Layout
.
shicon
.
switchState
();
Layout
.
shicon
.
switchState
();
}
}
}
}
...
@@ -555,7 +555,6 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -555,7 +555,6 @@ KityMinder.registerModule( "LayoutDefault", function () {
next
=
[];
next
=
[];
var
layer_nolimit
=
expandall
||
(
expand_layer
<
1
)
||
false
;
var
layer_nolimit
=
expandall
||
(
expand_layer
<
1
)
||
false
;
var
sub_nolimit
=
expandall
||
(
expandoptions
.
defaultSubShow
<
1
)
||
false
;
var
sub_nolimit
=
expandall
||
(
expandoptions
.
defaultSubShow
<
1
)
||
false
;
debugger
;
var
loopcontinue
=
function
()
{
var
loopcontinue
=
function
()
{
return
(
layer_nolimit
?
(
_buffer
.
length
!==
0
)
:
(
_buffer
.
length
!==
0
&&
cur_layer
<
expand_layer
)
);
return
(
layer_nolimit
?
(
_buffer
.
length
!==
0
)
:
(
_buffer
.
length
!==
0
&&
cur_layer
<
expand_layer
)
);
};
};
...
@@ -574,17 +573,17 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -574,17 +573,17 @@ KityMinder.registerModule( "LayoutDefault", function () {
_root
.
setPoint
(
_root
.
getLayout
().
x
,
_root
.
getLayout
().
y
);
_root
.
setPoint
(
_root
.
getLayout
().
x
,
_root
.
getLayout
().
y
);
},
},
appendChildNode
:
function
(
parent
,
node
,
focus
,
sibling
)
{
appendChildNode
:
function
(
parent
,
node
,
focus
,
sibling
)
{
if
(
parent
.
getType
()
!==
"root"
&&
parent
.
getChildren
().
length
!==
0
&&
parent
.
get
Data
(
"expand"
)
===
false
)
{
if
(
parent
.
getType
()
!==
"root"
&&
parent
.
getChildren
().
length
!==
0
&&
parent
.
get
Layout
().
expand
===
false
)
{
minder
.
expandNode
(
parent
);
minder
.
expandNode
(
parent
);
}
}
minder
.
handelNodeInsert
(
node
);
minder
.
handelNodeInsert
(
node
);
node
.
clearLayout
();
node
.
clearLayout
();
node
.
getContRc
().
clear
();
node
.
getContRc
().
clear
();
node
.
setData
(
'expand'
,
false
);
var
Layout
=
node
.
getLayout
();
Layout
.
expand
=
false
;
if
(
parent
.
getType
()
!==
'root'
)
{
if
(
parent
.
getType
()
!==
'root'
)
{
parent
.
setData
(
'expand'
,
true
)
;
parent
.
getLayout
().
expand
=
true
;
}
}
var
Layout
=
node
.
getLayout
();
Layout
.
added
=
true
;
Layout
.
added
=
true
;
var
parentLayout
=
parent
.
getLayout
();
var
parentLayout
=
parent
.
getLayout
();
var
children
=
parent
.
getChildren
();
var
children
=
parent
.
getChildren
();
...
@@ -740,7 +739,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -740,7 +739,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
isExpand
=
ico
.
icon
.
switchState
();
isExpand
=
ico
.
icon
.
switchState
();
node
=
ico
.
icon
.
_node
;
node
=
ico
.
icon
.
_node
;
}
}
node
.
setData
(
"expand"
,
isExpand
);
var
Layout
=
node
.
getLayout
();
Layout
.
expand
=
isExpand
;
var
_buffer
=
node
.
getChildren
();
var
_buffer
=
node
.
getChildren
();
if
(
isExpand
)
{
if
(
isExpand
)
{
for
(
var
j
=
0
;
j
<
_buffer
.
length
;
j
++
)
{
for
(
var
j
=
0
;
j
<
_buffer
.
length
;
j
++
)
{
...
...
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