@kitware/vtk.js 22.1.5 → 22.1.6

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.
@@ -80,15 +80,21 @@ function vtkMouseBoxSelectionManipulator(publicAPI, model) {
80
80
  previousPosition = position;
81
81
 
82
82
  if (model.renderSelection) {
83
+ var _view;
84
+
83
85
  // Need window size and location to convert to style
84
86
  if (!view) {
85
87
  view = interactor.getView();
86
88
  }
87
89
 
88
- if (!container && view) {
90
+ if (!container && (_view = view) !== null && _view !== void 0 && _view.getContainer) {
89
91
  container = view.getContainer();
90
92
  }
91
93
 
94
+ if (!container) {
95
+ container = model.container;
96
+ }
97
+
92
98
  if (!div) {
93
99
  div = document.createElement('div');
94
100
  applyStyle(div, model.selectionStyle);
@@ -155,6 +161,7 @@ function vtkMouseBoxSelectionManipulator(publicAPI, model) {
155
161
 
156
162
  function DEFAULT_VALUES(initialValues) {
157
163
  return _objectSpread(_objectSpread({
164
+ // container: null,
158
165
  renderSelection: true
159
166
  }, initialValues), {}, {
160
167
  selectionStyle: _objectSpread(_objectSpread({}, DEFAULT_STYLE), initialValues.selectionStyle)
@@ -172,7 +179,7 @@ function extend(publicAPI, model) {
172
179
 
173
180
  event(publicAPI, model, 'BoxSelectInput'); // Trigger while dragging
174
181
 
175
- setGet(publicAPI, model, ['renderSelection', 'selectionStyle']); // Object specific methods
182
+ setGet(publicAPI, model, ['renderSelection', 'selectionStyle', 'container']); // Object specific methods
176
183
 
177
184
  vtkMouseBoxSelectionManipulator(publicAPI, model);
178
185
  } // ----------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "22.1.5",
3
+ "version": "22.1.6",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",