Global

Methods

add(int) → {number}

Additive into the zoom
Parameters:
Name Type Description
int number The amount in which to zoom in and out.
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

get(boolopt) → {number}

Get the current zoom of the page
Parameters:
Name Type Attributes Description
bool boolean <optional>
console.logs the current zoom of the page
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

inverseZoom(int) → {number}

Opposite of zoom.zppm, divide the current zoom value
Parameters:
Name Type Description
int number The amount in which to zoom in and out. Opposite of zoom.zoom
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

invert() → {number}

Invert the current zoom value
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

minus(int) → {number}

Opposite of zoom.add, remove from the zoom value
Parameters:
Name Type Description
int number The amount in which to zoom in and out. Opposite of zoom.add
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

reset() → {number}

Reset the zoom value to original
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

set(int) → {number}

Allows you to set the zoom value to a number
Parameters:
Name Type Description
int number The integer to set the zoom to
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

specify(specifiedFunction, dataopt) → {number}

Specify a function given data and the zoom value to set the zoom
Parameters:
Name Type Attributes Description
specifiedFunction function A function given the current zoom as the first argument and the data parameter as the second argument. The returned value will be used for the zoom
data any <optional>
Will be passed into the specifiedFunction as the second argument
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number

zoom(int) → {number}

A function to zoom in and out cross-browser
Parameters:
Name Type Description
int number The scale at which to zoom in or out. The smaller the more it zooms out.
License:
  • MIT
Source:
Returns:
The current zoom value
Type
number