a3c28494c5bf2fbd6df719fefd04610b5a86c4928787286fde9e69e6e190527a4331b61c03c226580625a3fbf49acb3afac176e368eeee1baf0e47c3580829 667 B

123456789101112131415161718192021222324
  1. import { Path } from '../graphic.js';
  2. import { PathProps } from 'zrender/lib/graphic/Path.js';
  3. /**
  4. * Sausage: similar to sector, but have half circle on both sides
  5. */
  6. declare class SausageShape {
  7. cx: number;
  8. cy: number;
  9. r0: number;
  10. r: number;
  11. startAngle: number;
  12. endAngle: number;
  13. clockwise: boolean;
  14. }
  15. interface SausagePathProps extends PathProps {
  16. shape?: SausageShape;
  17. }
  18. declare class SausagePath extends Path<SausagePathProps> {
  19. type: string;
  20. constructor(opts?: SausagePathProps);
  21. getDefaultShape(): SausageShape;
  22. buildPath(ctx: CanvasRenderingContext2D, shape: SausageShape): void;
  23. }
  24. export default SausagePath;