I have been working with Konva for several weeks now and encountering a specific issue. When attempting to mirror an image, setting scaleX works correctly, mirroring it on the vertical axis.
However, I am facing another issue (possibly a bug or misunderstanding) when trying to attach a transformer to the node. The transformer is created after the image, which already has the flipping effect applied. This results in the rotation anchor being positioned below the image instead of the usual top position.
Is there a way to work around this issue?
Below are snippets of my code related to the transformer:
const transformer = new Konva.Transformer({
nodes: [image],
flipEnabled: false,
rotateEnabled: true,
enabledAnchors: ["top-left", "top-right", "bottom-left", "bottom-right", "top-center", "middle-left", "middle-right", "bottom-center"],
});