Hello,
I´m using GeometryReshapingTool and rotate together in my project and the reshape goes “crazy”. I thought that it´s my project problem but I put the rotate enable in this example : Geometry Reshaping
and this is the result:
The PolygonDrawing extension/sample already supports reshaping and rotating: Polygon Drawing Tool. I don’t see any problem there. Or am I misunderstanding what the problem is?
In the example Polygon Drawing Tool when you reshape to right the shape goes to the left. I need a “static” shape when we use the reshape. Like Geometry Reshaping
Yes, I guess the GeometryReshapingTool doesn’t support general rotation.
You can improve the situation by changing the implementation of GeometryReshapingTool.reshape in extensions/GeometryReshapingTool.js (or extensionsTS.GeometryReshapingTool.ts) to include:
. . .
var part = shape.part; // move the Part holding the Shape
part.ensureBounds();
if (!part.locationSpot.equals(go.Spot.Center)) { // but only if the locationSpot isn't Center
part.move(part.position.copy().subtract(offset.rotate(part.angle)));
}
this.updateAdornments(part); // update any Adornments of the Part
. . .