From 3e965d5b5b59f488cbf0075685e6b5adb77b8066 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Mon, 28 Aug 2023 18:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=94=B5=E5=99=A8=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../properties/RelayCabinetProperty.vue | 101 ++++++++++++++++-- src/graphics/relay/RelayDrawAssistant.ts | 2 +- 2 files changed, 93 insertions(+), 10 deletions(-) diff --git a/src/components/draw-app/properties/RelayCabinetProperty.vue b/src/components/draw-app/properties/RelayCabinetProperty.vue index 04a8af2..c57facd 100644 --- a/src/components/draw-app/properties/RelayCabinetProperty.vue +++ b/src/components/draw-app/properties/RelayCabinetProperty.vue @@ -1,12 +1,6 @@ diff --git a/src/graphics/relay/RelayDrawAssistant.ts b/src/graphics/relay/RelayDrawAssistant.ts index ff0d266..157525f 100644 --- a/src/graphics/relay/RelayDrawAssistant.ts +++ b/src/graphics/relay/RelayDrawAssistant.ts @@ -59,7 +59,7 @@ function buildAbsorbablePositions(relayCabinet: Relay): AbsorbablePosition[] { if (other.id == relayCabinet.id) { return; } - const ps = other.datas.transform.position; + const ps = other.position; const xs = new AbsorbableLine({ x: 0, y: ps.y }, { x: width, y: ps.y }); const ys = new AbsorbableLine({ x: ps.x, y: 0 }, { x: ps.x, y: height }); aps.push(xs, ys);