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
015d8a1f
Commit
015d8a1f
authored
Apr 30, 2014
by
campaign
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
53a7ccc6
583ab19d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
layout.default.js
src/module/layout.default.js
+18
-6
No files found.
src/module/layout.default.js
View file @
015d8a1f
...
...
@@ -465,8 +465,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
translateNode
(
set
[
i
]
);
updateConnectAndshIcon
(
set
[
i
]
);
}
if
(
this
.
isNodeSelected
(
node
))
{
this
.
highlightNode
(
node
)
if
(
this
.
isNodeSelected
(
node
)
)
{
this
.
highlightNode
(
node
)
}
},
initStyle
:
function
()
{
...
...
@@ -514,10 +514,22 @@ KityMinder.registerModule( "LayoutDefault", function () {
if
(
historyPoint
)
{
_root
.
setPoint
(
historyPoint
);
}
//重组结构
for
(
var
j
=
0
;
j
<
_cleanbuffer
.
length
;
j
++
)
{
this
.
appendChildNode
(
_cleanbuffer
[
j
].
getLayout
().
parent
,
_cleanbuffer
[
j
]
);
var
j
=
0
;
var
me
=
this
;
var
ITV
=
window
.
setInterval
(
function
()
{
for
(
var
k
=
0
;
k
<
50
;
k
++
)
{
me
.
appendChildNode
(
_cleanbuffer
[
j
].
getLayout
().
parent
,
_cleanbuffer
[
j
]
);
j
++
;
if
(
j
===
_cleanbuffer
.
length
)
break
;
}
if
(
j
===
_cleanbuffer
.
length
)
{
window
.
clearInterval
(
ITV
);
}
},
0
);
//重组结构
// for ( var j = 0; j < _cleanbuffer.length; j++ ) {
// this.appendChildNode( _cleanbuffer[ j ].getLayout().parent, _cleanbuffer[ j ] );
// }
_root
.
setPoint
(
_root
.
getLayout
().
x
,
_root
.
getLayout
().
y
);
},
appendChildNode
:
function
(
parent
,
node
,
focus
,
sibling
)
{
...
...
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