openpencil/crates/op-host-web
Kayshen-X 4fb17fb54c perf(canvas): cache parsed SVG paths in the CanvasKit bridge
Every chrome icon / lucide glyph / brand logo / vector node re-parsed its d
string via CK.Path.MakeFromSVGString on every frame. Cache the parsed,
untransformed path keyed on d; callers draw a .copy() they transform + delete,
leaving the cached original pristine. Bounded (1024) with wasm-heap cleanup on
overflow. Mirrors the native svg_path_cache. Verified on :3100 — icons render
identically, no JS errors.
2026-06-19 23:59:17 +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 perf(canvas): cache parsed SVG paths in the CanvasKit bridge 2026-06-19 23:59:17 +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