You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
4 weeks ago
|
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;
|