| Proprietà | Tipo | Richiesto | Esempio | Intervallo di valori | Descrizione |
|---|---|---|---|---|---|
| cues | array | true | - | - | Un array di oggetti indizio che rappresentano il contenuto del testo, i tempi e i relativi metadati. |
| textStyle | object | true | - | - | The base text style applied to the caption, including font, color, shadow, and stroke settings. Contains the same properties as the Text element's textStyle object. |
| letterCase | string | true | - | uppercase, lowercase, Title Case, none | La trasformazione del caso delle lettere per il testo della didascalia. |
| align | string | true | - | left, center, right, justify | L'allineamento del testo della didascalia. |
| bgColor | string | true | - | - | Il colore di sfondo per la didascalia. |
| bgAlpha | number | true | - | 0 - 1 | Il livello di trasparenza dello sfondo della didascalia. 1 rappresenta opacità totale e 0 rappresenta trasparenza totale. |
| bgRadius | number | true | - | - | Il raggio degli angoli dello sfondo della didascalia, in pixel. |
| focus | object | false | - | - | Configurazione facoltativa per il testo focalizzato/enfatizzato, inclusi stile, sfondo e impostazioni di animazione. |
| inTween | object | false | - | - | L'animazione tween applicata alla didascalia quando appare. |
| outTween | object | false | - | - | L'animazione tween applicata alla didascalia quando scompare. |
| displayMode | string | true | - | - | La modalità di visualizzazione della didascalia, come "Frase Completa" o "Parola per Parola". |
| lineNum | number | true | - | - | Il numero di righe in cui è divisa la didascalia. |
| lineMaxWordNum | number | true | - | - | Il numero massimo di parole per riga nella didascalia. |
L'oggetto focus contiene impostazioni per il testo enfatizzato o focalizzato all'interno della didascalia. Tutte le proprietà sono facoltative.
| Proprietà | Tipo | Richiesto | Esempio | Intervallo di valori | Descrizione |
|---|---|---|---|---|---|
| style | object | false | - | - | The text style applied to focused text. Contains the same properties as the Text element's textStyle object. |
| bgColor | string | false | - | - | Il colore di sfondo per il testo focalizzato. |
| bgAlpha | number | false | - | 0 - 1 | Il livello di trasparenza dello sfondo del testo focalizzato. 1 rappresenta opacità totale e 0 rappresenta trasparenza totale. |
| bgRadius | number | false | - | - | Il raggio degli angoli dello sfondo del testo focalizzato, in pixel. |
| inTween | object | false | - | - | L'animazione tween applicata al testo focalizzato quando appare. |
| outTween | object | false | - | - | L'animazione tween applicata al testo focalizzato quando scompare. |
| letterCase | string | false | - | uppercase, lowercase, Title Case, none | La trasformazione del caso delle lettere per il testo focalizzato. |
| Proprietà | Tipo | Richiesto | Esempio | Intervallo di valori | Descrizione |
|---|---|---|---|---|---|
| id | string | true | - | - | Un identificatore unico per l'indizio. |
| start | number | true | - | - | Il tempo di inizio dell'indizio, in secondi. |
| end | number | true | - | - | Il tempo di fine dell'indizio, in secondi. |
| content | string | true | - | - | Il contenuto testuale dell'indizio. |
Nota: L'array
cuesdeve contenere almeno un oggetto indizio. L'oggettotextStylee l'oggettofocus.style(se fornito) contengono le stesse proprietà dell'oggettotextStyledell'elemento Testo, inclusi fontFamily, fontSize, fill (colore), align, lineHeight, letterSpacing, wordSpacing, fontWeight, fontStyle, textShadow, underline, strikethrough, isBold, isItalic, shadowEnabled, shadowColor, shadowBlur, shadowAlpha, shadowAngle, shadowDistance, stroke e strokeWidth.
{
"id": "057c61ba-3365-4624-856f-992e1b8a419a",
"type": "Caption",
"start": 1,
"duration": 9,
"trackIndex": 0,
"x": 0,
"y": 470,
"blendMode": "normal",
"anchorX": 0,
"anchorY": 0,
"rotation": 0,
"scaleX": 1,
"scaleY": 1,
"alpha": 1,
"skewX": 0,
"skewY": 0,
"keyframes": [],
"cues": [
{
"start": 1,
"end": 4,
"content": "Winters come after Autumn.",
"id": "dc0719f3-12c3-4e44-b127-e4f0b2ba4574"
},
{
"start": 5,
"end": 10,
"content": "Often the weather goes too cold in winter.\nYou should cover yourself with warm clothes.",
"id": "7f243bd6-1283-4957-b8b0-9488eec46f40"
}
],
"textStyle": {
"fill": "#ffffff",
"fontSize": 28,
"fontFamily": "Arial",
"align": "left",
"lineHeight": 0,
"letterSpacing": 0,
"isBold": true,
"isItalic": false,
"shadowEnabled": true,
"shadowColor": "#000000",
"shadowBlur": 4,
"shadowAlpha": 0.75,
"shadowAngle": 1.2,
"shadowDistance": 3,
"stroke": "#000000",
"strokeWidth": 2
},
"letterCase": "Title Case",
"align": "center",
"bgColor": "#a3e635",
"bgAlpha": 0,
"bgRadius": 10,
"focus": {
"style": {
"fill": "#f2c9ff",
"fontSize": 28,
"fontFamily": "Arial",
"align": "left",
"lineHeight": 0,
"letterSpacing": 0,
"isBold": true,
"isItalic": false,
"shadowEnabled": false,
"shadowColor": "",
"shadowBlur": 0,
"shadowAlpha": 1,
"shadowAngle": 0,
"shadowDistance": 0,
"stroke": "#000000",
"strokeWidth": 2
},
"bgColor": "#dd38f4",
"bgAlpha": 1,
"bgRadius": 10,
"inTween": {
"name": "Fade In",
"duration": 1,
"from": { "alpha": 0 },
"to": { "alpha": 1 },
"cp1": { "x": 0, "y": 0 },
"cp2": { "x": 1, "y": 1 }
},
"letterCase": "Title Case"
},
"inTween": {
"name": "Fade In",
"duration": 1,
"from": { "alpha": 0 },
"to": { "alpha": 1 },
"cp1": { "x": 0, "y": 0 },
"cp2": { "x": 1, "y": 1 }
},
"displayMode": "Full Sentence",
"lineNum": 2,
"lineMaxWordNum": 10
}