@kitware/vtk.js 25.11.0 → 25.11.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.
|
@@ -105,10 +105,8 @@ export interface vtkScalarsToColors extends vtkObject {
|
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
|
-
* @param {Number} min
|
|
109
|
-
* @param {Number} max
|
|
110
108
|
*/
|
|
111
|
-
getRange(
|
|
109
|
+
getRange(): Range;
|
|
112
110
|
|
|
113
111
|
/**
|
|
114
112
|
* Get which component of a vector to map to colors.
|
|
@@ -501,7 +501,7 @@ function vtkScalarsToColors(publicAPI, model) {
|
|
|
501
501
|
return publicAPI.setMappingRange(min, max);
|
|
502
502
|
};
|
|
503
503
|
|
|
504
|
-
publicAPI.getRange = function (
|
|
504
|
+
publicAPI.getRange = function () {
|
|
505
505
|
return publicAPI.getMappingRange();
|
|
506
506
|
};
|
|
507
507
|
} // ----------------------------------------------------------------------------
|
|
@@ -298,7 +298,7 @@ function vtkOpenGLTexture(publicAPI, model) {
|
|
|
298
298
|
|
|
299
299
|
|
|
300
300
|
publicAPI.getInternalFormat = function (vtktype, numComps) {
|
|
301
|
-
if (!model.
|
|
301
|
+
if (!model._forceInternalFormat) {
|
|
302
302
|
model.internalFormat = publicAPI.getDefaultInternalFormat(vtktype, numComps);
|
|
303
303
|
}
|
|
304
304
|
|
|
@@ -332,6 +332,8 @@ function vtkOpenGLTexture(publicAPI, model) {
|
|
|
332
332
|
|
|
333
333
|
|
|
334
334
|
publicAPI.setInternalFormat = function (iFormat) {
|
|
335
|
+
model._forceInternalFormat = true;
|
|
336
|
+
|
|
335
337
|
if (iFormat !== model.internalFormat) {
|
|
336
338
|
model.internalFormat = iFormat;
|
|
337
339
|
publicAPI.modified();
|
|
@@ -388,6 +390,7 @@ function vtkOpenGLTexture(publicAPI, model) {
|
|
|
388
390
|
publicAPI.resetFormatAndType = function () {
|
|
389
391
|
model.format = 0;
|
|
390
392
|
model.internalFormat = 0;
|
|
393
|
+
model._forceInternalFormat = false;
|
|
391
394
|
model.openGLDataType = 0;
|
|
392
395
|
}; //----------------------------------------------------------------------------
|
|
393
396
|
|
|
@@ -1288,6 +1291,7 @@ function vtkOpenGLTexture(publicAPI, model) {
|
|
|
1288
1291
|
|
|
1289
1292
|
var DEFAULT_VALUES = {
|
|
1290
1293
|
_openGLRenderWindow: null,
|
|
1294
|
+
_forceInternalFormat: false,
|
|
1291
1295
|
context: null,
|
|
1292
1296
|
handle: 0,
|
|
1293
1297
|
sendParametersTime: null,
|
|
@@ -181,6 +181,7 @@ function vtkViewNode(publicAPI, model) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
deleted.push(child);
|
|
184
|
+
child.delete();
|
|
184
185
|
} else {
|
|
185
186
|
child.setVisited(false);
|
|
186
187
|
}
|
|
@@ -208,6 +209,16 @@ function vtkViewNode(publicAPI, model) {
|
|
|
208
209
|
|
|
209
210
|
return ret;
|
|
210
211
|
};
|
|
212
|
+
|
|
213
|
+
var parentDelete = publicAPI.delete;
|
|
214
|
+
|
|
215
|
+
publicAPI.delete = function () {
|
|
216
|
+
for (var i = 0; i < model.children.length; i++) {
|
|
217
|
+
model.children[i].delete();
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
parentDelete();
|
|
221
|
+
};
|
|
211
222
|
} // ----------------------------------------------------------------------------
|
|
212
223
|
// Object factory
|
|
213
224
|
// ----------------------------------------------------------------------------
|