@kitware/vtk.js 25.7.1 → 25.7.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.
|
@@ -35,13 +35,15 @@ export interface vtkAbstractMapper extends vtkAbstractMapperBase {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Remove all clipping planes.
|
|
38
|
+
* @return true if there were planes, false otherwise.
|
|
38
39
|
*/
|
|
39
|
-
removeAllClippingPlanes():
|
|
40
|
+
removeAllClippingPlanes(): boolean;
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Remove clipping plane.
|
|
44
|
+
* @param {vtkPlane} plane
|
|
45
|
+
* @return true if plane existed and therefore is removed, false otherwise.
|
|
46
|
+
*/
|
|
45
47
|
removeClippingPlane(plane: vtkPlane): boolean;
|
|
46
48
|
|
|
47
49
|
/**
|
|
@@ -29,7 +29,13 @@ function vtkAbstractMapper(publicAPI, model) {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
publicAPI.removeAllClippingPlanes = function () {
|
|
32
|
+
if (model.clippingPlanes.length === 0) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
|
|
32
36
|
model.clippingPlanes.length = 0;
|
|
37
|
+
publicAPI.modified();
|
|
38
|
+
return true;
|
|
33
39
|
};
|
|
34
40
|
|
|
35
41
|
publicAPI.removeClippingPlane = function (clippingPlane) {
|