Use this file to discover all available pages before exploring further.
Elements are the building blocks of your video content, including text, images, videos, shapes, and more. Consider the order of elements in your clip. Elements added later will appear on top of earlier elements.
The Shape element allows you to add basic geometric shapes to your Clip. You can customize their appearance with different colors or gradients, making them useful for creating backgrounds, dividers, or other visual elements.
Property
Type
Default
Description
shapeId
string
-
The shape ID of the shape element.
fill
color
-
The color or gradient of the shape.
import { Shape } from "@blendduck/node-sdk";const shapeElement = new Shape();shapeElement.shapeId = 'rect';shapeElement.fill = { type: "color", color: "#ff0000" };
The Group element acts as a container for other elements. By grouping multiple elements together, you can apply transformationsto the group as a whole, allowing for better organization and control over complex layouts.
Property
Type
Default
Description
children
array
[]
The array of elements that form the group.
import { Group, Text, Image } from "@blendduck/node-sdk";const groupElement = new Group();const textElement = new Text();textElement.text = "Grouped Text";const imageElement = new Image();imageElement.url = "https://example.com/image.jpg";groupElement.children = [textElement, imageElement];
The Widget element allows for embedding custom-built components. This flexible element type is ideal for dynamic data visualizations, charts, or other resuable blocks in your video.
Property
Type
Default
Description
scope
string
-
The widget package scope identifier.
widgetId
string
-
The widget ID in the scope.
play
object
-
The widget AudioPlay
import { Widget } from "@blendduck/node-sdk";const widget = new Widget({ scope: 'core', widgetId: 'counter' });