ol/size
import * as olSize from 'ol/size';
Functions
-
import {toSize} from 'ol/size';Returns an
Sizearray for the passed in number (meaning: square) orSizearray. (meaning: non-square),Name Type Description sizenumber | Size Width and height.
destSize | undefined Optional reusable size array.
Returns:
Size.
Type Definitions
-
Size{Array.<number>}
-
An array of numbers representing a size:
[width, height].
© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_size.html