},{description:'Box around last-interacted element.',isFlat:true}),
},{description:'Box around last-interacted element.',isFlat:true}),
'cell':PD.Group({}),
'cell':PD.Group({}),
// 'auto': PD.Group({ }), // TODO based on camera distance/active selection/whatever, show whole structure or slice.
// 'auto': PD.Group({ }), // TODO based on camera distance/active selection/whatever, show whole structure or slice.
},{options:ViewTypeOptionsas any}),
},{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.'}),
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).'}),
entry:PD.Select(params.entry.name,b.data.entries.map(info=>[info.dataId,info.dataId]as [string,string]),{description:'Which entry with volume data to display.'}),
},{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.'})