@kitware/vtk.js 34.10.0 → 34.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.
- package/Common/Core/DataArray.js +2 -1
- package/Common/Core/Points.d.ts +19 -1
- package/Common/Core/Points.js +35 -20
- package/Common/DataModel/AbstractPointLocator.d.ts +2 -2
- package/Common/DataModel/BoundingBox.d.ts +60 -7
- package/Common/DataModel/BoundingBox.js +190 -3
- package/Common/DataModel/Cell.js +4 -34
- package/Common/DataModel/DataSet.d.ts +7 -0
- package/Common/DataModel/DataSet.js +6 -0
- package/Common/DataModel/DataSetAttributes/FieldData.d.ts +6 -2
- package/Common/DataModel/DataSetAttributes.d.ts +2 -1
- package/Common/DataModel/ImageData.d.ts +7 -0
- package/Common/DataModel/ImageData.js +11 -0
- package/Common/DataModel/Locator.d.ts +97 -5
- package/Common/DataModel/MergePoints.d.ts +64 -0
- package/Common/DataModel/MergePoints.js +130 -0
- package/Common/DataModel/PointLocator.d.ts +217 -0
- package/Common/DataModel/PointLocator.js +751 -0
- package/Common/DataModel/PointSet.d.ts +6 -0
- package/Common/DataModel/PointSet.js +10 -0
- package/Common/DataModel/PolyData.d.ts +6 -0
- package/Common/DataModel/PolyData.js +7 -0
- package/Filters/Core/Cutter.js +1 -1
- package/Filters/Core/PolyDataNormals.js +1 -1
- package/Filters/Core/ThresholdPoints.js +1 -2
- package/Filters/General/AppendPolyData.js +1 -1
- package/Filters/General/Calculator.js +1 -1
- package/Filters/General/ClipClosedSurface.js +2 -2
- package/Filters/General/ClosedPolyLineToSurfaceFilter.js +1 -1
- package/Filters/General/ContourLoopExtraction.js +2 -4
- package/Filters/General/ContourTriangulator.js +1 -2
- package/Filters/General/ImageCropFilter.js +7 -10
- package/Filters/General/ImageMarchingCubes.js +1 -1
- package/Filters/General/ImageMarchingSquares.js +1 -1
- package/Filters/General/ImageOutlineFilter.js +2 -1
- package/Filters/General/ImageSliceFilter.js +2 -1
- package/Filters/General/ImageStreamline.js +1 -1
- package/Filters/General/LineFilter.js +1 -1
- package/Filters/General/MoleculeToRepresentation.js +2 -2
- package/Filters/General/OutlineFilter.js +1 -1
- package/Filters/General/ScalarToRGBA.js +2 -1
- package/Filters/General/ShrinkPolyData.js +1 -1
- package/Filters/General/TransformPolyDataFilter.js +1 -1
- package/Filters/General/TriangleFilter.js +1 -1
- package/Filters/General/TubeFilter.js +1 -2
- package/Filters/General/WarpScalar.js +1 -1
- package/Filters/General/WindowedSincPolyDataFilter.js +1 -1
- package/Filters/Sources/ArcSource.js +1 -1
- package/Filters/Sources/Arrow2DSource.js +6 -9
- package/Filters/Sources/ArrowSource.js +2 -8
- package/Filters/Sources/CircleSource.js +3 -10
- package/Filters/Sources/ConcentricCylinderSource.js +5 -8
- package/Filters/Sources/ConeSource.js +3 -10
- package/Filters/Sources/CubeSource.js +3 -9
- package/Filters/Sources/Cursor3D.js +1 -4
- package/Filters/Sources/CylinderSource.js +3 -10
- package/Filters/Sources/DiskSource.js +1 -5
- package/Filters/Sources/EllipseArcSource.js +1 -1
- package/Filters/Sources/FrustumSource.d.ts +111 -0
- package/Filters/Sources/FrustumSource.js +248 -0
- package/Filters/Sources/ImageGridSource.js +0 -3
- package/Filters/Sources/LineSource.js +1 -4
- package/Filters/Sources/PlaneSource.js +1 -4
- package/Filters/Sources/PlatonicSolidSource.js +1 -1
- package/Filters/Sources/PointSource.js +1 -4
- package/Filters/Sources/RTAnalyticSource.js +0 -3
- package/Filters/Sources/SLICSource.js +1 -4
- package/Filters/Sources/SphereSource.js +1 -4
- package/Filters/Sources/ViewFinderSource.js +1 -1
- package/Filters/Texture/TextureMapToPlane.js +1 -4
- package/Filters/Texture/TextureMapToSphere.js +1 -4
- package/Imaging/Core/ImageReslice.js +1 -1
- package/Imaging/Hybrid/SampleFunction.js +1 -1
- package/Rendering/Core/VectorText.js +4 -3
- package/Rendering/OpenGL/Glyph3DMapper.js +16 -0
- package/Rendering/OpenGL/glsl/vtkVolumeVS.glsl.js +1 -1
- package/Widgets/Representations/ImplicitPlaneRepresentation.js +1 -1
- package/Widgets/Representations/RectangleContextRepresentation.js +0 -3
- package/Widgets/Representations/SplineContextRepresentation.js +1 -5
- package/index.d.ts +3 -0
- package/macros2.js +1 -1
- package/package.json +1 -1
|
@@ -39,9 +39,6 @@ function vtkRectangleContextRepresentation(publicAPI, model) {
|
|
|
39
39
|
// --------------------------------------------------------------------------
|
|
40
40
|
|
|
41
41
|
publicAPI.requestData = (inData, outData) => {
|
|
42
|
-
if (model.deleted) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
42
|
const list = publicAPI.getRepresentationStates(inData[0]);
|
|
46
43
|
// FIXME: support list > 1.
|
|
47
44
|
const state = list[0];
|
|
@@ -58,15 +58,12 @@ function vtkSplineContextRepresentation(publicAPI, model) {
|
|
|
58
58
|
return superGetRepresentationStates(input).filter(state => state.getOrigin?.() && state.isVisible?.());
|
|
59
59
|
};
|
|
60
60
|
publicAPI.requestData = (inData, outData) => {
|
|
61
|
-
if (model.deleted) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
61
|
const widgetState = inData[0];
|
|
62
|
+
outData[0] = model.internalPolyData;
|
|
65
63
|
const closed = widgetState.getSplineClosed();
|
|
66
64
|
const list = publicAPI.getRepresentationStates(widgetState);
|
|
67
65
|
const inPoints = list.map(state => state.getOrigin());
|
|
68
66
|
if (inPoints.length <= 1) {
|
|
69
|
-
outData[0] = model.internalPolyData;
|
|
70
67
|
return;
|
|
71
68
|
}
|
|
72
69
|
let numVertices = inPoints.length;
|
|
@@ -114,7 +111,6 @@ function vtkSplineContextRepresentation(publicAPI, model) {
|
|
|
114
111
|
}
|
|
115
112
|
model.internalPolyData.getLines().setData(model.outputBorder ? outCells : []);
|
|
116
113
|
model.internalPolyData.modified();
|
|
117
|
-
outData[0] = model.internalPolyData;
|
|
118
114
|
model._pipelines.area.filter.update();
|
|
119
115
|
model._pipelines.border.actor.getProperty().setColor(...(inPoints.length <= 3 || model._pipelines.area.filter.getErrorCount() === 0 ? model.borderColor : model.errorBorderColor));
|
|
120
116
|
};
|
package/index.d.ts
CHANGED
|
@@ -37,9 +37,11 @@
|
|
|
37
37
|
/// <reference path="./Common/DataModel/KochanekSpline1D.d.ts" />
|
|
38
38
|
/// <reference path="./Common/DataModel/Line.d.ts" />
|
|
39
39
|
/// <reference path="./Common/DataModel/Locator.d.ts" />
|
|
40
|
+
/// <reference path="./Common/DataModel/MergePoints.d.ts" />
|
|
40
41
|
/// <reference path="./Common/DataModel/PiecewiseFunction.d.ts" />
|
|
41
42
|
/// <reference path="./Common/DataModel/Plane.d.ts" />
|
|
42
43
|
/// <reference path="./Common/DataModel/Planes.d.ts" />
|
|
44
|
+
/// <reference path="./Common/DataModel/PointLocator.d.ts" />
|
|
43
45
|
/// <reference path="./Common/DataModel/PointSet.d.ts" />
|
|
44
46
|
/// <reference path="./Common/DataModel/PolyData/Constants.d.ts" />
|
|
45
47
|
/// <reference path="./Common/DataModel/PolyData.d.ts" />
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
/// <reference path="./Filters/Sources/CylinderSource.d.ts" />
|
|
83
85
|
/// <reference path="./Filters/Sources/DiskSource.d.ts" />
|
|
84
86
|
/// <reference path="./Filters/Sources/EllipseArcSource.d.ts" />
|
|
87
|
+
/// <reference path="./Filters/Sources/FrustumSource.d.ts" />
|
|
85
88
|
/// <reference path="./Filters/Sources/LineSource.d.ts" />
|
|
86
89
|
/// <reference path="./Filters/Sources/PlaneSource.d.ts" />
|
|
87
90
|
/// <reference path="./Filters/Sources/PlatonicSolidSource/Constants.d.ts" />
|
package/macros2.js
CHANGED
|
@@ -816,7 +816,7 @@ function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
|
|
|
816
816
|
count++;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
if (publicAPI.requestData && publicAPI.shouldUpdate()) {
|
|
819
|
+
if (publicAPI.requestData && !publicAPI.isDeleted() && publicAPI.shouldUpdate()) {
|
|
820
820
|
publicAPI.requestData(ins, model.output);
|
|
821
821
|
}
|
|
822
822
|
};
|