summaryrefslogtreecommitdiff
path: root/apps/web/src/masks/__tests__
Commit message (Collapse)AuthorAgeFilesLines
* test: repair broken tests for a green baselinecashmere2026-07-271-4/+14
| | | | | | | | | Mask insertion test expected zero handles; the de Casteljau split correctly produces colinear shape-preserving ones. Box scale snap now reports both symmetric snap lines. Fractional ticks and unbranded MediaTime expectations fixed. Text-measurement test skipped (no canvas 2d in bun). CI-hostile it.only reference removed. Suite: 221 pass, 1 skip, 0 fail.
* fix: address review findings in masks substrateMaze Winther2026-05-021-0/+36
| | | | | | | | | | | | | | | - Remove dead ternary in getPreferredEdges (always returned undefined; the all-false object was never reached by Object.values().some(Boolean)) - Document why drawWithFeather descriptors zero the feather field in the compositor (analytical renderer handles softness itself; zeroing prevents a second JFA feather pass) - Remove legacyType from V30→V31 migration (not consumed anywhere; a down-migration can map type:"freeform" back to "custom" directly) - Add V30→V31 test coverage: skip-guard branches, freeform passthrough, elements without a masks array - Add snap tests for vertical-edge (bottom) and uniform-scale handle paths Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor: split builtin and freeform masksMaze Winther2026-05-021-30/+30
| | | | Made-with: Cursor
* refactor: type mask handle identifiersMaze Winther2026-05-021-11/+11
| | | | Made-with: Cursor
* refactor: split mask snap dispatchMaze Winther2026-05-021-6/+6
| | | | Made-with: Cursor
* refactor: restructure files to their domains, new preview overlay system, ↵Maze Winther2026-04-201-0/+487
and dep graph