@antv/path-util
Version:
A common util collection for antv projects
11 lines (10 loc) • 388 B
TypeScript
import type { PathCommand } from './types';
declare type Pos = [number, number];
/**
* create bezier spline from catmull rom spline
* @param {Array} crp Catmull Rom Points
* @param {boolean} z Spline is loop
* @param {Array} constraint Constraint
*/
declare function catmullRom2Bezier(crp: number[], z?: boolean, constraint?: Pos[]): PathCommand[];
export default catmullRom2Bezier;