Kitware / itk-vtk-viewer

2D / 3D web image, mesh, and point set viewer using itk-wasm and vtk.js
https://kitware.github.io/itk-vtk-viewer/
BSD 3-Clause "New" or "Revised" License
210 stars 64 forks source link

ConnectionLess use of viewer #556

Closed idoRosen25 closed 2 years ago

idoRosen25 commented 2 years ago

i wish to be able to use the viewer in my app, which does not have internet connection (installed on a machine with no access to the internet). it is possible? is there a way to install all required packages locally?

PaulHax commented 2 years ago

Is possible. Just need the itkVtkViewer.js file. It bundles all needed packages.

idoRosen25 commented 2 years ago

i tried to copy the file from the CDN but it still shows errors related to jsdelivr. can you be more specific on which file i need?

PaulHax commented 2 years ago

Your right, more than itkVtkViewer.js is needed. Sorry for the wrong info. Some itk-wasm build Web Assembly files are probably needed, depending on your data file types. This should work:

idoRosen25 commented 2 years ago

And then I can copy the dist into my project and it will work? Or copy the itk and viewer.js files?

PaulHax commented 2 years ago

Both ways could work. There are some .HTML files in the dist directory that show how to use.

idoRosen25 commented 2 years ago

will updated to the repo have any impact on my use in the future?

PaulHax commented 2 years ago

Should not. After your integration, check your network traffic?

idoRosen25 commented 2 years ago

Great! this is working as it should! great help!!!