You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/js/plain.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,13 @@ In this example we tag the script to autoload WASM and create a global vtk names
34
34
<<< ../../public/demo/example.js
35
35
:::
36
36
37
+
In this example we tag the script to autoload WASM directly from the VTK repository's package registry and create a global vtk namespace. You can customize the wasm architecture and version by changing the data-url.
The method `createNamespace(url, config)` takes two arguments. The first one is used to specify the base directory where the wasm file from VTK will be find. When the module is loaded, the __url__ parameter could be skipped. For the __config__ it is aimed to tune how you would like your WASM environement to behave. The following sections cover the various options and what it means.
@@ -50,4 +57,4 @@ The method `createNamespace(url, config)` takes two arguments. The first one is
50
57
- WebGPU only works with the asynchronous implementation of method execution.
51
58
- This require WebAssembly JavaScript Promise Integration (JSPI) support in your browser
52
59
53
-
For the __annotation__ usecase you can add `data-config="{'rendering': 'webgpu'}"` attribute in your HTML to adjust the config setting.
60
+
For the __annotation__ usecase you can add `data-config="{'rendering': 'webgpu'}"` attribute in your HTML to adjust the config setting.
0 commit comments