|
@@ -72,7 +72,16 @@ const DefaultViewerProps = {
|
|
volumeStreamingServer: '//maps.rcsb.org/',
|
|
volumeStreamingServer: '//maps.rcsb.org/',
|
|
|
|
|
|
backgroundColor: ColorNames.white,
|
|
backgroundColor: ColorNames.white,
|
|
- showWelcomeToast: true
|
|
|
|
|
|
+ showWelcomeToast: true,
|
|
|
|
+
|
|
|
|
+ panelVisibility: {
|
|
|
|
+ selection: false,
|
|
|
|
+ measurements: true,
|
|
|
|
+ superposition: false,
|
|
|
|
+ component: true,
|
|
|
|
+ volume: false,
|
|
|
|
+ custom: false
|
|
|
|
+ }
|
|
};
|
|
};
|
|
type ViewerProps = typeof DefaultViewerProps
|
|
type ViewerProps = typeof DefaultViewerProps
|
|
|
|
|
|
@@ -107,7 +116,7 @@ export class Viewer {
|
|
...DefaultPluginSpec.layout && DefaultPluginSpec.layout.controls,
|
|
...DefaultPluginSpec.layout && DefaultPluginSpec.layout.controls,
|
|
top: o.layoutShowSequence ? undefined : 'none',
|
|
top: o.layoutShowSequence ? undefined : 'none',
|
|
bottom: o.layoutShowLog ? undefined : 'none',
|
|
bottom: o.layoutShowLog ? undefined : 'none',
|
|
- left: 'none',
|
|
|
|
|
|
+ // left: 'none',
|
|
right: ControlsWrapper,
|
|
right: ControlsWrapper,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -140,6 +149,7 @@ export class Viewer {
|
|
volume: true,
|
|
volume: true,
|
|
custom: true,
|
|
custom: true,
|
|
}),
|
|
}),
|
|
|
|
+ visibility: new BehaviorSubject<CollapsedState>({ ...o.panelVisibility })
|
|
}
|
|
}
|
|
|
|
|
|
this.plugin.init();
|
|
this.plugin.init();
|