BreakpointCondition.newRatio

Creates a condition that triggers on ratio changes.

The ratio is represented as width divided by height.

Parameters

typethe ratio type
widthratio width
heightratio height

Returns

the newly created condition