Skip to content

Commit f9613c7

Browse files
committed
BUG: Fix cropping planes ROI serialization
1 parent 2030d43 commit f9613c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

js/lib/viewer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -844,15 +844,14 @@ const ViewerView = widgets.DOMWidgetView.extend({
844844
this.model.skipOnCroppingPlanesChanged = true
845845
this.model.set(
846846
'roi',
847-
{ array: new Float64Array([
847+
new Float64Array([
848848
bboxCorners[0][0],
849849
bboxCorners[0][1],
850850
bboxCorners[0][2],
851851
bboxCorners[7][0],
852852
bboxCorners[7][1],
853853
bboxCorners[7][2]
854-
]),
855-
shape: [2,3] }
854+
])
856855
)
857856
this.model.save_changes()
858857
} else {

0 commit comments

Comments
 (0)