{"id":21684818,"url":"https://github.com/ahuseyn/react-dot-globe","last_synced_at":"2025-04-12T07:51:53.659Z","repository":{"id":65483332,"uuid":"462412970","full_name":"ahuseyn/react-dot-globe","owner":"ahuseyn","description":"Highly customizable Dot Globe component for React. Inspired by GitHub's globe, uses Babylon.js under the hood.","archived":false,"fork":false,"pushed_at":"2022-02-22T18:25:40.000Z","size":4828,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T03:05:01.574Z","etag":null,"topics":["babylonjs","globe","reactjs","webgl"],"latest_commit_sha":null,"homepage":"https://ahuseyn.github.io/react-dot-globe/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahuseyn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-22T17:53:54.000Z","updated_at":"2025-03-06T19:02:00.000Z","dependencies_parsed_at":"2023-01-25T16:46:37.970Z","dependency_job_id":null,"html_url":"https://github.com/ahuseyn/react-dot-globe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuseyn%2Freact-dot-globe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuseyn%2Freact-dot-globe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuseyn%2Freact-dot-globe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuseyn%2Freact-dot-globe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahuseyn","download_url":"https://codeload.github.com/ahuseyn/react-dot-globe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537009,"owners_count":21120690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babylonjs","globe","reactjs","webgl"],"created_at":"2024-11-25T16:17:09.889Z","updated_at":"2025-04-12T07:51:53.635Z","avatar_url":"https://github.com/ahuseyn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React .globe\n\nHighly customizable Dot Globe component for React. Inspired by GitHub's globe, uses Babylon.js under the hood.\n\n[Live preview here](https://ahuseyn.github.io/react-dot-globe).\n\n## Install\n\n1. Install the library\n\n```bash\nnpm install react-dot-globe\n```\n\n2. Install dependency\n\n```bash\nnpm install @babylonjs/core@5.0.0-alpha.65\n```\n\n## Usage\n\n\u003e Refer to the example folder for detailed usage example.\n\n```jsx\nimport React from 'react'\nimport ReactDotGlobe from 'react-dot-globe'\n\nfunction App() {\n  const markers = [\n    {\n      name: 'Istanbul',\n      coordinates: [41.106942, 29.008056],\n      color: '#FF0000',\n      height: 1,\n      diameter: 0.05\n    }\n  ]\n\n  const curves = [\n    {\n      point1: [41.106942, 29.008056],\n      point2: [40.751925, -73.981963],\n      name: `From Istanbul to New York`,\n      color: '#FF0000',\n      segments: 30,\n      animationSpeed: 1000,\n      clearAnimation: 'forward' // backward\n    }\n  ]\n\n  return (\n    \u003cReactDotGlobe\n      className='dotGlobe' // CSS class of the canvas\n      backgroundColor='#f39c12' // Background color of the canvas\n      cameraPosition={[-6, 10, -10]} // Refer to the docs: https://doc.babylonjs.com/typedoc/classes/babylon.camera#position\n      cameraMinZoom={10}\n      cameraMaxZoom={500}\n      cameraZoomSpeed={100}\n      globeRotationAxis={[0, 1, 0]}\n      globeRotationSpeed={0} // Rotation speed. 0 for no rotation\n      dotDiameter={0.05} // Diameter of the dots\n      dotHeight={0.01} // Height of the dots\n      dotSegments={8} // Segments of the dots\n      dotColor='#34495e' // Color of the dots\n      markers={markers}\n      curves={curves}\n      onClick={(e, hit) =\u003e console.log(hit)} // Refer to the docs: https://doc.babylonjs.com/typedoc/classes/babylon.scene#onpointerup\n    /\u003e\n  )\n}\n```\n\n## License\n\nMIT © [ahuseyn](https://github.com/ahuseyn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahuseyn%2Freact-dot-globe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahuseyn%2Freact-dot-globe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahuseyn%2Freact-dot-globe/lists"}