blockly > utils > Coordinate > scale
utils.Coordinate.scale() method
Scales this coordinate by the given scale factor.
Signature:
scale(s: number): Coordinate;
Parameters
Parameter | Type | Description |
---|---|---|
s | number | The scale factor to use for both x and y dimensions. |
Returns:
This coordinate after scaling.