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
30e37603
Commit
30e37603
authored
Feb 04, 2014
by
campaign
Browse files
Options
Browse Files
Download
Plain Diff
by zhanyi
parents
d5ae8599
7ae2c4e5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
484 additions
and
272 deletions
+484
-272
kity
kity
+1
-1
layout.default.js
src/module/layout.default.js
+8
-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 @
30e37603
...
@@ -419,9 +419,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -419,9 +419,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
drawNode
(
node
);
drawNode
(
node
);
},
},
initStyle
:
function
()
{
initStyle
:
function
()
{
minder
.
getRenderContainer
().
clear
();
//绘制root并且调整到正确位置
//绘制root并且调整到正确位置
var
_root
=
this
.
getRoot
();
var
_root
=
this
.
getRoot
();
minder
.
getRenderContainer
().
clear
();
minder
.
handelNodeInsert
(
_root
);
minder
.
handelNodeInsert
(
_root
);
var
rc
=
new
RootShape
(
_root
);
var
rc
=
new
RootShape
(
_root
);
translateNode
(
_root
);
translateNode
(
_root
);
...
@@ -454,6 +454,13 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -454,6 +454,13 @@ KityMinder.registerModule( "LayoutDefault", function () {
_buffer
.
shift
();
_buffer
.
shift
();
}
}
},
},
updateLayout
:
function
(
node
)
{
drawNode
(
node
);
var
set
=
updateLayoutHorizon
(
node
);
for
(
var
i
=
0
;
i
<
set
.
length
;
i
++
)
{
translateNode
(
set
[
i
]
);
}
},
appendChildNode
:
function
(
parent
,
node
,
index
)
{
appendChildNode
:
function
(
parent
,
node
,
index
)
{
minder
.
handelNodeInsert
(
node
);
minder
.
handelNodeInsert
(
node
);
var
_root
=
this
.
getRoot
();
var
_root
=
this
.
getRoot
();
...
...
src/module/layout.green.js
View file @
30e37603
This diff is collapsed.
Click to expand it.
src/module/layout.js
View file @
30e37603
...
@@ -70,11 +70,9 @@ KityMinder.registerModule( "LayoutModule", function () {
...
@@ -70,11 +70,9 @@ KityMinder.registerModule( "LayoutModule", function () {
}
);
}
);
var
switchLayout
=
function
(
km
,
style
)
{
var
switchLayout
=
function
(
km
,
style
)
{
var
_root
=
km
.
getRoot
();
var
_root
=
km
.
getRoot
();
km
.
getRenderContainer
().
clear
();
_root
.
preTraverse
(
function
(
n
)
{
_root
.
preTraverse
(
function
(
n
)
{
n
.
clearLayout
();
n
.
clearLayout
();
n
.
setPoint
();
n
.
setPoint
();
n
.
getRenderContainer
().
clear
();
}
);
}
);
km
.
setCurrentStyle
(
style
);
km
.
setCurrentStyle
(
style
);
km
.
initStyle
();
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