@vttforge/types / TokenObjectLike
Interface: TokenObjectLike ​
What every object placed on the canvas carries.
A token adds to it: see TokenObjectLike. The others have no members of their own here yet, because no consumer has asked for one.
Extends ​
Properties ​
actor ​
readonlyactor:ActorLike<Record<string,unknown>,ItemLike<Record<string,unknown>>> |null
bounds ​
readonlybounds:object
height ​
height:
number
width ​
width:
number
x ​
x:
number
y ​
y:
number
Inherited from ​
center ​
readonlycenter:object
The point the object is centred on, in scene coordinates.
x ​
x:
number
y ​
y:
number
Inherited from ​
combatant ​
readonlycombatant:CombatantLike<Record<string,unknown>> |null
controlled ​
readonlycontrolled:boolean
Inherited from ​
PlaceableObjectLike.controlled
document ​
readonlydocument:TokenDocumentLike
Overrides ​
h ​
readonlyh:number
hover ​
readonlyhover:boolean
Inherited from ​
id ​
readonlyid:string
Inherited from ​
inCombat ​
readonlyinCombat:boolean
isTargeted ​
readonlyisTargeted:boolean
isVisible ​
readonlyisVisible:boolean
Inherited from ​
name ​
readonlyname:string
w ​
readonlyw:number
Methods ​
control() ​
control(
options?):boolean
Parameters ​
options? ​
Record<string, unknown>
Returns ​
boolean
Inherited from ​
release() ​
release(
options?):boolean
Parameters ​
options? ​
Record<string, unknown>
Returns ​
boolean
Inherited from ​
setTarget() ​
setTarget(
targeted?,options?):void
Parameters ​
targeted? ​
boolean
options? ​
Record<string, unknown>
Returns ​
void