Skip to content

Write HTML. Render video. Built for agents.

2.1 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "cursor-annotate",
  "type": "hyperframes:component",
  "title": "Annotate Cursor",
  "description": "A marker pen glides onto the frame and hand-draws a loose loop, an underline, or an arrow around a region, the ink laid exactly under its nib, then lifts and leaves.",
  "tags": ["cursor", "motion-primitive", "pen", "annotation", "draw-on", "highlight"],
  "files": [
    {
      "path": "cursor-annotate.html",
      "target": "compositions/components/cursor-annotate.html",
      "type": "hyperframes:snippet"
    }
  ],
  "jobs": ["demonstrate"],
  "family": "pointers",
  "profile": "interaction",
  "syncPoints": [
    { "id": "ink-down", "phase": "in", "offset": 0.7 },
    { "id": "ink-done", "phase": "in", "offset": 1.8 }
  ],
  "variables": [
    {
      "id": "shape",
      "type": "enum",
      "role": "style",
      "label": "Mark",
      "default": "circle",
      "options": [
        { "value": "circle", "label": "Loose loop" },
        { "value": "underline", "label": "Underline" },
        { "value": "arrow", "label": "Arrow" }
      ]
    },
    {
      "id": "color",
      "type": "color",
      "role": "style",
      "label": "Ink",
      "default": "#f43f5e"
    },
    {
      "id": "target_x",
      "type": "number",
      "role": "layout",
      "label": "Region left",
      "default": 40,
      "min": 0,
      "max": 95,
      "step": 1,
      "unit": "%"
    },
    {
      "id": "target_y",
      "type": "number",
      "role": "layout",
      "label": "Region top",
      "default": 38,
      "min": 0,
      "max": 95,
      "step": 1,
      "unit": "%"
    },
    {
      "id": "target_w",
      "type": "number",
      "role": "layout",
      "label": "Region width",
      "default": 20,
      "min": 2,
      "max": 90,
      "step": 1,
      "unit": "%"
    },
    {
      "id": "target_h",
      "type": "number",
      "role": "layout",
      "label": "Region height",
      "default": 16,
      "min": 2,
      "max": 90,
      "step": 1,
      "unit": "%"
    }
  ]
}