Skip to content

Commit 3c35817

Browse files
committed
Ensure bounding box annotations are axis aligned
1 parent 099e588 commit 3c35817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viewer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'ol/ol.css'
22
import Collection from 'ol/Collection'
3-
import Draw, { createRegularPolygon } from 'ol/interaction/Draw'
3+
import Draw, { createBox } from 'ol/interaction/Draw'
44
import EVENT from './events'
55
import publish from './eventPublisher'
66
import Feature from 'ol/Feature'
@@ -2113,7 +2113,7 @@ class VolumeImageViewer {
21132113
box: {
21142114
type: 'Circle',
21152115
geometryName: 'Box',
2116-
geometryFunction: createRegularPolygon(4)
2116+
geometryFunction: createBox()
21172117
},
21182118
polygon: {
21192119
type: 'Polygon',

0 commit comments

Comments
 (0)