jgraph/mxgraph

the direction of rotation is incorrect default

hungtcs opened this issue · 2 comments

The default rotation behavior is incorrect in some examples (for instances Stencils and DiagramEditor),but in Graph Editor, this problem seems to be solved.

I found it here, if overwite here, the rotation becomes correct

mxVertexHandler.prototype.rotationHandleVSpacing = -12;
mxVertexHandler.prototype.getRotationHandlePosition = function()
{
var padding = this.getHandlePadding();
return new mxPoint(this.bounds.x + this.bounds.width - this.rotationHandleVSpacing + padding.x / 2,
this.bounds.y + this.rotationHandleVSpacing - padding.y / 2)
};

Thanks for the report. This will be fixed in the next release.