src/stateManagement/imageIdSpecificStateManager.js
// Clears all tool data from this toolStateManager.
Clears all tool data from this toolStateManager.
Clears all tool data from this toolStateManager .
function clearImageIdSpecificToolStateManager(element) {
    const enabledElement = external.cornerstone.getEnabledElement(element);
    if (
      !enabledElement.image ||
      toolState.hasOwnProperty(enabledElement.image.imageId) === false
    ) {
      return;
    }
    delete toolState[enabledElement.image.imageId];
  }
function clearImageIdSpecificToolStateManager ( element ) { const enabledElement = external . cornerstone . getEnabledElement ( element ) ; if ( ! enabledElement . image || toolState . hasOwnProperty ( enabledElement . image . imageId ) === false ) { return ; } delete toolState [ enabledElement . image . imageId ] ; }
Clears all tool data from this toolStateManager.
Clears all tool data from this toolStateManager .