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

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