docs: function (mode) {
              var state = this.state,
                  val = parseFloat(mode);
              if (val) {
                  return val;
              }
              if (mode === Crocodoc.ZOOM_FIT_WIDTH) {
                  return state.viewportDimensions.clientWidth / state.widestPage.totalActualWidth;
              }
              else if (mode === Crocodoc.ZOOM_FIT_HEIGHT) {
                  return state.viewportDimensions.clientHeight / state.tallestPage.totalActualHeight;
              }
              else if (mode === Crocodoc.ZOOM_AUTO) {
                  return this.calculateZoomAutoValue();
              } else {
                  return state.zoomState.zoom;
              }
          }