@kitware/vtk.js 28.8.0 → 28.8.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.
@@ -2370,4 +2370,4 @@ var vtkMath$1 = /*#__PURE__*/Object.freeze({
2370
2370
  'default': vtkMath
2371
2371
  });
2372
2372
 
2373
- export { factorial as $, degreesFromRadians as A, areEquals as B, clampValue as C, arrayRange as D, getMajorAxisIndex as E, isInf as F, rgb2hsv as G, rgb2lab as H, lab2rgb as I, floor as J, round as K, normalize2D as L, nearestPowerOfTwo as M, createUninitializedBounds as N, multiply3x3_vect3 as O, areBoundsInitialized as P, isPowerOfTwo as Q, angleBetweenVectors as R, signedAngleBetweenVectors as S, createArray as T, Pi as U, ceil as V, min as W, max as X, arrayMin as Y, arrayMax as Z, ceilLog2 as _, areMatricesEqual as a, binomial as a0, beginCombination as a1, nextCombination as a2, randomSeed as a3, getSeed as a4, gaussian as a5, multiplyScalar2D as a6, multiplyAccumulate2D as a7, outer as a8, projectVector as a9, singularValueDecomposition3x3 as aA, luFactorLinearSystem as aB, luSolveLinearSystem as aC, invertMatrix as aD, estimateMatrixCondition as aE, solveHomogeneousLeastSquares as aF, solveLeastSquares as aG, hex2float as aH, lab2xyz as aI, xyz2lab as aJ, xyz2rgb as aK, rgb2xyz as aL, computeBoundsFromPoints as aM, clampAndNormalizeValue as aN, getScalarTypeFittingRange as aO, getAdjustedScalarRange as aP, extentIsWithinOtherExtent as aQ, boundsIsWithinOtherBounds as aR, pointIsWithinBounds as aS, solve3PointCircle as aT, inf as aU, negInf as aV, isFinite as aW, isNaN as aX, floatToHex2 as aY, floatRGB2HexCode as aZ, float2CssRGBA as a_, dot2D as aa, projectVector2D as ab, gaussianAmplitude as ac, gaussianWeight as ad, outer2D as ae, norm2D as af, rowsToMat4 as ag, columnsToMat4 as ah, columnsToMat3 as ai, LUFactor3x3 as aj, LUSolve3x3 as ak, linearSolve3x3 as al, multiply3x3_mat3 as am, multiplyMatrix as an, transpose3x3 as ao, invert3x3 as ap, identity3x3 as aq, identity as ar, isIdentity as as, isIdentity3x3 as at, quaternionToMatrix3x3 as au, roundNumber as av, matrix3x3ToQuaternion as aw, multiplyQuaternion as ax, orthogonalize3x3 as ay, diagonalize3x3 as az, roundVector as b, clampVector as c, dot as d, distance2BetweenPoints as e, vtkMath as f, solveLinearSystem as g, hsv2rgb as h, isNan as i, cross as j, add as k, normalize as l, multiplyAccumulate as m, norm as n, determinant2x2 as o, jacobiN as p, perpendiculars as q, radiansFromDegrees as r, subtract as s, jacobi as t, uninitializeBounds as u, vtkMath$1 as v, multiplyScalar as w, random as x, determinant3x3 as y, rowsToMat3 as z };
2373
+ export { factorial as $, degreesFromRadians as A, areEquals as B, clampValue as C, arrayRange as D, getMajorAxisIndex as E, createUninitializedBounds as F, isInf as G, rgb2hsv as H, rgb2lab as I, lab2rgb as J, floor as K, round as L, normalize2D as M, nearestPowerOfTwo as N, multiply3x3_vect3 as O, areBoundsInitialized as P, isPowerOfTwo as Q, angleBetweenVectors as R, signedAngleBetweenVectors as S, createArray as T, Pi as U, ceil as V, min as W, max as X, arrayMin as Y, arrayMax as Z, ceilLog2 as _, areMatricesEqual as a, binomial as a0, beginCombination as a1, nextCombination as a2, randomSeed as a3, getSeed as a4, gaussian as a5, multiplyScalar2D as a6, multiplyAccumulate2D as a7, outer as a8, projectVector as a9, singularValueDecomposition3x3 as aA, luFactorLinearSystem as aB, luSolveLinearSystem as aC, invertMatrix as aD, estimateMatrixCondition as aE, solveHomogeneousLeastSquares as aF, solveLeastSquares as aG, hex2float as aH, lab2xyz as aI, xyz2lab as aJ, xyz2rgb as aK, rgb2xyz as aL, computeBoundsFromPoints as aM, clampAndNormalizeValue as aN, getScalarTypeFittingRange as aO, getAdjustedScalarRange as aP, extentIsWithinOtherExtent as aQ, boundsIsWithinOtherBounds as aR, pointIsWithinBounds as aS, solve3PointCircle as aT, inf as aU, negInf as aV, isFinite as aW, isNaN as aX, floatToHex2 as aY, floatRGB2HexCode as aZ, float2CssRGBA as a_, dot2D as aa, projectVector2D as ab, gaussianAmplitude as ac, gaussianWeight as ad, outer2D as ae, norm2D as af, rowsToMat4 as ag, columnsToMat4 as ah, columnsToMat3 as ai, LUFactor3x3 as aj, LUSolve3x3 as ak, linearSolve3x3 as al, multiply3x3_mat3 as am, multiplyMatrix as an, transpose3x3 as ao, invert3x3 as ap, identity3x3 as aq, identity as ar, isIdentity as as, isIdentity3x3 as at, quaternionToMatrix3x3 as au, roundNumber as av, matrix3x3ToQuaternion as aw, multiplyQuaternion as ax, orthogonalize3x3 as ay, diagonalize3x3 as az, roundVector as b, clampVector as c, dot as d, distance2BetweenPoints as e, vtkMath as f, solveLinearSystem as g, hsv2rgb as h, isNan as i, cross as j, add as k, normalize as l, multiplyAccumulate as m, norm as n, determinant2x2 as o, jacobiN as p, perpendiculars as q, radiansFromDegrees as r, subtract as s, jacobi as t, uninitializeBounds as u, vtkMath$1 as v, multiplyScalar as w, random as x, determinant3x3 as y, rowsToMat3 as z };
@@ -3,4 +3,4 @@ import '@babel/runtime/helpers/toConsumableArray';
3
3
  import 'seedrandom';
