You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using React 18 with TypeScript. DWV is instantiated like so:
// One time setupuseEffect(()=>{if(app){return;}if(seriesCollection.length===0){console.log('No series found');return;}console.log('Setting up viewer...');constnewApp=newApp();constviewConfig=newViewConfig(ROOT_ID);constopts=newAppOptions({'*': [viewConfig]});opts.tools={Scroll: newToolConfig(),ZoomAndPan: newToolConfig(),Draw: newToolConfig(['Rectangle','Ruler','Ellipse','Arrow','Circle'])};newApp.init(opts);constseries=seriesCollection[0];newApp.loadFiles(series.files);newApp.addEventListener('load',()=>{console.log('Finished loading DICOM files.');setImagesLoadingComplete(true);newApp.setTool('Scroll');});setApp(newApp);},[app,seriesCollection]);
Bug description
DWV errors on click with the Draw tool selected (using any shape). First, it errors with:
this[#Ki][this[#Vr]] is not a constructor
TypeError: this[#Ki][this[#Vr]] is not a constructor
at #Kr (draw.js:275:1)
at #_r (draw.js:258:1)
at #jr (draw.js:236:1)
at mousedown (draw.js:382:1)
at Array.n (toolboxController.js:241:1)
at He.fireEvent (listen.js:70:1)
at #Re (drawLayer.js:659:1)
Then, after each second or so, it errors with:
Cannot read properties of null (reading 'getX')
TypeError: Cannot read properties of null (reading 'getX')
at #$r (draw.js:325:1)
at mousemove (draw.js:397:1)
at Array.n (toolboxController.js:241:1)
at He.fireEvent (listen.js:70:1)
at #Re (drawLayer.js:659:1)
The text was updated successfully, but these errors were encountered:
Environment
I am using React 18 with TypeScript. DWV is instantiated like so:
Bug description
DWV errors on click with the Draw tool selected (using any shape). First, it errors with:
Then, after each second or so, it errors with:
The text was updated successfully, but these errors were encountered: