Files
figcraft/crates/doc
Trevor BrownandClaude Sonnet 5.5 3053b77110 M3: the Scale tool keeps variable-bound lengths bound on an instance (value x its scale) and bakes them elsewhere (#2090)
Cause: scale_node baked the factor into every length, then the command's normalize re-applied the variable bindings of the scaled subtree and wrote each variable's plain value back, so a bound gap or radius snapped back to the unscaled value.

Fix: Node gets scale_factor (default 1, not saved at 1, last collab Prop). scale_node makes an instance multiply its factor (clamped 1e-3..1e3) and keep its bindings; apply_bindings_matching draws a bound length at value x the factors of the instance and the instances around it. Any other scaled layer outside an instance keeps the scaled value and drops the binding of the length fields it scaled. The gesture preview's detach_edited leaves an instance whose factor changed alone. The instance rebuild carries the factor.

Verified: scale_bound_values_tests (instance via transform.scale incl. mode switch and rebuild, the K drag and its undo, save and reopen, a plain frame). Only the gap was measured in Figma; radius, stroke weight and font size are assumed to follow it, and main components are unmeasured.

Not changed: .fig import setting the factor, list and text-run bindings, the properties panel label, .fig export.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and measured; Fable 5.1 briefed; Sonnet 5.5 wrote at medium
2026-11-08 20:07:14 -05:00
..