Commit efd09717 authored by Akikonata's avatar Akikonata

filetree

parent c08d830a
Subproject commit 9e420efd89ba672f5389e21069eb0009e52ad7b1 Subproject commit 437d9c160a7961a3843cce3d9e2b01f64090f0df
...@@ -44,6 +44,36 @@ KityMinder.registerLayout('filetree', kity.createClass({ ...@@ -44,6 +44,36 @@ KityMinder.registerLayout('filetree', kity.createClass({
child.setLayoutVector(new kity.Vector(childContentBox.left + 10, childContentBox.bottom)); 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;
} }
})); }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment