code: function (data) {
              var zoomMode = this.state.zoomState.zoomMode;
              this.state.viewportDimensions = data;
              this.updateZoomLevels();
              this.setZoom(zoomMode);
          }
docs: Handle resize messages
  @param   {Object} data Object containing width and height of the viewport
  @returns {void}