openpencil/crates/op-host-web
Kayshen-X 64a898f71a fix(canvas): skip colour-drag scene patch for Ref/slotless anchors
Codex review of the web twin flagged a Ref-anchor mismatch: set_selected_color
is a no-op on a Ref (it carries no fill/stroke slot), so the doc write does not
land — yet the scene patch would still mutate the Ref's scene node, briefly
showing a colour the document never received (snapping back on release). Native
caught the common case via its instance-write redirect, but a non-redirected
Ref (and any gradient-only / slotless node) slipped through on both paths.

Gate both try_patch_color_drag paths on the freshly-written hex actually being
present (first_solid_fill_hex / first_solid_stroke_hex); absent → the write did
not land → fall back to the full rebuild. Same conservative guard on native +
web.
2026-06-20 02:27:31 +08:00
..
assets/canvaskit fix(web): use browser fonts in canvaskit shell 2026-06-19 02:39:34 +08:00
pkg-ck fix(web): expand browser font fallback stack 2026-06-19 07:30:34 +08:00
pkg-webgl refactor(renderer): consolidate web shell on CanvasKit, retire skia path 2026-06-18 09:34:37 +08:00
smoke refactor(rust): rename openpencil-shell-web host to op-host-web 2026-05-16 23:42:49 +08:00
src fix(canvas): skip colour-drag scene patch for Ref/slotless anchors 2026-06-20 02:27:31 +08:00
tests fix(web): measure canvas text with draw style 2026-06-19 08:13:40 +08:00
.gitignore refactor(rust): rename openpencil-shell-web host to op-host-web 2026-05-16 23:42:49 +08:00
Cargo.toml fix(web): close native parity gaps in rust web host 2026-06-19 12:56:43 +08:00