Interface IStore

interface IStore {
    account: null | ICustomer;
    area: AreaType;
    audioTooltip: {
        noMoreAlert: boolean;
        show: boolean;
    };
    barType: "common" | "reading";
    bigSubtitle: {
        enable: boolean;
        pinyin: boolean;
        type: "simple" | "tradition" | "unset";
    };
    config: WzaOptions;
    crossLine?: boolean;
    currentElement: null | HTMLElement;
    elderlyMode: boolean;
    enable: boolean;
    fixed?: boolean;
    flags: Record<string, boolean>;
    initDone: boolean;
    keymaps?: Record<"zoomOutHotkey" | "zoomInHotkey" | "paletteHotkey" | "crosslineHotkey" | "mouseCursorHotkey" | "bigSubtitleHotkey" | "voiceToggleHotkey" | "voiceSpeedHotkey" | "readTypeHotkey" | "resetHotkey" | "fixedHotkey" | "toolbarTypeHotkey" | "exitHotkey" | "helpHotkey", FeatureTextTip>;
    mobileFontSize: MobileFontSize;
    mobileReading: boolean;
    mobileSetting: boolean;
    mouseCursor?: boolean;
    palette: PaletteType;
    preview: PreviewStoreType;
    readingType: "finger" | "continue";
    refresher: {
        global: number;
    };
    version: string;
    voice: AudioStoreType;
    zoom?: ZoomLevel;
}

Properties

account: null | ICustomer
area: AreaType
audioTooltip: {
    noMoreAlert: boolean;
    show: boolean;
}

Type declaration

  • noMoreAlert: boolean
  • show: boolean
barType: "common" | "reading"
bigSubtitle: {
    enable: boolean;
    pinyin: boolean;
    type: "simple" | "tradition" | "unset";
}

Type declaration

  • enable: boolean
  • pinyin: boolean
  • type: "simple" | "tradition" | "unset"
config: WzaOptions
crossLine?: boolean
currentElement: null | HTMLElement
elderlyMode: boolean
enable: boolean
fixed?: boolean
flags: Record<string, boolean>
initDone: boolean
keymaps?: Record<"zoomOutHotkey" | "zoomInHotkey" | "paletteHotkey" | "crosslineHotkey" | "mouseCursorHotkey" | "bigSubtitleHotkey" | "voiceToggleHotkey" | "voiceSpeedHotkey" | "readTypeHotkey" | "resetHotkey" | "fixedHotkey" | "toolbarTypeHotkey" | "exitHotkey" | "helpHotkey", FeatureTextTip>
mobileFontSize: MobileFontSize
mobileReading: boolean
mobileSetting: boolean
mouseCursor?: boolean
palette: PaletteType
readingType: "finger" | "continue"
refresher: {
    global: number;
}

Type declaration

  • global: number
version: string
zoom?: ZoomLevel