Skip to content

Commit

Permalink
Added MapMouseEvent type to export (maplibre#3622)
Browse files Browse the repository at this point in the history
* Added missing types to export

* Was missing in the event group

* Fix lint
  • Loading branch information
HarelM authored Jan 25, 2024
1 parent 41aee99 commit 4ed9cf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {addProtocol, removeProtocol} from './source/protocol_crud';
import {getGlobalDispatcher} from './util/dispatcher';
import {IControl} from './ui/control/control';
import {EdgeInsets, PaddingOptions} from './geo/edge_insets';
import {MapTerrainEvent, MapStyleImageMissingEvent, MapStyleDataEvent, MapSourceDataEvent, MapLibreZoomEvent, MapLibreEvent, MapLayerTouchEvent, MapLayerMouseEvent, MapLayerEventType, MapEventType, MapDataEvent, MapContextEvent, MapWheelEvent, MapTouchEvent} from './ui/events';
import {MapTerrainEvent, MapStyleImageMissingEvent, MapStyleDataEvent, MapSourceDataEvent, MapLibreZoomEvent, MapLibreEvent, MapLayerTouchEvent, MapLayerMouseEvent, MapLayerEventType, MapEventType, MapDataEvent, MapContextEvent, MapWheelEvent, MapTouchEvent, MapMouseEvent} from './ui/events';
import {BoxZoomHandler} from './ui/handler/box_zoom';
import {DragRotateHandler} from './ui/handler/shim/drag_rotate';
import {DragPanHandler} from './ui/handler/shim/drag_pan';
Expand Down Expand Up @@ -204,6 +204,9 @@ export {
TwoFingersTouchZoomHandler,
TwoFingersTouchRotateHandler,
TwoFingersTouchPitchHandler,
MapWheelEvent,
MapTouchEvent,
MapMouseEvent,
type IControl,
type CustomLayerInterface,
type CanvasSourceSpecification,
Expand All @@ -224,8 +227,6 @@ export {
type MapEventType,
type MapDataEvent,
type MapContextEvent,
type MapWheelEvent,
type MapTouchEvent,
setRTLTextPlugin,
getRTLTextPluginStatus,
prewarm,
Expand Down
3 changes: 3 additions & 0 deletions src/ui/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ export type MapSourceDataEvent = MapLibreEvent & {
}
/**
* `MapMouseEvent` is the event type for mouse-related map events.
*
* @group Event Related
*
* @example
* ```ts
* // The `click` event is an example of a `MapMouseEvent`.
Expand Down

0 comments on commit 4ed9cf0

Please sign in to comment.