一键生成继电器图的画布自动变大
This commit is contained in:
parent
3a82d347e4
commit
c47bea57ce
@ -118,4 +118,8 @@ export function generateRelayLayout(relays: GenerateRelaysCongig[]) {
|
||||
);
|
||||
}
|
||||
}
|
||||
const canvasWidth =
|
||||
relayCabinet[relayCabinet.length - 1].position.x + relayCabinetConsts.width;
|
||||
relayCabinetStore.getJlCanvas().properties.width =
|
||||
canvasWidth > 1920 ? canvasWidth : 1920;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user