catmull-rom-2-bezier.d.ts 388 B

12345678910
  1. import type { PathCommand } from './types';
  2. declare type Pos = [number, number];
  3. /**
  4. * create bezier spline from catmull rom spline
  5. * @param {Array} crp Catmull Rom Points
  6. * @param {boolean} z Spline is loop
  7. * @param {Array} constraint Constraint
  8. */
  9. declare function catmullRom2Bezier(crp: number[], z?: boolean, constraint?: Pos[]): PathCommand[];
  10. export default catmullRom2Bezier;