zhangjian
2023-06-05 0976d2d0f90cff460cedfdc8bd74e98c2c31a58c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { createElement } from '../core';
import Path from '../../graphic/Path';
import ZRImage from '../../graphic/Image';
import TSpan from '../../graphic/TSpan';
import Displayable from '../../graphic/Displayable';
export default class Definable {
    nextId: number;
    protected _zrId: number;
    protected _svgRoot: SVGElement;
    protected _tagNames: string[];
    protected _markLabel: string;
    protected _domName: string;
    constructor(zrId: number, svgRoot: SVGElement, tagNames: string | string[], markLabel: string, domName?: string);
    createElement: typeof createElement;
    getDefs(isForceCreating?: boolean): SVGDefsElement;
    doUpdate<T>(target: T, onUpdate?: (target: T) => void): void;
    add(target: any): SVGElement;
    addDom(dom: SVGElement): void;
    removeDom<T>(target: T): void;
    getDoms(): SVGElement[];
    markAllUnused(): void;
    markDomUsed(dom: SVGElement): void;
    markDomUnused(dom: SVGElement): void;
    isDomUnused(dom: SVGElement): boolean;
    removeUnused(): void;
    getSvgProxy(displayable: Displayable): import("../graphic").SVGProxy<Path<import("../../graphic/Path").PathProps>> | import("../graphic").SVGProxy<ZRImage> | import("../graphic").SVGProxy<TSpan>;
    getSvgElement(displayable: Displayable): SVGElement;
}