{"id":16295993,"url":"https://github.com/naugtur/aframe-point-component","last_synced_at":"2025-07-04T01:33:59.003Z","repository":{"id":57174244,"uuid":"80228404","full_name":"naugtur/aframe-point-component","owner":"naugtur","description":"implements a-point based on THREE.js point object","archived":false,"fork":false,"pushed_at":"2017-04-05T18:39:22.000Z","size":806,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T18:16:41.056Z","etag":null,"topics":["aframe","point","vr"],"latest_commit_sha":null,"homepage":"http://naugtur.pl/aframe-point-component/","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/naugtur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-27T17:17:39.000Z","updated_at":"2022-01-24T19:07:41.000Z","dependencies_parsed_at":"2022-09-02T08:01:32.550Z","dependency_job_id":null,"html_url":"https://github.com/naugtur/aframe-point-component","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/naugtur/aframe-point-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naugtur%2Faframe-point-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naugtur%2Faframe-point-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naugtur%2Faframe-point-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naugtur%2Faframe-point-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naugtur","download_url":"https://codeload.github.com/naugtur/aframe-point-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naugtur%2Faframe-point-component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262428513,"owners_count":23309454,"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":["aframe","point","vr"],"created_at":"2024-10-10T20:20:51.304Z","updated_at":"2025-07-04T01:33:58.938Z","avatar_url":"https://github.com/naugtur.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## aframe-point-component\n\nA point component for [A-Frame](https://aframe.io). Creates a [THREE.Points\nobject](https://threejs.org/docs/#Reference/Objects/Points). Points remain a\npoint no matter the distance.\n\n![Screenshot](https://cloud.githubusercontent.com/assets/674727/24059359/0ba5a1f8-0b0c-11e7-8cc3-df71ee1d673e.gif)\n\n[VIEW DEMO](http://naugtur.pl/aframe-point-component/)\n\n### API\n\n| Property    | Description                                       | Default Value |\n|-------------|---------------------------------------------------|---------------|\n| size        | size of rendered point (length of rectangle edge) | 1             |\n| color       | color definition, like in CSS                     | #888          |\n| perspective | boolean - should it scale with distance or not    | false         |\n\n#### Custom Methods\n\n`setPoints(array of arrays3)` - replace single point geometry with multiple points in one a-point instance\n\nexample\n\n```js\n  element.components.point.setPoints([\n    [0,0,0]\n    [0,0,1]\n    [0,0,2]\n    ...\n  ])\n```\n\n### Installation\n\nnpm install aframe-point\n\n#### Browser\n\nInstall and use by directly including the [browser files](dist):\n\n```html\n\u003chead\u003e\n  \u003ctitle\u003eMy A-Frame Scene\u003c/title\u003e\n  \u003cscript src=\"https://aframe.io/releases/0.5.0/aframe.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://unpkg.com/aframe-point-component/dist/aframe-point-component.min.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n  \u003ca-scene\u003e\n    \u003ca-entity point=\"size: 2\"\u003e\u003c/a-entity\u003e\n    OR\n    \u003ca-point size=\"2\"\u003e\u003c/a-point\u003e\n  \u003c/a-scene\u003e\n\u003c/body\u003e\n```\n\n#### npm\n\nInstall via npm:\n\n```bash\nnpm install aframe-point\n```\n\nThen require and use.\n\n```js\nrequire('aframe');\nrequire('aframe-point');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaugtur%2Faframe-point-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaugtur%2Faframe-point-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaugtur%2Faframe-point-component/lists"}