fybdp-d3-kg
Version:
Knowledge Graph using React and D3.js
13 lines (12 loc) • 683 B
TypeScript
export declare class DomUtil {
static createDom: (el?: string, tpl?: string, attrs?: {}, clzName?: string) => HTMLElement;
static hasClass: (el: any, className: any) => boolean;
static addClass: (el: any, className: any) => void;
static removeClass: (el: any, className: any) => void;
static toggleClass: (el: any, className: any) => void;
static findDom: (el: Document | undefined, sel: any) => any;
static event: (e: any) => void;
static copyDom: (dom: any) => any;
static setInterval: (context: any, eventName: any, intervalFunc: any, frequency?: number) => void;
static clearInterval: (context: any, eventName: any) => void;
}