Module: ol/size

ol/size


import * as olSize from 'ol/size';

Methods

module:ol/size.toSize(size, opt_size){module:ol/size~Size}

size.js, line 66
import {toSize} from 'ol/size';

Returns an Size array for the passed in number (meaning: square) or Size array. (meaning: non-square),

Name Type Description
size number | module:ol/size~Size

Width and height.

size module:ol/size~Size

Optional reusable size array.

Returns:
Size.

Type Definitions

Size{Array.<number>}

An array of numbers representing a size: [width, height].