【发布时间】:2014-09-09 11:18:59
【问题描述】:
我想在 mxGraph 中启用顶点(对象)旋转,谁能告诉我怎么做?我不想通过设置 'rotation=45 ,rotation=-90' 等来做到这一点。我希望用户能够在设计器上旋转对象。
谢谢
【问题讨论】:
标签: javascript rotation draw mxgraph
我想在 mxGraph 中启用顶点(对象)旋转,谁能告诉我怎么做?我不想通过设置 'rotation=45 ,rotation=-90' 等来做到这一点。我希望用户能够在设计器上旋转对象。
谢谢
【问题讨论】:
标签: javascript rotation draw mxgraph
我找到了解决方案,只需在您的 javascript 文件中添加这一行即可。
mxVertexHandler.prototype.rotationEnabled = true;
【讨论】: