1234567891011121314151617 |
- /* eslint-disable @typescript-eslint/no-unused-vars */
- import { mat3 } from '@antv/matrix-util';
- /**
- * Apply scale transformation for current vector.
- * @param params [sx, sy]
- * @param x x of the the bounding box of coordinate
- * @param y y of the the bounding box of coordinate
- * @param width width of the the bounding box of coordinate
- * @param height height of the the bounding box of coordinate
- * @returns transformer
- */
- export var scale = function (params, x, y, width, height) {
- var _a = params, sx = _a[0], sy = _a[1];
- var matrix = mat3.create();
- return mat3.fromScaling(matrix, [sx, sy]);
- };
- //# sourceMappingURL=scale.js.map
|