From 4f261c90973f56707fc7812a8f91f1e0d7764ab5 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 30 Aug 2023 13:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/relayCabinet/RelayCabinetDrawAssistant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/relayCabinet/RelayCabinetDrawAssistant.ts b/src/graphics/relayCabinet/RelayCabinetDrawAssistant.ts index 8464230..060b6a3 100644 --- a/src/graphics/relayCabinet/RelayCabinetDrawAssistant.ts +++ b/src/graphics/relayCabinet/RelayCabinetDrawAssistant.ts @@ -72,7 +72,7 @@ function buildAbsorbablePositions( 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);