องค์ประกอบ Caption

ทรัพย์สินประเภทจำเป็นตัวอย่างช่วงค่าคำอธิบาย
cuesarraytrue--อาร์เรย์ของวัตถุสัญญาณที่แสดงถึงเนื้อหาข้อความ, เวลา, และข้อมูลเมตาที่เกี่ยวข้อง
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, noneการเปลี่ยนรูปแบบตัวอักษรสำหรับข้อความคำบรรยาย
alignstringtrue-left, center, right, justifyการจัดตำแหน่งข้อความของคำบรรยาย
bgColorstringtrue--สีพื้นหลังสำหรับคำบรรยาย
bgAlphanumbertrue-0 - 1ระดับความโปร่งใสของพื้นหลังคำบรรยาย 1 แทนความทึบเต็มที่ และ 0 แทนความโปร่งใสเต็มที่
bgRadiusnumbertrue--รัศมีมุมของพื้นหลังคำบรรยายในพิกเซล
focusobjectfalse--การกำหนดค่าแบบเลือกสำหรับข้อความที่มีจุดสนใจ/เน้น รวมถึงสไตล์, พื้นหลัง, และการตั้งค่าการเคลื่อนไหว
inTweenobjectfalse--การเคลื่อนไหวแบบ tween ที่ใช้กับคำบรรยายเมื่อปรากฏ
outTweenobjectfalse--การเคลื่อนไหวแบบ tween ที่ใช้กับคำบรรยายเมื่อหายไป
displayModestringtrue--โหมดการแสดงผลของคำบรรยาย เช่น "Full Sentence" หรือ "Word by Word"
lineNumnumbertrue--จำนวนบรรทัดที่คำบรรยายถูกแบ่งออก
lineMaxWordNumnumbertrue--จำนวนคำสูงสุดต่อบรรทัดในคำบรรยาย

การกำหนดค่า Focus

วัตถุ focus ประกอบด้วยการตั้งค่าสำหรับข้อความที่เน้นหรือมีจุดสนใจภายในคำบรรยาย คุณสมบัติทั้งหมดเป็นตัวเลือก

ทรัพย์สินประเภทจำเป็นตัวอย่างช่วงค่าคำอธิบาย
styleobjectfalse--The text style applied to focused text. Contains the same properties as the Text element's textStyle object.
bgColorstringfalse--สีพื้นหลังสำหรับข้อความที่มีจุดสนใจ
bgAlphanumberfalse-0 - 1ระดับความโปร่งใสของพื้นหลังข้อความที่มีจุดสนใจ 1 แทนความทึบเต็มที่ และ 0 แทนความโปร่งใสเต็มที่
bgRadiusnumberfalse--รัศมีมุมของพื้นหลังข้อความที่มีจุดสนใจในพิกเซล
inTweenobjectfalse--การเคลื่อนไหวแบบ tween ที่ใช้กับข้อความที่มีจุดสนใจเมื่อปรากฏ
outTweenobjectfalse--การเคลื่อนไหวแบบ tween ที่ใช้กับข้อความที่มีจุดสนใจเมื่อหายไป
letterCasestringfalse-uppercase, lowercase, Title Case, noneการเปลี่ยนรูปแบบตัวอักษรสำหรับข้อความที่มีจุดสนใจ

สัญญาณคำบรรยาย

ทรัพย์สินประเภทจำเป็นตัวอย่างช่วงค่าคำอธิบาย
idstringtrue--ตัวระบุที่ไม่ซ้ำสำหรับสัญญาณ
startnumbertrue--เวลาเริ่มต้นของสัญญาณในวินาที
endnumbertrue--เวลาสิ้นสุดของสัญญาณในวินาที
contentstringtrue--เนื้อหาข้อความของสัญญาณ

หมายเหตุ: อาร์เรย์ cues จะต้องมีวัตถุสัญญาณอย่างน้อยหนึ่งตัว วัตถุ textStyle และวัตถุ focus.style (ถ้ามี) จะมีคุณสมบัติเหมือนกับวัตถุ textStyle ขององค์ประกอบ Text รวมถึง fontFamily, fontSize, fill (สี), align, lineHeight, letterSpacing, wordSpacing, fontWeight, fontStyle, textShadow, underline, strikethrough, isBold, isItalic, shadowEnabled, shadowColor, shadowBlur, shadowAlpha, shadowAngle, shadowDistance, stroke, และ 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
  }