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
efd09717
Commit
efd09717
authored
Jun 19, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filetree
parent
c08d830a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
kity
kity
+1
-1
filetree.js
src/layout/filetree.js
+30
-0
No files found.
kity
@
437d9c16
Subproject commit
9e420efd89ba672f5389e21069eb0009e52ad7b1
Subproject commit
437d9c160a7961a3843cce3d9e2b01f64090f0df
src/layout/filetree.js
View file @
efd09717
...
...
@@ -44,6 +44,36 @@ KityMinder.registerLayout('filetree', kity.createClass({
child
.
setLayoutVector
(
new
kity
.
Vector
(
childContentBox
.
left
+
10
,
childContentBox
.
bottom
));
}
}
},
getOrderHint
:
function
(
node
)
{
var
hint
=
[];
var
box
=
node
.
getLayoutBox
();
var
offset
=
node
.
getLevel
()
>
1
?
3
:
5
;
hint
.
push
({
type
:
'up'
,
node
:
node
,
area
:
{
x
:
box
.
x
,
y
:
box
.
top
-
node
.
getStyle
(
'margin-top'
)
-
offset
,
width
:
box
.
width
,
height
:
node
.
getStyle
(
'margin-top'
)
},
path
:
[
'M'
,
box
.
x
,
box
.
top
-
offset
,
'L'
,
box
.
right
,
box
.
top
-
offset
]
});
hint
.
push
({
type
:
'down'
,
node
:
node
,
area
:
{
x
:
box
.
x
,
y
:
box
.
bottom
+
offset
,
width
:
box
.
width
,
height
:
node
.
getStyle
(
'margin-bottom'
)
},
path
:
[
'M'
,
box
.
x
,
box
.
bottom
+
offset
,
'L'
,
box
.
right
,
box
.
bottom
+
offset
]
});
return
hint
;
}
}));
...
...
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