fix(overlay): Overlays aren't shown on undefined origin (#3781)
This commit is contained in:
1 parent
14793493a4
commit
fd1251f751
3 files changed
+46
-19
No files matched your search
@@ -73,6 +73,12 @@ class ImageOverlayViewerTool extends AnnotationDisplayTool {
|
||||
return;
|
||||
}
|
||||
|
||||
// Fix the x, y positions
|
||||
overlays.forEach(overlay => {
|
||||
overlay.x ||= 0;
|
||||
overlay.y ||= 0;
|
||||
});
|
||||
|
||||
this._cachedOverlayMetadata.set(imageId, overlays);
|
||||
|
||||
this._getCachedStat(imageId, overlays, this.configuration.fillColor).then(cachedStat => {
|
||||
|
||||
Reference in new issue
Block a user