line.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { Point } from '../types';
  2. import GridBase from './base';
  3. declare class Line extends GridBase {
  4. getDefaultCfg(): {
  5. type: string;
  6. name: string;
  7. line: {};
  8. alternateColor: any;
  9. capture: boolean;
  10. items: any[];
  11. closed: boolean;
  12. defaultCfg: {
  13. line: {
  14. type: string;
  15. style: {
  16. lineWidth: number;
  17. stroke: string;
  18. };
  19. };
  20. };
  21. container: any;
  22. shapesMap: {};
  23. group: any;
  24. isRegister: boolean;
  25. isUpdating: boolean;
  26. isInit: boolean;
  27. id: string;
  28. locationType: string;
  29. offsetX: number;
  30. offsetY: number;
  31. animate: boolean;
  32. updateAutoRender: boolean;
  33. animateOption: {
  34. appear: any;
  35. update: {
  36. duration: number;
  37. easing: string;
  38. };
  39. enter: {
  40. duration: number;
  41. easing: string;
  42. };
  43. leave: {
  44. duration: number;
  45. easing: string;
  46. };
  47. };
  48. events: any;
  49. visible: boolean;
  50. };
  51. protected getGridPath(points: Point[]): any[];
  52. }
  53. export default Line;