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

export default {
    components: { Moveable },
    data() {
        return {};
    },
    methods: { onRender(e) {
        e.target.style.cssText += e.cssText;
    } }
};
</script>
<template>
    <div class="container">
        <div
            class="target"
            style="width: 300px;height: 300px;"
        ></div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :rotatable="true"
            :zoom="5"
            @render="onRender"/>
    </div>
</template>