How to use the cornerstone-core.removeElementData function in cornerstone-core

To help you get started, we’ve selected a few cornerstone-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kitware / paraview-glance / Sources / externals / MedicalCornerstone / CornerstoneRenderer.js View on Github external
GLANCE_DATA
      ).currentRepresentation =
        model.representation;

      // do a first render with a viewport reset
      publicAPI.render(true);

      if (model.toolManager) {
        model.toolManager.setupElement(model.container);
      }
    } else {
      publicAPI.renderBlankImage();
      if (model.toolManager) {
        model.toolManager.teardownElement(model.container);
      }
      cornerstone.removeElementData(model.container, GLANCE_DATA);
    }
  }