{"id":20901567,"url":"https://github.com/willfarrell/leaflet.clipper","last_synced_at":"2025-05-13T03:30:51.999Z","repository":{"id":142528767,"uuid":"97955768","full_name":"willfarrell/Leaflet.Clipper","owner":"willfarrell","description":"Allows Union, Difference, Xor, and Intersection operations on two polygons.","archived":false,"fork":false,"pushed_at":"2017-07-23T17:21:04.000Z","size":63,"stargazers_count":19,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T15:47:55.050Z","etag":null,"topics":["leaflet","leaflet-plugin"],"latest_commit_sha":null,"homepage":"","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/willfarrell.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-21T14:20:40.000Z","updated_at":"2025-02-13T16:07:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"f304f737-327e-4c77-ad94-1550f68ea911","html_url":"https://github.com/willfarrell/Leaflet.Clipper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FLeaflet.Clipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FLeaflet.Clipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FLeaflet.Clipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FLeaflet.Clipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/Leaflet.Clipper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253867358,"owners_count":21976212,"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":["leaflet","leaflet-plugin"],"created_at":"2024-11-18T11:36:02.940Z","updated_at":"2025-05-13T03:30:51.990Z","avatar_url":"https://github.com/willfarrell.png","language":"JavaScript","readme":"# Leaflet.Clipper\nAllows Union, Difference, Xor, and Intersection operations on two polygons. This is a Leaflet wrapper around [JSClipper](https://sourceforge.net/projects/jsclipper).\n\n## Install\nYou'll need:\n- `leaflet`: `\u003e=1.1.0`\n- `clipper-lib`: `^6.2.1`\n- `leaflet-clipper`: `^1.1.0` That's this library.\n\nNeed to run with an older version? Let me know, there was a breaking change regarding [Mixin.Events](https://github.com/Leaflet/Leaflet/issues/2280). Easy to modify.\n\n## [Demo](https://willfarrell.github.io/Leaflet.Clipper)\n## Usage\n\n```javascript\nvar map = ...\nvar layer = ...\n\n\nvar drawState = new L.Clipper.OR( map, {\n    featureGroup: layer,\n    selectedPathOptions: {\n        color: '#FF3399'\n    }\n} );\ndrawState.enable();\ndrawState.disable();\n```\n\n## TODO\n- [ ] Add back in tooltip support\n- [ ] Leaflet.draw integration\n- [ ] Leaflet.Editable integration\n- [ ] Extend functionality to circles\n\n## Credits\n- Original version written for [MyMobileCoverage](http://www.mymobilecoverage.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fleaflet.clipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Fleaflet.clipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fleaflet.clipper/lists"}