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

export default {
    components: { Moveable },
    setup() {
        const onRender = e => {
            e.target.style.cssText += e.cssText;
        };
        return { onRender };
    }
};
</script>
<template>
    <div class="root">
        <div class="container">
            <p>
                Pinch the target with two fingers on a touch-capable device.
            </p>
            <p>Drag, Scale and Rotate are possible.</p>
            <div class="target">Target</div>
            <Moveable
                :target="'.target'"
                :draggable="true"
                :scalable="true"
                :rotatable="true"
                :pinchable="true"
                :pinchOutside="true"
                @render="onRender"/>
        </div>
    </div>
</template>