openpencil/packages/core/src/render
Anton A S 9caa89e6f8 Fix text layout without CanvasKit: estimate size instead of 100×100 default
Text nodes with textAutoResize=WIDTH_AND_HEIGHT kept their 100×100
default SceneNode size when MeasureFunc was unavailable (no CanvasKit),
blowing up every HUG container.

Add fallback estimator (~0.6 × fontSize per char) in layout.ts so
headless layout produces sane sizes.

DO NOT change textAutoResize defaults in renderer.ts without testing
headless layout — see comments there and in layout.ts.
2026-03-10 22:59:15 +03:00
..
components.ts Fix auto-layout overflow, grid layout, AI chat UX (#86) 2026-03-10 15:43:04 +03:00
export-jsx.ts Fix auto-layout overflow, grid layout, AI chat UX (#86) 2026-03-10 15:43:04 +03:00
index.ts Pre-process render JSX in bridge where esbuild is available 2026-03-07 20:10:48 +03:00
jsx-runtime.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
mini-react.ts Lint all packages: fix 193 errors across core, mcp, acp 2026-03-09 13:18:08 +03:00
render-jsx.ts Fix auto-layout overflow, grid layout, AI chat UX (#86) 2026-03-10 15:43:04 +03:00
renderer.ts Fix text layout without CanvasKit: estimate size instead of 100×100 default 2026-03-10 22:59:15 +03:00
tailwind.ts Tailwind CSS v4 JSX export (#54) 2026-03-06 18:04:11 +03:00
tree.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00