js+vue2.0+“@kitware/vtk.js”: “^25.14.0” , After loading the medical VTK model using VTK.JS, add VTkLineWidget to the model. Click on the blood vessel position with the mouse to create VTkLineWidget. Click on the blood vessel position again and move the mouse to display VTkLineWidget; Now there is a problem: if the second mouse click position is the same as the first mouse click position, VTK will report an exception, causing the VTkLineWidget to not be visible on the interface. How can I solve this problem? The VTK exception is as follows:
Steps to reproduce
1.load and show .vtk in screen
2.click the mouse and create vtkLineWidget
3.click the mouse and move the mouse to display vtkLineWidget
4.the vtkLineWidget not show in screen ,you can see the error in the browser eveloper
error info:
iterableToArray.js:2
Uncaught
TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
at ht (iterableToArray.js:2:40)
at vt (toConsumableArray.js:6:36)
at XU.e.placeHandle (behavior.js:195:36)
at XU.e.handleLeftButtonPress (behavior.js:228:17)
at Object. (InteractorObserver.js:59:46)
at i (macros.js:1002:31)
at Object.A [as invokeLeftButtonPress] (macros.js:1011:18)
at qA.forEach.e. [as leftButtonPressEvent] (RenderWindowInteractor.js:872:33)
at e.handleMouseDown (RenderWindowInteractor.js:368:19)
at e.handlePointerDown (RenderWindowInteractor.js:295:19)