<script>
import Moveable from "vue3-moveable";

export default {
    components: { Moveable },
    setup() {
        const controlPadding = "$preview_controlPadding";
        const onRender = e => {
            e.target.style.cssText += e.cssText;
        };
        return { controlPadding, onRender };
    }
};
</script>
<template>
    <div class="container">
        <div class="target"></div>
        <Moveable
            :target="'.target'"
            className="control-padding"
            :draggable="true"
            :resizable="true"
            :rotatable="true"
            :displayAroundControls="true"
            :controlPadding="controlPadding"
            @render="onRender"/>
    </div>
</template>