Functions
-
import {composeCssTransform} from 'ol/transform';
Creates a composite transform given an initial translation, scale, rotation, and final translation (in that order only, not commutative). The resulting transform string can be applied as
transform
property of an HTMLElement's style.Name Type Description dx1
number Initial translation x.
dy1
number Initial translation y.
sx
number Scale factor x.
sy
number Scale factor y.
angle
number Rotation (in counter-clockwise radians).
dx2
number Final translation x.
dy2
number Final translation y.
Returns:
The composite css transform.
Type Definitions
-
Transform{Array.<number>}
-
An array representing an affine 2d transformation for use with
ol/transform
functions. The array has 6 elements.