We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423112c commit 3722071Copy full SHA for 3722071
Sources/IO/Misc/OBJWriter/index.js
@@ -181,7 +181,9 @@ function vtkOBJWriter(publicAPI, model) {
181
zipContent[`${modelFilename}.obj`] = strToU8(model.output[0]);
182
zipContent[`${materialFilename}.mtl`] = strToU8(model.mtl);
183
184
- const canvas = new OffscreenCanvas(imageData.width, imageData.height);
+ const canvas = document.createElement('canvas');
185
+ canvas.width = imageData.width;
186
+ canvas.height = imageData.height;
187
const ctx = canvas.getContext('2d');
188
ctx.putImageData(imageData, 0, 0);
189
0 commit comments