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. |
||
|---|---|---|
| .. | ||
| components.ts | ||
| export-jsx.ts | ||
| index.ts | ||
| jsx-runtime.ts | ||
| mini-react.ts | ||
| render-jsx.ts | ||
| renderer.ts | ||
| tailwind.ts | ||
| tree.ts | ||