{"id":23499701,"url":"https://github.com/editvr/aframe-dialog-popup-component","last_synced_at":"2025-04-15T17:36:34.805Z","repository":{"id":57110651,"uuid":"139184015","full_name":"EditVR/aframe-dialog-popup-component","owner":"EditVR","description":"Provides a component that constructs a toggle-able dialog with a title, description, image, and  close button.","archived":false,"fork":false,"pushed_at":"2018-08-03T19:08:11.000Z","size":735,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-03-28T23:11:08.298Z","etag":null,"topics":["aframe","aframe-component","aframevr","vr","webvr"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EditVR.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":"2018-06-29T18:42:24.000Z","updated_at":"2023-12-06T00:15:55.000Z","dependencies_parsed_at":"2022-08-20T18:50:14.089Z","dependency_job_id":null,"html_url":"https://github.com/EditVR/aframe-dialog-popup-component","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EditVR%2Faframe-dialog-popup-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EditVR%2Faframe-dialog-popup-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EditVR%2Faframe-dialog-popup-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EditVR%2Faframe-dialog-popup-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EditVR","download_url":"https://codeload.github.com/EditVR/aframe-dialog-popup-component/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249119599,"owners_count":21215775,"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","aframe-component","aframevr","vr","webvr"],"created_at":"2024-12-25T06:19:37.926Z","updated_at":"2025-04-15T17:36:34.784Z","avatar_url":"https://github.com/EditVR.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## aframe-dialog-popup-component\n\n[![Version](http://img.shields.io/npm/v/@editvr/aframe-dialog-popup-component.svg?style=flat-square)](https://npmjs.org/package/aframe-dialog-popup-component)\n[![CircleCI](http://img.shields.io/circleci/project/github/EditVR/aframe-dialog-popup-component.svg?style=flat-square)](https://npmjs.org/package/@editvr/aframe-dialog-popup-component)\n[![License](http://img.shields.io/npm/l/@editvr/aframe-dialog-popup-component.svg?style=flat-square)](https://npmjs.org/package/aframe-dialog-popup-component)\n\nProvides a component that constructs a toggle-able dialog with a title, description, image, and close button.\n\nFor [A-Frame](https://aframe.io).\n\n### API\n\n| Property               | Description                 | Default Value                 |\n| ---------------------- | --------------------------- | ----------------------------- |\n| title                  | String containing title.    | New Dialog                    |\n| titleColor             | Text color of title.        | black                         |\n| titleFont              | Title font.                 | mozillavr                     |\n| titleWrapCount         | Title entity wrap count.    | 24                            |\n| body                   | String containing body.     | This dialog has no body yet.  |\n| bodyColor              | Text color of body.         | black                         |\n| bodyFont               | Body  font.                 | mozillavr                     |\n| bodyWrapCount          | Body entity wrap count.     | 30                            |\n| openOn                 | Open/Close event.           | click                         |\n| active                 | Turn dialog on/off.         | true                          |\n| openIconImage          | Icon image for open button. | None                          |\n| openIconRadius         | Radius for open icon.       | 0.3                           |\n| openIconColor          | Color for open icon.        | white                         |\n| closeIconImage         | Icon image for open button. | None                          |\n| closeIconRadius        | Radius for close icon.      | 0.3                           |\n| closeIconColor         | Color for close icon.       | white                         |\n| image                  | Path to Dialog hero image.  | None                          |\n| imageWidth             | Dialog hero image width.    | 2                             |\n| imageHeight            | Dialog hero image height.   | 2                             |\n| dialogBoxWidth         | Dialog box width.           | 4                             |\n| dialogBoxHeight        | Dialog box height.          | 4                             |\n| dialogBoxColor         | Dialog box background color.| white                         |\n| dialogBoxPadding       | Dialog box padding.         | 0.2                           |\n\n### Installation\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.8.2/aframe.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://unpkg.com/@editvr/aframe-dialog-popup-component@1.7.2/dist/aframe-dialog-popup-component.min.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n  \u003ca-scene\u003e\n    \u003ca-entity dialog-popup=\"title: My Title; body: My Body\"\u003e\u003c/a-entity\u003e\n  \u003c/a-scene\u003e\n\u003c/body\u003e\n```\n\n#### npm\n\nInstall via npm:\n\n```bash\nnpm install @editvr/aframe-dialog-popup-component\n```\n\nThen require and use.\n\n```js\nrequire('aframe');\nrequire('@editvr/aframe-dialog-popup-component');\n```\n\n## Example\n### Closed\n![Closed](https://github.com/EditVR/aframe-dialog-popup-component/raw/develop/examples/assets/closed.png)\n### Opened\n![Open](https://github.com/EditVR/aframe-dialog-popup-component/raw/develop/examples/assets/open.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditvr%2Faframe-dialog-popup-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feditvr%2Faframe-dialog-popup-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditvr%2Faframe-dialog-popup-component/lists"}