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

export default {
    components: { Moveable },
    setup() {
        const linePadding = "$preview_linePadding";
        const onRender = e => {
            e.target.style.cssText += e.cssText;
        };
        return { linePadding, onRender };
    }
};
</script>
<template>
    <div class="container">
        <div class="target"></div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :resizable="true"
            :linePadding="linePadding"
            :edge="true"
            @render="onRender"/>
    </div>
</template>