Skip to content

Commit

Permalink
Add examples to zoom description (#8199)
Browse files Browse the repository at this point in the history
I misread this description originally as `zoom: 1` is twice as big. I think my brain skipped the "increasing" word. I added some examples to hopefully make this harder to miss.

Co-authored-by: Chris Gervang <[email protected]>
Co-authored-by: Ib Green <[email protected]>
  • Loading branch information
3 people authored Feb 14, 2024
1 parent bf0bd82 commit 6929dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/core/orthographic-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Distance of far clipping plane. Default `1000`.
To render, `OrthographicView` needs to be used together with a `viewState` with the following parameters:

* `target` (Number[3], optional) - The world position at the center of the viewport. Default `[0, 0, 0]`.
* `zoom` (Number|Number[2], optional) - The zoom level of the viewport. `zoom: 0` maps one unit distance to one pixel on screen, and increasing `zoom` by `1` scales the same object to twice as large. To apply independent zoom levels to the X and Y axes, supply an array `[zoomX, zoomY]`. Default `0`.
* `zoom` (Number|Number[2], optional) - The zoom level of the viewport. `zoom: 0` maps one unit distance to one pixel on screen, and increasing `zoom` by `1` scales the same object to twice as large. For example `zoom: 1` is 2x the original size, `zoom: 2` is 4x, `zoom: 3` is 8x etc.. To apply independent zoom levels to the X and Y axes, supply an array `[zoomX, zoomY]`. Default `0`.
* `minZoom` (Number, optional) - The min zoom level of the viewport. Default `-Infinity`.
* `maxZoom` (Number, optional) - The max zoom level of the viewport. Default `Infinity`.

Expand Down

0 comments on commit 6929dbf

Please sign in to comment.