adjustCropToFillFrame

abstract fun adjustCropToFillFrame(block: DesignBlock, minScaleRatio: Float)

Adjust the crop position/scale to at least fill the crop frame. On a page with a bleed, the content also covers the bleed, and the ratio includes the bleed. This needs the setting page/imageFillCoversBleed, which is on by default. Required scope: "layer/crop"

Parameters

block

the block to query.

minScaleRatio

the minimal crop scale ratio to go down to.