Device node
In this section, we declare the customizable attributes of the device node.
Attribute | Type | Description |
---|---|---|
x | float |
X position of the device on canvas |
y | float |
Y position of the device on canvas |
rotation | float |
Rotation of the device in degrees |
screenshot | URL |
A valid URL path to image to use for screen content |
Modifying the screenshot content
To modify the screenshot content, we expect an URL
path to the image. This means that you would need to:
1. Upload local images to online storage of your choice
2. Make sure that these images are public and our renderer has access to fetch them
You can use any Image CDN to achieve this and obtain public URLs
to your images.
Note: We are planning to add a files
endpoints to make it easier to upload and work with image files directly using the API.