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
cb3b550b
Commit
cb3b550b
authored
Feb 04, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
6a811fe9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
477 additions
and
272 deletions
+477
-272
kity
kity
+1
-1
layout.default.js
src/module/layout.default.js
+1
-1
layout.green.js
src/module/layout.green.js
+475
-268
layout.js
src/module/layout.js
+0
-2
No files found.
kity
@
8b33f729
Subproject commit
682bc4b4200af7a7c4997758307bc9b1b6e4e291
Subproject commit
8b33f729a570f3501769d16ad4c329c0e7f4e08d
src/module/layout.default.js
View file @
cb3b550b
...
...
@@ -419,9 +419,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
drawNode
(
node
);
},
initStyle
:
function
()
{
minder
.
getRenderContainer
().
clear
();
//绘制root并且调整到正确位置
var
_root
=
this
.
getRoot
();
minder
.
getRenderContainer
().
clear
();
minder
.
handelNodeInsert
(
_root
);
var
rc
=
new
RootShape
(
_root
);
translateNode
(
_root
);
...
...
src/module/layout.green.js
View file @
cb3b550b
This diff is collapsed.
Click to expand it.
src/module/layout.js
View file @
cb3b550b
...
...
@@ -70,11 +70,9 @@ KityMinder.registerModule( "LayoutModule", function () {
}
);
var
switchLayout
=
function
(
km
,
style
)
{
var
_root
=
km
.
getRoot
();
km
.
getRenderContainer
().
clear
();
_root
.
preTraverse
(
function
(
n
)
{
n
.
clearLayout
();
n
.
setPoint
();
n
.
getRenderContainer
().
clear
();
}
);
km
.
setCurrentStyle
(
style
);
km
.
initStyle
();
...
...
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