parseZoomParam_(paramValue) {
    const paramValueSplit = paramValue.split(',');
    if (paramValueSplit.length != 1 && paramValueSplit.length != 3)
      return {};

    // User scale of 100 means zoom value of 100% i.e. zoom factor of 1.0.
    const zoomFactor = parseFloat(paramValueSplit[0]) / 100;
    if (Number.isNaN(zoomFactor))
      return {};

    // Handle #zoom=scale.
    if (paramValueSplit.length == 1) {
      return {'zoom': zoomFactor};
    }

    // Handle #zoom=scale,left,top.
    const position = {
      x: parseFloat(paramValueSplit[1]),
      y: parseFloat(paramValueSplit[2])
    };
    return {'position': position, 'zoom': zoomFactor};
  }
/**
   * Parse zoom parameter of open PDF parameters. The PDF should be opened at
   * the specified zoom level.
   *
   * @param {string} paramValue zoom value.
   * @return {Object} Map with zoom parameters (zoom and position).
   * @private
   */
Parse zoom parameter of open PDF parameters. The PDF should be opened at
the specified zoom level.

@param {string} paramValue zoom value.
@return {Object} Map with zoom parameters (zoom and position).
@private
Parse zoom parameter of open PDF parameters . The PDF should be opened at the specified zoom level . @param { string } paramValue zoom value . @return { Object } Map with zoom parameters ( zoom and position ) . @private
parseZoomParam_(paramValue) {
    const paramValueSplit = paramValue.split(',');
    if (paramValueSplit.length != 1 && paramValueSplit.length != 3)
      return {};
    const zoomFactor = parseFloat(paramValueSplit[0]) / 100;
    if (Number.isNaN(zoomFactor))
      return {};
    if (paramValueSplit.length == 1) {
      return {'zoom': zoomFactor};
    }
    const position = {
      x: parseFloat(paramValueSplit[1]),
      y: parseFloat(paramValueSplit[2])
    };
    return {'position': position, 'zoom': zoomFactor};
  }
parseZoomParam_ ( paramValue ) { const paramValueSplit = paramValue . split ( ',' ) ; if ( paramValueSplit . length != 1 && paramValueSplit . length != 3 ) return { } ; const zoomFactor = parseFloat ( paramValueSplit [ 0 ] ) / 100 ; if ( Number . isNaN ( zoomFactor ) ) return { } ; if ( paramValueSplit . length == 1 ) { return { 'zoom' : zoomFactor } ; } const position = { x : parseFloat ( paramValueSplit [ 1 ] ) , y : parseFloat ( paramValueSplit [ 2 ] ) } ; return { 'position' : position , 'zoom' : zoomFactor } ; }
Parse zoom parameter of open PDF parameters.
Parse zoom parameter of open PDF parameters .
// User scale of 100 means zoom value of 100% i.e. zoom factor of 1.0. // Handle #zoom=scale. // Handle #zoom=scale,left,top.