g3-toolkit API Reference
    Preparing search index...

    Interface ThemeState

    interface ThemeState {
        clearTheme: () => void;
        setCustomTheme: (theme: G3tTheme) => void;
        setTheme: (themeId: string) => void;
        setThemeTarget: (target: ThemeTarget) => void;
        target: ThemeTarget;
        theme: G3tTheme;
    }
    Index

    Properties

    clearTheme: () => void

    Remove the inline properties the store wrote to its target (restoring any the host had set), for a host that unmounts its last graph view. The store's theme and target are kept.

    setCustomTheme: (theme: G3tTheme) => void
    setTheme: (themeId: string) => void
    setThemeTarget: (target: ThemeTarget) => void

    Move the store's inline writes to target: the previous target is put back the way the host left it and the current theme is written to the new one, so the DOM and the store agree.

    target: ThemeTarget

    Where setTheme / setCustomTheme write the tokens.

    theme: G3tTheme