Skip to content
Snippets Groups Projects
Commit d22fb615 authored by David Sehnal's avatar David Sehnal
Browse files

mol-plugin: vol streaming todo

parent 5b210874
No related branches found
No related tags found
No related merge requests found
...@@ -158,19 +158,19 @@ export namespace VolumeStreaming { ...@@ -158,19 +158,19 @@ export namespace VolumeStreaming {
const eR = this.params.view.params.radius; const eR = this.params.view.params.radius;
const box = StructureElement.Loci.getBoundary(loci).box; const box = StructureElement.Loci.getBoundary(loci).box;
const update = this.plugin.state.dataState.build().to(ref) const update = this.plugin.state.dataState.build().to(ref).update(CreateVolumeStreamingBehavior, old => ({
.update(CreateVolumeStreamingBehavior, old => ({ ...old,
...old, view: {
view: { name: 'selection-box' as 'selection-box',
name: 'selection-box' as 'selection-box', params: {
params: { radius: eR,
radius: eR, bottomLeft: box.min,
bottomLeft: box.min, topRight: box.max
topRight: box.max
}
} }
})); }
}));
// TODO: create/use command queue here and cancel any ongoing updates.
this.plugin.runTask(this.plugin.state.dataState.updateTree(update)); this.plugin.runTask(this.plugin.state.dataState.updateTree(update));
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment