openpencil/packages/core/src
Danila Poyarkov b6c922e335 Fix all code review issues in RPC bridge
Bugs fixed:
- Export response now wrapped in {ok, result} like all other commands
- btoa(String.fromCharCode(...data)) replaced with loop to avoid
  RangeError on large images
- JSX export uses dedicated export_jsx RPC command instead of eval
  with undefined selectionToJSX reference

Issues fixed:
- connectAutomation cleanup on component unmount via onUnmounted
- Bridge state encapsulated in startAutomationBridge closure instead
  of module-level lets
- Previous browser WS closed on new connection to prevent leaks
- walkNodes returns boolean for early termination, find stops at limit
- Unused imports removed from node.ts (fmtList, nodeToData)
- Hand-rolled hex in node.ts replaced with colorToHex from core
- makeFigmaFromStore extracted to shared figma-factory.ts, used by
  both ai/tools.ts and automation/server.ts
- Unused limit param removed from AnalyzeColorsArgs
- Unused groupBy param removed from AnalyzeTypographyArgs
2026-03-07 20:42:37 +03:00
..
kiwi Centralize all color utilities in color.ts 2026-03-07 10:02:11 +03:00
profiler Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
render Pre-process render JSX in bridge where esbuild is available 2026-03-07 20:10:48 +03:00
renderer Split renderer.ts into renderer/ directory 2026-03-06 22:25:59 +03:00
rpc Fix all code review issues in RPC bridge 2026-03-07 20:42:37 +03:00
tools Centralize all color utilities in color.ts 2026-03-07 10:02:11 +03:00
canvaskit.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
clipboard.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
color.ts Centralize all color utilities in color.ts 2026-03-07 10:02:11 +03:00
constants.ts Fix RPC bridge review issues: centralize colors, ports, remove non-null assertions 2026-03-07 15:11:31 +03:00
fig-export.ts Fix instance overrides and layout scoping on .fig import 2026-03-04 14:18:37 +03:00
figma-api.ts Port analyze/diff tools from figma-use, split tools into domain files 2026-03-05 19:16:23 +03:00
fonts.ts Fix PWA manifest error in dev, handle invalid font data 2026-03-06 21:43:16 +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
index.ts Pre-process render JSX in bridge where esbuild is available 2026-03-07 20:10:48 +03:00
kiwi-serialize.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
layout.ts Fix instance overrides and layout scoping on .fig import 2026-03-04 14:18:37 +03:00
render-image.ts SVG export (#52) 2026-03-05 10:31:02 +03:00
scene-graph.ts Fix hit-testing: scope hover to current page, click-through empty containers 2026-03-05 08:56:35 +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
svg-export.ts Centralize all color utilities in color.ts 2026-03-07 10:02:11 +03:00
svg-node.ts SVG export (#52) 2026-03-05 10:31:02 +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 direction-aware vector path rendering for chains without regions 2026-03-05 07:55:09 +03:00