How to use the dwv.App function in dwv

To help you get started, we’ve selected a few dwv 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 ivmartel / dwv-react / src / DwvComponent.js View on Github external
componentDidMount() {
    // create app
    var app = new dwv.App();
    // initialise app
    app.init({
      "containerDivId": "dwv",
      "tools": this.state.tools,
      "shapes": ["Ruler"],
      "isMobile": true
    });
    // progress
    var self = this;
    app.addEventListener("load-progress", function (event) {
      self.setState({loadProgress: event.loaded});
    });
    app.addEventListener("load-end", function (event) {
      // set data loaded flag
      self.setState({dataLoaded: true});
      // set dicom tags

dwv

DICOM Web Viewer.

GPL-3.0
Latest version published 4 months ago

Package Health Score

77 / 100
Full package analysis