From c1467594ab2f56fc842d11f0a28477bd8efe40d5 Mon Sep 17 00:00:00 2001 From: Dave Buchhofer Date: Tue, 30 Nov 2021 11:40:27 -0500 Subject: [PATCH] [index][types] - export new loaders Bonus: includes a couple color types that were missing previously --- src/index.d.ts | 63 +++++++++++++++++--------------------------------- src/index.js | 4 ++++ 2 files changed, 25 insertions(+), 42 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 6049efad3..b9fe5db06 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,4 +1,4 @@ -import { +export { DebugTilesRenderer, NONE, SCREEN_ERROR, @@ -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'; diff --git a/src/index.js b/src/index.js index d52bce57d..f7963cc45 100644 --- a/src/index.js +++ b/src/index.js @@ -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'; @@ -33,8 +35,10 @@ export { PNTSLoader, I3DMLoader, CMPTLoader, + GLTFExtensionLoader, TilesRendererBase, + LoaderBase, B3DMLoaderBase, I3DMLoaderBase, PNTSLoaderBase,