center beelink EQi12 tray automatically

* Add bottomScrewTrayCentered()
* Calculate tray dimensions dynamically from PC dimensions
This commit is contained in:
2025-06-13 00:13:02 +00:00
parent b23f5434be
commit 774474e0f0
2 changed files with 168 additions and 142 deletions

View File

@ -91,3 +91,21 @@ module bottomScrewTray(u, trayWidth, trayDepth, trayThickness, mountPoints = [],
}
module bottomScrewTrayCentered(u, trayWidth, trayDepth, trayThickness, mountPoints = [], mountPointElevation, mountPointType, frontThickness, sideThickness, frontLipHeight, backLipHeight, sideSupport=true) {
trayLeftPadding = (maxUnitWidth - trayWidth) / 2;
bottomScrewTray(
u=u,
trayWidth=trayWidth,
trayDepth=trayDepth,
trayThickness=trayThickness,
mountPoints=mountPoints,
mountPointElevation=mountPointElevation,
mountPointType=mountPointType,
frontThickness=frontThickness,
sideThickness=sideThickness,
frontLipHeight=frontLipHeight,
backLipHeight=backLipHeight,
trayLeftPadding=trayLeftPadding,
sideSupport=sideSupport);
}