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.
15 lines
474 B
15 lines
474 B
import { isNormalizedArray } from './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
|
|
*/
|
|
export function isCurveArray(path) {
|
|
return isNormalizedArray(path) && path.every(function (_a) {
|
|
var pc = _a[0];
|
|
return 'MC'.includes(pc);
|
|
});
|
|
}
|
|
//# sourceMappingURL=is-curve-array.js.map
|