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
658a0978
Commit
658a0978
authored
May 04, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置默认项目
parent
744c5568
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
kityminder.config.js
kityminder.config.js
+4
-5
layout.default.js
src/module/layout.default.js
+3
-3
layout.js
src/module/layout.js
+5
-1
No files found.
kityminder.config.js
View file @
658a0978
...
...
@@ -81,10 +81,9 @@
//设置km整体的z-index大小
//,zIndex : 1000
//设置初始加载时展开的层数和子节点数目阈值
,
expand
:
{
layer
:
2
,
//最小为1
sub
:
10
}
//,expand: {
//layer: 0,
//sub: 0
//}
};
}
)();
\ No newline at end of file
src/module/layout.default.js
View file @
658a0978
...
...
@@ -539,7 +539,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
if
(
historyPoint
)
_root
.
setPoint
(
historyPoint
.
x
,
historyPoint
.
y
);
var
expandoptions
=
minder
.
getOptions
(
'expand'
);
var
cur_layer
=
0
;
var
expand_layer
=
expandoptions
&&
expandoptions
.
layer
;
var
expand_layer
=
expandoptions
.
layer
;
var
mains
=
_root
.
getChildren
();
for
(
var
i
=
0
;
i
<
mains
.
length
;
i
++
)
{
this
.
appendChildNode
(
_root
,
mains
[
i
]
);
...
...
@@ -554,9 +554,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
return
items
;
}
)();
next
=
[];
var
layer_nolimit
=
(
!
expandoptions
)
||
(
expand_layer
<
1
)
||
(
!
expand_layer
)
||
false
;
var
layer_nolimit
=
(
expand_layer
<
1
)
||
(
!
expand_layer
)
||
false
;
//debugger;
var
sub_nolimit
=
(
!
expandoptions
)
||
(
!
expandoptions
.
sub
)
||
(
expandoptions
.
sub
<
0
)
||
false
;
var
sub_nolimit
=
(
expandoptions
.
sub
<
0
)
||
false
;
var
loopcontinue
=
function
()
{
return
(
layer_nolimit
?
(
_buffer
.
length
!==
0
)
:
(
_buffer
.
length
!==
0
&&
cur_layer
<
expand_layer
)
);
};
...
...
src/module/layout.js
View file @
658a0978
...
...
@@ -250,7 +250,11 @@ KityMinder.registerModule( "LayoutModule", function () {
'appendsiblingnode'
:
'appendsiblingnode'
,
'appendchildnode'
:
'appendchildnode'
,
'removenode'
:
'removenode'
}
},
expand
:{
layer
:
0
,
sub
:
0
}
}
};
}
);
\ No newline at end of file
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