@mappable-world/mappable-types 1.0.15542062 → 1.0.15731128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,12 +34,13 @@ export interface BlockingProps {
34
34
  }
35
35
  export interface MapEvent {
36
36
  /** [x, y] */
37
- screenCoordinates: [
37
+ readonly screenCoordinates: [
38
38
  number,
39
39
  number
40
40
  ];
41
- coordinates: LngLat;
42
- stopPropagation: () => void;
41
+ readonly coordinates: LngLat;
42
+ readonly details: Pick<MouseEvent | PointerEvent | TouchEvent, 'type' | 'shiftKey' | 'altKey' | 'metaKey'>;
43
+ stopPropagation(): void;
43
44
  }
44
45
  export interface FeatureClickEvents {
45
46
  /** Double click handler */
@@ -6,11 +6,14 @@ import { MMapEntity } from "../MMapEnities";
6
6
  import { MMapHotspot } from "../MMapHotspot";
7
7
  import type { MMapCamera, MMapLocation } from "../MMap";
8
8
  export interface DomEvent {
9
- coordinates: LngLat;
10
- screenCoordinates: [
9
+ /** [x, y] */
10
+ readonly screenCoordinates: [
11
11
  number,
12
12
  number
13
13
  ];
14
+ readonly coordinates: LngLat;
15
+ readonly details: Pick<MouseEvent | PointerEvent | TouchEvent, "type" | "shiftKey" | "altKey" | "metaKey" | "ctrlKey">;
16
+ stopPropagation(): void;
14
17
  }
15
18
  type HandlerEntity<TType extends string, TEntity> = {
16
19
  type: TType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappable-world/mappable-types",
3
- "version": "1.0.15542062",
3
+ "version": "1.0.15731128",
4
4
  "description": "Types for mappable maps library",
5
5
  "main": "",
6
6
  "types": "index.d.ts",