diff --git a/src/components/business/moveable/Moveable.vue b/src/components/business/moveable/Moveable.vue index 67bb6a3..6b75966 100644 --- a/src/components/business/moveable/Moveable.vue +++ b/src/components/business/moveable/Moveable.vue @@ -17,17 +17,20 @@ import { mapGetters, mapActions, useStore } from 'vuex' // import { setTransformAttribute } from '@/common/methods/handleTransform' import useSelecto from './Selecto' import { useSetupMapGetters } from '@/common/hooks/mapGetters' +import { storeToRefs } from 'pinia' +import { useCanvasStore, useControlStore } from '@/pinia' const store = useStore() // computed: mapGetters(['dSelectWidgets', 'dActiveElement', 'activeMouseEvent', 'showMoveable', 'showRotatable', 'dWidgets', 'updateRect', 'updateSelect', 'guidelines']), const { - dSelectWidgets, dActiveElement, activeMouseEvent, showMoveable, showRotatable, dWidgets, updateRect, updateSelect, guidelines -} = useSetupMapGetters(['dSelectWidgets', 'dActiveElement', 'activeMouseEvent', 'showMoveable', 'showRotatable', 'dWidgets', 'updateRect', 'updateSelect', 'guidelines']) + dSelectWidgets, dActiveElement, activeMouseEvent, dWidgets, updateRect, updateSelect +} = useSetupMapGetters(['dSelectWidgets', 'dActiveElement', 'activeMouseEvent', 'dWidgets', 'updateRect', 'updateSelect']) +const controlStore = useControlStore() +const { guidelines } = storeToRefs(useCanvasStore()) +const { showMoveable, showRotatable } = storeToRefs(controlStore) let _target: string | null = null - - watch( () => dActiveElement.value, async (val) => {