Commit 02af05d8 authored by techird's avatar techird

arrange

parent a9274b38
Subproject commit 9491171cf3bf6195d841934779b6e5e565319341
Subproject commit 113f82dc2dc4ad1e740f9264839aea0f117957e2
......@@ -77,7 +77,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
//样式的配置(包括颜色、字号等)
var nodeStyles = {
"root": {
color: '#000',
color: '#430',
fill: '#e9df98',
fontSize: 24,
padding: [ 15.5, 25.5, 15.5, 25.5 ],
......@@ -310,7 +310,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
var bezier = Layout.connect.bezier = new kity.Bezier();
var circle = Layout.connect.circle = new kity.Circle();
connect.addShapes( [ bezier, circle ] );
minder.getRenderContainer().addShape( connect ).bringTop( minder.getRoot().getRenderContainer() );
minder.getRenderContainer().addShape( connect );
minder.getRoot().getRenderContainer().bringTop();
}
var parent = minder.getRoot();
var rootX = parent.getLayout().x;
......
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