UNPKG

1.08 kBTypeScriptView Raw
1import { PathCommand } from '../../../dependents';
2import { Point, Position } from '../../../interface';
3/**
4 * @ignore
5 * 计算光滑的贝塞尔曲线
6 */
7export declare const smoothBezier: (points: Position[], smooth: number, isLoop: boolean, constraint: Position[]) => Position[];
8/**
9 * @ignore
10 * 贝塞尔曲线
11 */
12export declare function catmullRom2bezier(crp: number[], z: boolean, constraint: Position[]): PathCommand[];
13/**
14 * @ignore
15 * 将点连接成路径 path
16 */
17export declare function getLinePath(points: Point[], isInCircle?: boolean): PathCommand[];
18/**
19 * @ignore
20 * 根据关键点获取限定了范围的平滑线
21 */
22export declare function getSplinePath(points: Point[], isInCircle?: boolean, constaint?: Position[]): PathCommand[];
23/**
24 * @ignore
25 * 将归一化后的路径数据转换成坐标
26 */
27export declare function convertNormalPath(coord: any, path: PathCommand[]): PathCommand[];
28/**
29 * @ignore
30 * 将路径转换为极坐标下的真实路径
31 */
32export declare function convertPolarPath(coord: any, path: PathCommand[]): PathCommand[];