{"id":18056046,"url":"https://github.com/argyleink/n-gon","last_synced_at":"2025-04-05T09:44:05.312Z","repository":{"id":25218339,"uuid":"28642550","full_name":"argyleink/N-Gon","owner":"argyleink","description":"Virtualized infinite sided cube, touch enabled bi-directional rotation","archived":false,"fork":false,"pushed_at":"2015-02-03T22:02:00.000Z","size":452,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T13:30:42.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://argyleink.github.io/N-Gon/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/argyleink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-30T19:26:49.000Z","updated_at":"2024-10-24T01:06:20.000Z","dependencies_parsed_at":"2022-08-23T04:10:17.794Z","dependency_job_id":null,"html_url":"https://github.com/argyleink/N-Gon","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/argyleink%2FN-Gon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FN-Gon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FN-Gon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FN-Gon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/argyleink","download_url":"https://codeload.github.com/argyleink/N-Gon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318721,"owners_count":20919483,"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":[],"created_at":"2024-10-31T01:13:26.133Z","updated_at":"2025-04-05T09:44:05.290Z","avatar_url":"https://github.com/argyleink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## N-Gon\n\u003e Looks like a cube, acts like a cube, but isn't a cube at all.\n\n### Dependencies\n- jQuery\n- Hammer v1.1.3\n- Velocity\n\n### Getting Started\nOf course pull the script down and import it into your projects. Script is located at:\n`app/js/n-gon.js` or `dist/js/n-gon.js`\n\nI'll make a bower repo if this thing goes anywhere.\n\n### Creation\n`nGon.init(id, data);`\n- id: String of the element's id you want the cube to appear inside\n- data: Array of objects or HTML strings. \n\nnGon is able to handle 2-dimensional arrays, but the 2nd dimension can only have 3 elements. The cube can have infinite faces, but each face can only have 3 poly's. Don't want people to get lost in your data.\n\n### Destruction\n`nGon.destroy();`\n\n### Flip API\n`nGon.flip();`  \n`nGon.flip('forward'); or nGon.flip('left');`  \n`nGon.flip('backward'); or nGon.flip('right');`  \n`nGon.flip('up');`  \n`nGon.flip('down');`   \n\n### Adding data\n`nGon.append();`\nCan be an HTML string or an Array\n\n### Events\n```\nnGon.flipEnd(function(direction, facesObject){\n    console.log(direction, facesObject);\n});\n```\nCalls your anymous function with the direction and current set of faces.\n\n### Access\n`nGon.getFaces();`\nReturns the DOM nodes and state information for the current faces on the cube.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargyleink%2Fn-gon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fargyleink%2Fn-gon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargyleink%2Fn-gon/lists"}