Definable.d.ts 882 B

12345678910111213141516171819202122
  1. import Displayable from '../../graphic/Displayable';
  2. export default class Definable {
  3. nextId: number;
  4. protected _zrId: number;
  5. protected _svgRoot: SVGElement;
  6. protected _tagNames: string[];
  7. protected _markLabel: string;
  8. protected _domName: string;
  9. constructor(zrId: number, svgRoot: SVGElement, tagNames: string | string[], markLabel: string, domName?: string);
  10. getDefs(isForceCreating?: boolean): SVGDefsElement;
  11. doUpdate<T>(target: T, onUpdate?: (target: T) => void): void;
  12. add(target: any): SVGElement;
  13. addDom(dom: SVGElement): void;
  14. removeDom<T>(target: T): void;
  15. getDoms(): SVGElement[];
  16. markAllUnused(): void;
  17. markDomUsed(dom: SVGElement): void;
  18. markDomUnused(dom: SVGElement): void;
  19. isDomUnused(dom: SVGElement): boolean;
  20. removeUnused(): void;
  21. getSvgElement(displayable: Displayable): SVGElement;
  22. }