Maze WintherandCursor 8b8d65b509 refactor: collapse mask definition registry to a single keyed registry
The freeform mask was assembled on every getMaskDefinition("freeform") call,
re-spreading params and injecting a wrong SquareIcon placeholder, with a type
cast to suppress the structural mismatch. Root cause: MasksRegistry was keyed
on BuiltinMaskType, so freeform had no entry.

- Re-key MasksRegistry from BuiltinMaskType to MaskType
- Register freeform alongside builtins in registerDefaultMasks, with
  PenToolAddIcon as its menu icon
- getMaskDefinition and getMaskDefinitionsForMenu become plain registry
  lookups with no branching, no manual spreading, no cast
- Rename RegisteredBuiltinMaskDefinition to RegisteredMaskDefinition and
  tighten computeParamUpdate return type to Partial<BaseMaskParams>

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-02 03:27:23 +02:00
2026-05-02 03:10:08 +02:00
2026-04-14 22:10:15 +02:00
2026-04-21 13:00:26 +02:00
2026-04-13 05:01:51 +02:00
2026-05-02 03:27:23 +02:00
2026-04-15 00:41:52 +02:00
S
Description
No description provided
Readme MIT
43 MiB
Languages
TypeScript 97.2%
CSS 2.1%
Rust 0.7%