Constructor
new TileData(data, documentopt)
- See:
-
- BaseTile
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_id |
string | The _id which uniquely identifies this Tile embedded document |
||
img |
string | null |
<optional> |
An image or video file path which this tile displays |
|
width |
number |
<optional> |
0
|
The pixel width of the tile |
height |
number |
<optional> |
0
|
The pixel height of the tile |
x |
number |
<optional> |
0
|
The x-coordinate position of the top-left corner of the tile |
y |
number |
<optional> |
0
|
The y-coordinate position of the top-left corner of the tile |
z |
number |
<optional> |
100
|
The z-index ordering of this tile relative to its siblings |
rotation |
number |
<optional> |
0
|
The angle of rotation for the tile between 0 and 360 |
alpha |
number |
<optional> |
1
|
The tile opacity |
tint |
string | null |
<optional> |
A color to tint the tile |
|
hidden |
boolean |
<optional> |
false
|
Is the tile currently hidden? |
locked |
boolean |
<optional> |
false
|
Is the tile currently locked? |
overhead |
boolean |
<optional> |
false
|
Is the tile an overhead tile? |
occlusion |
TileOcclusion |
<optional> |
The tile's occlusion settings |
|
video |
VideoData |
<optional> |
The tile's video settings |
|
flags |
object |
<optional> |
{}
|
An object of optional key/value flags |
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
object | Initial data used to construct the data object |
|
document |
BaseTile |
<optional> |
The embedded document to which this data object belongs |
Extends
- DocumentData