openpencil/tests/engine/geometry
Danila Poyarkov f55b887d2b
feat(scene-graph)!: make a stroke a paint (#864)
* feat(scene-graph)!: make a stroke a paint

Stroke extends Fill, so a stroke carries the same paint vocabulary a
fill does instead of a lone color. Every construction site now states
a solid paint type, which keeps today's behaviour exactly; rendering,
.fig conversion, and the stroke panel still read solid strokes only.

copyFill is generic over the paint shape so copyStroke reuses it
rather than repeating the deep copy of gradient stops, transforms and
pattern fields.

Groundwork for the gradient and image strokes in #797.

* test(scene-graph): cover a stroke's nested paint data in copyStroke

A stroke is a paint now, so its gradient stops and transform must copy
as deeply as a fill's; the fixture was solid and proved only the color
and dash pattern.
2026-10-04 13:38:05 +04:00
..
angles.test.ts test: import geometry helpers from scene graph package 2026-06-30 10:55:05 +03:00
arrow-caps.test.ts feat(scene-graph)!: make a stroke a paint (#864) 2026-10-04 13:38:05 +04:00
bounds.test.ts test: import geometry helpers from scene graph package 2026-06-30 10:55:05 +03:00
clip-polygon.test.ts fix(fig): restore strict parse validation 2026-07-18 03:58:18 +03:00
matrix.test.ts test: import geometry helpers from scene graph package 2026-06-30 10:55:05 +03:00
rotation.test.ts test: import geometry helpers from scene graph package 2026-06-30 10:55:05 +03:00
scene.test.ts feat(editor): checkpoint live interaction improvements 2026-09-15 11:36:17 +03:00
text-visual-bounds.test.ts feat: split SceneGraph and Pen packages 2026-06-30 10:54:32 +03:00
visual-bounds.test.ts feat(scene-graph)!: make a stroke a paint (#864) 2026-10-04 13:38:05 +04:00