@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
13 lines • 610 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPointAtLength = void 0;
var tslib_1 = require("tslib");
var path_length_factory_1 = require("./path-length-factory");
/**
* Returns [x,y] coordinates of a point at a given length of a shape.
*/
function getPointAtLength(pathInput, distance, options) {
return (0, path_length_factory_1.pathLengthFactory)(pathInput, distance, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, options), { bbox: false, length: true })).point;
}
exports.getPointAtLength = getPointAtLength;
//# sourceMappingURL=get-point-at-length.js.map