deb7a4b3c7a486a9345132d344a8c98191463ccf523df1da1c08b2491eadaaf6f9a7d7ce632a06c5a32efbcb4430ce4a435a88fe11cfa1bb8dad8410369533 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import * as graphic from '../../util/graphic.js';
  2. import SeriesData from '../../data/SeriesData.js';
  3. import { StageHandlerProgressParams, LineStyleOption } from '../../util/types.js';
  4. import Model from '../../model/Model.js';
  5. import Element from 'zrender/lib/Element.js';
  6. interface LargeLinesCommonOption {
  7. polyline?: boolean;
  8. lineStyle?: LineStyleOption & {
  9. curveness?: number;
  10. };
  11. }
  12. /**
  13. * Data which can support large lines.
  14. */
  15. declare type LargeLinesData = SeriesData<Model<LargeLinesCommonOption> & {
  16. seriesIndex?: number;
  17. }>;
  18. declare class LargeLineDraw {
  19. group: graphic.Group;
  20. private _newAdded;
  21. /**
  22. * Update symbols draw by new data
  23. */
  24. updateData(data: LargeLinesData): void;
  25. /**
  26. * @override
  27. */
  28. incrementalPrepareUpdate(data: LargeLinesData): void;
  29. /**
  30. * @override
  31. */
  32. incrementalUpdate(taskParams: StageHandlerProgressParams, data: LargeLinesData): void;
  33. /**
  34. * @override
  35. */
  36. remove(): void;
  37. eachRendered(cb: (el: Element) => boolean | void): void;
  38. private _create;
  39. private _setCommon;
  40. private _clear;
  41. }
  42. export default LargeLineDraw;