-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display vtkLineWidget error when click same postion[Bug] #3096
Comments
add error info: |
1 similar comment
add error info: |
Does this happen with the latest v31 version of vtk.js? |
Yes,I tested on the latest version and reproduced this issue. |
I test it on [31.0.3] (2024-07-23).I reprodeced it:behavior.js:138 Uncaught TypeError: t.widgetState.getMoveHandle(...).getOrigin(...) is not iterable (cannot read property null) |
How are you using the line widget? Can you reproduce it with the online example, or is it based on how you are using it? |
25b849fcfdf56bce55100ce5f52cf605.mp4Please check the video! I will attach the code later. |
step 1:add listener for click :document.body.addEventListener("click", this.bodyClick, false); temp.markRenderer = function (pos) {
|
Bug description
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
Detailed Behavior
No response
Expected Behavior
The vtkLineWidget can diaplay nomal when click same postion
Environment
The text was updated successfully, but these errors were encountered: