SceneAspectRatio Enum
How a view box keeps its proportions in its viewport (SceneViewBox.Alignment), as the SVG preserveAspectRatio.
public enum SceneAspectRatioFields
| Name | Value | Description |
|---|---|---|
None | 0 | The box is stretched to the viewport, as none. |
XMinYMin | 1 | The box keeps its proportions, aligned on the left and the top of the viewport. |
XMidYMin | 2 | The box keeps its proportions, centered horizontally, aligned on the top of the viewport. |
XMaxYMin | 3 | The box keeps its proportions, aligned on the right and the top of the viewport. |
XMinYMid | 4 | The box keeps its proportions, aligned on the left, centered vertically. |
XMidYMid | 5 | The box keeps its proportions, centered in the viewport. The default, as in SVG. |
XMaxYMid | 6 | The box keeps its proportions, aligned on the right, centered vertically. |
XMinYMax | 7 | The box keeps its proportions, aligned on the left and the bottom of the viewport. |
XMidYMax | 8 | The box keeps its proportions, centered horizontally, aligned on the bottom of the viewport. |
XMaxYMax | 9 | The box keeps its proportions, aligned on the right and the bottom of the viewport. |