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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/base/plugins/ImplicitTilingPlugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ImplicitTilingPlugin as ImplicitTilingPluginImpl } from '../../plugins/index.js';
import { ImplicitTilingPlugin as ImplicitTilingPluginImpl } from '3d-tiles-renderer/plugins';

export class ImplicitTilingPlugin extends ImplicitTilingPluginImpl {

Expand Down
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
2 changes: 1 addition & 1 deletion src/three/plugins/CesiumIonAuthPlugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CesiumIonAuthPlugin as CesiumIonAuthPluginImpl } from '../../plugins/index.js';
import { CesiumIonAuthPlugin as CesiumIonAuthPluginImpl } from '3d-tiles-renderer/plugins';

export class CesiumIonAuthPlugin extends CesiumIonAuthPluginImpl {

Expand Down
4 changes: 2 additions & 2 deletions src/three/plugins/DebugTilesPlugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DebugTilesPlugin as DebugTilesPluginImpl } from '../../plugins/three/DebugTilesPlugin.js';
import { DebugTilesPlugin as DebugTilesPluginImpl } from '3d-tiles-renderer/plugins';

export {
NONE,
Expand All @@ -12,7 +12,7 @@ export {
RANDOM_NODE_COLOR,
CUSTOM_COLOR,
LOAD_ORDER,
} from '../../plugins/three/DebugTilesPlugin.js';
} from '3d-tiles-renderer/plugins';

export class DebugTilesPlugin extends DebugTilesPluginImpl {

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

export class GoogleCloudAuthPlugin extends GoogleCloudAuthPluginImpl {

Expand Down
Loading