Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename imports for subpackages #839

Closed
wants to merge 14 commits into from
2 changes: 1 addition & 1 deletion src/plugins/three/objects/EllipsoidRegionHelper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EllipsoidRegion } from '../../../three/math/EllipsoidRegion.js';
import { EllipsoidRegion } from '3d-tiles-renderer';
import { Mesh, Vector3, MathUtils, BoxGeometry, BufferGeometry, EdgesGeometry, LineSegments, BufferAttribute } from 'three';

const _norm = new Vector3();
Expand Down
4 changes: 2 additions & 2 deletions src/r3f/components/CameraControls.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { forwardRef, useMemo, useEffect, useContext } from 'react';
import { useThree, useFrame } from '@react-three/fiber';
import { EnvironmentControls as EnvironmentControlsImpl } from '../../three/controls/EnvironmentControls.js';
import { GlobeControls as GlobeControlsImpl } from '../../three/controls/GlobeControls.js';
import { EnvironmentControls as EnvironmentControlsImpl } from '3d-tiles-renderer';
import { GlobeControls as GlobeControlsImpl } from '3d-tiles-renderer';
import { useShallowOptions } from '../utilities/useOptions.jsx';
import { TilesRendererContext } from './TilesRenderer.jsx';

Expand Down
2 changes: 1 addition & 1 deletion src/r3f/components/CompassGizmo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createPortal, useFrame, useThree } from '@react-three/fiber';
import { useContext, useEffect, useMemo, useRef, useState } from 'react';
import { BackSide, Matrix4, OrthographicCamera, Ray, Scene, Vector3 } from 'three';
import { TilesRendererContext } from './TilesRenderer';
import { closestRayEllipsoidSurfacePointEstimate } from '../../three/controls/utils';
import { closestRayEllipsoidSurfacePointEstimate } from '../../three/controls/utils.js';

// Based in part on @pmndrs/drei's Gizmo component

Expand Down
2 changes: 1 addition & 1 deletion src/r3f/components/TilesRenderer.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createContext, useContext, useState, useEffect, useRef, forwardRef, useMemo } from 'react';
import { useThree, useFrame } from '@react-three/fiber';
import { Vector3 } from 'three';
import { TilesRenderer as TilesRendererImpl } from '../../three/TilesRenderer.js';
import { TilesRenderer as TilesRendererImpl } from '3d-tiles-renderer';
import { useDeepOptions, useShallowOptions } from '../utilities/useOptions.jsx';
import { useObjectDep } from '../utilities/useObjectDep.jsx';
import { useForceUpdate } from '../utilities/useForceUpdate.jsx';
Expand Down
2 changes: 1 addition & 1 deletion src/three/loaders/gltf/GLTFCesiumRTCExtension.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GLTFCesiumRTCExtension as GLTFCesiumRTCExtensionImpl } from '../../../plugins/index.js';
import { GLTFCesiumRTCExtension as GLTFCesiumRTCExtensionImpl } from '3d-tiles-renderer/plugins';

export class GLTFCesiumRTCExtension extends GLTFCesiumRTCExtensionImpl {

Expand Down
2 changes: 1 addition & 1 deletion src/three/loaders/gltf/GLTFMeshFeaturesExtension.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GLTFMeshFeaturesExtension as GLTFMeshFeaturesExtensionImpl } from '../../../plugins/index.js';
import { GLTFMeshFeaturesExtension as GLTFMeshFeaturesExtensionImpl } from '3d-tiles-renderer/plugins';

export class GLTFMeshFeaturesExtension extends GLTFMeshFeaturesExtensionImpl {

Expand Down
2 changes: 1 addition & 1 deletion src/three/loaders/gltf/GLTFStructuralMetadataExtension.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GLTFStructuralMetadataExtension as GLTFStructuralMetadataExtensionImpl } from '../../../plugins/index.js';
import { GLTFStructuralMetadataExtension as GLTFStructuralMetadataExtensionImpl } from '3d-tiles-renderer/plugins';

export class GLTFStructuralMetadataExtension extends GLTFStructuralMetadataExtensionImpl {

Expand Down
Loading