Commit f073a7f3 authored by techird's avatar techird

dev

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