DimensionBuilders.BoundingBoxRatio


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


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. value 0 represents the location at the top / left of the bounding box and value 1 represents the location at the bottom / end of the bounding box.

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 / left of the bounding box and value 1 represents the location at the bottom / end of the bounding box. Its default 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