SourceTermAnalysisSystem_vue/node_modules/@antv/x6-common/es/dom/class.d.ts
2026-05-15 10:22:44 +08:00

6 lines
536 B
TypeScript

export declare function getClass(elem: Element): string;
export declare function hasClass(elem: Element | null, selector: string | null): boolean;
export declare function addClass(elem: Element | null, selector: ((cls: string) => string) | string | null): void;
export declare function removeClass(elem: Element | null, selector?: ((cls: string) => string) | string | null): void;
export declare function toggleClass(elem: Element | null, selector: ((cls: string, state?: boolean) => string) | string | null, stateVal?: boolean): void;