Tinanuaa

Results 14 comments of Tinanuaa

> Let me suggest using the JavaScript project that backs itkwidgets: https://github.com/Kitware/itk-vtk-viewer > > And see PR [Kitware/itk-vtk-viewer#485](https://github.com/Kitware/itk-vtk-viewer/pull/485) for how to bundle the viewer into your project. Hi Paul, thanks...

> Your right, the errors are from itk-vtk-viewer. Seems your setup is trying to build itk-vtk-viewer directly. You should not need to. I dont think the itkwidget npm package is...

I tried to add alias in vite, but still got the itkConfig.js resolving error. so the steps are like below: 1. create tsconfig.paths.json ``` { "compilerOptions": { "paths": { "../itkConfig.js":...

After I add the optimizeDeps and viteStaticCopy to the vite.config.js as following (and I also changed the way I import itk-vtk-viewer to the way you said [here](https://github.com/Kitware/itk-vtk-viewer/pull/485#:~:text=import%20%27itk%2Dvtk%2Dviewer%27%0AitkVtkViewer.createViewer(...) ), ``` import...

I put the code in github, feel free to play with it if you like https://github.com/Tinanuaa/vite-react-app

I was able to set it up after I change the dest for viteStaticCopy plugin from"." to "./src" like below. ``` viteStaticCopy({ targets: [ { src: 'node_modules/itk-vtk-viewer/dist/itk/web-workers/min-bundles/pipeline.worker.js', dest: './src' },...

Sorry to disturb you again, but I notice sometimes the histogram doesn't show, like below,I'm just displaying the example image(https://data.kitware.com/api/v1/file/564a65d58d777f7522dbfb61/download/data.nrrd), and it works before, it just suddenly doesn't have the...

yes, I notice the two menus too, and from the console, the useEffect does get called twice, I guess it's caused by the RestricMode, I remove that then the useEffect...

The histogram not showing problem hasn't occur since I asked you last time until today, so I look into the issue today and found that somehow the histogram was set...