Functions
-
import {toSize} from 'ol/size';
Returns an
Size
array for the passed in number (meaning: square) orSize
array. (meaning: non-square),Name Type Description size
number | Size Width and height.
dest
Size | undefined Optional reusable size array.
Returns:
Size.
Type Definitions
-
Size{Array.<number>}
-
An array of numbers representing a size:
[width, height]
.