diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 105b166..61a34ed 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -10,6 +10,7 @@ import { Menu } from 'primereact/menu'; import { Toast } from 'primereact/toast'; import HelpMenu from './HelpMenu'; import ExportButton from './ExportButton'; +import SettingsMenu from './SettingsMenu'; export default function Footer({style}: {style?: CSSProperties}) { @@ -76,6 +77,8 @@ export default function Footer({style}: {style?: CSSProperties}) {
+ + model.mutate(s => s.view.showAxes = !s.view.showAxes) }, - { - label: state.view.showShadows ? 'Hide shadows' : 'Add shadows', - icon: 'pi pi-box', - // disabled: true, - command: () => model.mutate(s => s.view.showShadows = !s.view.showShadows) - }, { label: state.view.lineNumbers ? 'Hide line numbers' : 'Show line numbers', icon: 'pi pi-list', diff --git a/src/state/app-state.ts b/src/state/app-state.ts index 6a2b128..e7ac7d9 100644 --- a/src/state/app-state.ts +++ b/src/state/app-state.ts @@ -48,7 +48,6 @@ export interface State { color: string, showAxes?: boolean, - showShadows?: boolean, lineNumbers?: boolean, } diff --git a/src/state/fragment-state.ts b/src/state/fragment-state.ts index 83084f1..e6841ed 100644 --- a/src/state/fragment-state.ts +++ b/src/state/fragment-state.ts @@ -82,7 +82,6 @@ export async function readStateFromFragment(): Promise { collapsedCustomizerTabs: validateArray(view?.collapsedCustomizerTabs, validateString), color: validateString(view?.color, () => defaultModelColor), showAxes: validateBoolean(view?.layout?.showAxis, () => true), - showShadows: validateBoolean(view?.layout?.showShadow, () => true), lineNumbers: validateBoolean(view?.layout?.lineNumbers, () => false) } }; diff --git a/src/state/initial-state.ts b/src/state/initial-state.ts index 696b9de..66d7170 100644 --- a/src/state/initial-state.ts +++ b/src/state/initial-state.ts @@ -52,7 +52,6 @@ export function createInitialState(state: State | null, content: string = defaul } initialState.view.showAxes ??= true - initialState.view.showShadows ??= true // fs.writeFile(initialState.params.sourcePath, initialState.params.source); // if (initialState.params.sourcePath !== defaultSourcePath) {