units([units])

Sets the units of the document (like right clicking the rulers). By default basil uses the units of the user’s document or the user’s default units.

Type: function

Parameter(s):

  • units {String} Optional:

    Supported units: PT, PX, CM, MM or IN.

Returns:

  • {String}:

    Current unit setting.