newRatio

fun newRatio(type: BreakpointConditionRatioType, width: <Error class: unknown class>, height: <Error class: unknown class>): BreakpointCondition

Creates a condition that triggers on ratio changes.

The ratio is represented as @width divided by @height.

Return

the newly created condition

Since

1.4

Parameters

type

the ratio type

width

ratio width

height

ratio height