在MxGraph中启用顶点旋转

时间:2014-09-09 11:18:59

标签: javascript rotation draw mxgraph

我想在mxGraph中启用顶点(对象)旋转,有人能告诉我怎么做吗?我不想通过设置' rotation = 45,rotation = -90'来实现它。我希望用户能够在设计师上旋转对象。

谢谢

1 个答案:

答案 0 :(得分:0)

我找到了解决方案,只需在您的javascript文件中添加此行。

mxVertexHandler.prototype.rotationEnabled = true;