Redo was creating duplicate childIds because snapshots captured after tree construction had populated childIds, and createNode appends to parent.childIds again. Fix: clear childIds in redo snapshots. New tests (7): - layoutAlignSelf from stackChildAlignSelf - clipsContent from frameMaskDisabled - fontWeight from fontName.style via styleToWeight - letterSpacing object → pixels conversion - undo removes full subtree - redo recreates correct parent-child tree - redo without childIds:[] demonstrates the duplicate bug |
||
|---|---|---|
| .. | ||
| clipboard.test.ts | ||
| eval-cli.test.ts | ||
| export-jsx.test.ts | ||
| fig-import.test.ts | ||
| fig-roundtrip.test.ts | ||
| figma-api.test.ts | ||
| layout.test.ts | ||
| mcp.test.ts | ||
| render.test.ts | ||
| scene-graph.test.ts | ||
| tools-ai-adapter.test.ts | ||
| tools-cli.test.ts | ||
| tools.test.ts | ||