Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Valid layer types are: image, paint (default), text

  • Image layer type fields: name (string), asset (string), x (number), y (number), w (number), h (number), color (string), angle (number), invisible (boolean), gmonly (boolean), locked (boolean)
    Note: w and h attributes are specified in grid units.

  • Paint layer type fields: name (string)

  • Text layer type fields: text (string), font (string), fontsize (number)

Parameters

dbnode/dbpath   (databasenode/string)   
Specifies the database node whose state is being queried.

...

token/tokenid/point (tokeninstance/number/table)
tokeninstance object,
OR the ID of a tokeninstance,
OR a Lua table of the form { 1 = #, 2 = # } or { x = #, y = # }, indicating a point on the image.

...

(table)
A table with integer index values containing references to tokeninstance objects.

getTokensWithinDistance

...

token/tokenid/point (tokeninstance/number/table)
tokeninstance object,
OR the ID of a tokeninstance,
OR a Lua table of the form { 1 = #, 2 = # } or { x = #, y = # }, indicating a point on the image.

...

(table)
A table with integer index values containing references to tokeninstance objects.

hasGrid

Code Block
languagelua
function hasGrid(dbnode/dbpath)

...