{"id":36684633,"url":"https://github.com/zeraye/polygon-editor","last_synced_at":"2026-01-12T11:09:22.604Z","repository":{"id":215852476,"uuid":"705333294","full_name":"zeraye/polygon-editor","owner":"zeraye","description":"polygon-editor is a desktop polygon editor with multi-os support. It allows you to create, edit and delete polygonal chains","archived":false,"fork":false,"pushed_at":"2025-03-04T21:22:57.000Z","size":16509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T09:52:55.906Z","etag":null,"topics":["polygon","polygon-editor","polygon-offsetting"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zeraye.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-15T18:15:05.000Z","updated_at":"2025-03-04T21:22:56.000Z","dependencies_parsed_at":"2024-01-07T01:52:22.211Z","dependency_job_id":"6e532350-531b-4618-b7ef-cff61d422bf1","html_url":"https://github.com/zeraye/polygon-editor","commit_stats":null,"previous_names":["zeraye/polygon-editor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zeraye/polygon-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeraye%2Fpolygon-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeraye%2Fpolygon-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeraye%2Fpolygon-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeraye%2Fpolygon-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeraye","download_url":"https://codeload.github.com/zeraye/polygon-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeraye%2Fpolygon-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["polygon","polygon-editor","polygon-offsetting"],"created_at":"2026-01-12T11:09:21.730Z","updated_at":"2026-01-12T11:09:22.600Z","avatar_url":"https://github.com/zeraye.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polygon-editor\n\n**polygon-editor** is a desktop polygon editor with [multi-os support](https://github.com/fyne-io/fyne/wiki/Supported-Platforms). It allows you to create, edit and delete polygonal chains.\n\n## installation\n\n(Go 1.21)[https://go.dev/doc/install]\n(Fyne)[https://developer.fyne.io/]\n(Fyne dependencies)[https://developer.fyne.io/started/]\n\n## controls\n\nList of controls:\n\n- LMB on segment: select segment and polygon\n- LMB not on segment: create new circle\n- RMB on circle: delete circle\n- RMB on segment: add new circle in the middle of the segment\n- LMB DRAG on circle: move circle\n- LMB DRAG on segment: move segment\n- LMB DRAG on polygon: move polygon\n\nLegend:\n\n- LMB: left mouse button\n- RMB: right mouse button\n- LMB DRAG: left mouse button press while moving mouse\n\n## featues\n\nList of featuers:\n\n- create circle\n- create polygon\n- create new circle in the middle of the segment\n- remove circle\n- move circle\n- move segment\n- move polygon\n- add horizontal constraint to segment\n- add vertical constraint to segment\n- remove contraint from segment\n- create offset to polygon\n- manage multiple polygons\n\n## drawing\n\nCircles are drawn using [midpoint circle algoritm](https://en.wikipedia.org/wiki/Midpoint_circle_algorithm).\n\nLines are drawn using:\n\n- [Bresenham'slinealgorithm](https://en.wikipedia.org/wiki/Bresenham's_line_algorithm)\n- [Xiaolin Wu's line algorithm](https://en.wikipedia.org/wiki/Xiaolin_Wu's_line_algorithm) (anti-aliasing)\n\n## offset\n\nOffset algorithm calculates offset points by creating two normals. We add prev segment normal and next segment normal, to get offset polygon point. For concave angle 3 points are created (which next repair algorithm will fix if intersections was introduced). Then fix algorithm looks for intersections. Remove intersections loops (removing intersections) to create proper offset.\n\n## screenshots\n\n![polygons](images/polygons.png)\n![constraint selector](images/constraint.png)\n![offset](images/offset.png)\n\n## author\n\nAuthor of this project is Jakub Rudnik.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeraye%2Fpolygon-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeraye%2Fpolygon-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeraye%2Fpolygon-editor/lists"}