uniformScale static method
Implementation
static CanvasSceneDocument uniformScale(
CanvasSceneDocument doc,
NodeId id,
double mul,
) {
final node = findById(doc, id);
if (node == null || node.locked) return doc;
final xf = node.xf;
final s = xf.scale;
return replaceNodeXf(
doc,
id,
xf.copyWith(scale: Vec2(s.x * mul, s.y * mul)),
);
}