@kitware/vtk.js 27.4.1 → 27.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,7 +79,7 @@ function vtkFieldData(publicAPI, model) {
79
79
 
80
80
  publicAPI.removeArray = function (arrayName) {
81
81
  var index = model.arrays.findIndex(function (array) {
82
- return array.getName() === arrayName;
82
+ return array.data.getName() === arrayName;
83
83
  });
84
84
  return publicAPI.removeArrayByIndex(index);
85
85
  };
@@ -56,7 +56,9 @@ export interface vtkRenderWindow extends vtkObject {
56
56
  captureImages(format?: string, opts?: any): Promise<string>[];
57
57
 
58
58
  /**
59
- *
59
+ * Switch the rendering backend between WebGL and WebGPU.
60
+ * By default, the WebGL backend is used. To switch, to WebGPU call
61
+ * `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`.
60
62
  */
61
63
  getDefaultViewAPI(): string;
62
64
 
@@ -143,8 +145,10 @@ export interface vtkRenderWindow extends vtkObject {
143
145
  render(): void;
144
146
 
145
147
  /**
146
- *
147
- * @param defaultViewAPI
148
+ * Switch the rendering backend between WebGL and WebGPU.
149
+ * By default, the WebGL backend is used. To switch, to WebGPU call
150
+ * `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`.
151
+ * @param defaultViewAPI (default: 'WebGL')
148
152
  */
149
153
  setDefaultViewAPI(defaultViewAPI: DEFAULT_VIEW_API): boolean;
150
154
 
@@ -1,6 +1,6 @@
1
1
  import macro from '../../macros.js';
2
2
 
3
- var DEFAULT_VIEW_API = navigator.gpu ? 'WebGPU' : 'WebGL';
3
+ var DEFAULT_VIEW_API = 'WebGL';
4
4
  var VIEW_CONSTRUCTORS = Object.create(null); // ----------------------------------------------------------------------------
5
5
  // static methods
6
6
  // ----------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "27.4.1",
3
+ "version": "27.4.3",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",