1 | import Path, { PathProps } from '../Path';
|
2 | import { VectorArray } from '../../core/vector';
|
3 | export declare class PolylineShape {
|
4 | points: VectorArray[];
|
5 | percent?: number;
|
6 | smooth?: number;
|
7 | smoothConstraint?: VectorArray[];
|
8 | }
|
9 | export interface PolylineProps extends PathProps {
|
10 | shape?: Partial<PolylineShape>;
|
11 | }
|
12 | declare 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 | }
|
22 | export default Polyline;
|