TileData

data. TileData

The data schema for a Tile embedded document.

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

An image or video file path which this tile displays

width number <optional>
100

The pixel width of the tile

height number <optional>
100

The pixel height of the tile

scale number <optional>
1

The multiplicative scale factor for 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

hidden boolean <optional>
false

Is the tile currently hidden?

locked boolean <optional>
false

Is the tile currently locked?

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

Methods

_initializeSource()