|
|
@@ -69,7 +69,7 @@ import type { Ref } from 'vue'
|
|
|
import type { StageState } from './type'
|
|
|
import type { Page, ReferenceLine } from '@/types/page'
|
|
|
|
|
|
-import { onMounted, ref, onBeforeUnmount, nextTick, watch, defineProps, computed } from 'vue'
|
|
|
+import { ref, watch, defineProps, computed } from 'vue'
|
|
|
import { LuEye, LuEyeOff } from 'vue-icons-plus/lu'
|
|
|
import { UseDraggable } from '@vueuse/components'
|
|
|
import { drawScaleplate } from './utils'
|
|
|
@@ -92,7 +92,7 @@ const { width: _verticalWidth, height: verticalHeight } = useElementSize(vertica
|
|
|
// 根据滚动和缩放,重新计算辅助线位置
|
|
|
const getReferLines = computed(() => {
|
|
|
const state = props.state
|
|
|
- const { scale, scrollX, scrollY, originX, originY } = state
|
|
|
+ const { scale, scrollX, scrollY, originX, originY } = props.state
|
|
|
|
|
|
return props.page?.referenceLine
|
|
|
?.map((line) => {
|