Skip to content

Commit

Permalink
[index][types] - export new loaders
Browse files Browse the repository at this point in the history
Bonus: includes a couple color types that were missing previously
  • Loading branch information
Dave Buchhofer committed Nov 30, 2021
1 parent 224190a commit c146759
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 42 deletions.
63 changes: 21 additions & 42 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
export {
DebugTilesRenderer,
NONE,
SCREEN_ERROR,
Expand All @@ -8,47 +8,26 @@ import {
RELATIVE_DEPTH,
IS_LEAF,
RANDOM_COLOR,
RANDOM_NODE_COLOR,
CUSTOM_COLOR,
} from './three/DebugTilesRenderer';
import { TilesRenderer } from './three/TilesRenderer';
import { TilesGroup } from './three/TilesGroup';
import { B3DMLoader } from './three/B3DMLoader';
import { I3DMLoader } from './three/I3DMLoader';
import { PNTSLoader } from './three/PNTSLoader';
import { CMPTLoader } from './three/CMPTLoader';

import { TilesRendererBase } from './base/TilesRendererBase';
import { Tile } from './base/Tile';
import { TileBase } from './base/TileBase';
import { Tileset } from './base/Tileset';
import { B3DMLoaderBase } from './base/B3DMLoaderBase';
import { I3DMLoaderBase } from './base/I3DMLoaderBase';
import { PNTSLoaderBase } from './base/PNTSLoaderBase';
import { CMPTLoaderBase } from './base/CMPTLoaderBase';

import { LRUCache } from './utilities/LRUCache';
import { PriorityQueue } from './utilities/PriorityQueue';

export {
DebugTilesRenderer,
TilesRenderer,
B3DMLoader,
export { TilesRenderer } from './three/TilesRenderer';
export { TilesGroup } from './three/TilesGroup';
export { B3DMLoader } from './three/B3DMLoader';
export { I3DMLoader } from './three/I3DMLoader';
export { PNTSLoader } from './three/PNTSLoader';
export { CMPTLoader } from './three/CMPTLoader';
export { GLTFExtensionLoader } from './three/GLTFExtensionLoader';

Tile,
TileBase,
Tileset,
TilesRendererBase,
TilesGroup,
B3DMLoaderBase,
export { TilesRendererBase } from './base/TilesRendererBase';
export { Tile } from './base/Tile';
export { TileBase } from './base/TileBase';
export { Tileset } from './base/Tileset';
export { B3DMLoaderBase } from './base/B3DMLoaderBase';
export { I3DMLoaderBase } from './base/I3DMLoaderBase';
export { PNTSLoaderBase } from './base/PNTSLoaderBase';
export { CMPTLoaderBase } from './base/CMPTLoaderBase';
export { LoaderBase } from './base/LoaderBase';

LRUCache,
PriorityQueue,

NONE,
SCREEN_ERROR,
GEOMETRIC_ERROR,
DISTANCE,
DEPTH,
RELATIVE_DEPTH,
IS_LEAF,
RANDOM_COLOR,
};
export { LRUCache } from './utilities/LRUCache';
export { PriorityQueue } from './utilities/PriorityQueue';
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ import { B3DMLoader } from './three/B3DMLoader.js';
import { PNTSLoader } from './three/PNTSLoader.js';
import { I3DMLoader } from './three/I3DMLoader.js';
import { CMPTLoader } from './three/CMPTLoader.js';
import { GLTFExtensionLoader } from './three/GLTFExtensionLoader.js';

import { TilesRendererBase } from './base/TilesRendererBase.js';
import { LoaderBase } from './base/LoaderBase.js';
import { B3DMLoaderBase } from './base/B3DMLoaderBase.js';
import { I3DMLoaderBase } from './base/I3DMLoaderBase.js';
import { PNTSLoaderBase } from './base/PNTSLoaderBase.js';
Expand All @@ -33,8 +35,10 @@ export {
PNTSLoader,
I3DMLoader,
CMPTLoader,
GLTFExtensionLoader,

TilesRendererBase,
LoaderBase,
B3DMLoaderBase,
I3DMLoaderBase,
PNTSLoaderBase,
Expand Down

0 comments on commit c146759

Please sign in to comment.