DimensionBuilders.BoundingBoxRatio


@RequiresSchemaVersion(major = 1, minor = 400)
public final class DimensionBuilders.BoundingBoxRatio implements DimensionBuilders.PivotDimension


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

Summary

Nested types

Builder for BoundingBoxRatio.

Public methods

@NonNull 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.

@NonNull String

Public methods

getRatio

Added in 1.2.0-alpha01
public @NonNull TypeBuilders.FloatProp getRatio()

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

public @NonNull String toString()