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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import Displayable from '../graphic/Displayable';
import Storage from '../Storage';
import { PainterBase } from '../PainterBase';
interface SVGPainterOption {
    width?: number | string;
    height?: number | string;
}
declare class SVGPainter implements PainterBase {
    type: string;
    root: HTMLElement;
    storage: Storage;
    private _opts;
    private _svgDom;
    private _svgRoot;
    private _backgroundRoot;
    private _backgroundNode;
    private _gradientManager;
    private _patternManager;
    private _clipPathManager;
    private _shadowManager;
    private _viewport;
    private _visibleList;
    private _width;
    private _height;
    constructor(root: HTMLElement, storage: Storage, opts: SVGPainterOption, zrId: number);
    getType(): string;
    getViewportRoot(): HTMLDivElement;
    getSvgDom(): SVGElement;
    getSvgRoot(): SVGGElement;
    getViewportRootOffset(): {
        offsetLeft: number;
        offsetTop: number;
    };
    refresh(): void;
    setBackgroundColor(backgroundColor: string): void;
    createSVGElement(tag: string): SVGElement;
    paintOne(el: Displayable): SVGElement;
    _paintList(list: Displayable[]): void;
    resize(width: number | string, height: number | string): void;
    getWidth(): number;
    getHeight(): number;
    dispose(): void;
    clear(): void;
    toDataURL(): string;
    refreshHover: () => void;
    configLayer: (zlevel: number, config: import("../core/types").Dictionary<any>) => void;
}
export default SVGPainter;