Commit 236e6c64 authored by Akikonata's avatar Akikonata

dev

parent e3f50f99
...@@ -49,20 +49,20 @@ ...@@ -49,20 +49,20 @@
centerY:minderHeight/2, centerY:minderHeight/2,
style:{ style:{
radius:10, radius:10,
fill:"blue", fill:"orange",
stroke:"orange", stroke:"orange",
color:"black", color:"black",
padding:[10,10,10,10], padding:[10,10,10,10],
fontSize:12 fontSize:20
}, },
text:"node", text:"I am the root",
}; };
var _childnode = new MinderNode(); var _childnode = new MinderNode();
_node.insertChild(_childnode); _node.insertChild(_childnode);
_childnode.data = { _childnode.data = {
centerX:minderWidth/2+50, centerX:minderWidth/2+150,
centerY:minderHeight/2+50, centerY:minderHeight/2+100,
style:{ style:{
radius:10, radius:10,
fill:"yellow", fill:"yellow",
......
...@@ -147,7 +147,7 @@ var ConnectModule = KityMinder.registerModule( "ConnectModule", function () { ...@@ -147,7 +147,7 @@ var ConnectModule = KityMinder.registerModule( "ConnectModule", function () {
var parent = node.getParent(); var parent = node.getParent();
console.log( "parent", node.getParent() ); console.log( "parent", node.getParent() );
var _connect = new ConnectBezier( parent.getRenderContainer(), node.getRenderContainer() ); var _connect = new ConnectBezier( parent.getRenderContainer(), node.getRenderContainer() );
_connect.stroke( new kity.Pen( node.data.stroke, node.data.strokeWidth ) ); _connect.stroke( new kity.Pen( node.data.style.stroke, node.data.style.strokeWidth ) );
node.connect = _connect; node.connect = _connect;
console.log( _connect ); console.log( _connect );
minder.getRenderContainer().addShape( _connect ); minder.getRenderContainer().addShape( _connect );
......
...@@ -38,6 +38,7 @@ KityMinder.registerModule( "RenderModule", function () { ...@@ -38,6 +38,7 @@ KityMinder.registerModule( "RenderModule", function () {
return { return {
base: Command, base: Command,
execute: function ( km, node ) { execute: function ( km, node ) {
console.log( "minderHHH", km )
renderNode( km, node ); renderNode( km, node );
} }
}; };
......
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