7d91b647231c5a0f7d079bdafd621879ca92a758530122e01817adc3fd4ed2ac1578e2b6e945a77f8e58fdce8dd87d5a3a5b76f53307ec1f72845e47b51aca 940 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Line path for bezier and straight line draw
  3. */
  4. import * as graphic from '../../util/graphic.js';
  5. import { PathProps } from 'zrender/lib/graphic/Path.js';
  6. declare class StraightLineShape {
  7. x1: number;
  8. y1: number;
  9. x2: number;
  10. y2: number;
  11. percent: number;
  12. }
  13. declare class CurveShape extends StraightLineShape {
  14. cpx1: number;
  15. cpy1: number;
  16. }
  17. interface ECLineProps extends PathProps {
  18. shape?: Partial<StraightLineShape | CurveShape>;
  19. }
  20. declare class ECLinePath extends graphic.Path<ECLineProps> {
  21. type: string;
  22. shape: StraightLineShape | CurveShape;
  23. constructor(opts?: ECLineProps);
  24. getDefaultStyle(): {
  25. stroke: string;
  26. fill: string;
  27. };
  28. getDefaultShape(): StraightLineShape;
  29. buildPath(ctx: CanvasRenderingContext2D, shape: StraightLineShape | CurveShape): void;
  30. pointAt(t: number): number[];
  31. tangentAt(t: number): number[];
  32. }
  33. export default ECLinePath;