@kitware/vtk.js 25.9.0 → 25.9.1

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.
@@ -25,18 +25,13 @@ var ClassHierarchy = /*#__PURE__*/function (_Array) {
25
25
  _createClass(ClassHierarchy, [{
26
26
  key: "push",
27
27
  value: function push() {
28
- var _get2;
29
-
30
- // using a for loop because a filter would trigger the garbage collector
31
- var newArgs = [];
32
-
33
28
  for (var i = 0; i < arguments.length; i++) {
34
29
  if (!this.includes(arguments[i])) {
35
- newArgs.push(arguments[i]);
30
+ _get(_getPrototypeOf(ClassHierarchy.prototype), "push", this).call(this, arguments[i]);
36
31
  }
37
32
  }
38
33
 
39
- return (_get2 = _get(_getPrototypeOf(ClassHierarchy.prototype), "push", this)).call.apply(_get2, [this].concat(newArgs));
34
+ return this.length;
40
35
  }
41
36
  }]);
42
37
 
package/macros.js CHANGED
@@ -234,7 +234,13 @@ function obj() {
234
234
  if (!('classHierarchy' in model)) {
235
235
  model.classHierarchy = new ClassHierarchy('vtkObject');
236
236
  } else if (!(model.classHierarchy instanceof ClassHierarchy)) {
237
- model.classHierarchy = ClassHierarchy.from(model.classHierarchy);
237
+ var hierarchy = new ClassHierarchy();
238
+
239
+ for (var i = 0; i < model.classHierarchy.length; i++) {
240
+ hierarchy.push(model.classHierarchy[i]);
241
+ }
242
+
243
+ model.classHierarchy = hierarchy;
238
244
  }
239
245
 
240
246
  function off(index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "25.9.0",
3
+ "version": "25.9.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",