Skip to content

Commit 423adb4

Browse files
committedMar 8, 2021
Fix math.gl import
1 parent f7c6bc9 commit 423adb4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { ZarrArray } from 'zarr';
33
import type { ImageLayer, MultiscaleImageLayer, ZarrPixelSource } from '@hms-dbmi/viv';
44
import type { VivLayerProps } from 'viv-layers';
55
import type GridLayer from './gridLayer';
6-
import { Matrix4 } from 'math.gl';
6+
import { Matrix4 } from '@math.gl/core/dist/esm';
77

88
export const DEFAULT_VIEW_STATE = { zoom: 0, target: [0, 0, 0], default: true };
99
export const DEFAULT_LAYER_PROPS = {

‎src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ContainsArrayError, HTTPStore, openArray, openGroup, ZarrArray } from 'zarr';
22
import type { Group as ZarrGroup } from 'zarr';
3-
import { Matrix4 } from 'math.gl';
3+
import { Matrix4 } from '@math.gl/core/dist/esm';
44

55
export const MAX_CHANNELS = 6;
66

‎types/viv.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
declare module 'viv-layers' {
22
import type { Layer } from '@deck.gl/core';
3-
import type { Matrix4 } from 'math.gl';
3+
import type { Matrix4 } from '@math.gl/core/dist/esm';
44
import type { LayerProps } from '@deck.gl/core/lib/layer';
55
import type { PixelSource } from '@hms-dbmi/viv';
66

0 commit comments

Comments
 (0)