Skip to content

Commit

Permalink
docs: update types to reflect visgl/deck.gl#9313
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieforward9 authored Jan 24, 2025
1 parent 99b5013 commit 976b9f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/tiles/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Vector3Like} from '@math.gl/core';
import {NumberArray2, NumberArray3} from '@math.gl/core';

export type BoundingRectangle = {
width: number;
Expand All @@ -9,7 +9,7 @@ export type BoundingRectangle = {
* We can't import it from Deck.gl to avoid circular reference */
export type Viewport = {
id: string;
cameraPosition: Vector3Like;
cameraPosition: NumberArray2 | NumberArray3;
height: number;
width: number;
zoom: number;
Expand All @@ -18,8 +18,8 @@ export type Viewport = {
metersPerUnit: number[];
};
center: Vector3Like;
unprojectPosition: (position: Vector3Like) => Vector3Like;
project: (coordinates: Vector3Like) => Vector3Like;
unprojectPosition: (position: NumberArray2 | NumberArray3) => NumberArray2 | NumberArray3;
project: (coordinates: NumberArray2 | NumberArray3) => NumberArray2 | NumberArray3;
};

/**
Expand Down

0 comments on commit 976b9f6

Please sign in to comment.