fdlyj
November 8, 2025, 5:04pm
1
How to programmatically add the vtkSeedWidget or vtkSphereWidget,then execute widgetManager.enablePicking(), and you can drag the widget with the mouse
Thanks.
finetjul
(Julien Finet)
November 8, 2025, 7:55pm
2
Isn’t placeWidget working ?
fdlyj
November 8, 2025, 11:15pm
3
My requirement is for the program to automatically generate the vtkSeedWidget upon loading, rather than requiring a mouse click to do so
finetjul
(Julien Finet)
November 9, 2025, 9:17pm
4
I made a PR to demonstrate how to programmatically place a seed widget:
master ← finetjul:seedwidget-programatic-placement
opened 09:15PM - 09 Nov 25 UTC
### Context
VTK.js is lacking an example to programmatically place a widget.
…
### Results
Improve the seed widget API and enhance its example.
### Changes
- [x] Documentation and TypeScript definitions were updated to match those changes
### PR and Code Checklist
- [x] [semantic-release](https://github.com/semantic-release/semantic-release) commit messages
- [x] Run `npm run reformat` to have correctly formatted code
### Testing
- [ ] This change adds or fixes unit tests
- [x] Tested environment:
- **vtk.js**: master
- **OS**: Windows 11
- **Browser**: Chrome