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.

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 9 months ago

Package Health Score

74 / 100
Full package analysis