mapbox / mapbox/mapbox-gl-draw
Expose `mouseEventPoint()` in `MapboxDraw.lib`
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
Issue description
As per version 1.4.0 mouseEventPoint() is not exposed in the MapboxDraw.lib from #1100 . This function is used for some of our custom draw modes and it would be helpful to expose it for custom modes creation.
Side note: Point / pointGeometry is also not exposed, it's used by mouseEventPoint() and it may be used by someone in the future, just guessing.
This point is also arisen by @awulkan here.
Thank you in advance!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the changes in #1100 and the public MapboxDraw.lib entry point to see how mouseEventPoint() is currently defined and exported. Check whether Point/pointGeometry is needed for the public API, then verify that custom draw modes can access the exposed function and that existing behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100