Assets
Overview
This page is the entry description for assets and Runtime resources. Public JSON uses camelCase.
It does not cover view internal field details, nor the specifics of layout / placement / style / props. For those, see View, Layout, Placement, Style, Props.
Asset Types
Entries in root.json.assets and variants[].assets may be path strings or inline asset objects. Paths resolve relative to the directory of the current root.json, and relative paths inside an inline object resolve against that same directory.
Document assets compose the current document:
type |
document |
Description |
|---|---|---|
|
Constant tree, referenced by |
|
|
Image resources of the current document, referenced by |
|
|
Mountable page root node |
|
|
Reusable template root node |
|
|
Reusable interaction events, animations, and state styles |
|
|
Named style collection within the document, referenced by |
|
|
Switching state machine for a group of screens in one document |
Runtime global resources are registered or loaded through the Runtime API:
type |
document |
Description |
|---|---|---|
|
Global font resource collection, referenced by |
|
|
Global image resource collection, referenced by |
|
|
Global theme overlay, selected by |
Resource Boundaries
constant,imageSet,viewScreen,viewTemplate,interactionTemplate,styleSet,screenFloware the document asset types.An ordinary view node uses
typefor its control type.Image and font resources always use
imageSet/fontSet, even for a single resource.fontSetandthemeare not documentassetstypes; register or load them through the Runtime global API.