Commit d471a6a8 authored by techird's avatar techird

代码整理

parent 9b449152
......@@ -32,13 +32,18 @@ kity.extendClass(Minder, {
node._connection = connection;
this.getRenderContainer().prependShape(connection);
if (!this._connectContainer) {
this._connectContainer = new kity.Group().setId(KityMinder.uuid('minder_connect_group'));
this.getRenderContainer().prependShape(this._connectContainer);
}
this._connectContainer.addShape(connection);
},
removeConnect: function(node) {
var me = this;
node.traverse(function(node) {
me.getRenderContainer().removeShape(node._connection);
me._connectContainer.removeShape(node._connection);
});
},
......
......@@ -2,10 +2,7 @@
var wireframe = /wire/.test(window.location.href);
KityMinder.registerModule('OutlineModule', function() {
return {
renderers: {
outline: kity.createClass('OutlineRenderer', {
var OutlineRenderer = kity.createClass('OutlineRenderer', {
base: Renderer,
create: function(node) {
......@@ -76,7 +73,12 @@ KityMinder.registerModule('OutlineModule', function() {
}
return outlineBox;
}
})
});
KityMinder.registerModule('OutlineModule', function() {
return {
renderers: {
outline: OutlineRenderer
}
};
});
\ No newline at end of file
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