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);