Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

11.2 KB
Raw Blame
const CONFIG={"mode": "fr-assistant-widget", "demoTitle": "Ask assistant", "palette": ["#eef0e6", "#20271e", "#28ad61", "#ffffff", "#c8d1bf"], "font": "清晰无衬线文案;浅米绿背景、白色圆角面板与细绿输入框", "stages": [{"start": 0, "label": "助手标记"}, {"start": 1, "label": "短句说明嵌入能力"}, {"start": 5, "label": "代码片段"}, {"start": 8, "label": "按钮展开对话"}, {"start": 10.5, "label": "生成回答"}, {"start": 14, "label": "展开来源"}, {"start": 18, "label": "主张与按钮"}, {"start": 21, "label": "品牌收尾"}], "objects": ["星形助手标记", "嵌入代码卡", "悬浮入口", "对话面板", "来源列表"], "rules": ["先用一个小标记承接两句文案,再切入代码卡与真实使用过程。", "按钮展开后保持输入框、回答和来源的层级;倾斜镜头只用于突出当前操作。", "来源列表按行高亮,与光标移动同步;操作结束再回到简短主张。"], "transfer": ["替换助手品牌、用户问题与资料来源;保留入口→提问→回答→查来源的因果链。", "一次只展示一个短问题,回答控制在4–6行,资料来源保留三项左右。"], "unknown": ["未恢复原页面透视矩阵、细字体和答案逐字输出时间。", "HTML为按规则编写的机制示例,未进行fresh agent完整复刻验证。"], "measureTexts": ["Ask assistant", "Docs", "Knowledge base"], "coverTime": 11.5, "boardTime": 11.5, "labels": ["助手标记", "短句说明嵌入能力", "代码片段", "按钮展开对话", "生成回答", "展开来源", "主张与按钮", "品牌收尾"], "brand": "Mintlify", "accent": "#28ad61", "creativeSummary": "用一个轻量入口连接提问、回答和资料来源,让助手功能自然嵌入现有页面。", "guidePlan": {"intro": "用一个轻量入口连接提问、回答和资料来源,让助手功能自然嵌入现有页面。", "sections": [{"title": "先交代入口,再演示操作", "text": ["米绿背景上保留小尺度助手标记,文字从标记两侧接续。代码卡只作安装能力的短说明,避免占据整段。", "按钮和输入框沿用相同圆角,绿色只标记交互焦点。"], "reference": 1}, {"title": "一个按钮展开成对话面板", "text": ["先拉开容器,再出现建议问题和输入框;提问提交后留出回答区。镜头靠近面板时保持阅读方向。"], "clip": [7.8, 11.5]}, {"title": "答案之后给出可展开的来源", "text": ["来源收在同一组列表里,光标依次移动时只高亮当前行。完成演示后收回入口,留下品牌。"], "clip": [14, 16.8]}, {"title": "替换场景内容", "text": ["用户问题、回答与来源应互相对应。迁移到其他产品时,保留单入口和完整问答链。"], "timeline": true}]}, "translations": {"en": {"templateName": "Embedded assistant", "summary": "Expand a compact assistant button into a question, answer and source browsing flow.", "styleDescription": "Pale green background, white rounded panels and fine green focus outlines.", "reviewFocus": "Keep the question, answer and sources causally connected."}}, "evidenceReview": {"sampleCount": 24, "fullOverviewReviewed": true, "ocrReviewed": true, "note": "查看prepared完整概览与OCR索引;长片为代表帧审阅,非逐帧恢复。"}, "templateId": "V394", "name": "Mintlify Widget — an embedded agent that supports your users anywhere", "duration": 22.68, "initialTime": 11.5, "sourceCanvas": {"width": 1920, "height": 1080}, "actionRange": [1, 10.5]};
const DATA={"tracks": [{"id": "text-0.center", "target": "text-0", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[7.28, 10.4], [18.72, 20.28]], "samples": [[7.28, [996.2790660930234, 562.5000009147041]], [7.8, [999.0697645714285, 541.4999994542472]], [8.32, [1067.4418598232558, 609.7441860330039]], [8.84, [1729.9438654943901, 505.7898960859714]], [9.36, [1731.4507298212138, 567.5237804109498]], [9.88, [1726.4213421713937, 618.8188284433335]], [10.4, [1761.6000062542669, 755.1999970379404]], [18.72, [1145.5813958372091, 635.0000001369344]], [19.24, [1012.0000041714286, 539.9999996]], [19.76, [1012.0000041714286, 539.9999996]], [20.28, [1066.0465090232558, 532.9999996981201]]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.height", "target": "text-0", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[7.28, 10.4], [18.72, 20.28]], "samples": [[7.28, 59.0], [7.8, 50.999999999999886], [8.32, 47.488372802734375], [8.84, 164.3624725341798], [9.36, 177.96214294433588], [9.88, 183.6475067138672], [10.4, 198.40000915527344], [18.72, 48.0], [19.24, 71.99999999999994], [19.76, 71.99999999999994], [20.28, 56.0]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.text", "target": "text-0", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[7.28, 10.4], [18.72, 20.28]], "samples": [[7.28, "Ask assistant"], [10.4, "[ Ask assistant"], [18.72, "Ask assistant"], [19.24, "[• Ask assistant"], [19.76, "•• Ask assistant"], [20.28, "Ask assistant"]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.width", "target": "text-0", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[7.28, 10.4], [18.72, 20.28]], "samples": [[7.28, 440.93023681640625], [7.8, 401.8604736328125], [8.32, 348.8371887207031], [8.84, 321.98876953125], [9.36, 314.9849243164065], [9.88, 313.6000061035156], [10.4, 320.0000305175781], [18.72, 365.58139038085926], [19.24, 584.0], [19.76, 584.0], [20.28, 468.83721923828125]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.center", "target": "text-1", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[14.04, 16.64]], "samples": [[14.04, [612.5581352651164, 735.4186051891745]], [14.56, [620.9302330166113, 771.5697675544563]], [16.12, [619.5348795906978, 771.5697672594398]], [16.64, [580.4651173156146, 771.5697675544563]]], "maxCompressionErrorVsObservations": 1.8604666737542175, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.height", "target": "text-1", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[14.04, 16.64]], "samples": [[14.04, 53.162790298461914], [16.64, 53.13953399658203]], "maxCompressionErrorVsObservations": 0.018605041503903408, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.text", "target": "text-1", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[14.04, 16.64]], "samples": [[14.04, "Knowledge base"], [16.64, "M Knowledge base"]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.width", "target": "text-1", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[14.04, 16.64]], "samples": [[14.04, 426.97674560546875], [14.56, 410.2325439453125], [15.6, 415.8139343261719], [16.12, 413.02325439453125], [16.64, 491.16278076171875]], "maxCompressionErrorVsObservations": 1.52587890625e-05, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.center", "target": "text-2", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[14.04, 16.64]], "samples": [[14.04, [443.72092860465114, 538.5000008514007]], [14.56, [473.0232569534884, 541.3953487441861]], [16.64, [468.8372105903575, 541.3953492711287]]], "maxCompressionErrorVsObservations": 0.6976743727383905, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.height", "target": "text-2", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[14.04, 16.64]], "samples": [[14.04, 45.0], [16.64, 46.070072174072266]], "maxCompressionErrorVsObservations": 0.5628532409669091, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.text", "target": "text-2", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[14.04, 16.64]], "samples": [[14.04, "= Docs"], [14.56, "Docs"], [16.64, "Docs"]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.width", "target": "text-2", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[14.04, 16.64]], "samples": [[14.04, 195.34883117675776], [14.56, 136.7441864013672], [16.64, 145.5465698242188]], "maxCompressionErrorVsObservations": 1.5631332397460653, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}]};