Skip to content

Commit

Permalink
Fix math.gl import
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Mar 8, 2021
1 parent f7c6bc9 commit e85c96d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ZarrArray } from 'zarr';
import type { ImageLayer, MultiscaleImageLayer, ZarrPixelSource } from '@hms-dbmi/viv';
import type { VivLayerProps } from 'viv-layers';
import type GridLayer from './gridLayer';
import { Matrix4 } from 'math.gl';
import { Matrix4 } from '@math.gl/core/dist/esm';;

export const DEFAULT_VIEW_STATE = { zoom: 0, target: [0, 0, 0], default: true };
export const DEFAULT_LAYER_PROPS = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ContainsArrayError, HTTPStore, openArray, openGroup, ZarrArray } from 'zarr';
import type { Group as ZarrGroup } from 'zarr';
import { Matrix4 } from 'math.gl';
import { Matrix4 } from '@math.gl/core/dist/esm';

export const MAX_CHANNELS = 6;

Expand Down
2 changes: 1 addition & 1 deletion types/viv.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare module 'viv-layers' {
import type { Layer } from '@deck.gl/core';
import type { Matrix4 } from 'math.gl';
import type { Matrix4 } from '@math.gl/core/dist/esm';
import type { LayerProps } from '@deck.gl/core/lib/layer';
import type { PixelSource } from '@hms-dbmi/viv';

Expand Down

0 comments on commit e85c96d

Please sign in to comment.