@kitware/vtk.js 25.9.1 → 25.9.2

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.
@@ -1,3 +1,4 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
2
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
3
  import { mat3, mat4, vec3 } from 'gl-matrix';
3
4
  import { newInstance as newInstance$1, setGet, obj, vtkErrorMacro as vtkErrorMacro$1 } from '../../macros.js';
@@ -16,6 +17,9 @@ import { registerOverride } from './ViewNodeFactory.js';
16
17
  import { PassTypes } from './HardwareSelector/Constants.js';
17
18
  import vtkDataSet from '../../Common/DataModel/DataSet.js';
18
19
 
20
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
+
22
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
23
  var FieldAssociations = vtkDataSet.FieldAssociations;
20
24
  /* eslint-disable no-lonely-if */
21
25
 
@@ -1276,15 +1280,13 @@ function vtkOpenGLPolyDataMapper(publicAPI, model) {
1276
1280
  } else {
1277
1281
  // if we have edge visibility build the edge VBOs
1278
1282
  if (drawSurfaceWithEdges) {
1279
- model.primitives[i].getCABO().createVBO(primitives[i].cells, primitives[i].inRep, Representation.WIREFRAME, {
1280
- points: points,
1281
- normals: n,
1283
+ options.cellOffset += model.primitives[i].getCABO().createVBO(primitives[i].cells, primitives[i].inRep, Representation.WIREFRAME, _objectSpread(_objectSpread({}, options), {}, {
1282
1284
  tcoords: null,
1283
1285
  colors: null,
1284
- cellOffset: 0,
1285
1286
  haveCellScalars: false,
1286
1287
  haveCellNormals: false
1287
- });
1288
+ }), model.selectionWebGLIdsToVTKIds);
1289
+ options.vertexOffset += model.primitives[i].getCABO().getElementCount();
1288
1290
  } else {
1289
1291
  // otherwise free them
1290
1292
  model.primitives[i].releaseGraphicsResources();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "25.9.1",
3
+ "version": "25.9.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",