mirror of
https://github.com/palxiao/poster-design
synced 2024-11-22 16:17:59 +00:00
Merge: main branch
This commit is contained in:
parent
503e182172
commit
e367de089a
@ -17,17 +17,20 @@ import { mapGetters, mapActions, useStore } from 'vuex'
|
|||||||
// import { setTransformAttribute } from '@/common/methods/handleTransform'
|
// import { setTransformAttribute } from '@/common/methods/handleTransform'
|
||||||
import useSelecto from './Selecto'
|
import useSelecto from './Selecto'
|
||||||
import { useSetupMapGetters } from '@/common/hooks/mapGetters'
|
import { useSetupMapGetters } from '@/common/hooks/mapGetters'
|
||||||
|
import { storeToRefs } from 'pinia'
|
||||||
|
import { useCanvasStore, useControlStore } from '@/pinia'
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
// computed: mapGetters(['dSelectWidgets', 'dActiveElement', 'activeMouseEvent', 'showMoveable', 'showRotatable', 'dWidgets', 'updateRect', 'updateSelect', 'guidelines']),
|
// computed: mapGetters(['dSelectWidgets', 'dActiveElement', 'activeMouseEvent', 'showMoveable', 'showRotatable', 'dWidgets', 'updateRect', 'updateSelect', 'guidelines']),
|
||||||
const {
|
const {
|
||||||
dSelectWidgets, dActiveElement, activeMouseEvent, showMoveable, showRotatable, dWidgets, updateRect, updateSelect, guidelines
|
dSelectWidgets, dActiveElement, activeMouseEvent, dWidgets, updateRect, updateSelect
|
||||||
} = useSetupMapGetters(['dSelectWidgets', 'dActiveElement', 'activeMouseEvent', 'showMoveable', 'showRotatable', 'dWidgets', 'updateRect', 'updateSelect', 'guidelines'])
|
} = useSetupMapGetters(['dSelectWidgets', 'dActiveElement', 'activeMouseEvent', 'dWidgets', 'updateRect', 'updateSelect'])
|
||||||
|
const controlStore = useControlStore()
|
||||||
|
const { guidelines } = storeToRefs(useCanvasStore())
|
||||||
|
const { showMoveable, showRotatable } = storeToRefs(controlStore)
|
||||||
|
|
||||||
let _target: string | null = null
|
let _target: string | null = null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => dActiveElement.value,
|
() => dActiveElement.value,
|
||||||
async (val) => {
|
async (val) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user