Home
API: forms

Function: scale()

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / scale

Function: scale()

scale(path, sx, sy?): Path

Defined in: forms/rules/transform.ts:85

Scale every coordinate about the origin. Radii scale with it, including sign, so a negative scale on one axis correctly mirrors an ellipse too.

Parameters

path

Path

sx

number

sy?

number = sx

Returns

Path