Commit f216327c authored by campaign's avatar campaign

添加偏移量

parent 658a0978
...@@ -9,7 +9,7 @@ KityMinder.registerModule( "NodeText", function () { ...@@ -9,7 +9,7 @@ KityMinder.registerModule( "NodeText", function () {
node.getContRc().appendShape( textShape ); node.getContRc().appendShape( textShape );
var style = this.getCurrentLayoutStyle()[ node.getType() ]; var style = this.getCurrentLayoutStyle()[ node.getType() ];
textShape.fill( style.color ).setSize( style.fontSize ); textShape.fill( style.color ).setSize( style.fontSize );
textShape.setTranslate( width, 0 ); textShape.setTranslate( width + style.spaceLeft, 0 );
textShape.setVerticalAlign( 'middle' ); textShape.setVerticalAlign( 'middle' );
} }
} }
......
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