You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
565 B
12 lines
565 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getPointAtLength = getPointAtLength;
|
|
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, tslib_1.__assign(tslib_1.__assign({}, options), { bbox: false, length: true })).point;
|
|
}
|
|
//# sourceMappingURL=get-point-at-length.js.map
|