@kitware/vtk.js 26.2.1 → 26.3.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.
- package/Common/Core/Math/index.js +5 -1
- package/Common/Core/Math.d.ts +1 -0
- package/Common/Core/Math.js +1 -1
- package/Common/DataModel/BoundingBox.js +28 -4
- package/Common/DataModel/ImageData.js +4 -30
- package/Common/DataModel/IncrementalOctreeNode.js +1 -1
- package/Common/DataModel/IncrementalOctreePointLocator.js +1 -1
- package/Common/DataModel/Line.js +1 -1
- package/Common/DataModel/Plane.js +1 -1
- package/Common/DataModel/Polygon.js +1 -1
- package/Common/DataModel/Quad.js +1 -1
- package/Common/DataModel/Triangle.js +1 -1
- package/Common/Transform/LandmarkTransform.js +1 -1
- package/Common/Transform/Transform.js +1 -1
- package/Filters/Core/PolyDataNormals.js +1 -1
- package/Filters/General/ClipClosedSurface.js +1 -1
- package/Filters/General/ContourTriangulator/helper.js +1 -1
- package/Filters/General/ImageMarchingCubes.js +1 -1
- package/Filters/General/MoleculeToRepresentation.js +1 -1
- package/Filters/General/OBBTree.js +1 -1
- package/Filters/General/TubeFilter.js +1 -1
- package/Filters/General/WindowedSincPolyDataFilter.js +1 -1
- package/Filters/Sources/CircleSource.js +1 -1
- package/Filters/Sources/PlaneSource.js +1 -1
- package/Filters/Sources/PointSource.js +1 -1
- package/Filters/Texture/TextureMapToPlane.js +1 -1
- package/Filters/Texture/TextureMapToSphere.js +1 -1
- package/Imaging/Core/ImageReslice.js +1 -1
- package/Interaction/Manipulators/KeyboardCameraManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -1
- package/Interaction/Style/InteractorStyleMPRSlice.js +1 -1
- package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -1
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +1 -1
- package/Proxy/Core/View2DProxy.js +117 -3
- package/Proxy/Core/ViewProxy.js +64 -20
- package/Rendering/Core/Camera.js +1 -1
- package/Rendering/Core/CellPicker.js +1 -1
- package/Rendering/Core/ColorTransferFunction.js +1 -1
- package/Rendering/Core/Coordinate.js +1 -1
- package/Rendering/Core/CubeAxesActor.js +1 -1
- package/Rendering/Core/Glyph3DMapper.js +1 -1
- package/Rendering/Core/ImageMapper.js +1 -1
- package/Rendering/Core/Light.js +1 -1
- package/Rendering/Core/Mapper.js +1 -1
- package/Rendering/Core/Picker.js +1 -1
- package/Rendering/Core/Prop3D.js +1 -1
- package/Rendering/Core/RenderWindowInteractor.js +1 -1
- package/Rendering/Core/Renderer.js +1 -1
- package/Rendering/Core/ScalarBarActor.js +1 -1
- package/Rendering/Core/VolumeMapper.js +1 -1
- package/Rendering/OpenGL/PolyDataMapper.js +1 -1
- package/Rendering/OpenGL/PolyDataMapper2D.js +1 -1
- package/Rendering/OpenGL/Texture.js +1 -1
- package/Rendering/WebGPU/BufferManager.js +1 -1
- package/Rendering/WebGPU/VolumePass.js +1 -1
- package/Widgets/Core/StateBuilder/orientationMixin.js +1 -1
- package/Widgets/Manipulators/LineManipulator.js +1 -1
- package/Widgets/Manipulators/TrackballManipulator.js +1 -1
- package/Widgets/Representations/PolyLineRepresentation.js +1 -1
- package/Widgets/Representations/WidgetRepresentation.js +1 -1
- package/Widgets/Widgets3D/AngleWidget.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget.js +1 -1
- package/Widgets/Widgets3D/LineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/LineWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/LineWidget.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -1
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +4 -4
- package/Widgets/Widgets3D/SphereWidget.js +1 -1
- package/package.json +1 -1
|
@@ -1953,6 +1953,10 @@ function uninitializeBounds(bounds) {
|
|
|
1953
1953
|
function areBoundsInitialized(bounds) {
|
|
1954
1954
|
return !(bounds[1] - bounds[0] < 0.0);
|
|
1955
1955
|
}
|
|
1956
|
+
/**
|
|
1957
|
+
* @deprecated please use vtkBoundingBox.addPoints(vtkBoundingBox.reset([]), points)
|
|
1958
|
+
*/
|
|
1959
|
+
|
|
1956
1960
|
function computeBoundsFromPoints(point1, point2, bounds) {
|
|
1957
1961
|
bounds[0] = Math.min(point1[0], point2[0]);
|
|
1958
1962
|
bounds[1] = Math.max(point1[0], point2[0]);
|
|
@@ -2366,4 +2370,4 @@ var vtkMath$1 = /*#__PURE__*/Object.freeze({
|
|
|
2366
2370
|
'default': vtkMath
|
|
2367
2371
|
});
|
|
2368
2372
|
|
|
2369
|
-
export {
|
|
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 };
|
package/Common/Core/Math.d.ts
CHANGED
|
@@ -776,6 +776,7 @@ export function areBoundsInitialized(bounds: Bounds): boolean;
|
|
|
776
776
|
* @param {Vector3} point1 The coordinate of the first point.
|
|
777
777
|
* @param {Vector3} point2 The coordinate of the second point.
|
|
778
778
|
* @param {Bounds} bounds Output array that hold bounds, optionally empty.
|
|
779
|
+
* @deprecated please use vtkBoundingBox.addPoints(vtkBoundingBox.reset([]), points)
|
|
779
780
|
*/
|
|
780
781
|
export function computeBoundsFromPoints(point1: Vector3, point2: Vector3, bounds: Bounds): Bounds;
|
|
781
782
|
|
package/Common/Core/Math.js
CHANGED
|
@@ -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 {
|
|
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';
|
|
@@ -4,6 +4,7 @@ import _createClass from '@babel/runtime/helpers/createClass';
|
|
|
4
4
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
6
|
import { d as dot } from '../Core/Math/index.js';
|
|
7
|
+
import { vec3 } from 'gl-matrix';
|
|
7
8
|
import vtkPlane from './Plane.js';
|
|
8
9
|
|
|
9
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; }
|
|
@@ -63,11 +64,11 @@ function _addPoints(bounds, points) {
|
|
|
63
64
|
|
|
64
65
|
if (Array.isArray(points[0])) {
|
|
65
66
|
for (var i = 0; i < points.length; ++i) {
|
|
66
|
-
_addPoint(
|
|
67
|
+
_addPoint.apply(void 0, [bounds].concat(_toConsumableArray(points[i])));
|
|
67
68
|
}
|
|
68
69
|
} else {
|
|
69
70
|
for (var _i = 0; _i < points.length; _i += 3) {
|
|
70
|
-
_addPoint(
|
|
71
|
+
_addPoint.apply(void 0, [bounds].concat(_toConsumableArray(points.slice(_i, _i + 3))));
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|
|
@@ -293,6 +294,22 @@ function _computeCornerPoints(bounds, point1, point2) {
|
|
|
293
294
|
return point1;
|
|
294
295
|
}
|
|
295
296
|
|
|
297
|
+
function _transformBounds(bounds, transform) {
|
|
298
|
+
var out = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
299
|
+
|
|
300
|
+
if (out.length < 6) {
|
|
301
|
+
_reset(out);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
var corners = _getCorners(bounds, []);
|
|
305
|
+
|
|
306
|
+
for (var i = 0; i < corners.length; ++i) {
|
|
307
|
+
vec3.transformMat4(corners[i], corners[i], transform);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
return _addPoints(out, corners);
|
|
311
|
+
}
|
|
312
|
+
|
|
296
313
|
function _computeScale(bounds) {
|
|
297
314
|
var scale3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
298
315
|
scale3[0] = 0.5 * (bounds[1] - bounds[0]);
|
|
@@ -639,7 +656,7 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
639
656
|
xyz[_key] = arguments[_key];
|
|
640
657
|
}
|
|
641
658
|
|
|
642
|
-
return _addPoint(this.bounds
|
|
659
|
+
return _addPoint.apply(void 0, [this.bounds].concat(xyz));
|
|
643
660
|
}
|
|
644
661
|
}, {
|
|
645
662
|
key: "addPoints",
|
|
@@ -736,6 +753,12 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
736
753
|
value: function computeLocalBounds(u, v, w) {
|
|
737
754
|
return _computeLocalBounds(this.bounds, u, v, w);
|
|
738
755
|
}
|
|
756
|
+
}, {
|
|
757
|
+
key: "transformBounds",
|
|
758
|
+
value: function transformBounds(transform) {
|
|
759
|
+
var out = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
760
|
+
return _transformBounds(this.bounds, transform, out);
|
|
761
|
+
}
|
|
739
762
|
}, {
|
|
740
763
|
key: "computeScale3",
|
|
741
764
|
value: function computeScale3(scale3) {
|
|
@@ -815,6 +838,7 @@ var STATIC = {
|
|
|
815
838
|
getCorners: _getCorners,
|
|
816
839
|
computeCornerPoints: _computeCornerPoints,
|
|
817
840
|
computeLocalBounds: _computeLocalBounds,
|
|
841
|
+
transformBounds: _transformBounds,
|
|
818
842
|
computeScale3: _computeScale,
|
|
819
843
|
cutWithPlane: _cutWithPlane,
|
|
820
844
|
intersectBox: _intersectBox,
|
|
@@ -829,4 +853,4 @@ var vtkBoundingBox = _objectSpread({
|
|
|
829
853
|
newInstance: newInstance
|
|
830
854
|
}, STATIC);
|
|
831
855
|
|
|
832
|
-
export { STATIC, _addBounds as addBounds, _addPoint as addPoint, _addPoints as addPoints, _computeCornerPoints as computeCornerPoints, _computeLocalBounds as computeLocalBounds, _computeScale as computeScale3, contains, _containsPoint as containsPoint, _cutWithPlane as cutWithPlane, vtkBoundingBox as default, _equals as equals, _getCenter as getCenter, _getCorners as getCorners, _getDiagonalLength as getDiagonalLength, _getLength as getLength, _getLengths as getLengths, _getMaxLength as getMaxLength, _getMaxPoint as getMaxPoint, _getMinPoint as getMinPoint, _getXRange as getXRange, _getYRange as getYRange, _getZRange as getZRange, _inflate as inflate, _intersect as intersect, _intersectBox as intersectBox, _intersectPlane as intersectPlane, _intersects as intersects, _isValid as isValid, _reset as reset, _scale as scale, scaleAboutCenter, _setBounds as setBounds, _setMaxPoint as setMaxPoint, _setMinPoint as setMinPoint };
|
|
856
|
+
export { STATIC, _addBounds as addBounds, _addPoint as addPoint, _addPoints as addPoints, _computeCornerPoints as computeCornerPoints, _computeLocalBounds as computeLocalBounds, _computeScale as computeScale3, contains, _containsPoint as containsPoint, _cutWithPlane as cutWithPlane, vtkBoundingBox as default, _equals as equals, _getCenter as getCenter, _getCorners as getCorners, _getDiagonalLength as getDiagonalLength, _getLength as getLength, _getLengths as getLengths, _getMaxLength as getMaxLength, _getMaxPoint as getMaxPoint, _getMinPoint as getMinPoint, _getXRange as getXRange, _getYRange as getYRange, _getZRange as getZRange, _inflate as inflate, _intersect as intersect, _intersectBox as intersectBox, _intersectPlane as intersectPlane, _intersects as intersects, _isValid as isValid, _reset as reset, _scale as scale, scaleAboutCenter, _setBounds as setBounds, _setMaxPoint as setMaxPoint, _setMinPoint as setMinPoint, _transformBounds as transformBounds };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
|
-
import {
|
|
4
|
+
import { b as roundVector, c as clampVector } from '../Core/Math/index.js';
|
|
5
5
|
import vtkBoundingBox from './BoundingBox.js';
|
|
6
6
|
import vtkDataSet from './DataSet.js';
|
|
7
7
|
import vtkStructuredData from './StructuredData.js';
|
|
@@ -189,19 +189,7 @@ function vtkImageData(publicAPI, model) {
|
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
publicAPI.extentToBounds = function (ex) {
|
|
192
|
-
|
|
193
|
-
var corners = [[ex[0], ex[2], ex[4]], [ex[1], ex[2], ex[4]], [ex[0], ex[3], ex[4]], [ex[1], ex[3], ex[4]], [ex[0], ex[2], ex[5]], [ex[1], ex[2], ex[5]], [ex[0], ex[3], ex[5]], [ex[1], ex[3], ex[5]]];
|
|
194
|
-
|
|
195
|
-
var bounds = _toConsumableArray(vtkBoundingBox.INIT_BOUNDS);
|
|
196
|
-
|
|
197
|
-
var vout = [];
|
|
198
|
-
|
|
199
|
-
for (var i = 0; i < 8; ++i) {
|
|
200
|
-
publicAPI.indexToWorld(corners[i], vout);
|
|
201
|
-
vtkBoundingBox.addPoint.apply(vtkBoundingBox, [bounds].concat(vout));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return bounds;
|
|
192
|
+
return vtkBoundingBox.transformBounds(ex, model.indexToWorld);
|
|
205
193
|
};
|
|
206
194
|
|
|
207
195
|
publicAPI.getSpatialExtent = function () {
|
|
@@ -242,26 +230,12 @@ function vtkImageData(publicAPI, model) {
|
|
|
242
230
|
|
|
243
231
|
publicAPI.indexToWorldBounds = function (bin) {
|
|
244
232
|
var bout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
245
|
-
|
|
246
|
-
var in2 = [0, 0, 0];
|
|
247
|
-
vtkBoundingBox.computeCornerPoints(bin, in1, in2);
|
|
248
|
-
var out1 = [0, 0, 0];
|
|
249
|
-
var out2 = [0, 0, 0];
|
|
250
|
-
vec3.transformMat4(out1, in1, model.indexToWorld);
|
|
251
|
-
vec3.transformMat4(out2, in2, model.indexToWorld);
|
|
252
|
-
return computeBoundsFromPoints(out1, out2, bout);
|
|
233
|
+
return vtkBoundingBox.transformBounds(bin, model.indexToWorld, bout);
|
|
253
234
|
};
|
|
254
235
|
|
|
255
236
|
publicAPI.worldToIndexBounds = function (bin) {
|
|
256
237
|
var bout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
257
|
-
|
|
258
|
-
var in2 = [0, 0, 0];
|
|
259
|
-
vtkBoundingBox.computeCornerPoints(bin, in1, in2);
|
|
260
|
-
var out1 = [0, 0, 0];
|
|
261
|
-
var out2 = [0, 0, 0];
|
|
262
|
-
vec3.transformMat4(out1, in1, model.worldToIndex);
|
|
263
|
-
vec3.transformMat4(out2, in2, model.worldToIndex);
|
|
264
|
-
return computeBoundsFromPoints(out1, out2, bout);
|
|
238
|
+
return vtkBoundingBox.transformBounds(bin, model.worldToIndex, bout);
|
|
265
239
|
}; // Make sure the transform is correct
|
|
266
240
|
|
|
267
241
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
|
-
import {
|
|
2
|
+
import { e as distance2BetweenPoints } from '../Core/Math/index.js';
|
|
3
3
|
|
|
4
4
|
var vtkErrorMacro = macro.vtkErrorMacro;
|
|
5
5
|
var OCTREENODE_INSERTPOINT = [function (points, pointIdx, coords) {
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import macro from '../../macros.js';
|
|
5
|
-
import {
|
|
5
|
+
import { f as vtkMath } from '../Core/Math/index.js';
|
|
6
6
|
import vtkBoundingBox from './BoundingBox.js';
|
|
7
7
|
import vtkIncrementalOctreeNode from './IncrementalOctreeNode.js';
|
|
8
8
|
import vtkAbstractPointLocator from './AbstractPointLocator.js';
|
package/Common/DataModel/Line.js
CHANGED
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import Constants from './Line/Constants.js';
|
|
4
4
|
import vtkCell from './Cell.js';
|
|
5
|
-
import { d as dot,
|
|
5
|
+
import { d as dot, e as distance2BetweenPoints, s as subtract, g as solveLinearSystem } from '../Core/Math/index.js';
|
|
6
6
|
|
|
7
7
|
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
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
-
import { s as subtract, d as dot,
|
|
2
|
+
import { s as subtract, d as dot, j as cross, k as add } from '../Core/Math/index.js';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
4
|
|
|
5
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; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
|
-
import { d as dot, s as subtract,
|
|
4
|
+
import { d as dot, s as subtract, j as cross, k as add, l as normalize, e as distance2BetweenPoints, n as norm } from '../Core/Math/index.js';
|
|
5
5
|
import vtkLine from './Line.js';
|
|
6
6
|
import vtkPlane from './Plane.js';
|
|
7
7
|
import vtkPriorityQueue from '../Core/PriorityQueue.js';
|
package/Common/DataModel/Quad.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkCell from './Cell.js';
|
|
4
|
-
import {
|
|
4
|
+
import { e as distance2BetweenPoints } from '../Core/Math/index.js';
|
|
5
5
|
import { CellType } from './CellTypes/Constants.js';
|
|
6
6
|
import vtkTriangle from './Triangle.js';
|
|
7
7
|
import vtkPoints from '../Core/Points.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkCell from './Cell.js';
|
|
4
|
-
import { d as dot,
|
|
4
|
+
import { d as dot, j as cross, l as normalize, m as multiplyAccumulate, e as distance2BetweenPoints, o as determinant2x2 } from '../Core/Math/index.js';
|
|
5
5
|
import vtkLine from './Line.js';
|
|
6
6
|
import vtkPlane from './Plane.js';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import { mat4, mat3 } from 'gl-matrix';
|
|
3
3
|
import Constants from './LandmarkTransform/Constants.js';
|
|
4
4
|
import macro from '../../macros.js';
|
|
5
|
-
import {
|
|
5
|
+
import { p as jacobiN, q as perpendiculars } from '../Core/Math/index.js';
|
|
6
6
|
|
|
7
7
|
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
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import { vec3 } from 'gl-matrix';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
|
-
import {
|
|
4
|
+
import { f as vtkMath } from '../Core/Math/index.js';
|
|
5
5
|
import { IDENTITY } from '../Core/Math/Constants.js';
|
|
6
6
|
|
|
7
7
|
// vtkTransform methods
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
4
|
-
import {
|
|
4
|
+
import { f as vtkMath } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
6
6
|
import vtkTriangle from '../../Common/DataModel/Triangle.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
|
-
import { d as dot,
|
|
4
|
+
import { d as dot, e as distance2BetweenPoints } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkCellArray from '../../Common/Core/CellArray.js';
|
|
6
6
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
7
7
|
import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import macro from '../../../macros.js';
|
|
3
3
|
import vtkPoints from '../../../Common/Core/Points.js';
|
|
4
|
-
import { s as subtract,
|
|
4
|
+
import { s as subtract, j as cross, d as dot, n as norm, e as distance2BetweenPoints, k as add, l as normalize } from '../../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkLine from '../../../Common/DataModel/Line.js';
|
|
6
6
|
import vtkPolygon from '../../../Common/DataModel/Polygon.js';
|
|
7
7
|
import vtkIncrementalOctreePointLocator from '../../../Common/DataModel/IncrementalOctreePointLocator.js';
|
|
@@ -2,7 +2,7 @@ import macro from '../../macros.js';
|
|
|
2
2
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
3
3
|
import vtkEdgeLocator from '../../Common/DataModel/EdgeLocator.js';
|
|
4
4
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
5
|
-
import {
|
|
5
|
+
import { l as normalize } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkCaseTable from './ImageMarchingCubes/caseTable.js';
|
|
7
7
|
|
|
8
8
|
var vtkErrorMacro = macro.vtkErrorMacro,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
3
3
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
4
|
-
import {
|
|
4
|
+
import { l as normalize } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import { a as atomElem } from '../../Utilities/XMLConverter/chemistry/elements.json.js';
|
|
6
6
|
|
|
7
7
|
var vtkErrorMacro = macro.vtkErrorMacro,
|
|
@@ -2,7 +2,7 @@ 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 vtkLine from '../../Common/DataModel/Line.js';
|
|
5
|
-
import { d as dot,
|
|
5
|
+
import { d as dot, j as cross, n as norm, t as jacobi, l as normalize, k as add } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
|
|
7
7
|
import vtkOBBNode from './OBBTree/OBBNode.js';
|
|
8
8
|
import vtkPoints from '../../Common/Core/Points.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkCellArray from '../../Common/Core/CellArray.js';
|
|
3
3
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
4
|
-
import {
|
|
4
|
+
import { l as normalize, j as cross, n as norm, d as dot, e as distance2BetweenPoints } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkPoints from '../../Common/Core/Points.js';
|
|
6
6
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
7
7
|
import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
3
3
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
4
|
-
import {
|
|
4
|
+
import { f as vtkMath } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import { AttributeTypes } from '../../Common/DataModel/DataSetAttributes/Constants.js';
|
|
6
6
|
import vtkPoints from '../../Common/Core/Points.js';
|
|
7
7
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
@@ -3,7 +3,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
4
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
5
5
|
import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
|
|
6
|
-
import {
|
|
6
|
+
import { w as multiplyScalar } from '../../Common/Core/Math/index.js';
|
|
7
7
|
|
|
8
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; }
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
2
2
|
import { mat4, vec3 } from 'gl-matrix';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
4
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
5
|
-
import { s as subtract,
|
|
5
|
+
import { s as subtract, l as normalize, d as dot, j as cross, r as radiansFromDegrees } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
|
|
7
7
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
3
|
-
import {
|
|
3
|
+
import { l as normalize, d as dot, j as cross, e as distance2BetweenPoints, y as determinant3x3, z as rowsToMat3 } from '../../Common/Core/Math/index.js';
|
|
4
4
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
5
5
|
|
|
6
6
|
var vtkErrorMacro = macro.vtkErrorMacro; // ----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
3
|
-
import {
|
|
3
|
+
import { e as distance2BetweenPoints } from '../../Common/Core/Math/index.js';
|
|
4
4
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
5
5
|
|
|
6
6
|
var vtkErrorMacro = macro.vtkErrorMacro; // ----------------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import { mat4, vec4 } from 'gl-matrix';
|
|
3
3
|
import macro, { vtkWarningMacro } from '../../macros.js';
|
|
4
4
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
5
|
-
import {
|
|
5
|
+
import { f as vtkMath } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
|
|
7
7
|
import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js';
|
|
8
8
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
3
3
|
import vtkCompositeKeyboardManipulator from './CompositeKeyboardManipulator.js';
|
|
4
|
-
import {
|
|
4
|
+
import { k as add, l as normalize, j as cross } from '../../Common/Core/Math/index.js';
|
|
5
5
|
|
|
6
6
|
var vtkErrorMacro = macro.vtkErrorMacro;
|
|
7
7
|
var ANIMATION_REQUESTER = 'vtkKeyboardCameraManipulator'; // ----------------------------------------------------------------------------
|
|
@@ -3,7 +3,7 @@ import { mat4, vec3 } from 'gl-matrix';
|
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
4
|
import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js';
|
|
5
5
|
import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js';
|
|
6
|
-
import { r as radiansFromDegrees,
|
|
6
|
+
import { r as radiansFromDegrees, j as cross } from '../../Common/Core/Math/index.js';
|
|
7
7
|
import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
|
|
8
8
|
|
|
9
9
|
// vtkMouseCameraAxisRotateManipulator methods
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js';
|
|
3
3
|
import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js';
|
|
4
|
-
import {
|
|
4
|
+
import { j as cross } from '../../Common/Core/Math/index.js';
|
|
5
5
|
|
|
6
6
|
// vtkMouseCameraTrackballPanManipulator methods
|
|
7
7
|
// ----------------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import { mat4, vec3 } from 'gl-matrix';
|
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js';
|
|
4
4
|
import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js';
|
|
5
|
-
import { r as radiansFromDegrees,
|
|
5
|
+
import { r as radiansFromDegrees, A as degreesFromRadians } from '../../Common/Core/Math/index.js';
|
|
6
6
|
|
|
7
7
|
// vtkMouseCameraTrackballRollManipulator methods
|
|
8
8
|
// ----------------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import { mat4, vec3 } from 'gl-matrix';
|
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js';
|
|
4
4
|
import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js';
|
|
5
|
-
import {
|
|
5
|
+
import { w as multiplyScalar, d as dot, k as add, r as radiansFromDegrees, j as cross } from '../../Common/Core/Math/index.js';
|
|
6
6
|
|
|
7
7
|
// vtkMouseCameraTrackballRotateManipulator methods
|
|
8
8
|
// ----------------------------------------------------------------------------
|
|
@@ -5,7 +5,7 @@ import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js';
|
|
|
5
5
|
import vtkInteractorStyleConstants from '../../Rendering/Core/InteractorStyle/Constants.js';
|
|
6
6
|
import vtkMouseCameraUnicamRotateManipulator from './MouseCameraUnicamRotateManipulator.js';
|
|
7
7
|
import macro from '../../macros.js';
|
|
8
|
-
import { s as subtract,
|
|
8
|
+
import { s as subtract, w as multiplyScalar, l as normalize, d as dot, r as radiansFromDegrees, j as cross } from '../../Common/Core/Math/index.js';
|
|
9
9
|
|
|
10
10
|
var States = vtkInteractorStyleConstants.States; // ----------------------------------------------------------------------------
|
|
11
11
|
// vtkMouseCameraUnicamManipulator methods
|
|
@@ -10,7 +10,7 @@ import vtkSphereSource from '../../Filters/Sources/SphereSource.js';
|
|
|
10
10
|
import { FieldAssociations } from '../../Common/DataModel/DataSet/Constants.js';
|
|
11
11
|
import { mat4, vec3 } from 'gl-matrix';
|
|
12
12
|
import macro from '../../macros.js';
|
|
13
|
-
import {
|
|
13
|
+
import { B as areEquals, l as normalize, d as dot, C as clampValue, s as subtract, j as cross, w as multiplyScalar, e as distance2BetweenPoints } from '../../Common/Core/Math/index.js';
|
|
14
14
|
|
|
15
15
|
var States = vtkInteractorStyleConstants.States; // ----------------------------------------------------------------------------
|
|
16
16
|
// vtkMouseCameraUnicamRotateManipulator methods
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
|
-
import {
|
|
3
|
+
import { l as normalize, e as distance2BetweenPoints } from '../../Common/Core/Math/index.js';
|
|
4
4
|
import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
|
|
5
5
|
import vtkInteractorStyleManipulator from './InteractorStyleManipulator.js';
|
|
6
6
|
import vtkMouseCameraTrackballRotateManipulator from '../Manipulators/MouseCameraTrackballRotateManipulator.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkInteractorStyle from '../../Rendering/Core/InteractorStyle.js';
|
|
3
3
|
import vtkInteractorStyleConstants from '../../Rendering/Core/InteractorStyle/Constants.js';
|
|
4
|
-
import {
|
|
4
|
+
import { A as degreesFromRadians } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import { Device, Input } from '../../Rendering/Core/RenderWindowInteractor/Constants.js';
|
|
6
6
|
|
|
7
7
|
var States = vtkInteractorStyleConstants.States;
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
4
4
|
import macro from '../../macros.js';
|
|
5
|
-
import {
|
|
5
|
+
import { D as arrayRange } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import WebworkerPromise from 'webworker-promise';
|
|
7
7
|
import { W as WorkerFactory } from '../../_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js';
|
|
8
8
|
|