cables now start at the top of the sidewall and dont go into the roof, added skeletons to the bin page for when it is loading, also fixed an issue with the camera being very zoomed in sometimes when the page loads

This commit is contained in:
csawatzky 2026-06-09 15:47:44 -06:00
parent f6de509561
commit 87382dd5d8
6 changed files with 27 additions and 11 deletions

View file

@ -70,7 +70,8 @@ export default function Bin3dView(props: Props) {
const diameter = dims.diameter / scale;
const largestDim = Math.max(totalHeight, diameter);
const fovRad = (75 * Math.PI) / 180;
const padding = 1.3; // 30% breathing room
// const padding = 1.3; // 30% breathing room
const padding = 1.3 + (largestDim / 100) * 2; //more dynamic breathing room based on the bin size
return (largestDim / (2 * Math.tan(fovRad / 2))) * padding;
}, [dims, scale]);