#cy.maxZoom()
// Get the maximum zoom, or set it
cy.maxZoom(): numberGet the maximum zoom, or set it. Setting re-clamps the current zoom.
Returns
numberthe current maxZoom value
#cy.maxZoom(zoom)
// Get the maximum zoom, or set it
cy.maxZoom(zoom: number): thisGet the maximum zoom, or set it. Setting re-clamps the current zoom.
| Name | Description |
|---|---|
zoom: number | the new maximum |
Returns
thisthis core, for chaining
Example
const result = cy.maxZoom(1e+50);console.log(result === cy); // true