Elemento de Legenda

PropriedadeTipoNecessárioExemploFaixa de ValoresDescrição
cuesarraytrue--Um array de objetos de indicação representando o conteúdo do texto, cronogramas e metadados relacionados.
textStyleobjecttrue--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.
letterCasestringtrue-uppercase, lowercase, Title Case, noneA transformação de caixa de letras para o texto da legenda.
alignstringtrue-left, center, right, justifyO alinhamento do texto da legenda.
bgColorstringtrue--A cor de fundo para a legenda.
bgAlphanumbertrue-0 - 1O nível de transparência do fundo da legenda. 1 representa opacidade total, e 0 representa transparência total.
bgRadiusnumbertrue--O raio dos cantos do fundo da legenda, em pixels.
focusobjectfalse--Configuração opcional para texto focado/enfatizado, incluindo estilo, fundo e configurações de animação.
inTweenobjectfalse--A animação tween aplicada à legenda quando ela aparece.
outTweenobjectfalse--A animação tween aplicada à legenda quando ela desaparece.
displayModestringtrue--O modo de exibição da legenda, como "Frase Completa" ou "Palavra por Palavra".
lineNumnumbertrue--O número de linhas em que a legenda é dividida.
lineMaxWordNumnumbertrue--O número máximo de palavras por linha na legenda.

Configuração de Foco

O objeto focus contém configurações para texto enfatizado ou focado dentro da legenda. Todas as propriedades são opcionais.

PropriedadeTipoNecessárioExemploFaixa de ValoresDescrição
styleobjectfalse--The text style applied to focused text. Contains the same properties as the Text element's textStyle object.
bgColorstringfalse--A cor de fundo para texto focado.
bgAlphanumberfalse-0 - 1O nível de transparência do fundo do texto focado. 1 representa opacidade total, e 0 representa transparência total.
bgRadiusnumberfalse--O raio dos cantos do fundo do texto focado, em pixels.
inTweenobjectfalse--A animação tween aplicada ao texto focado quando ele aparece.
outTweenobjectfalse--A animação tween aplicada ao texto focado quando ele desaparece.
letterCasestringfalse-uppercase, lowercase, Title Case, noneA transformação de caixa de letras para texto focado.

Indicação da Legenda

PropriedadeTipoNecessárioExemploFaixa de ValoresDescrição
idstringtrue--Um identificador único para a indicação.
startnumbertrue--O tempo de início da indicação, em segundos.
endnumbertrue--O tempo de fim da indicação, em segundos.
contentstringtrue--O conteúdo do texto da indicação.

Nota: O array cues deve conter pelo menos um objeto de indicação. O objeto textStyle e o objeto focus.style (se fornecido) contêm as mesmas propriedades que o objeto textStyle do elemento Texto, incluindo fontFamily, fontSize, fill (cor), align, lineHeight, letterSpacing, wordSpacing, fontWeight, fontStyle, textShadow, underline, strikethrough, isBold, isItalic, shadowEnabled, shadowColor, shadowBlur, shadowAlpha, shadowAngle, shadowDistance, stroke, e strokeWidth.

captionElement.json

{
    "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
  }