@agentman/chat-widget
Version:
Agentman Chat Widget for easy integration with web applications
32 lines (31 loc) • 945 B
TypeScript
interface SvgConfig {
maxWidth?: string;
maxHeight?: string;
aspectRatio?: 'preserve' | 'stretch';
allowAnimation?: boolean;
allowInteraction?: boolean;
interactions?: {
onClick?: (elementId: string) => void;
onHover?: (elementId: string, isHovering: boolean) => void;
};
}
export declare class SvgHandler {
private static readonly INTERACTIVE_ELEMENTS;
private static readonly ANIMATION_ELEMENTS;
private config;
private interactiveElements;
constructor(config?: SvgConfig);
processSvg(svgContent: string): string;
private processAnimations;
private removeAnimations;
private addInteractivity;
private applySizeControls;
private ensureUniqueIds;
private wrapWithContainer;
attachEventListeners(container: HTMLElement): void;
private playAnimations;
private pauseAnimations;
private resetAnimations;
private toggleZoom;
}
export {};