From 20a1e972a690e169c06186a05a8ca3a44663980b Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Feb 2026 11:42:36 +0000 Subject: [PATCH] Restore accidentally removed ARROW_LENGTH constant in CoordinateSystemNode When the view-layer clamping code was deleted (moving origin bounds enforcement to the model layer), the ARROW_LENGTH = 120 constant was inadvertently removed along with it. This caused five TS2304 "Cannot find name 'ARROW_LENGTH'" type errors that were not present before the code-review fixes. https://claude.ai/code/session_0166NkhC8JkCQWkiRvir4o2B --- src/screen-name/view/CoordinateSystemNode.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/screen-name/view/CoordinateSystemNode.ts b/src/screen-name/view/CoordinateSystemNode.ts index 874623c..644e255 100644 --- a/src/screen-name/view/CoordinateSystemNode.ts +++ b/src/screen-name/view/CoordinateSystemNode.ts @@ -7,6 +7,7 @@ import { Tandem } from "scenerystack/tandem"; import { StringManager } from "../../i18n/StringManager.js"; import TrackLabColors from "../../TrackLabColors.js"; import type { SimModel } from "../model/SimModel.js"; +const ARROW_LENGTH = 120; const HANDLE_FRACTION = 1 / 3; const FONT = new PhetFont({ size: 14, weight: "bold" });