DimensionBuilders.BoundingBoxRatio


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


Provide a position representation proportional to the bounding box width/height.

Summary

Public functions

TypeBuilders.FloatProp

Gets the ratio proportional to the bounding box width/height.

String

Public functions

getRatio

Added in 1.2.0
fun getRatio(): TypeBuilders.FloatProp

Gets the ratio proportional to the bounding box width/height. Value 0 represents the location at the top / start of the bounding box, value 1 represents the location at the bottom / end of the bounding box, and value 0.5 represents the middle of the bounding box. Values outside [0, 1] are also valid. Dynamic value is supported.

toString

fun toString(): String