Skip to content

Commit 7f14f42

Browse files
committed
more globals
1 parent bf9501e commit 7f14f42

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/labeling/roiMarking.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,19 +1078,20 @@ async function storePresetLabel(labelData) {
10781078
showAnnotation(annotJson)
10791079
}
10801080
}
1081-
1081+
let spen = {}
1082+
let mtool = {}
10821083
let camicOverrides = x=>{
10831084
// bypass spen and mttool, otherwise in ../../common/smartpen/autoalign.js
10841085
$CAMIC.viewer.canvasDrawInstance.removeHandler('stop-drawing', addAnnotaiton);
1085-
let spen = {}
1086+
10861087
spen.initcanvas = console.log
10871088
spen.alignR = x=>x
1088-
let mtool = {}
1089+
10891090
mtool.hash = x=>x
10901091
mtool.populate = x=>x
10911092
mtool.distance = x=>x
1092-
let prevLabel = false
10931093
}
1094+
let prevLabel = false
10941095

10951096
function startLabeling(l) {
10961097
// each time switching label, store prev if applicable.

0 commit comments

Comments
 (0)