Skip to main content

Home > blockly > utils > Coordinate > scale

utils.Coordinate.scale() method

Scales this coordinate by the given scale factor.

Signature:

scale(s: number): Coordinate;

Parameters

ParameterTypeDescription
snumberThe scale factor to use for both x and y dimensions.

Returns:

Coordinate

This coordinate after scaling.