Commit 236e6c64 authored by Akikonata's avatar Akikonata

dev

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