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
89fb80d7
Commit
89fb80d7
authored
Jul 23, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide subtree on drag
parent
df8e587c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
connect.js
src/core/connect.js
+1
-0
minder.js
src/core/minder.js
+2
-2
render.js
src/core/render.js
+1
-1
dragtree.js
src/module/dragtree.js
+5
-0
No files found.
src/core/connect.js
View file @
89fb80d7
...
@@ -34,6 +34,7 @@ kity.extendClass(Minder, {
...
@@ -34,6 +34,7 @@ kity.extendClass(Minder, {
}
}
this
.
_connectContainer
.
addShape
(
connection
);
this
.
_connectContainer
.
addShape
(
connection
);
this
.
updateConnect
(
node
);
},
},
removeConnect
:
function
(
node
)
{
removeConnect
:
function
(
node
)
{
...
...
src/core/minder.js
View file @
89fb80d7
...
@@ -181,8 +181,8 @@ var Minder = KityMinder.Minder = kity.createClass('KityMinder', {
...
@@ -181,8 +181,8 @@ var Minder = KityMinder.Minder = kity.createClass('KityMinder', {
lastStatus
:
this
.
_status
,
lastStatus
:
this
.
_status
,
currentStatus
:
status
currentStatus
:
status
});
});
console
.
log
(
window
.
event
.
type
,
this
.
_status
,
'->'
,
status
);
//
console.log(window.event.type, this._status, '->', status);
console
.
trace
();
//
console.trace();
this
.
_rollbackStatus
=
this
.
_status
;
this
.
_rollbackStatus
=
this
.
_status
;
this
.
_status
=
status
;
this
.
_status
=
status
;
}
}
...
...
src/core/render.js
View file @
89fb80d7
...
@@ -216,6 +216,6 @@ kity.extendClass(MinderNode, {
...
@@ -216,6 +216,6 @@ kity.extendClass(MinderNode, {
},
},
getContentBox
:
function
()
{
getContentBox
:
function
()
{
//if (!this._contentBox) this.render();
//if (!this._contentBox) this.render();
return
this
.
parent
&&
this
.
parent
.
isCollapsed
()
?
new
kity
.
Box
()
:
this
.
_contentBox
;
return
this
.
parent
&&
this
.
parent
.
isCollapsed
()
?
new
kity
.
Box
()
:
(
this
.
_contentBox
||
new
kity
.
Box
())
;
}
}
});
});
\ No newline at end of file
src/module/dragtree.js
View file @
89fb80d7
...
@@ -191,8 +191,13 @@ var TreeDragger = kity.createClass('TreeDragger', {
...
@@ -191,8 +191,13 @@ var TreeDragger = kity.createClass('TreeDragger', {
},
},
_fadeDragSources
:
function
(
opacity
)
{
_fadeDragSources
:
function
(
opacity
)
{
var
minder
=
this
.
_minder
;
this
.
_dragSources
.
forEach
(
function
(
source
)
{
this
.
_dragSources
.
forEach
(
function
(
source
)
{
source
.
getRenderContainer
().
fxOpacity
(
opacity
,
200
);
source
.
getRenderContainer
().
fxOpacity
(
opacity
,
200
);
source
.
traverse
(
function
(
node
)
{
if
(
opacity
<
1
)
minder
.
detachNode
(
node
);
else
minder
.
attachNode
(
node
);
},
true
);
});
});
},
},
...
...
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