Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/Canvas/MeasureOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const TAPE_YELLOW = '#f5c518';
const TAPE_EDGE = '#c4961a';
const BODY_OUTLINE = '#5a4000';

/** Small tape measure body icon centered at origin, tape slot facing +x. */
/** Small tape measure body icon with tape slot at origin (+x), body extending -x. */
function TapeBody({
bw,
bh,
Expand All @@ -29,9 +29,9 @@ function TapeBody({
}) {
return (
<>
{/* Main yellow housing */}
{/* Main yellow housing — right edge (tape exit) at x=0 */}
<Rect
x={-bw / 2}
x={-bw}
y={-bh / 2}
width={bw}
height={bh}
Expand All @@ -42,15 +42,15 @@ function TapeBody({
/>
{/* Dark grip strip on right side */}
<Rect
x={bw / 2 - bw * 0.28}
x={-bw * 0.28}
y={-bh / 2 + br}
width={bw * 0.28}
height={bh - br * 2}
fill={TAPE_EDGE}
/>
{/* Tape slot (dark slot the tape exits from on the right) */}
<Rect
x={bw / 2 - bw * 0.28 - 1 / zoom}
x={-bw * 0.28 - 1 / zoom}
y={-sw / 2}
width={2 / zoom}
height={sw}
Expand Down
Loading