openpencil/packages/pen
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
..
scripts feat: split SceneGraph and Pen packages 2026-06-30 10:54:32 +03:00
src feat(scene-graph)!: make a stroke a paint (#864) 2026-10-04 13:38:05 +04:00
package.json fix(figma-api): validate effects like Figma (#794) 2026-09-30 21:18:20 +04:00
README.md feat: split SceneGraph and Pen packages 2026-06-30 10:54:32 +03:00
tsconfig.json fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
tsdown.config.ts chore(tools): harden package and dependency checks 2026-07-01 12:56:45 +03:00

@open-pencil/pen

Pencil.dev .pen document parser and SceneGraph adapter.

This package owns the .pen document model and import policy. It depends on @open-pencil/scene-graph for the shared editable design model and does not depend on @open-pencil/core.