mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 16:27:26 +02:00
✨ Add scale content to render wasm
This commit is contained in:
parent
46b0e4f0e7
commit
bcfa9a82ea
18 changed files with 282 additions and 33 deletions
|
@ -104,10 +104,12 @@ pub fn propagate_shape_constraints(
|
|||
constraint_h: ConstraintH,
|
||||
constraint_v: ConstraintV,
|
||||
transform: Matrix,
|
||||
ignore_constrainst: bool,
|
||||
) -> Matrix {
|
||||
// if the constrains are scale & scale or the transform has only moves we
|
||||
// can propagate as is
|
||||
if (constraint_h == ConstraintH::Scale && constraint_v == ConstraintV::Scale)
|
||||
if (ignore_constrainst
|
||||
|| constraint_h == ConstraintH::Scale && constraint_v == ConstraintV::Scale)
|
||||
|| transform.is_translate()
|
||||
{
|
||||
return transform;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue