b0c2b2002f818a1d85df11a77eb34dd96f9fb55f64b814fac243e6ec13e0d496f4448c73fea45a6c43e215798adef7000d198fe40759886da185f22184df66 663 B

12345678910111213141516171819202122
  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;