@evoke-ui/zsort3d
Version:
TypeScript z-plane rendering engine with 3D depth simulation using Canvas 2D and mouse-based navigation
30 lines • 1.25 kB
TypeScript
import { Z3DSortable } from '../core/Z3DSortable';
import { TouchEventData } from '../core/TouchManager';
export declare class Z3DSVG extends Z3DSortable {
private svgContent;
private svgElement;
private containerElement;
private clickHandler?;
private touchHandler?;
private instanceId;
private cachedImage;
private static imageCache;
private static readonly DEFAULT_SVG;
constructor(svgContent?: string, width?: number, height?: number, title?: string, url?: string);
private createSVGElement;
private createCachedImage;
private updateSVGTransform;
render(ctx: CanvasRenderingContext2D): void;
setSVGContent(svgContent: string): void;
getSVGContent(): string;
private getInstanceId;
addEventListener(canvas: HTMLCanvasElement, handler: (e: MouseEvent) => void): void;
removeEventListener(canvas: HTMLCanvasElement): void;
addTouchEventListener(handler: (data: TouchEventData) => void): void;
removeTouchEventListener(): void;
checkTouchHit(touchData: TouchEventData): boolean;
handleTouchEvent(data: TouchEventData): boolean;
getTouchHandler(): ((data: TouchEventData) => void) | undefined;
destroy(): void;
}
//# sourceMappingURL=Z3DSVG.d.ts.map