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

export default {
    components: { Moveable },
    setup() {
        const onScaleStart = e => {
            e.setMinScaleSize([100, 100]);
            e.setMaxScaleSize([500, 500]);
        };
        const onRender = e => {
            e.target.style.cssText += e.cssText;
        };
        return { onScaleStart, onRender };
    }
};
</script>
<template>
    <div class="container">
        <div class="target">Target</div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :scalable="true"
            @scaleStart="onScaleStart"
            @render="onRender"/>
    </div>
</template>