custom.js 636 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.custom = void 0;
  4. /**
  5. * Add custom functional transformation for current vector.
  6. * @param params [callback]
  7. * @param x x of the the bounding box of coordinate
  8. * @param y y of the the bounding box of coordinate
  9. * @param width width of the the bounding box of coordinate
  10. * @param height height of the the bounding box of coordinate
  11. * @returns transformer
  12. */
  13. var custom = function (params, x, y, width, height) {
  14. var callback = params[0];
  15. return callback(x, y, width, height);
  16. };
  17. exports.custom = custom;
  18. //# sourceMappingURL=custom.js.map