javascript - Grapesjs - Changing Anchor Point of Component - Stack Overflow

admin2025-04-17  0

How can i change the anchor point of this component or any component?

if (editor) {
    const selected = editor.getSelected();
    if (selected) {
       const origin = getTransformOrigin(anchorPoint); 
       selected.setStyle({
         "transform-origin": origin,
        });
}

I want to change top left to center for example

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744885307a272497.html

最新回复(0)