4
4
  import '../../macros.js';
5
5
  import './Math/Constants.js';
6
- export { aj as LUFactor3x3, ak as LUSolve3x3, U as Pi, k as add, R as angleBetweenVectors, P as areBoundsInitialized, B as areEquals, a as areMatricesEqual, Z as arrayMax, Y as arrayMin, D as arrayRange, a1 as beginCombination, a0 as binomial, aR as boundsIsWithinOtherBounds, V as ceil, _ as ceilLog2, aN as clampAndNormalizeValue, C as clampValue, c as clampVector, ai as columnsToMat3, ah as columnsToMat4, aM as computeBoundsFromPoints, T as createArray, N as createUninitializedBounds, j as cross, f as default, A as degreesFromRadians, o as determinant2x2, y as determinant3x3, az as diagonalize3x3, e as distance2BetweenPoints, d as dot, aa as dot2D, aE as estimateMatrixCondition, aQ as extentIsWithinOtherExtent, $ as factorial, a_ as float2CssRGBA, aZ as floatRGB2HexCode, aY as floatToHex2, J as floor, a5 as gaussian, ac as gaussianAmplitude, ad as gaussianWeight, aP as getAdjustedScalarRange, E as getMajorAxisIndex, aO as getScalarTypeFittingRange, a4 as getSeed, aH as hex2float, h as hsv2rgb, ar as identity, aq as identity3x3, aU as inf, ap as invert3x3, aD as invertMatrix, aW as isFinite, as as isIdentity, at as isIdentity3x3, F as isInf, aX as isNaN, i as isNan, Q as isPowerOfTwo, t as jacobi, p as jacobiN, I as lab2rgb, aI as lab2xyz, al as linearSolve3x3, aB as luFactorLinearSystem, aC as luSolveLinearSystem, aw as matrix3x3ToQuaternion, X as max, W as min, am as multiply3x3_mat3, O as multiply3x3_vect3, m as multiplyAccumulate, a7 as multiplyAccumulate2D, an as multiplyMatrix, ax as multiplyQuaternion, w as multiplyScalar, a6 as multiplyScalar2D, M as nearestPowerOfTwo, aV as negInf, a2 as nextCombination, n as norm, af as norm2D, l as normalize, L as normalize2D, ay as orthogonalize3x3, a8 as outer, ae as outer2D, q as perpendiculars, aS as pointIsWithinBounds, a9 as projectVector, ab as projectVector2D, au as quaternionToMatrix3x3, r as radiansFromDegrees, x as random, a3 as randomSeed, G as rgb2hsv, H as rgb2lab, aL as rgb2xyz, K as round, av as roundNumber, b as roundVector, z as rowsToMat3, ag as rowsToMat4, S as signedAngleBetweenVectors, aA as singularValueDecomposition3x3, aT as solve3PointCircle, aF as solveHomogeneousLeastSquares, aG as solveLeastSquares, g as solveLinearSystem, s as subtract, ao as transpose3x3, u as uninitializeBounds, aJ as xyz2lab, aK as xyz2rgb } from './Math/index.js';
6
+ export { aj as LUFactor3x3, ak as LUSolve3x3, U as Pi, k as add, R as angleBetweenVectors, P as areBoundsInitialized, B as areEquals, a as areMatricesEqual, Z as arrayMax, Y as arrayMin, D as arrayRange, a1 as beginCombination, a0 as binomial, aR as boundsIsWithinOtherBounds, V as ceil, _ as ceilLog2, aN as clampAndNormalizeValue, C as clampValue, c as clampVector, ai as columnsToMat3, ah as columnsToMat4, aM as computeBoundsFromPoints, T as createArray, F as createUninitializedBounds, j as cross, f as default, A as degreesFromRadians, o as determinant2x2, y as determinant3x3, az as diagonalize3x3, e as distance2BetweenPoints, d as dot, aa as dot2D, aE as estimateMatrixCondition, aQ as extentIsWithinOtherExtent, $ as factorial, a_ as float2CssRGBA, aZ as floatRGB2HexCode, aY as floatToHex2, K as floor, a5 as gaussian, ac as gaussianAmplitude, ad as gaussianWeight, aP as getAdjustedScalarRange, E as getMajorAxisIndex, aO as getScalarTypeFittingRange, a4 as getSeed, aH as hex2float, h as hsv2rgb, ar as identity, aq as identity3x3, aU as inf, ap as invert3x3, aD as invertMatrix, aW as isFinite, as as isIdentity, at as isIdentity3x3, G as isInf, aX as isNaN, i as isNan, Q as isPowerOfTwo, t as jacobi, p as jacobiN, J as lab2rgb, aI as lab2xyz, al as linearSolve3x3, aB as luFactorLinearSystem, aC as luSolveLinearSystem, aw as matrix3x3ToQuaternion, X as max, W as min, am as multiply3x3_mat3, O as multiply3x3_vect3, m as multiplyAccumulate, a7 as multiplyAccumulate2D, an as multiplyMatrix, ax as multiplyQuaternion, w as multiplyScalar, a6 as multiplyScalar2D, N as nearestPowerOfTwo, aV as negInf, a2 as nextCombination, n as norm, af as norm2D, l as normalize, M as normalize2D, ay as orthogonalize3x3, a8 as outer, ae as outer2D, q as perpendiculars, aS as pointIsWithinBounds, a9 as projectVector, ab as projectVector2D, au as quaternionToMatrix3x3, r as radiansFromDegrees, x as random, a3 as randomSeed, H as rgb2hsv, I as rgb2lab, aL as rgb2xyz, L as round, av as roundNumber, b as roundVector, z as rowsToMat3, ag as rowsToMat4, S as signedAngleBetweenVectors, aA as singularValueDecomposition3x3, aT as solve3PointCircle, aF as solveHomogeneousLeastSquares, aG as solveLeastSquares, g as solveLinearSystem, s as subtract, ao as transpose3x3, u as uninitializeBounds, aJ as xyz2lab, aK as xyz2rgb } from './Math/index.js';
@@ -1,13 +1,19 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
2
  import macro from '../../macros.js';
