diff --git a/src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts b/src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts index 3d231edcdbebbb2e38eff58e6662f0fe2c1ee7ca..45785b41ca75276a563c261c12700724880a1752 100644 --- a/src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts +++ b/src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts @@ -98,7 +98,7 @@ export namespace VolumeStreaming { }, { description: 'Box around last-interacted element.', isFlat: true }), 'cell': PD.Group({}), // 'auto': PD.Group({ }), // TODO based on camera distance/active selection/whatever, show whole structure or slice. - }, { options: ViewTypeOptions, description: 'Controls what of the volume is displayed. "Off" hides the volume alltogether. "Bounded box" shows the volume inside the given box. "Arround Interaction" shows the volume around the element/atom last interacted with. "Whole Structure" shows the volume for the whole structure.' }), + }, { options: ViewTypeOptions, description: 'Controls what of the volume is displayed. "Off" hides the volume alltogether. "Bounded box" shows the volume inside the given box. "Around Interaction" shows the volume around the element/atom last interacted with. "Whole Structure" shows the volume for the whole structure.' }), detailLevel: PD.Select<number>(Math.min(3, info.header.availablePrecisions.length - 1), info.header.availablePrecisions.map((p, i) => [i, `${i + 1} [ ${Math.pow(p.maxVoxels, 1 / 3) | 0}^3 cells ]`] as [number, string]), { description: 'Determines the maximum number of voxels. Depending on the size of the volume options are in the range from 0 (0.52M voxels) to 6 (25.17M voxels).' }), channels: info.kind === 'em' diff --git a/src/mol-plugin/ui/custom/volume.tsx b/src/mol-plugin/ui/custom/volume.tsx index d1ced4acce2b5ce6d0c7f327f577b148473e33b8..72dc9d5f3ad7ef0e78bc5bc8bec3506b3b78d670 100644 --- a/src/mol-plugin/ui/custom/volume.tsx +++ b/src/mol-plugin/ui/custom/volume.tsx @@ -200,7 +200,7 @@ export class VolumeStreamingCustomControls extends PluginUIComponent<StateTransf isRelative: PD.Boolean(isRelative, { description: 'Use relative or absolute iso values.' }) }, { description: 'Box around the structure\'s bounding box.' }), // 'auto': PD.Group({ }), // TODO based on camera distance/active selection/whatever, show whole structure or slice. - }, { options: [['off', 'Off'], ['box', 'Bounded Box'], ['selection-box', 'Surroundings'], ['cell', 'Whole Structure']], description: 'Controls what of the volume is displayed. "Off" hides the volume alltogether. "Bounded box" shows the volume inside the given box. "Arround Interaction" shows the volume around the element/atom last interacted with. "Whole Structure" shows the volume for the whole structure.' }) + }, { options: VolumeStreaming.ViewTypeOptions, description: 'Controls what of the volume is displayed. "Off" hides the volume alltogether. "Bounded box" shows the volume inside the given box. "Around Interaction" shows the volume around the element/atom last interacted with. "Whole Structure" shows the volume for the whole structure.' }) }; const options = { entry: params.entry.name, diff --git a/src/mol-plugin/ui/plugin.tsx b/src/mol-plugin/ui/plugin.tsx index ca22c0089d40d3e9ee35d9393fc95d00b2b671d0..ab6203b4b8d49979bbbfbf9d1d63e80d2d86ee6b 100644 --- a/src/mol-plugin/ui/plugin.tsx +++ b/src/mol-plugin/ui/plugin.tsx @@ -249,7 +249,7 @@ export class CurrentObject extends PluginUIComponent { return <> {(cell.status === 'ok' || cell.status === 'error') && <UpdateTransformControl state={current.state} transform={transform} /> } - {cell.status === 'ok' && <StateObjectActions state={current.state} nodeRef={ref} initiallyColapsed />} + {cell.status === 'ok' && <StateObjectActions state={current.state} nodeRef={ref} initiallyCollapsed />} </>; } } \ No newline at end of file diff --git a/src/mol-plugin/ui/state/actions.tsx b/src/mol-plugin/ui/state/actions.tsx index 5f82d6db8a845daec5dce04f104cd4cc5808c723..7ca58eb14bb953fc3375824e7f4c7fa6f1073e21 100644 --- a/src/mol-plugin/ui/state/actions.tsx +++ b/src/mol-plugin/ui/state/actions.tsx @@ -10,7 +10,7 @@ import { ApplyActionControl } from './apply-action'; import { State } from '../../../mol-state'; import { Icon } from '../controls/common'; -export class StateObjectActions extends PluginUIComponent<{ state: State, nodeRef: string, hideHeader?: boolean, initiallyColapsed?: boolean }> { +export class StateObjectActions extends PluginUIComponent<{ state: State, nodeRef: string, hideHeader?: boolean, initiallyCollapsed?: boolean }> { get current() { return this.plugin.state.behavior.currentObject.value; } @@ -38,7 +38,7 @@ export class StateObjectActions extends PluginUIComponent<{ state: State, nodeRe return <div className='msp-state-actions'> {!this.props.hideHeader && <div className='msp-section-header'><Icon name='code' /> {`Actions (${display})`}</div> } - {actions.map((act, i) => <ApplyActionControl plugin={this.plugin} key={`${act.id}`} state={state} action={act} nodeRef={ref} initiallyCollapsed={this.props.initiallyColapsed} />)} + {actions.map((act, i) => <ApplyActionControl plugin={this.plugin} key={`${act.id}`} state={state} action={act} nodeRef={ref} initiallyCollapsed={this.props.initiallyCollapsed} />)} </div>; } } \ No newline at end of file