| 12345678910111213141516171819202122 |
- /**
- * Exchange dimensions of the vector.
- * @param params [tx, ty]
- * @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 transpose = function (params, x, y, width, height) {
- return {
- transform: function (_a) {
- var x = _a[0], y = _a[1];
- return [y, x];
- },
- untransform: function (_a) {
- var x = _a[0], y = _a[1];
- return [y, x];
- },
- };
- };
- //# sourceMappingURL=transpose.js.map
|