Files
OpenCut/apps/web
Maze WintherandCursor 94ae05fa6b 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 01:33:32 +02:00
..
2026-03-29 15:56:48 +02:00
2026-04-21 13:00:26 +02:00
2026-03-29 15:56:48 +02:00
2026-04-04 08:53:10 +02:00
2026-03-29 18:55:56 +02:00
2026-03-29 15:56:48 +02:00
2026-04-04 08:53:10 +02:00
2026-03-29 15:56:48 +02:00