project/node_modules/zrender/lib/svg-legacy/Painter.d.ts

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-07-14 15:48:34 +08:00
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;