Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscb committed Sep 20, 2023
1 parent 7fe0a50 commit 239b07e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type { colorTablesArray } from "@emerson-eps/color-tables/";
import type { Unit } from "convert-units";
import convert from "convert-units";
import type { PickingInfo } from "@deck.gl/core/typed";
import type { MjolnirGestureEvent } from "mjolnir.js";

export type {
BoundsAccessor,
Expand Down Expand Up @@ -100,8 +101,8 @@ export interface SubsurfaceViewerProps {
*/
isLoadedCallback?: (arg: boolean) => void;

onDragStart?: (info: PickingInfo, event: MapMouseEvent) => void;
onDragEnd?: (info: PickingInfo, event: MapMouseEvent) => void;
onDragStart?: (info: PickingInfo, event: MjolnirGestureEvent) => void;
onDragEnd?: (info: PickingInfo, event: MjolnirGestureEvent) => void;

/**
* If changed will reset camera to default position.
Expand Down
5 changes: 3 additions & 2 deletions typescript/packages/subsurface-viewer/src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { LightingEffect } from "@deck.gl/core/typed";
import { LineLayer } from "@deck.gl/layers/typed";
import { Matrix4 } from "@math.gl/core";
import { fovyToAltitude } from "@math.gl/web-mercator";
import type { MjolnirGestureEvent } from "mjolnir.js";

/**
* 3D bounding box defined as [xmin, ymin, zmin, xmax, ymax, zmax].
Expand Down Expand Up @@ -397,8 +398,8 @@ export interface MapProps {
*/
isLoadedCallback?: (arg: boolean) => void;

onDragStart?: (info: PickingInfo, event: MapMouseEvent) => void;
onDragEnd?: (info: PickingInfo, event: MapMouseEvent) => void;
onDragStart?: (info: PickingInfo, event: MjolnirGestureEvent) => void;
onDragEnd?: (info: PickingInfo, event: MjolnirGestureEvent) => void;

/**
* If changed will reset camera to default position.
Expand Down

0 comments on commit 239b07e

Please sign in to comment.