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.
keyframesarray---An array of keyframes defining animation states and transitions for the video element.
videoElement.json
1 2 { 3 "id": "8ecf7475-2c6c-47f9-827b-a09c7913f4c0", 4 "type": "Image", 5 "start": 0, 6 "duration": 5, 7 "trackIndex": 0, 8 "x": -570.0335392757963, 9 "y": -170.90659033307685, 10 "blendMode": "normal", 11 "anchorX": 1302, 12 "anchorY": 2312, 13 "rotation": 0, 14 "scaleX": 0.23356401384083045, 15 "scaleY": 0.23356401384083045, 16 "alpha": 1, 17 "skewX": 0, 18 "skewY": 0, 19 "keyframes": [], 20 "externalUrl": "https://images.pexels.com/photos/30465303/pexels-photo-30465303.jpeg", 21 "ext": "jpeg" 22 } 23