{"id":18925023,"url":"https://github.com/kouyjes/annular-menu","last_synced_at":"2025-09-10T22:41:16.056Z","repository":{"id":57180332,"uuid":"98143832","full_name":"kouyjes/annular-menu","owner":"kouyjes","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-08T09:39:36.000Z","size":2412,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-24T23:56:51.860Z","etag":null,"topics":["annular","annularmenu","circle-menu","circlemenu","context-menu","contextmenu","menu","svg-icons","svg-menu"],"latest_commit_sha":null,"homepage":null,"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/kouyjes.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":"2017-07-24T03:04:20.000Z","updated_at":"2024-04-03T09:03:53.000Z","dependencies_parsed_at":"2022-09-14T03:31:44.414Z","dependency_job_id":null,"html_url":"https://github.com/kouyjes/annular-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kouyjes/annular-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fannular-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fannular-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fannular-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fannular-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kouyjes","download_url":"https://codeload.github.com/kouyjes/annular-menu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fannular-menu/sbom","scorecard":{"id":568610,"data":{"date":"2025-08-11","repo":{"name":"github.com/kouyjes/annular-menu","commit":"ac876981b0195ad84c08e64feff92e5a3c53edfb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T15:41:58.240Z","repository_id":57180332,"created_at":"2025-08-20T15:41:58.240Z","updated_at":"2025-08-20T15:41:58.240Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274536755,"owners_count":25303887,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["annular","annularmenu","circle-menu","circlemenu","context-menu","contextmenu","menu","svg-icons","svg-menu"],"created_at":"2024-11-08T11:08:56.195Z","updated_at":"2025-09-10T22:41:16.001Z","avatar_url":"https://github.com/kouyjes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# menus\n## Demo\n- [Demo1 url](https://kouyjes.github.io/annular-menu/example/index.html)\n- [Demo2 url](https://kouyjes.github.io/annular-menu/example/index-default.html)\n![](./screenshot/menu_01.png)\n![](./screenshot/menu_02.png)\n## Getting Started\n### Interfaces\n```javascript\n    interface MenuConfig {\n        angle?:number; // define menu radian eg:Math.PI / 6\n        callback?:Function; // called when menu created\n    }\n    interface Menu extends MenuConfig {\n        name:String; // menu name\n        caption:String; // menu caption\n        html?:String; // menu html content\n        icon?:String; // menu icon\n        menuList?:MenuList; // subMenu define\n    }\n    interface MenuList extends MenuConfig {\n        items:Menu[]; // menu list\n        radiusStep?:number; // whitespace of two arc\n        offsetRadius?:number; // distance of two arc\n    }\n    interface AnnularMenuOption {\n        menuList:MenuList;\n        startAngle?:number;\n        centerSize?:number;\n        collapsible?:boolean;\n        draggable?:boolean;\n    }\n    interface Point {\n        x:number;\n        y:number;\n    }\n    interface EventListeners {\n        click:Function,\n        mouseover:Function\n        menuClick:Function[],\n        menuHover:Function[]\n    }  \n```\n### Define Menu data\n```javascript\n    //second level menu\n    var menus_1 = [];\n    for(var i = 0;i \u003c 4;i++){\n        menus_1.push({\n            name: 'M1_' + i,\n            caption: 'M1_' + i,\n            icon: './image/icon.png',\n            angle:Math.PI / 4,\n            menuList:{\n                radiusStep:5,\n                items:[]\n            }\n        });\n    }\n    \n    // first level menu\n    var menus_0 = [];\n    for(i = 0;i \u003c 4;i++){\n        menus_1.push({\n            name: 'M0_' + i,\n            caption: 'M0_' + i,\n            icon: './image/icon.png',\n            menuList:{\n                radiusStep:8,\n                items:menus_1\n            }\n        });\n    }\n```\n### Initiate AnnularMenu\n```javascript\n    var contextMenu = new HERE.UI.AnnularMenu({\n      menuList:{\n          items:menus_0\n      }\n    });\n```\n### Render AnnularMenu\n```javascript\n    var centerX = document.body.clientWidth / 2,\n        centerY = document.body.clientHeight / 2;\n    var element = contextMenu.render({\n        x:centerX,\n        y:centerY\n    });\n    \n    var container = document.querySelector('.menu-container');\n    container.appendChild(element);\n```\n### Event\n1. menuClick\n2. menuHover\n3. click\n4. mouseover\n```javascript\n    contextMenu.addEventListener('menuClick', function (e,menu) {\n    });\n```\n### API \n1. render(position?:Point):SVGElement\n2. scale(point?:Point)\n3. position(point?:Point)\n4. toggleCollapse(collapse?:boolean)\n5. toggleVisible(visible?:boolean)\n6. addEventListener(type:String, handler:Function)\n7. removeEventListener(type:String, handler:Function)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkouyjes%2Fannular-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkouyjes%2Fannular-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkouyjes%2Fannular-menu/lists"}