11import { z } from 'zod' ;
22import { zodEnumFromObjKeys } from '@/src/utils' ;
33import { ACTIONS } from '@/src/constants' ;
4- import { Layouts } from '@/src/config' ;
4+ // import { Layouts } from '@/src/config';
55
66// for applyConfig
77import { useRectangleStore } from '@/src/store/tools/rectangles' ;
88import { useRulerStore } from '@/src/store/tools/rulers' ;
99import { useDataBrowserStore } from '@/src/store/data-browser' ;
1010import { usePolygonStore } from '@/src/store/tools/polygons' ;
11- import { useViewStore } from '@/src/store/views' ;
11+ // import { useViewStore } from '@/src/store/views';
1212import { useWindowingStore } from '@/src/store/view-configs/windowing' ;
1313import { actionToKey } from '@/src/composables/useKeyboardShortcuts' ;
1414import { useSegmentGroupStore } from '@/src/store/segmentGroups' ;
@@ -20,7 +20,7 @@ import useLoadDataStore from '@/src/store/load-data';
2020
2121const layout = z
2222 . object ( {
23- activeLayout : zodEnumFromObjKeys ( Layouts ) . optional ( ) ,
23+ // activeLayout: zodEnumFromObjKeys(Layouts).optional(),
2424 } )
2525 . optional ( ) ;
2626
@@ -128,12 +128,12 @@ const applySampleData = (manifest: Config) => {
128128 useDataBrowserStore ( ) . hideSampleData = ! ! manifest . dataBrowser ?. hideSampleData ;
129129} ;
130130
131- const applyLayout = ( manifest : Config ) => {
132- if ( manifest . layout ?. activeLayout ) {
133- const startingLayout = Layouts [ manifest . layout . activeLayout ] ;
134- useViewStore ( ) . setLayout ( startingLayout ) ;
135- }
136- } ;
131+ // const applyLayout = (manifest: Config) => {
132+ // if (manifest.layout?.activeLayout) {
133+ // const startingLayout = Layouts[manifest.layout.activeLayout];
134+ // useViewStore().setLayout(startingLayout);
135+ // }
136+ // };
137137
138138const applyShortcuts = ( manifest : Config ) => {
139139 if ( ! manifest . shortcuts ) return ;
@@ -159,7 +159,7 @@ const applyWindowing = (manifest: Config) => {
159159} ;
160160
161161export const applyConfig = ( manifest : Config ) => {
162- applyLayout ( manifest ) ;
162+ // applyLayout(manifest);
163163 applyLabels ( manifest ) ;
164164 applySampleData ( manifest ) ;
165165 applyShortcuts ( manifest ) ;
0 commit comments