@@ -12,7 +12,7 @@ import { Asset } from 'molstar/lib/mol-util/assets';
12
12
import { Choice } from 'molstar/lib/mol-util/param-choice' ;
13
13
import { VolsegEntryData } from './extensions/volumes-and-segmentations/entry-root' ;
14
14
import { SEGMENT_VISUAL_TAG } from './extensions/volumes-and-segmentations/entry-segmentation' ;
15
- import { DescriptionData , ParsedSegmentKey } from './extensions/volumes-and-segmentations/volseg-api/data' ;
15
+ import { DescriptionData , ParsedSegmentKey , SegmentPointers } from './extensions/volumes-and-segmentations/volseg-api/data' ;
16
16
import { createSegmentKey , parseSegmentKey } from './extensions/volumes-and-segmentations/volseg-api/utils' ;
17
17
18
18
export async function parseCVSXJSON ( rawFile : [ string , Uint8Array ] , plugin : PluginContext ) {
@@ -127,7 +127,8 @@ function makeLoci(segments: number[], segmentationId: string, model: VolsegEntry
127
127
return { loci : Volume . Segment . Loci ( wholeLoci . volume , segments ) , repr : repr } ;
128
128
}
129
129
130
- async function showSegments ( segmentIds : number [ ] , segmentationId : string , kind : 'lattice' | 'mesh' | 'primitive' , model : VolsegEntryData ) {
130
+ async function showSegments ( segmentPointers : SegmentPointers , model : VolsegEntryData ) {
131
+ const { segmentIds, segmentationId, kind } = segmentPointers ;
131
132
if ( kind === 'lattice' ) {
132
133
const repr = findNodesByTags ( model . plugin , SEGMENT_VISUAL_TAG , segmentationId ) [ 0 ] ;
133
134
if ( ! repr ) return ;
0 commit comments