openpencil/packages/core/src
Anton A S 68b5cfcea1 Fix .fig export roundtrip: variable GUIDs colliding with document
Variable/collection IDs (e.g. 'VariableCollectionID:42:1') parsed via
stringToGuid produced NaN sessionID, which Kiwi encodes as 0 — same
GUID as the DOCUMENT node. This overwrote DOCUMENT in changeMap during
re-import, causing all pages to be lost.

Fix: generate unique GUIDs for collections, variables, and modes via
localIdCounter instead of parsing string IDs. Pass varIdToGuid map
through to serializeVariableBindings for consistent references.
2026-03-13 13:27:15 +03:00
..
kiwi Remove worker timeout — large files need unbounded time 2026-03-13 10:03:41 +03:00
profiler Lint all packages: fix 193 errors across core, mcp, acp 2026-03-09 13:18:08 +03:00
render Improve AI design quality: auto-infer flex, reduce false warnings, prompt patterns 2026-03-13 12:21:10 +03:00
renderer Add no-silent-catch lint rule, fix silent failures 2026-03-13 10:03:12 +03:00
rpc Fix lint warnings: eliminate any types, split oversized files 2026-03-12 15:13:30 +03:00
svg-export Fix per-character text fill colors and vector region loop direction (#95) 2026-03-12 18:28:04 +03:00
tools Improve AI design quality: auto-infer flex, reduce false warnings, prompt patterns 2026-03-13 12:21:10 +03:00
canvaskit.ts Lint all packages: fix 193 errors across core, mcp, acp 2026-03-09 13:18:08 +03:00
clipboard.ts Add no-silent-catch lint rule, fix silent failures 2026-03-13 10:03:12 +03:00
color.ts Lint all packages: fix 193 errors across core, mcp, acp 2026-03-09 13:18:08 +03:00
constants.ts Fix per-character text fill colors and vector region loop direction (#95) 2026-03-12 18:28:04 +03:00
copy.ts Fix per-character text fill colors and vector region loop direction (#95) 2026-03-12 18:28:04 +03:00
fig-export-worker.ts Perf: 5.4× faster file open, worker-based parsing, instance index (#96) 2026-03-12 14:49:28 +03:00
fig-export.ts Fix .fig export roundtrip: variable GUIDs colliding with document 2026-03-13 13:27:15 +03:00
figma-api-proxy.ts Fix all typecheck and lint errors (79 errors → 0) 2026-03-13 12:42:07 +03:00
figma-api.ts Fix all typecheck and lint errors (79 errors → 0) 2026-03-13 12:42:07 +03:00
fonts.ts Add no-silent-catch lint rule, fix silent failures 2026-03-13 10:03:12 +03:00
geometry.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
global.d.ts Add @open-pencil/cli with headless .fig file operations 2026-03-01 01:19:24 +03:00
iconify.ts Fix set_layout padding reset, enforce final describe after fixes 2026-03-13 10:20:57 +03:00
index.ts Optimize AI token usage: ~61% reduction in per-step context 2026-03-13 10:20:56 +03:00
kiwi-serialize.ts Fix .fig export roundtrip: variable GUIDs colliding with document 2026-03-13 13:27:15 +03:00
layout.ts Fix layout axis mismatch, reduce describe noise, add bail-out strategy 2026-03-13 10:21:46 +03:00
render-image.ts Lint all packages: fix 193 errors across core, mcp, acp 2026-03-09 13:18:08 +03:00
scene-graph-hit-test.ts Fix lint warnings: eliminate any types, split oversized files 2026-03-12 15:13:30 +03:00
scene-graph-instances.ts Fix lint warnings: eliminate any types, split oversized files 2026-03-12 15:13:30 +03:00
scene-graph.ts Fix text rendering with wrong fonts on file open 2026-03-12 22:05:59 +03:00
snap.ts Extract @open-pencil/core package 2026-03-01 01:03:07 +03:00
style-runs.ts Fix lint warnings: non-null assertions, useless spreads, unused code, type safety 2026-03-11 13:33:54 +03:00
svg-node.ts SVG export (#52) 2026-03-05 10:31:02 +03:00
svg-path-parse.ts Add step budget warnings and Continue button for AI chat 2026-03-13 10:18:20 +03:00
text-editor.ts P2P collaboration: cursors, follow mode, cleanup 2026-03-01 18:11:07 +03:00
types.ts Extract @open-pencil/core package 2026-03-01 01:03:07 +03:00
undo.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
vector.ts Fix per-character text fill colors and vector region loop direction (#95) 2026-03-12 18:28:04 +03:00
xpath.ts Fix lint warnings: non-null assertions, useless spreads, unused code, type safety 2026-03-11 13:33:54 +03:00