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
431d53b6
Commit
431d53b6
authored
Jul 24, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节点过多关闭动画
parent
bbdc42b0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
connect.js
src/core/connect.js
+1
-1
layout.js
src/core/layout.js
+1
-1
template.js
src/core/template.js
+1
-0
zoom.js
src/module/zoom.js
+6
-2
No files found.
src/core/connect.js
View file @
431d53b6
...
@@ -76,7 +76,7 @@ KityMinder.registerModule('Connect', {
...
@@ -76,7 +76,7 @@ KityMinder.registerModule('Connect', {
'nodedetach'
:
function
(
e
)
{
'nodedetach'
:
function
(
e
)
{
this
.
removeConnect
(
e
.
node
);
this
.
removeConnect
(
e
.
node
);
},
},
'layoutapply noderender'
:
function
(
e
)
{
'layoutapply
layoutfinish
noderender'
:
function
(
e
)
{
this
.
updateConnect
(
e
.
node
);
this
.
updateConnect
(
e
.
node
);
}
}
}
}
...
...
src/core/layout.js
View file @
431d53b6
...
@@ -202,7 +202,7 @@ kity.extendClass(Minder, {
...
@@ -202,7 +202,7 @@ kity.extendClass(Minder, {
var
me
=
this
;
var
me
=
this
;
// 节点复杂度大于 100,关闭动画
// 节点复杂度大于 100,关闭动画
// if (root.getComplex() > 1
00) duration = 0;
if
(
root
.
getComplex
()
>
3
00
)
duration
=
0
;
function
applyMatrix
(
node
,
matrix
)
{
function
applyMatrix
(
node
,
matrix
)
{
node
.
getRenderContainer
().
setMatrix
(
node
.
_lastLayoutTransform
=
matrix
);
node
.
getRenderContainer
().
setMatrix
(
node
.
_lastLayoutTransform
=
matrix
);
...
...
src/core/template.js
View file @
431d53b6
...
@@ -61,6 +61,7 @@ KityMinder.registerModule('TemplateModule', {
...
@@ -61,6 +61,7 @@ KityMinder.registerModule('TemplateModule', {
execute
:
function
(
minder
,
name
)
{
execute
:
function
(
minder
,
name
)
{
minder
.
useTemplate
(
name
);
minder
.
useTemplate
(
name
);
minder
.
execCommand
(
'camera'
);
},
},
queryValue
:
function
(
minder
)
{
queryValue
:
function
(
minder
)
{
...
...
src/module/zoom.js
View file @
431d53b6
...
@@ -40,6 +40,12 @@ KityMinder.registerModule('Zoom', function() {
...
@@ -40,6 +40,12 @@ KityMinder.registerModule('Zoom', function() {
if
(
!
value
)
return
;
if
(
!
value
)
return
;
minder
.
_zoomValue
=
value
;
setTextRendering
();
if
(
minder
.
getRoot
().
getComplex
()
>
200
)
{
return
minder
.
zoom
(
value
);
}
var
animator
=
new
kity
.
Animator
({
var
animator
=
new
kity
.
Animator
({
beginValue
:
minder
.
_zoomValue
,
beginValue
:
minder
.
_zoomValue
,
finishValue
:
value
,
finishValue
:
value
,
...
@@ -47,11 +53,9 @@ KityMinder.registerModule('Zoom', function() {
...
@@ -47,11 +53,9 @@ KityMinder.registerModule('Zoom', function() {
target
.
zoom
(
value
);
target
.
zoom
(
value
);
}
}
});
});
minder
.
_zoomValue
=
value
;
if
(
timeline
)
{
if
(
timeline
)
{
timeline
.
pause
();
timeline
.
pause
();
}
}
setTextRendering
();
timeline
=
animator
.
start
(
minder
,
300
,
'easeInOutSine'
,
function
()
{});
timeline
=
animator
.
start
(
minder
,
300
,
'easeInOutSine'
,
function
()
{});
}
}
...
...
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