Closed idoRosen25 closed 2 years ago
Is possible. Just need the itkVtkViewer.js file. It bundles all needed packages.
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?
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:
npm install
npm run build
dist
directory with
itk
directory with built Web Assembly filesitkVtkViewer.js
file that points to the itk
directory relatively (rather than to jsdeliver)And then I can copy the dist into my project and it will work? Or copy the itk and viewer.js files?
Both ways could work. There are some .HTML files in the dist directory that show how to use.
will updated to the repo have any impact on my use in the future?
Should not. After your integration, check your network traffic?
Great! this is working as it should! great help!!!
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?