Commit de89ff45 authored by Akikonata's avatar Akikonata

added string support

parent ce3a6504
...@@ -10,6 +10,16 @@ KityMinder.registerModule( "LayoutModule", function () { ...@@ -10,6 +10,16 @@ KityMinder.registerModule( "LayoutModule", function () {
y: Math.random() * 300 + 100, y: Math.random() * 300 + 100,
align: "left" align: "left"
}; };
switch ( parent.branchside ) {
case "left":
break;
case "right":
break;
default:
if ( parent ) {} else {}
break;
}
}
_node.setData( "data", _nodeD ); _node.setData( "data", _nodeD );
parent.insertChild( _node ); parent.insertChild( _node );
km.execCommand( 'rendernode', _node ); km.execCommand( 'rendernode', _node );
......
...@@ -75,8 +75,14 @@ KityMinder.registerModule( "RenderModule", function () { ...@@ -75,8 +75,14 @@ KityMinder.registerModule( "RenderModule", function () {
return { return {
base: Command, base: Command,
execute: function ( km, node ) { execute: function ( km, node ) {
if ( node.length ) {
for ( var i = 0; i < node.length; i++ ) {
renderNode( km, node ); renderNode( km, node );
} }
} else {
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