How to use the cornerstone-core.disable 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
publicAPI.setContainer = (container) => {
    if (model.container === container) {
      return;
    }

    if (model.container) {
      cornerstone.disable(model.container);
    }

    model.container = container;

    if (container) {
      cornerstone.enable(container);
      cornerstoneTools.makeUnselectable(container);
    }

    resetRenderer();
  };
github OHIF / Viewers / platform / viewer / src / connectedComponents / ConnectedDownloadDialog.js View on Github external
disableViewport: viewportElement => {
      if (viewportElement) {
        cornerstone.disable(viewportElement);
      }
    },
    updateViewportPreview: (viewportElement, downloadCanvas, fileType) =>
github cornerstonejs / react-cornerstone-viewport / src / CornerstoneViewport / CornerstoneViewport.js View on Github external
componentWillUnmount() {
    const clear = true;

    this._bindInternalEventListeners(clear);
    this._bindExternalEventListeners(clear);
    this._setupLoadHandlers(clear);
    if (this.props.isStackPrefetchEnabled) {
      _enableStackPrefetching(this.element, clear);
    }
    cornerstoneTools.clearToolState(this.element, 'stackPrefetch');
    cornerstoneTools.stopClip(this.element);
    if (this.props.resizeThrottleMs) {
      windowResizeHandler.disable(this.element);
    }
    cornerstone.disable(this.element);
  }