baf1f0ce2402f6e48f94f9506e1bbe114326e826f781ac456f9c1c21d47676987cfb80207397e44bcec42472f126145cbf2b16b0fbbcdee299bae671b0d209 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import Path, { PathProps } from 'zrender/lib/graphic/Path.js';
  2. import PathProxy from 'zrender/lib/core/PathProxy.js';
  3. declare class ECPolylineShape {
  4. points: ArrayLike<number>;
  5. smooth: number;
  6. smoothConstraint: boolean;
  7. smoothMonotone: 'x' | 'y' | 'none';
  8. connectNulls: boolean;
  9. }
  10. interface ECPolylineProps extends PathProps {
  11. shape?: Partial<ECPolylineShape>;
  12. }
  13. export declare class ECPolyline extends Path<ECPolylineProps> {
  14. readonly type = "ec-polyline";
  15. shape: ECPolylineShape;
  16. constructor(opts?: ECPolylineProps);
  17. getDefaultStyle(): {
  18. stroke: string;
  19. fill: string;
  20. };
  21. getDefaultShape(): ECPolylineShape;
  22. buildPath(ctx: PathProxy, shape: ECPolylineShape): void;
  23. getPointOn(xOrY: number, dim: 'x' | 'y'): number[];
  24. }
  25. declare class ECPolygonShape extends ECPolylineShape {
  26. stackedOnPoints: ArrayLike<number>;
  27. stackedOnSmooth: number;
  28. }
  29. interface ECPolygonProps extends PathProps {
  30. shape?: Partial<ECPolygonShape>;
  31. }
  32. export declare class ECPolygon extends Path {
  33. readonly type = "ec-polygon";
  34. shape: ECPolygonShape;
  35. constructor(opts?: ECPolygonProps);
  36. getDefaultShape(): ECPolygonShape;
  37. buildPath(ctx: PathProxy, shape: ECPolygonShape): void;
  38. }
  39. export {};