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.
18 lines
611 B
18 lines
611 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isCurveArray = isCurveArray;
|
|
var is_normalized_array_1 = require("./is-normalized-array");
|
|
/**
|
|
* Iterates an array to check if it's a `PathArray`
|
|
* with all C (cubic bezier) segments.
|
|
*
|
|
* @param {string | PathArray} path the `Array` to be checked
|
|
* @returns {boolean} iteration result
|
|
*/
|
|
function isCurveArray(path) {
|
|
return (0, is_normalized_array_1.isNormalizedArray)(path) && path.every(function (_a) {
|
|
var pc = _a[0];
|
|
return 'MC'.includes(pc);
|
|
});
|
|
}
|
|
//# sourceMappingURL=is-curve-array.js.map
|