@kitware/vtk.js 26.0.0-beta.2 → 26.0.0-beta.3
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/ClassHierarchy.js +6 -11
- package/Common/Core/Math/Constants.js +12 -0
- package/Common/Core/Math/index.js +48 -29
- package/Common/Core/Math.d.ts +34 -4
- package/Common/Core/Math.js +2 -1
- package/Common/Core/MatrixBuilder.d.ts +13 -2
- package/Common/Core/MatrixBuilder.js +14 -2
- package/Common/Core/ScalarsToColors.d.ts +1 -3
- package/Common/Core/ScalarsToColors.js +1 -1
- package/Common/DataModel/BoundingBox.js +7 -7
- package/Common/DataModel/EdgeLocator.d.ts +79 -0
- package/Common/DataModel/EdgeLocator.js +85 -0
- package/Common/DataModel/ImageData.js +2 -50
- package/Common/DataModel/IncrementalOctreeNode.d.ts +15 -0
- package/Common/DataModel/IncrementalOctreeNode.js +27 -8
- package/Common/DataModel/IncrementalOctreePointLocator.js +61 -5
- package/Common/DataModel/Polygon.js +2 -2
- package/Common/Transform/Transform.js +51 -0
- package/Common/Transform.js +3 -1
- package/Filters/General/ClipClosedSurface.js +21 -18
- package/Filters/General/ContourTriangulator/helper.js +1 -1
- package/Filters/General/ImageMarchingCubes.js +5 -22
- package/Filters/General/ImageMarchingSquares.js +6 -23
- package/Filters/General.js +6 -0
- package/Imaging/Core/ImageReslice.js +84 -36
- package/Rendering/Core/ColorTransferFunction.d.ts +20 -0
- package/Rendering/Core/ColorTransferFunction.js +76 -7
- package/Rendering/Core/Prop3D.js +6 -1
- package/Rendering/Core/VolumeProperty.js +3 -2
- package/Rendering/OpenGL/PolyDataMapper.js +7 -5
- package/Rendering/OpenGL/RenderWindow.d.ts +25 -1
- package/Rendering/OpenGL/Texture.js +22 -6
- package/Rendering/OpenGL/VolumeMapper.js +3 -1
- package/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js +1 -1
- package/Rendering/SceneGraph/RenderWindowViewNode.js +8 -2
- package/Rendering/SceneGraph/ViewNode.js +11 -0
- package/Widgets/Core/AbstractWidget.js +1 -1
- package/Widgets/Core/WidgetManager.js +25 -19
- package/Widgets/Representations/WidgetRepresentation.js +19 -7
- package/index.d.ts +1 -0
- package/macros.d.ts +5 -3
- package/macros.js +41 -8
- package/package.json +3 -1
- package/Filters/General/ClipClosedSurface/ccsEdgeLocator.js +0 -40
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
-
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
|
|
4
|
-
var CCSEdgeLocator = /*#__PURE__*/function () {
|
|
5
|
-
function CCSEdgeLocator() {
|
|
6
|
-
_classCallCheck(this, CCSEdgeLocator);
|
|
7
|
-
|
|
8
|
-
this._edgeMap = new Map();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
_createClass(CCSEdgeLocator, [{
|
|
12
|
-
key: "initialize",
|
|
13
|
-
value: function initialize() {
|
|
14
|
-
this._edgeMap.clear();
|
|
15
|
-
}
|
|
16
|
-
}, {
|
|
17
|
-
key: "insertUniqueEdge",
|
|
18
|
-
value: function insertUniqueEdge(i0, i1) {
|
|
19
|
-
// Generate key, which is unique, since we order the edges
|
|
20
|
-
var key = i1 < i0 ? "".concat(i1, "-").concat(i0) : "".concat(i0, "-").concat(i1);
|
|
21
|
-
|
|
22
|
-
var node = this._edgeMap.get(key);
|
|
23
|
-
|
|
24
|
-
if (!node) {
|
|
25
|
-
// Didn't find key, so add a new edge entry
|
|
26
|
-
node = {
|
|
27
|
-
edgeId: -1
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
this._edgeMap.set(key, node);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return node;
|
|
34
|
-
}
|
|
35
|
-
}]);
|
|
36
|
-
|
|
37
|
-
return CCSEdgeLocator;
|
|
38
|
-
}();
|
|
39
|
-
|
|
40
|
-
export { CCSEdgeLocator as default };
|