UNPKG

610 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.getPointAtLength = void 0;
4var tslib_1 = require("tslib");
5var path_length_factory_1 = require("./path-length-factory");
6/**
7 * Returns [x,y] coordinates of a point at a given length of a shape.
8 */
9function getPointAtLength(pathInput, distance, options) {
10 return (0, path_length_factory_1.pathLengthFactory)(pathInput, distance, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, options), { bbox: false, length: true })).point;
11}
12exports.getPointAtLength = getPointAtLength;
13//# sourceMappingURL=get-point-at-length.js.map
\No newline at end of file