setCropScaleRatio

abstract fun setCropScaleRatio(block: DesignBlock, scaleRatio: Float)

Set the crop scale ratio of the given design block. This will uniformly scale the content up or down. The center of the scale operation is the center of the crop frame. On a page with a bleed, the ratio and the center of the scale include the bleed. This needs the setting page/imageFillCoversBleed, which is on by default. Required scope: "layer/crop"

Parameters

block

the block whose crop scale ratio should be set.

scaleRatio

the rotation in radians.