static create(streamInfo, zoomBehavior) {
    return Promise
        .all([lookupDefaultZoom(streamInfo), lookupInitialZoom(streamInfo)])
        .then(function(zoomFactors) {
          return new BrowserApi(
              streamInfo, zoomFactors[0], zoomFactors[1], zoomBehavior);
        });
  }
/**
   * @param {!Object} streamInfo The stream object pointing to the data
   *     contained in the PDF.
   * @param {BrowserApi.ZoomBehavior} zoomBehavior How to manage zoom.
   * @return {Promise<BrowserApi>} A promise to a BrowserApi.
   */
@param {!Object} streamInfo The stream object pointing to the data
contained in the PDF.
@param {BrowserApi.ZoomBehavior} zoomBehavior How to manage zoom.
@return {Promise} A promise to a BrowserApi.
@param { !Object } streamInfo The stream object pointing to the data contained in the PDF . @param { BrowserApi . ZoomBehavior } zoomBehavior How to manage zoom . @return { Promise } A promise to a BrowserApi .
static create(streamInfo, zoomBehavior) {
    return Promise
        .all([lookupDefaultZoom(streamInfo), lookupInitialZoom(streamInfo)])
        .then(function(zoomFactors) {
          return new BrowserApi(
              streamInfo, zoomFactors[0], zoomFactors[1], zoomBehavior);
        });
  }
static create ( streamInfo , zoomBehavior ) { return Promise . all ( [ lookupDefaultZoom ( streamInfo ) , lookupInitialZoom ( streamInfo ) ] ) . then ( function ( zoomFactors ) { return new BrowserApi ( streamInfo , zoomFactors [ 0 ] , zoomFactors [ 1 ] , zoomBehavior ) ; } ) ; }
@param {!Object} streamInfo The stream object pointing to the data
     contained in the PDF.
@param { !Object } streamInfo The stream object pointing to the data contained in the PDF .