openpencil/packages/core/src
Danila Poyarkov 204b225c64 Split instance-overrides.ts into focused modules
Break the 781-line single-function file into a kiwi/instance-overrides/
folder with domain files:

- types.ts — shared types and OverrideContext
- index.ts — thin orchestrator (99 lines)
- populate.ts — populate empty instances from components
- resolve.ts — componentId root, override target, repopulateInstance
- symbol-overrides.ts — apply kiwi symbolOverrides
- sync.ts — transitive sync through clone chains
- props.ts — component property assignments
- dsd.ts — derived symbol data (pre-computed sizes)

The shared closure state (6 maps) is now bundled in OverrideContext,
passed explicitly to all functions. No behavior change.

Fixes: complexity lint error (was 25, max 20), prefer-optional-chain,
nested ternary parentheses, import() type annotation.
2026-03-14 10:36:48 +03:00
..
kiwi Split instance-overrides.ts into focused modules 2026-03-14 10:36:48 +03:00
profiler Lint all packages: fix 193 errors across core, mcp, acp 2026-03-09 13:18:08 +03:00
render Guard set_layout on NONE frames, remove implicit auto-layout on childCount >= 2 2026-03-13 14:54:12 +03:00
renderer Treat FOREGROUND_BLUR as layer blur wrapping children 2026-03-13 21:09:43 +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 Remove dead files: codegen.md duplicate and planning doc 2026-03-13 22:29:14 +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 Merge pull request #94 from open-pencil/feat/mcp-codegen 2026-03-13 22:56:23 +03:00
figma-api.ts Fix all typecheck and lint errors (79 errors → 0) 2026-03-13 12:42:07 +03:00
fonts.ts Fix MCP headless export: font loading and window guard 2026-03-14 07:19:31 +13: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
icon-render.ts Address PR #94 review: dedup, replace hand-rolled code, cleanup 2026-03-13 14:46:18 +03:00
iconify.ts Address PR #94 review: dedup, replace hand-rolled code, cleanup 2026-03-13 14:46:18 +03:00
index.ts Address PR #94 review: dedup, replace hand-rolled code, cleanup 2026-03-13 14:46:18 +03:00
kiwi-serialize.ts Merge pull request #94 from open-pencil/feat/mcp-codegen 2026-03-13 22:56:23 +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