Commit f073a7f3 authored by techird's avatar techird

dev

parent fdd070dd
......@@ -37,6 +37,7 @@
'template/bottom.js',
'module/node.js',
'module/text.js',
'module/expand.js',
'module/outline.js',
'module/geometry.js',
'module/history.js',
......@@ -59,7 +60,6 @@
'module/zoom.js',
'module/nodetext.js',
'module/hyperlink.js',
'module/expand.js',
'module/arrange.js',
'ui/jquery-ui-1.10.4.custom.min.js',
'ui/widget.js',
......
......@@ -141,6 +141,10 @@ kity.extendClass(MinderNode, {
kity.extendClass(Minder, {
layout: function(root, duration) {
if (+root === root) {
duration = root;
root = null;
}
root = root || this.getRoot();
......
......@@ -75,7 +75,7 @@ KityMinder.registerModule('Expand', function() {
node.traverse(function(node) {
node.render();
});
node.layout(null, 200);
node.getMinder().layout(null, 200);
}
// 将展开的操作和状态读取接口拓展到 MinderNode 上
......@@ -184,7 +184,7 @@ KityMinder.registerModule('Expand', function() {
create: function(node) {
if (node.isRoot()) return;
this.expander = new Expander(node);
node.getRenderContainer().addShape(this.expander);
node.getRenderContainer().prependShape(this.expander);
node.expanderRenderer = this;
this.node = node;
return this.expander;
......
......@@ -77,6 +77,10 @@ var OutlineRenderer = kity.createClass('OutlineRenderer', {
}
});
var ShadowRenderer = kity.createClass('ShadowRenderer', {
});
KityMinder.registerModule('OutlineModule', function() {
return {
renderers: {
......
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