Description
Trying to call methods on a vtkTypeUInt8Array or any other array throws TypeError.
Where does the issue originate?
This project (vtk-wasm JS bindings)
Version Information
vtk-wasm - v3.0.5, VTK=9.7.20260913.dev0
Steps to Reproduce
let native = remoteSession.native;
native.registerState({
Id: pixelsId,
MTime: 1,
ClassName: "vtkTypeUInt8Array",
SuperClassNames: ["vtkObjectBase", "vtkObject", "vtkAbstractArray", "vtkDataArray"],
NumberOfComponents: 4,
"vtk-object-manager-kept-alive": true,
});
native.updateObjectsFromStates();
native.getDataType() # throws TypeError
Relevant Log Output
Uncaught TypeError: Unknown class vtkTypeUInt8Array: cannot resolve 'getDataType'.
at Object.get (trame_vtklocal.umd.js:1:15988)
at eval (eval at r (trame_vtklocal.umd.js:1:1), <anonymous>:1:3)
at Object.r [as toJSTypedArray] (trame_vtklocal.umd.js:1:12106)
at Proxy.en (trame_vtklocal.umd.js:3:8616)
Description
Trying to call methods on a vtkTypeUInt8Array or any other array throws TypeError.
Where does the issue originate?
This project (vtk-wasm JS bindings)
Version Information
vtk-wasm - v3.0.5, VTK=9.7.20260913.dev0
Steps to Reproduce
Relevant Log Output