DevHelpers
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / windowStateUtils / DevHelpers
Interface: DevHelpers
Defined in: windowStateUtils.ts:31
Propertiesβ
getConfigβ
getConfig: () => {
constants: {DEFAULTS: {WINDOW: {height:800;minHeight:600;minWidth:800;width:1200; }; };FILES: {WINDOW_STATE:"window-state.json"; };PATHS: {HTML: {INDEX:"index.html"; };ICONS: {FAVICON:"icons/favicon.ico"; };PRELOAD:"preload.js"; };WEB_PREFERENCES: {contextIsolation:true;nodeIntegration:false;sandbox:true; }; };currentState:WindowState;settingsPath:string; }
Defined in: windowStateUtils.ts:32
Returnsβ
{ constants: { DEFAULTS: { WINDOW: { height: 800; minHeight: 600; minWidth: 800; width: 1200; }; }; FILES: { WINDOW_STATE: "window-state.json"; }; PATHS: { HTML: { INDEX: "index.html"; }; ICONS: { FAVICON: "icons/favicon.ico"; }; PRELOAD: "preload.js"; }; WEB_PREFERENCES: { contextIsolation: true; nodeIntegration: false; sandbox: true; }; }; currentState: WindowState; settingsPath: string; }
constantsβ
constants: {
DEFAULTS: {WINDOW: {height:800;minHeight:600;minWidth:800;width:1200; }; };FILES: {WINDOW_STATE:"window-state.json"; };PATHS: {HTML: {INDEX:"index.html"; };ICONS: {FAVICON:"icons/favicon.ico"; };PRELOAD:"preload.js"; };WEB_PREFERENCES: {contextIsolation:true;nodeIntegration:false;sandbox:true; }; }
constants.DEFAULTSβ
readonlyDEFAULTS: {WINDOW: {height:800;minHeight:600;minWidth:800;width:1200; }; }
constants.DEFAULTS.WINDOWβ
readonlyWINDOW: {height:800;minHeight:600;minWidth:800;width:1200; }
constants.DEFAULTS.WINDOW.heightβ
readonlyheight:800=800
constants.DEFAULTS.WINDOW.minHeightβ
readonlyminHeight:600=600
constants.DEFAULTS.WINDOW.minWidthβ
readonlyminWidth:800=800
constants.DEFAULTS.WINDOW.widthβ
readonlywidth:1200=1200
constants.FILESβ
readonlyFILES: {WINDOW_STATE:"window-state.json"; }
constants.FILES.WINDOW_STATEβ
readonlyWINDOW_STATE:"window-state.json"="window-state.json"
constants.PATHSβ
readonlyPATHS: {HTML: {INDEX:"index.html"; };ICONS: {FAVICON:"icons/favicon.ico"; };PRELOAD:"preload.js"; }
constants.PATHS.HTMLβ
readonlyHTML: {INDEX:"index.html"; }
constants.PATHS.HTML.INDEXβ
readonlyINDEX:"index.html"="index.html"
constants.PATHS.ICONSβ
readonlyICONS: {FAVICON:"icons/favicon.ico"; }
constants.PATHS.ICONS.FAVICONβ
readonlyFAVICON:"icons/favicon.ico"="icons/favicon.ico"
constants.PATHS.PRELOADβ
readonlyPRELOAD:"preload.js"="preload.js"
constants.WEB_PREFERENCESβ
readonlyWEB_PREFERENCES: {contextIsolation:true;nodeIntegration:false;sandbox:true; }
constants.WEB_PREFERENCES.contextIsolationβ
readonlycontextIsolation:true=true
constants.WEB_PREFERENCES.nodeIntegrationβ
readonlynodeIntegration:false=false
constants.WEB_PREFERENCES.sandboxβ
readonlysandbox:true=true
currentStateβ
currentState:
WindowState
settingsPathβ
settingsPath:
string
resetStateβ
resetState: () =>
boolean
Defined in: windowStateUtils.ts:37
Returnsβ
boolean
validateSettingsβ
validateSettings: () => {
error?:undefined;exists:boolean;isValid:boolean;path:string;state:WindowState; } | {error:string;exists:boolean;isValid:false;path:string;state?:undefined; }
Defined in: windowStateUtils.ts:38
Returnsβ
{ error?: undefined; exists: boolean; isValid: boolean; path: string; state: WindowState; } | { error: string; exists: boolean; isValid: false; path: string; state?: undefined; }