UNPKG

663 BTypeScriptView Raw
1import Path, { PathProps } from '../Path';
2import { VectorArray } from '../../core/vector';
3export declare class PolylineShape {
4 points: VectorArray[];
5 percent?: number;
6 smooth?: number;
7 smoothConstraint?: VectorArray[];
8}
9export interface PolylineProps extends PathProps {
10 shape?: Partial<PolylineShape>;
11}
12declare class Polyline extends Path<PolylineProps> {
13 shape: PolylineShape;
14 constructor(opts?: PolylineProps);
15 getDefaultStyle(): {
16 stroke: string;
17 fill: string;
18 };
19 getDefaultShape(): PolylineShape;
20 buildPath(ctx: CanvasRenderingContext2D, shape: PolylineShape): void;
21}
22export default Polyline;