js:Token: Difference between revisions
(Created page with "Within the javascript environment used by {{code|js.eval}}, Tokens are represented by the {{code|Token}} class. The token class cannot be directly instantiated, but tokens ca...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Experimental}} | |||
Within the javascript environment used by {{code|js.eval}}, Tokens are represented by the {{code|Token}} class. The token class cannot be directly instantiated, but tokens can be found from the {{code|MapTool}} top level name. | Within the javascript environment used by {{code|js.eval}}, Tokens are represented by the {{code|Token}} class. The token class cannot be directly instantiated, but tokens can be found from the {{code|MapTool}} top level name. | ||
Revision as of 08:06, 4 August 2021
This article describes a feature or macro function that is experimental and may be subject to change.
Within the javascript environment used by js.eval
, Tokens are represented by the Token
class. The token class cannot be directly instantiated, but tokens can be found from the MapTool
top level name.
token.getNotes() Function
Note: This function can only be used in a Trusted Macro
Usage
token.getNotes();
token.setNotes() Function
Note: This function can only be used in a Trusted Macro
Usage
token.setNotes(newNotes);
token.getName() Function
Note: This function can only be used in a Trusted Macro
Usage
token.getName();
token.setName() Function
Note: This function can only be used in a Trusted Macro
Usage
token.setName(newName);
token.hasSight() Function
Note: This function can only be used in a Trusted Macro
Usage
token.hasSight();
token.getId() Function
Note: This function can only be used in a Trusted Macro
Usage
token.getId();
token.getProperty() Function
Note: This function can only be used in a Trusted Macro
Usage
token.getProperty(property);
token.setProperty() Function
Note: This function can only be used in a Trusted Macro
Usage
token.setProperty(property, newValue);
token.getX() Function
Note: This function can only be used in a Trusted Macro
Usage
token.getX();
token.getY() Function
Note: This function can only be used in a Trusted Macro
Usage
token.getY();
token.setX() Function
Note: This function can only be used in a Trusted Macro
Usage
token.setX(newX);
token.setY() Function
Note: This function can only be used in a Trusted Macro
Usage
token.setY(newY);