dev #949

Merged
ysCha merged 2 commits from dev into prd-deploy 2026-07-02 17:54:22 +09:00
Showing only changes of commit 38d04918a2 - Show all commits

View File

@ -147,12 +147,17 @@ export default function CircuitTrestleSetting({ id }) {
const centerPoints = modules.map((module) => {
const { x, y } = module.getCenterPoint()
const { width, height } = module
// [RACK-AREA-SPEC 2026-07-02] (Math.round(width/height)) (longAxis×shortAxis) .
// width 73/74 area 161 (= ) .
// · area . (gap width/height )
const specLong = Number(module.longAxis ?? module.moduleInfo?.longAxis ?? 0) / 10
const specShort = Number(module.shortAxis ?? module.moduleInfo?.shortAxis ?? 0) / 10
return {
x,
y,
width: Math.round(width),
height: Math.round(height),
area: Math.round(width) * Math.round(height),
area: specLong * specShort,
}
})