SuperAPI AI 工具集

hyperframes-registry

通用与其它

查看项目

更新于 10-16 09:54

技能介绍

用途:安装并接入 HyperFrames 注册表中的可复用 block(区块)与 component(组件),适用于出现 hyperframes add、block、component 或 hyperframes.json 的场景,也用于发现注册表内容。

主要能力:block 是独立子合成,拥有自己的尺寸、时长与时间线,通过宿主合成中的 data-composition-src 引入;component 是效果片段,没有独立尺寸,直接粘贴进宿主合成的 HTML。安装后 CLI 会打印写入的文件与可粘贴片段。

用法:常用命令包括 hyperframes add data-chart(安装区块)、hyperframes add grain-overlay(安装组件)、hyperframes add shimmer-sweep --dir .(指定项目)、hyperframes add data-chart --json(机器可读输出)、hyperframes add data-chart --no-clipboard(跳过剪贴板,适用于 CI/无头环境)。区块默认安装到 compositions/<name>.html,组件默认安装到 compositions/components/<name>.html,路径可在 hyperframes.json 中配置。接入区块需补充 data-composition-id(须与区块内部 ID 一致)、data-start、data-track-index 等属性;接入组件需复制其 HTML、style 与 script,并在暴露 GSAP 时间线集成时把相应调用加入时间线。

发现方式:可通过 curl 读取注册表列举的 registry.json,每项的 registry-item.json 包含 name、type、title、description、tags,区块还含 dimensions 与 duration,以及文件列表。

限制:hyperframes add 仅适用于 block 和 component,示例需用 hyperframes init <dir> --example <name>;安装后的片段只是起点,需自行完成接入。价格、收费与其他能力暂未提供。