openpencil/packages/core/src
Danila Poyarkov 362212b712 Populate instance children from components on .fig import
During .fig import, instance nodes have no children — Figma expects
them to be cloned from their component. The componentId references
used original Figma GUIDs that didn't match our generated node IDs.

Fix:
- Track original GUID → new node ID mapping during import
- Remap all instance componentId references after node creation
- Iteratively populate empty instances from their components
  (multiple passes needed since cloning creates new instances)
2026-03-04 10:55:29 +03:00
..
kiwi Populate instance children from components on .fig import 2026-03-04 10:55:29 +03:00
render Add DEFAULT_FONT_FAMILY constant, load fonts on paste and .fig import 2026-03-03 23:56:21 +03:00
tools Add set_text_properties and set_layout_child tools (from #11) 2026-03-02 21:12:44 +03:00
canvaskit.ts Cache effect ImageFilters and reuse layer paint 2026-03-03 10:12:02 +03:00
clipboard.ts Fix InvalidCharacterError when copying nodes with non-ASCII text 2026-03-04 01:15:44 +03:00
color.ts Extract color constants: BLACK, TRANSPARENT, DEFAULT_SHADOW_COLOR 2026-03-02 19:34:35 +03:00
constants.ts Move Google Fonts API key to constants 2026-03-04 09:33:42 +03:00
fig-export.ts Hide internal pages and render page dividers 2026-03-03 14:37:56 +03:00
figma-api.ts Port figma-use tools: variables, set_*, node ops, boolean, paths, viewport 2026-03-02 19:27:42 +03:00
fonts.ts Extract collectFontKeys into core and add font tests 2026-03-04 10:16:26 +03:00
global.d.ts Add @open-pencil/cli with headless .fig file operations 2026-03-01 01:19:24 +03:00
index.ts Extract collectFontKeys into core and add font tests 2026-03-04 10:16:26 +03:00
kiwi-serialize.ts Add stroke align, individual side strokes, and side selector UI 2026-03-04 09:47:14 +03:00
layout.ts Populate instance children from components on .fig import 2026-03-04 10:55:29 +03:00
render-image.ts P2P collaboration: cursors, follow mode, cleanup 2026-03-01 18:11:07 +03:00
renderer.ts Guard against double destroy and post-unmount rendering 2026-03-04 10:35:44 +03:00
scene-graph.ts Add stroke align, individual side strokes, and side selector UI 2026-03-04 09:47:14 +03:00
snap.ts Extract @open-pencil/core package 2026-03-01 01:03:07 +03:00
style-runs.ts P2P collaboration: cursors, follow mode, cleanup 2026-03-01 18:11:07 +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 Extract @open-pencil/core package 2026-03-01 01:03:07 +03:00
vector.ts Extract @open-pencil/core package 2026-03-01 01:03:07 +03:00