Skip to content

Commit 0f57987

Browse files
committed
Fix tests
1 parent e76e037 commit 0f57987

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"build-examples": "vite build --config ./vite.config.js",
6262
"build-lib": "vite build --config ./vite.lib-config.js",
6363
"lint": "eslint \"src/**/*.{js,jsx,ts}\" \"test/**/*.{js,ts,tsx,jsx}\" \"example/**/*.{js,jsx}\" && tsc -p tsconfig.json --noEmit",
64-
"test": "tsc --project tsconfig.test.json && jest",
64+
"test": "tsc --project tsconfig.test.json && npm run build-lib && jest",
6565
"prepublishOnly": "npm run build-lib"
6666
},
6767
"repository": {

src/r3f/components/TilesRenderer.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { createContext, useContext, useEffect, useRef, forwardRef, useMemo, useCallback, useState, useLayoutEffect } from 'react';
22
import { useThree, useFrame } from '@react-three/fiber';
33
import { Object3D } from 'three';
4-
import { TilesRenderer as TilesRendererImpl } from '../../three/renderer/tiles/TilesRenderer.js';
4+
import { TilesRenderer as TilesRendererImpl, WGS84_ELLIPSOID } from '3d-tiles-renderer/three';
55
import { useDeepOptions } from '../utilities/useOptions.js';
66
import { useObjectDep } from '../utilities/useObjectDep.js';
77
import { useApplyRefs } from '../utilities/useApplyRefs.js';
8-
import { WGS84_ELLIPSOID } from '../../three/renderer/math/GeoConstants.js';
98

109
// context for accessing the tile set
1110
export const TilesRendererContext = createContext( null );

0 commit comments

Comments
 (0)