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
refactor(js)!: consolidate auto-load onto single vtkwasm global (2eaeb04)
refactor(js)!: redesign loader and session API (881c360)
refactor(js)!: suffix promise-returning methods with Async (ca8b13f)
Features
js: guard create/destroy on unsupported sessions (8daf357)
js: register canvas elements directly via specialHTMLTargets (059d050)
BREAKING CHANGES
the vtkWASM UMD global is now vtkwasm; window.vtk, window.vtkReady, and window.vtkSession are removed. Await vtkwasm.ready
for the auto-loaded namespace instead.
the following promise-returning APIs were renamed:
loadVtkWasm -> loadVtkWasmAsync
createViewer -> createViewerAsync
RemoteSession.update/setSize/fetchState/fetchHash/pushHash gain the Async suffix (updateAsync, setSizeAsync, fetchStateAsync, fetchHashAsync,
pushHashAsync)
ExportViewer.load -> loadAsync
Callers must update to the new names.
VtkWASMLoader, createNamespace, and the standalone/remote
entry modules are removed in favor of loadVtkWasm() and runtime.create*Session().