Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@antv/x6-common/es/dom/class.d.ts
T
2026-09-10 15:40:10 +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;