referencePoint([referencePoint])

Sets the reference point for transformations using the transform() function. The reference point will be used for all following transformations, until it is changed again. By default, the reference point is set to the top left. Arguments can be the basil constants TOP_LEFT, TOP_CENTER, TOP_RIGHT, CENTER_LEFT, CENTER, CENTER_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER or BOTTOM_RIGHT. Alternatively the digits 1 through 9 (as they are arranged on a num pad) can be used to set the anchor point. Lastly the function can also use an InDesign anchor point enumerator to set the reference point. If the function is used without any arguments the currently set reference point will be returned.

Type: function

Parameter(s):

  • referencePoint {String} Optional:

    The reference point to set.

Returns:

  • {String}:

    Current reference point setting.