{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-globe",
  "title": "Globe",
  "description": "Animated Lucide globe icon — draws on, then the meridian sweeps west to east like the world turning. Loops by default.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-globe/index.tsx",
      "content": "\"use client\";\n\nimport { Easing, interpolate } from \"remotion\";\nimport {\n  drawnPathProps,\n  type IconAnimationProps,\n  useIconAnimation,\n} from \"@/lib/remocn-icons\";\n\nconst SPHERE_PATH = \"M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20Z\";\nconst MERIDIAN_PATH = \"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\";\nconst EQUATOR_PATH = \"M2 12H22\";\n\nconst AXIS_X = 12;\n\nconst TIMINGS = {\n  drawDurationInFrames: 16,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 40,\n  loop: true,\n} as const;\n\nexport function GlobeIcon({\n  animation = \"both\",\n  loop,\n  speed,\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: IconAnimationProps) {\n  const { drawProgress, scaleIn, actionProgress, actionFrame } =\n    useIconAnimation({ animation, loop, speed }, TIMINGS);\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n  const acting = animation !== \"draw\" && actionFrame >= 0;\n\n  const sphereDraw = interpolate(linearDraw, [0, 0.7], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const linesDraw = interpolate(linearDraw, [0.5, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const spinX = acting ? Math.cos(actionProgress * Math.PI * 2) : 1;\n\n  const sphere = drawnPathProps(SPHERE_PATH, acting ? 1 : sphereDraw);\n  const meridian = drawnPathProps(MERIDIAN_PATH, acting ? 1 : linesDraw);\n  const equator = drawnPathProps(EQUATOR_PATH, acting ? 1 : linesDraw);\n\n  const scale = 0.85 + 0.15 * scaleIn;\n  const spinTransform = `translate(${AXIS_X * (1 - spinX)} 0) scale(${spinX} 1)`;\n\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      style={{\n        overflow: \"visible\",\n        transformOrigin: \"center\",\n        transform: `scale(${scale})`,\n      }}\n    >\n      <g transform={spinTransform}>\n        <path\n          d={SPHERE_PATH}\n          strokeDasharray={sphere.strokeDasharray}\n          strokeDashoffset={sphere.strokeDashoffset}\n        />\n        <path\n          d={EQUATOR_PATH}\n          strokeDasharray={equator.strokeDasharray}\n          strokeDashoffset={equator.strokeDashoffset}\n        />\n        <path\n          d={MERIDIAN_PATH}\n          strokeDasharray={meridian.strokeDasharray}\n          strokeDashoffset={meridian.strokeDashoffset}\n        />\n      </g>\n    </svg>\n  );\n}\n\nexport function GlobeIconStatic({\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: {\n  size?: number;\n  color?: string;\n  strokeWidth?: number;\n  className?: string;\n}) {\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n    >\n      <circle cx=\"12\" cy=\"12\" r=\"10\" />\n      <path d={MERIDIAN_PATH} />\n      <path d=\"M2 12h20\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-globe.tsx"
    }
  ],
  "type": "registry:component"
}
