diff --git a/package-lock.json b/package-lock.json index c231893..ac7001f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@equinor/videx-map", - "version": "1.14.8", + "version": "1.14.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@equinor/videx-map", - "version": "1.14.8", + "version": "1.14.9", "license": "MIT", "dependencies": { "@equinor/videx-linear-algebra": "^1.0.11", diff --git a/package.json b/package.json index 4a11c42..bc7a08e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/videx-map", - "version": "1.14.8", + "version": "1.14.9", "description": "Component for Pixi-overlay in Leaflet.", "main": "dist/index.js", "module": "dist/index.esm.js", diff --git a/src/WellboreModule.ts b/src/WellboreModule.ts index 16bd701..e5f6c19 100644 --- a/src/WellboreModule.ts +++ b/src/WellboreModule.ts @@ -246,12 +246,13 @@ export default class WellboreModule extends ModuleInterface { return this.clearHighlight(this.config.onHighlightOff); } - private handleMouseClick() : boolean { + private handleMouseClick(mouseEvent?: MouseEvent) : boolean { if (this.config.onWellboreClick && this.highlight.active && this.highlight.single) { const wellbore = this.highlight.first; this.config.onWellboreClick({ group: wellbore.group.key, data: wellbore.data, + mouseEvent, }); return true; } diff --git a/src/utils/wellbores/data/WellboreEventData.ts b/src/utils/wellbores/data/WellboreEventData.ts index 218d54e..914f44e 100644 --- a/src/utils/wellbores/data/WellboreEventData.ts +++ b/src/utils/wellbores/data/WellboreEventData.ts @@ -5,7 +5,7 @@ import { WellboreData } from './WellboreData'; export class WellboreEventData { public group: string; public data: SourceData; - + public mouseEvent?: MouseEvent; constructor(group: string, data: SourceData) { this.group = group;