2
3
  import vtkCubeSource from '../Sources/CubeSource.js';
3
4
 
5
+ 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; }
6
+
7
+ 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; }
4
8
  var vtkErrorMacro = macro.vtkErrorMacro; // ----------------------------------------------------------------------------
5
9
  // vtkImageDataOutlineFilter methods
6
10
  // ----------------------------------------------------------------------------
7
11
 
8
12
  function vtkImageDataOutlineFilter(publicAPI, model) {
9
13
  // Set our className
10
- model.classHierarchy.push('vtkImageDataOutlineFilter');
14
+ model.classHierarchy.push('vtkImageDataOutlineFilter'); // Capture "parentClass" api for internal use
15
+
16
+ var superClass = _objectSpread({}, publicAPI);
11
17
 
12
18
  publicAPI.requestData = function (inData, outData) {
13
19
  // implement requestData
@@ -34,21 +40,15 @@ function vtkImageDataOutlineFilter(publicAPI, model) {
34
40
  model._cubeSource.setMatrix(input.getIndexToWorld());
35
41
 
36
42
  outData[0] = model._cubeSource.getOutputData();
37
- }; // Forward calls for [set/get]Generate[Faces/Lines] functions to cubeSource:
38
-
39
-
40
- publicAPI.setGenerateFaces = function (generateFaces) {
41
- if (model._cubeSource.setGenerateFaces(generateFaces)) {
42
- publicAPI.modified();
43
- }
44
43
  };
45
44
 
46
- publicAPI.setGenerateLines = function (generateLines) {
47
- if (model._cubeSource.setGenerateLines(generateLines)) {
48
- publicAPI.modified();
49
- }
50
- };
45
+ publicAPI.getMTime = function () {
46
+ return Math.max(superClass.getMTime(), model._cubeSource.getMTime());
47
+ }; // Forward calls for [set/get]Generate[Faces/Lines] functions to cubeSource:
48
+
51
49
 
50
+ publicAPI.setGenerateFaces = model._cubeSource.setGenerateFaces;
51
+ publicAPI.setGenerateLines = model._cubeSource.setGenerateLines;
52
52
  publicAPI.getGenerateFaces = model._cubeSource.getGenerateFaces;
53
53
  publicAPI.getGenerateLines = model._cubeSource.getGenerateLines;
54
54
  } // ----------------------------------------------------------------------------
@@ -2,7 +2,6 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
2
  import macro from '../../macros.js';
3
3
  import vtkCellArray from '../../Common/Core/CellArray.js';
4
4
  import vtkDataArray from '../../Common/Core/DataArray.js';
5
- import { IDENTITY } from '../../Common/Core/Math/Constants.js';
6
5
  import vtkPolyData from '../../Common/DataModel/PolyData.js';
7
6
  import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
8
7
 
@@ -17,8 +16,6 @@ function vtkCubeSource(publicAPI, model) {
17
16
  model.classHierarchy.push('vtkCubeSource');
18
17
 
19
18
  function requestData(inData, outData) {
20
- var _vtkMatrixBuilder$bui;
21
-
22
19
  if (model.deleted) {
23
20
  return;
24
21
  }
@@ -177,15 +174,25 @@ function vtkCubeSource(publicAPI, model) {
177
174
  } // Apply rotation to the points coordinates and normals
178
175
 
179
176
 
180
- vtkMatrixBuilder.buildFromDegree().rotateX(model.rotations[0]).rotateY(model.rotations[1]).rotateZ(model.rotations[2]).apply(points).apply(normals); // Apply transformation to the points coordinates
177
+ if (model.rotations) {
178
+ vtkMatrixBuilder.buildFromDegree().rotateX(model.rotations[0]).rotateY(model.rotations[1]).rotateZ(model.rotations[2]).apply(points).apply(normals);
179
+ } // Apply transformation to the points coordinates
180
+
181
+
182
+ if (model.center) {
183
+ var _vtkMatrixBuilder$bui;
184
+
185
+ (_vtkMatrixBuilder$bui = vtkMatrixBuilder.buildFromRadian()).translate.apply(_vtkMatrixBuilder$bui, _toConsumableArray(model.center)).apply(points);
186
+ } // Apply optional additionally specified matrix transformation
181
187
 
182
- (_vtkMatrixBuilder$bui = vtkMatrixBuilder.buildFromRadian()).translate.apply(_vtkMatrixBuilder$bui, _toConsumableArray(model.center)).apply(points); // Apply optional additionally specified matrix transformation
183
188
 
189
+ if (model.matrix) {
190
+ vtkMatrixBuilder.buildFromRadian().setMatrix(model.matrix).apply(points); // prettier-ignore
184
191
 
185
- vtkMatrixBuilder.buildFromRadian().setMatrix(model.matrix).apply(points); // prettier-ignore
192
+ var rotMatrix = [model.matrix[0], model.matrix[1], model.matrix[2], 0, model.matrix[4], model.matrix[5], model.matrix[6], 0, model.matrix[8], model.matrix[9], model.matrix[10], 0, 0, 0, 0, 1];
193
+ vtkMatrixBuilder.buildFromRadian().setMatrix(rotMatrix).apply(normals);
194
+ } // Lastly, generate the necessary cell arrays.
186
195
 
187
- var rotMatrix = [model.matrix[0], model.matrix[1], model.matrix[2], 0, model.matrix[4], model.matrix[5], model.matrix[6], 0, model.matrix[8], model.matrix[9], model.matrix[10], 0, 0, 0, 0, 1];
188
- vtkMatrixBuilder.buildFromRadian().setMatrix(rotMatrix).apply(normals); // Lastly, generate the necessary cell arrays.
189
196
 
190
197
  if (model.generateFaces) {
191
198
  polyData.getPolys().deepCopy(model._polys);
@@ -236,9 +243,6 @@ var DEFAULT_VALUES = {
236
243
  xLength: 1.0,
237
244
  yLength: 1.0,
238
245
  zLength: 1.0,
239
- center: [0.0, 0.0, 0.0],
240
- rotations: [0.0, 0.0, 0.0],
241
- matrix: _toConsumableArray(IDENTITY),
242
246
  pointType: 'Float64Array',
243
247
  generate3DTextureCoordinates: false,
244
248
  generateFaces: true,
@@ -1,6 +1,6 @@
1
1
  import vtkAbstractMapper3D, { IAbstractMapper3DInitialValues } from './AbstractMapper3D';
2
2
  import vtkImageData from './../../Common/DataModel/ImageData';
3
- import { Nullable } from './../../types';
3
+ import { Bounds, Extent, Nullable, RGBAColor } from './../../types';
4
4
 
5
5
 
6
6
  export interface IAbstractImageMapperInitialValues extends IAbstractMapper3DInitialValues {
@@ -32,6 +32,45 @@ export interface vtkAbstractImageMapper extends vtkAbstractMapper3D {
32
32
  */
33
33
  setSlice(slice: number): boolean;
34
34
 
35
+ /**
36
+ * Get bounds for a specified slice.
37
+ * To be implemented by derived classes.
38
+ * @param {Number} slice The slice index. If undefined, the current slice is considered.
39
+ * @param {Number} thickness The slice thickness. If undefined, 0 is considered.
40
+ */
41
+ getBoundsForSlice(slice?: number, thickness?: number): Bounds;
42
+
43
+ /**
44
+ * Return the currently set background color.
45
+ */
46
+ getBackgroundColor(): RGBAColor;
47
+
48
+ /**
49
+ * Return the currently set background color.
50
+ */
51
+ getBackgroundColorByReference(): RGBAColor;
52
+
53
+ /**
54
+ * @param r red component of background color
55
+ * @param g green component of background color
56
+ * @param b blue component of background color
57
+ * @param a opacity component of background color
58
+ */
59
+ setBackgroundColor(r: number, g: number, b: number, a: number): boolean;
60
+
61
+ /**
62
+ *
63
+ * @param color specify background color as an array of 4 values.
64
+ */
65
+ setBackgroundColor(color: RGBAColor): boolean;
66
+
67
+ /**
68
+ *
69
+ * @param {RGBAColor} color specify the background color to use
70
+ * in RGBA format as an array of 4 values. Values are copied.
71
+ */
72
+ setBackgroundColorFrom(color: RGBAColor): boolean;
73
+
35
74
  /**
36
75
  *
37
76
  */
@@ -43,6 +82,16 @@ export interface vtkAbstractImageMapper extends vtkAbstractMapper3D {
43
82
  */
44
83
  setUseCustomExtents(useCustomExtents: boolean): boolean;
45
84
 
85
+ /**
86
+ *
87
+ */
88
+ getCustomDisplayExtent(): Extent;
89
+
90
+ /**
91
+ *
92
+ */
93
+ getCustomDisplayExtentByReference(): Extent;
94
+
46
95
  /**
47
96
  *
48
97
  * @param {Number} x1 The x coordinate of the first point.
@@ -54,6 +103,12 @@ export interface vtkAbstractImageMapper extends vtkAbstractMapper3D {
54
103
  */
55
104
  setCustomDisplayExtent(x1: number, x2: number, y1: number, y2: number, z1: number, z2: number): boolean;
56
105
 
106
+ /**
107
+ *
108
+ * @param extents specify extents as an array of 6 values [minx, maxx, ...]
109
+ */
110
+ setCustomDisplayExtent(customDisplayExtent: Extent): boolean;
111
+
57
112
  /**
58
113
  *
59
114
  * @param customDisplayExtent
@@ -1,5 +1,6 @@
1
1
  import macro from '../../macros.js';
2
2
  import vtkAbstractMapper3D from './AbstractMapper3D.js';
3
+ import { F as createUninitializedBounds } from '../../Common/Core/Math/index.js';
3
4
 
4
5
  // vtkAbstractImageMapper methods
5
6
  // ----------------------------------------------------------------------------
@@ -14,6 +15,11 @@ function vtkAbstractImageMapper(publicAPI, model) {
14
15
  publicAPI.getCurrentImage = function () {
15
16
  return null;
16
17
  };
18
+
19
+ publicAPI.getBoundsForSlice = function () {
20
+ macro.vtkErrorMacro('vtkAbstractImageMapper.getBoundsForSlice - NOT IMPLEMENTED');
21
+ return createUninitializedBounds();
22
+ };
17
23
  } // ----------------------------------------------------------------------------
18
24
  // Object factory
19
25
  // ----------------------------------------------------------------------------
@@ -3,6 +3,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
3
  import macro from '../../macros.js';
4
4
  import vtkAbstractMapper from './AbstractMapper.js';
5
5
  import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
6
+ import { F as createUninitializedBounds } from '../../Common/Core/Math/index.js';
6
7
 
7
8
  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; }
8
9
 
@@ -13,6 +14,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
13
14
  function vtkAbstractMapper3D(publicAPI, model) {
14
15
  publicAPI.getBounds = function () {
15
16
  macro.vtkErrorMacro("vtkAbstractMapper3D.getBounds - NOT IMPLEMENTED");
17
+ return createUninitializedBounds();
16
18
  };
17
19
 
18
20
  publicAPI.getCenter = function () {
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import macro from '../../macros.js';
3
- import { h as hsv2rgb, i as isNan, F as isInf, G as rgb2hsv, H as rgb2lab, I as lab2rgb, J as floor } from '../../Common/Core/Math/index.js';
3
+ import { h as hsv2rgb, i as isNan, G as isInf, H as rgb2hsv, I as rgb2lab, J as lab2rgb, K as floor } from '../../Common/Core/Math/index.js';
4
4
  import vtkScalarsToColors from '../../Common/Core/ScalarsToColors.js';
5
5
  import Constants from './ColorTransferFunction/Constants.js';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import macro from '../../macros.js';
3
3
  import Constants from './Coordinate/Constants.js';
4
- import { K as round, J as floor } from '../../Common/Core/Math/index.js';
4
+ import { L as round, K as floor } from '../../Common/Core/Math/index.js';
5
5
 
6
6
  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; }
7
7
 
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
3
  import { vec3, mat4 } from 'gl-matrix';
4
4
  import * as d3 from 'd3-scale';
5
- import { L as normalize2D, M as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
5
+ import { M as normalize2D, N as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
6
6
  import macro from '../../macros.js';
7
7
  import vtkActor from './Actor.js';
8
8
  import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
@@ -4,7 +4,7 @@ import { mat4, vec3, mat3 } from 'gl-matrix';
4
4
  import Constants from './Glyph3DMapper/Constants.js';
5
5
  import macro from '../../macros.js';
6
6
  import vtkMapper from './Mapper.js';
7
- import { N as createUninitializedBounds, n as norm } from '../../Common/Core/Math/index.js';
7
+ import { F as createUninitializedBounds, n as norm } from '../../Common/Core/Math/index.js';
8
8
  import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
9
9
 
10
10
  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; }
@@ -52,9 +52,9 @@ export interface vtkImageArrayMapper extends vtkAbstractImageMapper {
52
52
  * @param {Number} [slice] The slice index. If undefined, the current slice is considered.
53
53
  * @param {Number} [halfThickness] Half the slice thickness in index space (unit voxel
54
54
  * spacing). If undefined, 0 is considered.
55
- * @return {Number[]} The bounds for a given slice.
55
+ * @return {Bounds} The bounds for a given slice.
56
56
  */
57
- getBoundsForSlice(slice?: number, halfThickness?: number): number[];
57
+ getBoundsForSlice(slice?: number, halfThickness?: number): Bounds;
58
58
 
59
59
  /**
60
60
  * Get the closest IJK axis
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import macro from '../../macros.js';
3
3
  import vtkAbstractImageMapper from './AbstractImageMapper.js';
4
4
  import vtkImageMapper from './ImageMapper.js';
5
- import { N as createUninitializedBounds } from '../../Common/Core/Math/index.js';
5
+ import { F as createUninitializedBounds } from '../../Common/Core/Math/index.js';
6
6
  import { intersectWithLineForPointPicking, intersectWithLineForCellPicking } from './AbstractImageMapper/helper.js';
7
7
  import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js';
8
8
 
@@ -46,9 +46,9 @@ export interface vtkImageMapper extends vtkAbstractImageMapper {
46
46
  * @param {Number} [slice] The slice index. If undefined, the current slice is considered.
47
47
  * @param {Number} [halfThickness] Half the slice thickness in index space (unit voxel
48
48
  * spacing). If undefined, 0 is considered.
49
- * @return {Number[]} The bounds for a given slice.
49
+ * @return {Bounds} The bounds for a given slice.
50
50
  */
51
- getBoundsForSlice(slice?: number, halfThickness?: number): number[];
51
+ getBoundsForSlice(slice?: number, halfThickness?: number): Bounds;
52
52
 
53
53
  /**
54
54
  *
@@ -3,7 +3,7 @@ import Constants from './ImageMapper/Constants.js';
3
3
  import macro from '../../macros.js';
4
4
  import vtkAbstractImageMapper from './AbstractImageMapper.js';
5
5
  import { intersectWithLineForPointPicking, intersectWithLineForCellPicking } from './AbstractImageMapper/helper.js';
6
- import { C as clampValue, O as multiply3x3_vect3, N as createUninitializedBounds } from '../../Common/Core/Math/index.js';
6
+ import { C as clampValue, O as multiply3x3_vect3, F as createUninitializedBounds } from '../../Common/Core/Math/index.js';
7
7
  import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js';
8
8
 
9
9
  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; }
@@ -1,10 +1,10 @@
1
1
  import { Bounds } from './../../types';
2
2
  import vtkImageProperty, { IImagePropertyInitialValues } from './ImageProperty';
3
- import vtkImageMapper from './ImageMapper';
3
+ import vtkAbstractImageMapper from './AbstractImageMapper';
4
4
  import vtkProp3D, { IProp3DInitialValues } from './Prop3D';
5
5
 
6
6
  export interface IImageSliceInitialValues extends IProp3DInitialValues{
7
- mapper?: vtkImageMapper;
7
+ mapper?: vtkAbstractImageMapper;
8
8
  property?: vtkImageProperty;
9
9
  bounds?: Bounds;
10
10
  }
@@ -55,7 +55,7 @@ export interface vtkImageSlice extends vtkProp3D {
55
55
  /**
56
56
  *
57
57
  */
58
- getMapper(): vtkImageMapper;
58
+ getMapper(): vtkAbstractImageMapper;
59
59
 
60
60
  /**
61
61
  * Get the minimum X bound
@@ -126,9 +126,9 @@ export interface vtkImageSlice extends vtkProp3D {
126
126
 
127
127
  /**
128
128
  *
129
- * @param {vtkImageMapper} mapper The vtkImageMapper instance.
129
+ * @param {vtkAbstractImageMapper} mapper An instance that derives from vtkAbstractImageMapper.
130
130
  */
131
- setMapper(mapper: vtkImageMapper): boolean;
131
+ setMapper(mapper: vtkAbstractImageMapper): boolean;
132
132
 
133
133
  /**
134
134
  *
@@ -4,7 +4,7 @@ import vtkAbstractMapper3D from './AbstractMapper3D.js';
4
4
  import vtkDataArray from '../../Common/Core/DataArray.js';
5
5
  import vtkImageData from '../../Common/DataModel/ImageData.js';
6
6
  import vtkLookupTable from '../../Common/Core/LookupTable.js';
7
- import { N as createUninitializedBounds, i as isNan } from '../../Common/Core/Math/index.js';
7
+ import { F as createUninitializedBounds, i as isNan } from '../../Common/Core/Math/index.js';
8
8
  import vtkScalarsToColors from '../../Common/Core/ScalarsToColors/Constants.js';
9
9
  import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js';
10
10
  import Constants from './Mapper/Constants.js';
@@ -2,7 +2,7 @@ import { mat4, vec3 } from 'gl-matrix';
2
2
  import { newInstance as newInstance$1, get, setGet, getArray, setGetArray, moveToProtected, vtkDebugMacro as vtkDebugMacro$1, vtkErrorMacro as vtkErrorMacro$1, vtkWarningMacro as vtkWarningMacro$1 } from '../../macros.js';
3
3
  import vtkCamera from './Camera.js';
4
4
  import vtkLight from './Light.js';
5
- import { P as areBoundsInitialized, u as uninitializeBounds, r as radiansFromDegrees, d as dot, N as createUninitializedBounds } from '../../Common/Core/Math/index.js';
5
+ import { P as areBoundsInitialized, u as uninitializeBounds, r as radiansFromDegrees, d as dot, F as createUninitializedBounds } from '../../Common/Core/Math/index.js';
6
6
  import vtkViewport from './Viewport.js';
7
7
  import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
8
8
 
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
3
  import * as d3 from 'd3-scale';
4
- import { M as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
4
+ import { N as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
5
5
  import macro from '../../macros.js';
6
6
  import vtkActor from './Actor.js';
7
7
  import vtkDataArray from '../../Common/Core/DataArray.js';
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import macro from '../../macros.js';
3
- import { N as createUninitializedBounds, C as clampValue, J as floor } from '../../Common/Core/Math/index.js';
3
+ import { F as createUninitializedBounds, C as clampValue, K as floor } from '../../Common/Core/Math/index.js';
4
4
  import Constants from './VolumeMapper/Constants.js';
5
5
  import vtkAbstractMapper from './AbstractMapper.js';
6
6
  import vtkPiecewiseFunction from '../../Common/DataModel/PiecewiseFunction.js';
@@ -8,7 +8,7 @@ import { v as vtkPolyData2DVS } from './glsl/vtkPolyData2DVS.glsl.js';
8
8
  import vtkReplacementShaderMapper from './ReplacementShaderMapper.js';
9
9
  import vtkShaderProgram from './ShaderProgram.js';
10
10
  import vtkViewNode from '../SceneGraph/ViewNode.js';
11
- import { K as round } from '../../Common/Core/Math/index.js';
11
+ import { L as round } from '../../Common/Core/Math/index.js';
12
12
  import { DisplayLocation } from '../Core/Property2D/Constants.js';
13
13
  import { registerOverride } from './ViewNodeFactory.js';
14
14
 
@@ -4,7 +4,7 @@ import Constants from './Texture/Constants.js';
4
4
  import HalfFloat from '../../Common/Core/HalfFloat.js';
5
5
  import { newInstance as newInstance$1, obj, set, setGet, get, moveToProtected, newTypedArray, vtkDebugMacro as vtkDebugMacro$1, vtkErrorMacro as vtkErrorMacro$1, vtkWarningMacro as vtkWarningMacro$1 } from '../../macros.js';
6
6
  import vtkDataArray from '../../Common/Core/DataArray.js';
7
- import { Q as isPowerOfTwo, M as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
7
+ import { Q as isPowerOfTwo, N as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
8
8
  import vtkViewNode from '../SceneGraph/ViewNode.js';
9
9
  import { registerOverride } from './ViewNodeFactory.js';
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "28.8.0",
3
+ "version": "28.8.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",