Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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