@kitware/vtk.js 24.11.0 → 24.12.0

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 _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
3
  import _createClass from '@babel/runtime/helpers/createClass';
3
4
  import macro from '../../macros.js';
@@ -16,6 +17,9 @@ import text from './StateBuilder/textMixin.js';
16
17
  import visible from './StateBuilder/visibleMixin.js';
17
18
  import shape from './StateBuilder/shapeMixin.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 vtkErrorMacro = macro.vtkErrorMacro; // ----------------------------------------------------------------------------
20
24
  // Global type lookup map
21
25
  // ----------------------------------------------------------------------------
@@ -85,8 +89,8 @@ var Builder = /*#__PURE__*/function () {
85
89
  var listName = "".concat(name, "List");
86
90
  this.model[listName] = []; // Create new Instance method
87
91
 
88
- this.publicAPI["add".concat(macro.capitalize(name))] = function () {
89
- var instance = newInstance(mixins, initialValues);
92
+ this.publicAPI["add".concat(macro.capitalize(name))] = function (values) {
93
+ var instance = newInstance(mixins, _objectSpread(_objectSpread({}, initialValues), values));
90
94
 
91
95
  _this.publicAPI.bindState(instance, labels);
92
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "24.11.0",
3
+ "version": "24.12.0",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",