【发布时间】:2014-12-11 12:10:53
【问题描述】:
是否可以使用 CenterLocator 在另一个形状内旋转一个形状?
var shelvingCode = new draw2d.shape.basic.Label({ text: '1.01' });
myShape.add(this.shelvingCode, new draw2d.layout.locator.CenterLocator());
我尝试使用特殊命令。
new draw2d.command.CommandRotate(shelvingCode , (shelvingCode .getRotationAngle() + 90) % 360);
但是好像不行。
【问题讨论】:
标签: draw2d-js