displayName |
string
|
<optional>
|
'My template'
|
The display name of the template
|
sortID |
number
|
<optional>
|
0
|
The sort number of the template for rendering priority
|
authorID |
string
|
<optional>
|
''
|
The user ID of the person who exported the template (prevents sort ID collisions)
|
url |
string
|
<optional>
|
''
|
The URL to the source image
|
file |
File
|
<optional>
|
null
|
The template file (pre-processed File or processed bitmap)
|
coords |
Array.<number, number, number, number>
|
<optional>
|
null
|
The coordinates of the top left corner as (tileX, tileY, pixelX, pixelY)
|
chunked |
Object
|
<optional>
|
null
|
The affected chunks of the template, and their template for each chunk as a bitmap
|
chunked32 |
Object
|
<optional>
|
{}
|
The affected chunks of the template, and their template for each chunk as a Uint32Array
|
tileSize |
number
|
<optional>
|
1000
|
The size of a tile in pixels (assumes square tiles)
|
pixelCount |
Object
|
<optional>
|
{total:0, colors:Map}
|
Total number of pixels in the template (calculated automatically during processing)
|
scriptName |
string
|
<optional>
|
'Template'
|
The name of the userscript
|