Methods
-
module:ol/transform.composeCssTransform(dx1, dy1, sx, sy, angle, dx2, dy2){string}
transform.js, line 228 -
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
transformporperty of an HTMLElement's style.Name Type Description dx1number Initial translation x.
dy1number Initial translation y.
sxnumber Scale factor x.
synumber Scale factor y.
anglenumber Rotation (in counter-clockwise radians).
dx2number Final translation x.
dy2number Final translation y.
Returns:
The composite css transform.
Type Definitions
-
Transform{Array.<number>}
-
An array representing an affine 2d transformation for use with
module:ol/transformfunctions. The array has 6 elements.
OpenLayers