Skip to content

editor / positionAfterResize

Function: positionAfterResize() ​

positionAfterResize(box, size): Point

Defined in: model/position-after-resize.ts:22

Position of a turned shape after its width or height is typed: its turned top-left corner stays where it is drawn, as Figma (Product Owner, F04; DERIV-turned-shape step 5). At 0° the position does not change: the top-left of the box is fixed, as in F09.

Parameters ​

box ​

TurnedBox

angle, position and size before the edit

size ​

Size

width and height typed

Returns ​

Point

the top-left of the new box before it turns

Kind ​

domain

See ​

DERIV-turned-shape