{"id":19438837,"url":"https://github.com/danwild/leaflet-event-forwarder","last_synced_at":"2025-04-24T22:32:10.142Z","repository":{"id":78506419,"uuid":"148575958","full_name":"danwild/leaflet-event-forwarder","owner":"danwild","description":"Catches unhandled canvas layer events and re-dispatches them to the next layer in the stack","archived":false,"fork":false,"pushed_at":"2018-09-19T23:10:21.000Z","size":57,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-06T09:48:28.607Z","etag":null,"topics":["canvas","events","leaflet","leaflet-plugin"],"latest_commit_sha":null,"homepage":"https://danwild.github.io/leaflet-event-forwarder/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danwild.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":"2018-09-13T03:20:34.000Z","updated_at":"2024-09-20T17:15:12.000Z","dependencies_parsed_at":"2023-05-16T20:45:36.150Z","dependency_job_id":null,"html_url":"https://github.com/danwild/leaflet-event-forwarder","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"79b016a2b27e2a3f5ce0cb949cf16dff447ef112"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-event-forwarder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-event-forwarder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-event-forwarder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-event-forwarder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danwild","download_url":"https://codeload.github.com/danwild/leaflet-event-forwarder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223969153,"owners_count":17233599,"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":["canvas","events","leaflet","leaflet-plugin"],"created_at":"2024-11-10T15:19:56.140Z","updated_at":"2024-11-10T15:19:56.590Z","avatar_url":"https://github.com/danwild.png","language":"JavaScript","readme":"# leaflet-event-forwarder [![NPM version][npm-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url]\n\nA plugin for leaflet `v1^`.\n\nCatches unhandled canvas layer events and re-dispatches them to the next layer in the stack.\n\n## Example use:\n```javascript\nconst map = L.map(\"map\");\nconst myEventForwarder = new L.eventForwarder({\n  // ref to leaflet map\n  map: map,\n  // events to forward\n  events: {\n    click: true,\n    mousemove: true\n  },\n  // throttle options for mousemove events (same as underscore.js)\n  throttleMs: 100,\n  throttleOptions: {\n    leading: true,\n    trailing: false\n  }\n});\n\n// enable event forwarding\nmyEventForwarder.enable();\n\n// disable event forwarding\nmyEventForwarder.disable();\n```\n\n## Shouts outs\n- Based largely on [this gist](https://gist.github.com/perliedman/84ce01954a1a43252d1b917ec925b3dd)\nby [perliedman](https://gist.github.com/perliedman)\n\n## License\nApache 2\n\n[npm-image]: https://badge.fury.io/js/leaflet-event-forwarder.svg\n[npm-url]: https://www.npmjs.com/package/leaflet-event-forwarder\n[npm-downloads-image]: https://img.shields.io/npm/dt/leaflet-event-forwarder.svg","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fleaflet-event-forwarder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanwild%2Fleaflet-event-forwarder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fleaflet-event-forwarder/lists"}