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 relative to the bounding box width / height, with the bounding box top / left as 0 and bottom / right as 1. 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.