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

export default {
    components: { Moveable },
    data() {
        const controlPadding = "$preview_controlPadding";
        return { controlPadding };
    },
    methods: { onRender(e) {
        e.target.style.cssText += e.cssText;
    } }
};
</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>