fusion_addin_framework.utils.view_extents_by_measure

fusion_addin_framework.utils.view_extents_by_measure(measure: float, is_horizontal_measure: bool = True)

Returns the viewExtents parameter so the given model measure fits exactly into the viewport.

Parameters
  • measure (float) – measure of the model to diplay

  • is_horizontal_measure (bool, optional) – if the given measure is describing horizontal or vertical distance. Defaults to True.

Returns

the viewExtents parameter to apply

Return type

float