From 900da1de8b68337a5d6cf31508fa8f99bad0edc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 7 Aug 2025 17:59:02 +0800 Subject: [PATCH] init --- src/components/ruler.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ruler.vue b/src/components/ruler.vue index a51b0eb..f85c446 100644 --- a/src/components/ruler.vue +++ b/src/components/ruler.vue @@ -108,7 +108,10 @@ const scale = ref(1) const offsetX = ref(0) const offsetY = ref(0) - +const containerRef = ref(null) +const rulerSize = 40 +const containerWidth = ref(0) +const containerHeight = ref(0) const contentWidth = computed(() => containerWidth.value - rulerSize) const contentHeight = computed(() => containerHeight.value - rulerSize)