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.

17.6 KB
Raw Blame
const CONFIG={"mode": "w3-canvas", "demoTitle": "Bring code to the canvas", "brand": "Figma", "palette": ["#161616", "#f6f6ef", "#96d93c", "#8d56d7", "#f56c3d"], "accent": "#96d93c", "font": "无衬线中粗主标题;细边框界面与小号功能文字", "stages": [{"start": 0, "label": "主张"}, {"start": 4, "label": "MCP 输入"}, {"start": 7, "label": "代码层进入"}, {"start": 10, "label": "协作指针"}, {"start": 13, "label": "多帧探索"}, {"start": 18, "label": "选择结果"}, {"start": 22, "label": "更新代码层"}, {"start": 27, "label": "多场景结果"}, {"start": 31, "label": "总结"}, {"start": 33, "label": "品牌"}], "objects": ["代码层", "设计画布", "协作指针", "版本变体", "更新按钮"], "rules": ["代码生成的界面作为画布对象,与设计变体并置比较;更新后仍是同一代码层。", "多人光标先出现,再对局部结果操作。"], "transfer": ["可迁移原型工具;保留代码↔设计的迭代关系。"], "unknown": ["阶段时间来自代表帧推断,尚未恢复原工程关键帧及缓动。", "示例仅重写关键关系,不包含原产品功能、精确字体和完整内部素材;未进行 fresh agent 复刻。", "未分析音轨,声音与动作同步关系未知。"], "measureTexts": ["{} Pickup App", "BROWSE", "Buy now"], "labels": ["Bring code to the canvas"], "coverTime": 7, "mechanism": "canvas", "translations": {"en": {"templateName": "Figma — Bring code to the canvas", "summary": "Selected design objects remain identifiable through contextual edits and collaboration.", "styleDescription": "Source-specific typography, palette and composition; exact font files are not recovered.", "reviewFocus": "Maintain selection, context and visible before-after changes. HTML is an authored explanation, not a full reconstruction."}}, "evidenceReview": {"status": "inferred", "sampledOverview": "worker3-review/V276.jpg", "sampleCount": 12, "note": "12-frame time coverage reviewed for all sources; full selected overview reviewed only where fullOverviewReviewed is true.", "fullOverviewReviewed": false, "ocrReviewed": true}, "creativeSummary": "代码生成的界面作为画布对象,与设计变体并置比较;更新后仍是同一代码层。", "guideChapters": {"overview": "Bring code to the canvas · 动作语言", "composition": "构图与对象关系", "motion": "状态变化与动作依赖", "rhythm": "段落节奏与场景交接", "transfer": "主题替换与制作约束"}, "guidePlan": {"intro": "代码生成的界面进入设计画布,经过协作与比较,再更新回同一个代码层。把实现和设计演成可往返的工作。", "sections": [{"title": "代码层进入画布后保持身份", "text": ["输入之后让代码生成的界面成为可选择对象,与其他设计变体并排。标题、边框或图层名称持续可见,更新时不要换成一张没有来路的新画面。"], "clip": [4, 13]}, {"title": "先比较变体,再更新选中结果", "text": ["协作指针进入后展开多帧探索,选择一个结果,再执行更新。更新完成后展示多场景应用,说明这次变化已进入同一套产品。"], "demo": "storyboard"}, {"title": "工具框架轻,选择反馈清楚", "text": ["深底外层承接浅色画布,无衬线标题与细界面文字分层。绿紫橙可以服务不同变体,但选中边框保持同一种视觉语言;屏幕并置时统一基线和间距。"], "palette": true}, {"title": "迁移到其他原型流程", "text": ["更换代码入口、画布工具和产品内容。保留“导入实现→画布比较→选择→更新实现”的闭环,指针和更新动作始终落在具体对象上。"]}]}, "templateId": "V276", "name": "Figma Code Layers", "duration": 34.833333, "initialTime": 7, "sourceCanvas": {"width": 1920, "height": 1080}, "actionRange": [4, 13]};
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, 7], [9, 10], [11, 11], [12, 12], [14.5, 14.5], [15.5, 17], [18, 21.5], [22.5, 30]], "samples": [[7, [820.4957008746101, 17.31379420575929]], [9, [849.7674429169435, 121.41860456258425]], [10, [849.767440011628, 120.0000001395349]], [11, [1076.0023840642239, 116.30599075750273]], [12, [1511.1627885142234, 909.7674414734342]], [14.5, [990.6976755813953, 294.4186045348837]], [15.5, [848.3720942790699, 177.32558133451596]], [16, [848.3720942790699, 177.32558133451596]], [16.5, [837.2093035813953, 160.4651161627907]], [17, [150.69767581395345, 177.00000029331312]], [18, [650.2325563953489, 154.99999968326017]], [19.5, [650.2325563953489, 154.99999968326017]], [20, [721.3953469361113, 121.39534791583102]], [20.5, [817.6521308291709, 89.85957686747071]], [21, [821.8604663322259, 89.12790701239214]], [21.5, [816.2790680651162, 86.51162801860468]], [22.5, [986.5116318634005, 227.2209297887918]], [23, [541.395346883721, 92.09302288372092]], [23.5, [1105.1162778139533, 177.32558109023694]], [24, [812.0455693534781, 129.20582110146563]], [24.5, [431.16279260465114, 80.93023293023256]], [25, [842.7906973056478, 87.98837216344354]], [25.5, [842.8893073515668, 91.64080555498157]], [26, [545.6362352818672, 130.06993873613823]], [26.5, [251.16279220465117, 80.93023244651165]], [27, [842.8741008907982, 91.53637714563531]], [27.5, [545.6259737464798, 130.01233299133935]], [28, [842.8741008907982, 91.53637714563531]], [28.5, [842.8741008907982, 130.01995523349723]], [29.5, [842.8753837045444, 130.01995523349723]], [30, [842.8753837045444, 91.55583039406244]]], "maxCompressionErrorVsObservations": 0.7093022115246725, "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, 7], [9, 10], [11, 11], [12, 12], [14.5, 14.5], [15.5, 17], [18, 21.5], [22.5, 30]], "samples": [[7, 28.67918586730962], [9, 25.162791252136188], [10, 22.3255805969239], [11, 35.38801886229922], [12, 23.26001358032238], [14.5, 19.534883499145565], [15.5, 25.348837852477942], [16.5, 25.116279602050753], [17, 19.99999999999997], [18, 19.99999999999997], [19.5, 19.99999999999997], [20, 27.20464992523199], [21.5, 27.9069766998291], [22.5, 120.44185981014184], [23, 22.325580596923785], [23.5, 25.348836898803768], [24, 123.64623238029915], [24.5, 22.325580596923785], [25, 42.02325520763574], [25.5, 43.746726813863646], [26, 120.60499317617698], [26.5, 22.3255805969238], [27, 43.53786999517112], [27.5, 120.48978168657922], [28, 43.53786999517112], [28.5, 120.50502617089498], [29.5, 120.50502617089498], [30, 43.576776492025374]], "maxCompressionErrorVsObservations": 1.4186053276061443, "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, 7], [9, 10], [11, 11], [12, 12], [14.5, 14.5], [15.5, 17], [18, 21.5], [22.5, 30]], "samples": [[7, "{} Pickup App"], [9, "{} Pickup App"], [10, "{} Pickup App"], [11, "{} Pickup App\n{} Pickup App"], [12, "{} Pickup App"], [14.5, "{} Pickup App"], [15.5, "{} Pickup App"], [17, "{} Pickup App"], [18, "{} Pickup App"], [21.5, "{} Pickup App"], [22.5, "{} Pickup App\n{} Pickup App"], [23, "{} Pickup App"], [24, "{} Pickup App\n{} Pickup App"], [24.5, "{} Pickup App"], [25, "{} Pickup App\n{} Pickup App"], [26.5, "{} Pickup App"], [27, "{} Pickup App\n{} Pickup App"], [28.5, "{} Pickup App\n{} Pickup App\n{} Pickup App"], [30, "{} Pickup App\n{} Pickup App"]], "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, 7], [9, 10], [11, 11], [12, 12], [14.5, 14.5], [15.5, 17], [18, 21.5], [22.5, 30]], "samples": [[7, 185.12168884277344], [9, 147.90696716308594], [10, 147.90696716308594], [11, 600.3768494576466], [12, 136.8936309814453], [14.5, 139.53488159179688], [15.5, 150.6976776123048], [16.5, 150.6976776123047], [17, 139.53488159179688], [18, 139.53488159179688], [19.5, 139.53488159179688], [20.5, 168.51527404785156], [21.5, 170.23255920410156], [22.5, 745.1162749363984], [23, 145.11627197265625], [23.5, 150.69767761230446], [24, 737.2858468808415], [24.5, 147.906967163086], [25, 1322.790703758484], [25.5, 1334.150707906136], [26, 739.644563766737], [26.5, 150.69767761230472], [27, 1334.1202949845988], [27.5, 739.624040695962], [28, 1334.1202949845988], [30, 1334.1228606120912]], "maxCompressionErrorVsObservations": 0.858642578125, "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": [[2.5, 3.5], [15, 21.5], [22.5, 30]], "samples": [[2.5, [939.0697698372092, 442.3953493979773]], [3, [937.6744210232558, 329.3023259763634]], [3.5, [937.6744204534882, 326.5116275365647]], [15, [962.7906982677482, 242.7906975361921]], [15.5, [957.2093028880827, 239.99999987924411]], [16, [957.2093028874241, 239.99999987621652]], [16.5, [946.0465120549102, 223.2558136149836]], [17, [971.1627916744186, 544.186046860465]], [17.5, [408.850242825871, 606.9331658951718]], [18, [397.702455152044, 592.9386892442622]], [19.5, [397.70169393240644, 592.9317333893822]], [20, [57.20930298282524, 1022.7906975322533]], [20.5, [944.6511633653415, 160.46511614371443]], [21, [948.8372101877039, 159.0697673132609]], [21.5, [944.6511634895444, 156.2790694350117]], [22.5, [798.1395355224022, 244.186046375837]], [23, [650.232559255162, 159.0697672972051]], [23.5, [626.5116269860466, 145.11627923720928]], [24, [626.5116288275603, 145.1162789004307]], [24.5, [538.6046518009723, 145.11627891153535]], [25, [954.4576690276797, 152.2287856686673]], [25.5, [953.0531332025423, 154.9094427991143]], [30, [953.0561849603616, 154.9106868671791]]], "maxCompressionErrorVsObservations": 1.409573889265289, "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": [[2.5, 3.5], [15, 21.5], [22.5, 30]], "samples": [[2.5, 159.2093023918011], [3.5, 161.8604648183927], [15, 28.11618995666504], [15.5, 30.88340568542486], [17, 27.9069766998291], [17.5, 784.2732033000796], [19.5, 784.3690897764029], [20, 25.4844970703125], [21, 34.79677963256836], [21.5, 33.85098266601554], [22.5, 25.639667510986243], [23, 28.316442489624023], [24.5, 28.079969406127844], [25, 42.59497518153552], [25.5, 49.14522670575414], [30, 49.35141014206371]], "maxCompressionErrorVsObservations": 1.3255812458019705, "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": [[2.5, 3.5], [15, 21.5], [22.5, 30]], "samples": [[2.5, "Browse\nBrowse local listings"], [3.5, "Browse\nBrowse local listings"], [15, "BROWSE"], [17.5, "BROWSE\nBROWSE"], [20, "BROWSE"], [21.5, "BROWSE"], [22.5, "BROWSE"], [25, "BROWSE\nBROWSE"], [30, "BROWSE\nBROWSE"]], "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": [[2.5, 3.5], [15, 21.5], [22.5, 30]], "samples": [[2.5, 332.093017578125], [3.5, 334.88372802734375], [15, 94.9450454711914], [15.5, 90.18721008300781], [16.5, 89.95754241943371], [17, 83.7209243774414], [17.5, 789.7935092864849], [18, 795.4049117571675], [19.5, 795.4033824385547], [20, 92.19276428222658], [20.5, 103.4765396118164], [21, 106.452392578125], [21.5, 103.37284088134766], [22.5, 89.44811248779297], [24, 92.15025329589844], [24.5, 89.35623931884766], [25, 1267.1984681198724], [25.5, 1275.8590524147926], [27, 1273.0419391414748], [27.5, 1275.5740678237298], [30, 1275.9187295394117]], "maxCompressionErrorVsObservations": 1.878075515545106, "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, 15], [17, 22], [24.5, 30]], "samples": [[14, [574.8837192558142, 697.6744186046512]], [14.5, [369.76744221639797, 89.34883711643697]], [15, [526.0465125116278, 13.95348827906976]], [17, [816.2790704954677, 962.7906976499276]], [17.5, [608.3889064307074, 706.0000000941471]], [18, [599.9457657358313, 692.031965555393]], [19.5, [601.3953501444759, 692.0000000545267]], [20, [668.3720931139385, 718.8139533243461]], [20.5, [757.6414503591992, 659.8831074493737]], [21, [521.860464783788, 694.8837210232559]], [21.5, [759.0814599679038, 721.3953488139535]], [22, [546.9767452093023, 512.0348835536722]], [24.5, [1234.8837219077104, 113.02325567965607]], [25, [1512.5581409302326, 759.0116279083699]], [25.5, [1453.953489, 760.2209302498886]], [26, [1544.6511636744185, 759.0697673488371]], [26.5, [1530.6976753953488, 757.8488371529367]], [27, [1534.88372, 746.5116280465116]], [27.5, [1541.8604642325581, 757.848837193588]], [30, [1541.8604657790697, 757.8488371878204]]], "maxCompressionErrorVsObservations": 1.395350041869733, "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, 15], [17, 22], [24.5, 30]], "samples": [[14, 5.581394672393799], [14.5, 117.30232565255582], [15, 16.7441864013672], [17, 100.46511602680357], [17.5, 223.99999989072353], [19.5, 223.9999998558401], [20, 254.37209295209504], [20.5, 114.65238982820131], [21, 178.60465151764652], [21.5, 237.20930291299533], [22, 14.069767475128174], [24.5, 14.267413139343233], [25, 28.023255348205566], [25.5, 14.44186019897461], [26, 16.744186401367188], [27, 13.95348834991455], [30, 14.30232572555542]], "maxCompressionErrorVsObservations": 1.0874590873717125, "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, 15], [17, 22], [24.5, 30]], "samples": [[14, "buy now"], [14.5, "Buy now\nBuy now"], [15, "Buy now"], [17, "Buy now\nBuy now"], [17.5, "Buy now\nBuy now\nBuy now"], [20, "Buy now\nBuy now\nBuy now fore"], [20.5, "Buy now\nBuy now"], [21.5, "Buy now\nBuy now\nBuy now"], [22, "Buy now"], [24.5, "Buy now"], [30, "Buy now"]], "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, 15], [17, 22], [24.5, 30]], "samples": [[14, 33.48836898803711], [14.5, 678.1395311710376], [15, 53.02325439453125], [17, 1174.8837198222], [17.5, 1160.9638549484937], [19.5, 1163.720928422542], [20, 1286.5116261391631], [20.5, 1403.7868670163514], [21, 932.0930219716172], [21.5, 1412.1164042700816], [22, 61.395347595214844], [24.5, 58.678596496581804], [25, 111.6279067993164], [25.5, 50.2325553894043], [26.5, 58.60464859008789], [28, 50.55352783203125], [30, 53.02325439453125]], "maxCompressionErrorVsObservations": 1.852294921875, "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."}]};