You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/core/src/viewports/orthographic-viewport.ts
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,10 @@ export type OrthographicViewportOptions = {
64
64
/** 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.
65
65
* To apply independent zoom levels to the X and Y axes, supply an array `[zoomX, zoomY]`. Default `0`. */
66
66
zoom?: number|[number,number];
67
+
/** Independent zoom along the X axis. Overrides `zoom`. */
68
+
zoomX?: number;
69
+
/** Independent zoom along the Y axis. Overrides `zoom`. */
70
+
zoomY?: number;
67
71
/** Padding around the viewport, in pixels. */
68
72
padding?: Padding|null;
69
73
/** Distance of near clipping plane. Default `0.1`. */
@@ -75,6 +79,13 @@ export type OrthographicViewportOptions = {
0 commit comments