positionNudge

fun positionNudge(x: Number? = null, y: Number? = null, unit: String? = null): PosOptions

Adjusts position by nudging a given offset.

Parameters

x

Nudging width.

y

Nudging height.

unit

("identity", "size", "px"), default="identity". Units for x and y nudging. Possible values:

  • 'identity': a unit of 1 corresponds to a difference of 1 in data space;

  • 'size': a unit of 1 corresponds to the diameter of a point with size=1;

  • 'px': the unit is measured in screen pixels.