DimensionBuilders.BoundingBoxRatio.Builder


class DimensionBuilders.BoundingBoxRatio.Builder


Builder for BoundingBoxRatio.

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 400)
Builder(ratio: TypeBuilders.FloatProp)

Creates an instance of Builder.

Public functions

DimensionBuilders.BoundingBoxRatio

Builds an instance from accumulated values.

Public constructors

Builder

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
Builder(ratio: TypeBuilders.FloatProp)

Creates an instance of Builder.

Parameters
ratio: TypeBuilders.FloatProp

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.

Public functions

build

Added in 1.2.0
fun build(): DimensionBuilders.BoundingBoxRatio

Builds an instance from accumulated values.