UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

26 lines (25 loc) 851 B
import Store from '../../stores/store'; import { EThemeTypes, TThemeOption, IThemeForJS } from '../../constants'; export interface IThemeService { theme: EThemeTypes; themeOption: TThemeOption; themeForJS: IThemeForJS; setTheme(themeType: EThemeTypes): void; dispose(): void; } declare class ThemeService extends Store implements IThemeService { theme: EThemeTypes; themeOption: TThemeOption; hasInitedTheme: boolean; cssVariableStyle?: HTMLElement; uid?: string; get themeForJS(): IThemeForJS; registerTheme(themeType: EThemeTypes): void; registerThemeOption(themeType: EThemeTypes): void; setTheme(themeType?: EThemeTypes): void; initCssVariable(): void; removeCssStyle(): void; initTheme(): void; constructor(theme?: EThemeTypes, uid?: string); } export default ThemeService;