@cornerstonejs/tools 1.70.3 → 1.70.4

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.
@@ -4,12 +4,7 @@ const core_1 = require("@cornerstonejs/core");
4
4
  function removeLabelmapFromElement(element, segmentationRepresentationUID, removeFromCache = false) {
5
5
  const enabledElement = (0, core_1.getEnabledElement)(element);
6
6
  const { viewport } = enabledElement;
7
- if (viewport instanceof core_1.StackViewport) {
8
- return;
9
- }
10
- viewport.removeVolumeActors([
11
- segmentationRepresentationUID,
12
- ]);
7
+ viewport.removeActors([segmentationRepresentationUID]);
13
8
  }
14
9
  exports.default = removeLabelmapFromElement;
15
10
  //# sourceMappingURL=removeLabelmapFromElement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeLabelmapFromElement.js","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Labelmap/removeLabelmapFromElement.ts"],"names":[],"mappings":";;AAAA,8CAAuE;AAavE,SAAS,yBAAyB,CAChC,OAAuB,EACvB,6BAAqC,EACrC,eAAe,GAAG,KAAK;IAEvB,MAAM,cAAc,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IAEpC,IAAI,QAAQ,YAAY,oBAAa,EAAE;QAErC,OAAO;KACR;IAEA,QAAkC,CAAC,kBAAkB,CAAC;QACrD,6BAA6B;KAC9B,CAAC,CAAC;AACL,CAAC;AAED,kBAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"removeLabelmapFromElement.js","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Labelmap/removeLabelmapFromElement.ts"],"names":[],"mappings":";;AAAA,8CAAwD;AAYxD,SAAS,yBAAyB,CAChC,OAAuB,EACvB,6BAAqC,EACrC,eAAe,GAAG,KAAK;IAEvB,MAAM,cAAc,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IAEpC,QAAQ,CAAC,YAAY,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,kBAAe,yBAAyB,CAAC"}
@@ -1,13 +1,8 @@
1
- import { StackViewport, getEnabledElement } from '@cornerstonejs/core';
1
+ import { getEnabledElement } from '@cornerstonejs/core';
2
2
  function removeLabelmapFromElement(element, segmentationRepresentationUID, removeFromCache = false) {
3
3
  const enabledElement = getEnabledElement(element);
4
4
  const { viewport } = enabledElement;
5
- if (viewport instanceof StackViewport) {
6
- return;
7
- }
8
- viewport.removeVolumeActors([
9
- segmentationRepresentationUID,
10
- ]);
5
+ viewport.removeActors([segmentationRepresentationUID]);
11
6
  }
12
7
  export default removeLabelmapFromElement;
13
8
  //# sourceMappingURL=removeLabelmapFromElement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeLabelmapFromElement.js","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Labelmap/removeLabelmapFromElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAavE,SAAS,yBAAyB,CAChC,OAAuB,EACvB,6BAAqC,EACrC,eAAe,GAAG,KAAK;IAEvB,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IAEpC,IAAI,QAAQ,YAAY,aAAa,EAAE;QAErC,OAAO;KACR;IAEA,QAAkC,CAAC,kBAAkB,CAAC;QACrD,6BAA6B;KAC9B,CAAC,CAAC;AACL,CAAC;AAED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"removeLabelmapFromElement.js","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Labelmap/removeLabelmapFromElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAYxD,SAAS,yBAAyB,CAChC,OAAuB,EACvB,6BAAqC,EACrC,eAAe,GAAG,KAAK;IAEvB,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IAEpC,QAAQ,CAAC,YAAY,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"removeLabelmapFromElement.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Labelmap/removeLabelmapFromElement.ts"],"names":[],"mappings":"AAaA,iBAAS,yBAAyB,CAChC,OAAO,EAAE,cAAc,EACvB,6BAA6B,EAAE,MAAM,EACrC,eAAe,UAAQ,GACtB,IAAI,CAYN;AAED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"removeLabelmapFromElement.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Labelmap/removeLabelmapFromElement.ts"],"names":[],"mappings":"AAYA,iBAAS,yBAAyB,CAChC,OAAO,EAAE,cAAc,EACvB,6BAA6B,EAAE,MAAM,EACrC,eAAe,UAAQ,GACtB,IAAI,CAKN;AAED,eAAe,yBAAyB,CAAC"}