View Element

When an element has a type of Video, Image, Text, Shape, or Caption, it is considered a view element.

A view element includes the following common parameters:

PropTypeRequiredExampleValue RangeDescription
xnumbertrue219.7891655835374-The horizontal position of the element on the canvas, in pixels.
ynumbertrue118.11410279159713-The vertical position of the element on the canvas, in pixels.
anchorXnumbertrue--The x-coordinate of the anchor point relative to the element, in pixels.
anchorYnumbertrue--The y-coordinate of the anchor point relative to the element, in pixels.
rotationnumbertrue-0.4599415612411819>= 0The rotation angle of the element, in degrees (clockwise).
scaleXnumbertrue1> 0The horizontal scaling factor of the element. A value greater than 1 enlarges the element, while a value between 0 and 1 shrinks it.
scaleYnumbertrue1> 0The vertical scaling factor of the element. A value greater than 1 enlarges the element, while a value between 0 and 1 shrinks it.
skewXnumberfalse0>= 0The horizontal skew angle of the element, in degrees.
skewYnumberfalse0>= 0The vertical skew angle of the element, in degrees.
alphanumbertrue10 - 1The opacity of the element. A value of 1 means fully visible, while 0 means fully transparent.
keyframesarrayfalse--An array of keyframes defining animation states and transitions for the video element.
videoElement.json
1 2 { 3 "id": "bba95c7f-652b-4380-b166-6bece989f527", 4 "type": "Image", 5 "start": 0, 6 "duration": 5, 7 "trackIndex": 0, 8 "x": 0, 9 "y": 0, 10 "width": 3629, 11 "height": 5444, 12 "blendMode": "normal", 13 "anchorX": 1814.5, 14 "anchorY": 2722, 15 "rotation": 0, 16 "scaleX": 0.19838354151359294, 17 "scaleY": 0.19838354151359294, 18 "alpha": 1, 19 "skewX": 0, 20 "skewY": 0, 21 "hidden": false, 22 "locked": false, 23 "keyframes": [], 24 "externalUrl": "https://images.pexels.com/photos/33189512/pexels-photo-33189512.jpeg", 25 "ext": "jpeg" 26 } 27