constructor()

in src/components/viewer.js [42:75]


  constructor(props) {
    super(props);
    this.state = {
      instances: [],
      numReadyImages: 0,
      readyImagesProgress: 0,
      numRenderedImages: 0,
      renderedImagesProgress: 0,
      renderTimer: 0,
      fetchTimer: 0,
      totalTimer: 0,
      timeToFirstImage: 0,
      maxSimultaneousRequests: 20,
      isDisplaying: false,
    };

    this.dicomSequencer = new DicomImageSequencer(this.props.project,
        this.props.location,
        this.props.dataset,
        this.props.dicomStore,
        this.props.study,
        this.props.series,
    );

    this.totalImagesCount = 0;
    this.readyImages = [];
    this.readyImagesCount = 0;
    this.newSequence = false;
    this.fetchStartTime = 0;
    this.renderStartTime = 0,
    this.canvasElement;
    this.renderedImagesCount = 0;
    this.metricsIntervalId = 0;
  }