Skip to content
Snippets Groups Projects
Commit 18be09e9 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix .getAllLoci for representations with structure.child

parent 55e940e8
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ Note that since we don't clearly distinguish between a public and private interf ...@@ -14,6 +14,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Add "Zoom All", "Orient Axes", "Reset Axes" buttons to the "Reset Camera" button - Add "Zoom All", "Orient Axes", "Reset Axes" buttons to the "Reset Camera" button
- Improve trackball move-state handling when key bindings use modifiers - Improve trackball move-state handling when key bindings use modifiers
- Fix rendering with very small viewport and SSAO enabled - Fix rendering with very small viewport and SSAO enabled
- Fix `.getAllLoci` for structure representations with `structure.child`
## [v3.33.0] - 2023-04-02 ## [v3.33.0] - 2023-04-02
......
...@@ -77,7 +77,7 @@ export function ComplexRepresentation<P extends StructureParams>(label: string, ...@@ -77,7 +77,7 @@ export function ComplexRepresentation<P extends StructureParams>(label: string,
} }
function getAllLoci() { function getAllLoci() {
return [Structure.Loci(_structure.target)]; return [Structure.Loci(_structure.child ?? _structure)];
} }
function mark(loci: Loci, action: MarkerAction) { function mark(loci: Loci, action: MarkerAction) {
......
...@@ -195,7 +195,7 @@ export function UnitsRepresentation<P extends StructureParams>(label: string, ct ...@@ -195,7 +195,7 @@ export function UnitsRepresentation<P extends StructureParams>(label: string, ct
} }
function getAllLoci() { function getAllLoci() {
return [Structure.Loci(_structure.target)]; return [Structure.Loci(_structure.child ?? _structure)];
} }
function mark(loci: Loci, action: MarkerAction) { function mark(loci: Loci, action: MarkerAction) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment