src/stateManagement/imageIdSpecificStateManager.js
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];
  }
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 .