DimensionBuilders.BoundingBoxRatio


@RequiresSchemaVersion(major = 1, minor = 400)
class DimensionBuilders.BoundingBoxRatio : DimensionBuilders.PivotDimension


Provide a length measurement proportional to the element's bounding box.

Summary

Public functions

TypeBuilders.FloatProp

Gets the ratio relative to the bounding box width/height, with the bounding box top / start as 0 and bottom / end as 1.

String

Public functions

getRatio

Added in 1.2.0-alpha01
fun getRatio(): TypeBuilders.FloatProp

Gets the ratio relative to the bounding box width/height, with the bounding box top / start as 0 and bottom / end as 1. Values outside [0, 1] are also valid. Dynamic value is supported. If not set, defaults to the middle of the element.

toString

fun toString(): String