fusion_addin_framework.utils.view_extent_by_rectangle¶
- fusion_addin_framework.utils.view_extent_by_rectangle(horizontal: float, vertical: float)¶
Returns theviewExtens parameter so that a rectangle ith the given design measures will fit into the viewport.
- Parameters
horizontal (float) – horizontal dimension of the model to fit
vertical (float) – vertical dimension of the model to fit
- Returns
the viewExtents parameter to apply
- Return type
float