Image Stack Layer Type
A layer in an image stack.
There are two types of image stack layers. Embedded layers are the default and contain the image set for the layer. Referenced layers contain a reference to an image set in the asset catalog.
Extension
.imagestacklayer
Folder Contents
An image set for the layer for embedded types.
A Contents.json
for referenced types.
Contents.json File
Optional for embedded image stack layers and contains metadata (Table 20-1).
Required for referenced image and contains the location of the referenced image stack inside the asset catalog.
Key |
Type |
Description |
---|---|---|
|
Dictionary |
Metadata for the author and format version of the asset catalog. |
|
String |
Use your bundle ID. |
|
Number |
The format version of the asset catalog. Use |
|
Dictionary |
Properties for an image stack layer. |
|
Dictionary |
The location of the referenced image set for the image stack layer. |
|
String |
The type of asset pointed to by the reference. Must be |
|
String |
The fully qualified name of the image set. For more information, see Unique Asset Names. |
|
String |
The kind of content reference. Must be |
|
Dictionary |
The size for the image stack layer. Defaults to the size of the image stack canvas if the tag is not included. |
|
Number |
The width of the image stack layer in pixels. |
|
Number |
The height of the image stack layer in pixels. |
|
Dictionary |
The position of the center of the image stack layer image on the image stack canvas. Defaults to the center of the image stack canvas if the tag is not included. The coordinate is in pixels from the top-left edge of the image stack canvas. |
|
Number |
The horizontal position of the center of the image stack layer. |
|
Number |
The vertical position of the image stack layer. |
Sample Contents.json Files
Simple Image Stack Layer
{
"info" : {
"author" : "com.developerName",
"version" : 1
},
}
Image Stack Layer with Content Reference
{
"properties" : {
"content-reference : {
"type" : "image-set",
"name" : "Llamas\/Front",
"matching-style" : "fully-qualified-name"
}
},
"info" : {
"author" : "com.developerName",
"version" : 1
},
}
Image Stack Layer with Size and Center
{
"properties" : {
"frame-size : {
"width" : 364,
"height" : 548
},
"frame-center : {
"x" : 1500,
"y" : 700
}
},
"info" : {
"author" : "com.developerName",
"version" : 1
},
}
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2018-04-09