@threepipe/plugin-3d-tiles-renderer 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +12 -0
- package/dist/TilesRendererPlugin.d.ts +3 -3
- package/dist/TilesRendererPlugin.d.ts.map +1 -1
- package/dist/index.js +53 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +53 -38
- package/dist/index.mjs.map +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +29 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1633 -0
- package/docs/classes/B3DMLoadPlugin.html +12 -0
- package/docs/classes/CMPTLoadPlugin.html +12 -0
- package/docs/classes/DeepZoomImageLoadPlugin.html +12 -0
- package/docs/classes/EnvironmentControls2.html +20 -0
- package/docs/classes/EnvironmentControlsPlugin.html +27 -0
- package/docs/classes/GlobeControls2.html +24 -0
- package/docs/classes/GlobeControlsPlugin.html +27 -0
- package/docs/classes/I3DMLoadPlugin.html +12 -0
- package/docs/classes/PNTSLoadPlugin.html +12 -0
- package/docs/classes/SlippyMapTilesLoadPlugin.html +13 -0
- package/docs/classes/TilesRendererLoader.html +8 -0
- package/docs/classes/TilesRendererPlugin.html +33 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +1 -0
- package/docs/interfaces/TilesImportOptions.html +11 -0
- package/docs/types/TilesRendererGroup.html +1 -0
- package/docs/variables/CesiumIonAuthPlugin.html +1 -0
- package/package.json +7 -9
- package/src/TilesRendererPlugin.ts +68 -44
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>TilesImportOptions | Threepipe 3D Tiles Renderer and Importer Plugins</title><meta name="description" content="Documentation for Threepipe 3D Tiles Renderer and Importer Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Threepipe 3D Tiles Renderer and Importer Plugins</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">TilesImportOptions</a></li></ul><h1>Interface TilesImportOptions</h1></div><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">TilesImportOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#cesiumionauthplugin">CesiumIonAuthPlugin</a><span class="tsd-signature-symbol">?:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">apiToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">assetId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">autoRefreshToken</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#deepzoomimageplugin">DeepZoomImagePlugin</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">center</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">pixelSize</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">useRecommendedSettings</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#errortarget">errorTarget</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#implicittilingplugin">ImplicitTilingPlugin</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#plugins">plugins</a><span class="tsd-signature-symbol">?:</span> (<br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">opts</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-interface">TilesImportOptions</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">group</span><span class="tsd-signature-symbol">:</span> <a href="../types/TilesRendererGroup.html" class="tsd-signature-type tsd-kind-type-alias">TilesRendererGroup</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">object</span><br/> )<span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#tilesfadeplugin">TilesFadePlugin</a><span class="tsd-signature-symbol">?:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fadeDuration</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">fadeRootTiles</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">maximumFadeOutTiles</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#xyztilesplugin">XYZTilesPlugin</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">center</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">levels</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">pixelSize</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">projection</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"ellipsoid"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"planar"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">tileDimension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">useRecommendedSettings</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts#L360" class="external" target="_blank">plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts:360</a></li><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/DeepZoomImageLoadPlugin.ts#L42" class="external" target="_blank">plugins/3d-tiles-renderer/src/DeepZoomImageLoadPlugin.ts:42</a></li><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/SlippyMapTilesLoadPlugin.ts#L40" class="external" target="_blank">plugins/3d-tiles-renderer/src/SlippyMapTilesLoadPlugin.ts:40</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#cesiumionauthplugin" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cesium<wbr/>Ion<wbr/>Auth<wbr/>Plugin?</span></a>
|
|
2
|
+
<a href="#deepzoomimageplugin" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Deep<wbr/>Zoom<wbr/>Image<wbr/>Plugin?</span></a>
|
|
3
|
+
<a href="#errortarget" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>error<wbr/>Target?</span></a>
|
|
4
|
+
<a href="#implicittilingplugin" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Implicit<wbr/>Tiling<wbr/>Plugin?</span></a>
|
|
5
|
+
<a href="#plugins" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>plugins?</span></a>
|
|
6
|
+
<a href="#tilesfadeplugin" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Tiles<wbr/>Fade<wbr/>Plugin?</span></a>
|
|
7
|
+
<a href="#xyztilesplugin" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>XYZ<wbr/>Tiles<wbr/>Plugin?</span></a>
|
|
8
|
+
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Properties</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="cesiumionauthplugin"><code class="tsd-tag">Optional</code><span>Cesium<wbr/>Ion<wbr/>Auth<wbr/>Plugin</span><a href="#cesiumionauthplugin" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CesiumIonAuthPlugin</span><span class="tsd-signature-symbol">?:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">apiToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">assetId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">autoRefreshToken</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts#L371" class="external" target="_blank">plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts:371</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="deepzoomimageplugin"><code class="tsd-tag">Optional</code><span>Deep<wbr/>Zoom<wbr/>Image<wbr/>Plugin</span><a href="#deepzoomimageplugin" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">DeepZoomImagePlugin</span><span class="tsd-signature-symbol">?:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">center</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">pixelSize</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">useRecommendedSettings</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/DeepZoomImageLoadPlugin.ts#L43" class="external" target="_blank">plugins/3d-tiles-renderer/src/DeepZoomImageLoadPlugin.ts:43</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="errortarget"><code class="tsd-tag">Optional</code><span>error<wbr/>Target</span><a href="#errortarget" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">errorTarget</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-comment tsd-typography"><div class="tsd-tag-default"><h4 class="tsd-anchor-link" id="default">Default<a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">1</span>
|
|
9
|
+
</code><button type="button">Copy</button></pre>
|
|
10
|
+
|
|
11
|
+
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts#L364" class="external" target="_blank">plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts:364</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="implicittilingplugin"><code class="tsd-tag">Optional</code><span>Implicit<wbr/>Tiling<wbr/>Plugin</span><a href="#implicittilingplugin" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">ImplicitTilingPlugin</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts#L365" class="external" target="_blank">plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts:365</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="plugins"><code class="tsd-tag">Optional</code><span>plugins</span><a href="#plugins" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">?:</span> (<br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">opts</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-interface">TilesImportOptions</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">group</span><span class="tsd-signature-symbol">:</span> <a href="../types/TilesRendererGroup.html" class="tsd-signature-type tsd-kind-type-alias">TilesRendererGroup</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">object</span><br/>)<span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts#L376" class="external" target="_blank">plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts:376</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="tilesfadeplugin"><code class="tsd-tag">Optional</code><span>Tiles<wbr/>Fade<wbr/>Plugin</span><a href="#tilesfadeplugin" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">TilesFadePlugin</span><span class="tsd-signature-symbol">?:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fadeDuration</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">fadeRootTiles</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">maximumFadeOutTiles</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts#L366" class="external" target="_blank">plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts:366</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="xyztilesplugin"><code class="tsd-tag">Optional</code><span>XYZ<wbr/>Tiles<wbr/>Plugin</span><a href="#xyztilesplugin" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">XYZTilesPlugin</span><span class="tsd-signature-symbol">?:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">center</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">levels</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">pixelSize</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">projection</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"ellipsoid"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"planar"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">tileDimension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">useRecommendedSettings</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/SlippyMapTilesLoadPlugin.ts#L41" class="external" target="_blank">plugins/3d-tiles-renderer/src/SlippyMapTilesLoadPlugin.ts:41</a></li></ul></aside></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#cesiumionauthplugin"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cesium<wbr/>Ion<wbr/>Auth<wbr/>Plugin</span></a><a href="#deepzoomimageplugin"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Deep<wbr/>Zoom<wbr/>Image<wbr/>Plugin</span></a><a href="#errortarget"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>error<wbr/>Target</span></a><a href="#implicittilingplugin"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Implicit<wbr/>Tiling<wbr/>Plugin</span></a><a href="#plugins"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>plugins</span></a><a href="#tilesfadeplugin"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Tiles<wbr/>Fade<wbr/>Plugin</span></a><a href="#xyztilesplugin"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>XYZ<wbr/>Tiles<wbr/>Plugin</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">Threepipe 3D Tiles Renderer and Importer Plugins</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>TilesRendererGroup | Threepipe 3D Tiles Renderer and Importer Plugins</title><meta name="description" content="Documentation for Threepipe 3D Tiles Renderer and Importer Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Threepipe 3D Tiles Renderer and Importer Plugins</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">TilesRendererGroup</a></li></ul><h1>Type Alias TilesRendererGroup</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">TilesRendererGroup</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TilesGroup</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">IObject3D</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/repalash/threepipe/blob/e44f4c5308c6ce59ace62d93d61e1413ebd672ae/plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts#L35" class="external" target="_blank">plugins/3d-tiles-renderer/src/TilesRendererPlugin.ts:35</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">Threepipe 3D Tiles Renderer and Importer Plugins</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CesiumIonAuthPlugin | Threepipe 3D Tiles Renderer and Importer Plugins</title><meta name="description" content="Documentation for Threepipe 3D Tiles Renderer and Importer Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Threepipe 3D Tiles Renderer and Importer Plugins</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">CesiumIonAuthPlugin</a></li></ul><h1>Variable CesiumIonAuthPlugin</h1></div><div class="tsd-signature"><span class="tsd-kind-variable">CesiumIonAuthPlugin</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">Threepipe 3D Tiles Renderer and Importer Plugins</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threepipe/plugin-3d-tiles-renderer",
|
|
3
3
|
"description": "Interface for 3d-tiles-renderer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"dependencies": {},
|
|
6
|
-
"
|
|
7
|
-
"threepipe": "
|
|
8
|
-
"three": "$three",
|
|
9
|
-
"@types/three": "$@types/three"
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"threepipe": "^0.1.0"
|
|
10
8
|
},
|
|
11
9
|
"exports": {
|
|
12
10
|
".": {
|
|
@@ -25,7 +23,10 @@
|
|
|
25
23
|
"types": "dist/index.d.ts",
|
|
26
24
|
"files": [
|
|
27
25
|
"dist",
|
|
28
|
-
"src"
|
|
26
|
+
"src",
|
|
27
|
+
"README.md",
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"docs"
|
|
29
30
|
],
|
|
30
31
|
"author": "repalash <palash@shaders.app>",
|
|
31
32
|
"license": "Apache-2.0",
|
|
@@ -44,8 +45,5 @@
|
|
|
44
45
|
"type": "git",
|
|
45
46
|
"url": "git://github.com/repalash/threepipe.git",
|
|
46
47
|
"directory": "plugins/tiles-renderer-3d"
|
|
47
|
-
},
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"threepipe": "^0.0.43"
|
|
50
48
|
}
|
|
51
49
|
}
|
|
@@ -2,27 +2,35 @@ import {
|
|
|
2
2
|
AViewerPluginEventMap,
|
|
3
3
|
AViewerPluginSync,
|
|
4
4
|
Box3B,
|
|
5
|
+
DropzonePlugin,
|
|
5
6
|
EventListener2,
|
|
6
7
|
generateUUID,
|
|
7
8
|
IAssetImporter,
|
|
8
9
|
ILoader,
|
|
10
|
+
ImportAddOptions,
|
|
9
11
|
Importer,
|
|
10
12
|
IObject3D,
|
|
11
13
|
iObjectCommons,
|
|
12
14
|
IRenderManager,
|
|
13
15
|
IRenderManagerEventMap,
|
|
14
|
-
IScene,
|
|
15
|
-
ISceneEventMap,
|
|
16
16
|
Loader,
|
|
17
|
-
ImportAddOptions,
|
|
18
17
|
LoadingManager,
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
Object3D,
|
|
19
|
+
Sphere,
|
|
20
|
+
ThreeViewer,
|
|
21
|
+
uiButton,
|
|
22
|
+
uiFolderContainer,
|
|
23
|
+
IObjectExtension,
|
|
21
24
|
} from 'threepipe'
|
|
22
25
|
import {TilesGroup, TilesRenderer} from '3d-tiles-renderer'
|
|
23
26
|
import {gltfCesiumRTCExtension, gltfMeshFeaturesExtension, gltfStructuralMetadataExtension} from './gltf'
|
|
27
|
+
import {
|
|
28
|
+
CesiumIonAuthPlugin,
|
|
29
|
+
ImplicitTilingPlugin,
|
|
30
|
+
TilesFadePlugin,
|
|
31
|
+
UpdateOnChangePlugin,
|
|
24
32
|
// @ts-expect-error moduleResolution issue
|
|
25
|
-
|
|
33
|
+
} from '3d-tiles-renderer/plugins'
|
|
26
34
|
|
|
27
35
|
export type TilesRendererGroup = TilesGroup & IObject3D
|
|
28
36
|
|
|
@@ -93,7 +101,8 @@ export class TilesRendererPlugin extends AViewerPluginSync<TilesRendererPluginEv
|
|
|
93
101
|
viewer.assetManager.registerGltfExtension(gltfStructuralMetadataExtension)
|
|
94
102
|
viewer.assetManager.registerGltfExtension(gltfMeshFeaturesExtension)
|
|
95
103
|
viewer.assetManager.importer.addImporter(this._importer)
|
|
96
|
-
viewer.
|
|
104
|
+
viewer.object3dManager.registerObjectExtension(this._objectExt)
|
|
105
|
+
// viewer.scene.addEventListener('addSceneObject', this._addSceneObject)
|
|
97
106
|
// viewer.scene.addEventListener('mainCameraChange', this._mainCameraChange)
|
|
98
107
|
// viewer.scene.addEventListener('mainCameraUpdate', this._mainCameraUpdate)
|
|
99
108
|
viewer.renderManager.addEventListener('preRender', this._preRender) // note - adding to renderManager preRender, not viewer. So its fired for each camera render
|
|
@@ -105,7 +114,8 @@ export class TilesRendererPlugin extends AViewerPluginSync<TilesRendererPluginEv
|
|
|
105
114
|
viewer.assetManager.unregisterGltfExtension(gltfCesiumRTCExtension.name)
|
|
106
115
|
viewer.assetManager.unregisterGltfExtension(gltfStructuralMetadataExtension.name)
|
|
107
116
|
viewer.assetManager.unregisterGltfExtension(gltfMeshFeaturesExtension.name)
|
|
108
|
-
viewer.
|
|
117
|
+
viewer.object3dManager.unregisterObjectExtension(this._objectExt)
|
|
118
|
+
// viewer.scene.removeEventListener('addSceneObject', this._addSceneObject)
|
|
109
119
|
// viewer.scene.removeEventListener('mainCameraChange', this._mainCameraChange)
|
|
110
120
|
// viewer.scene.removeEventListener('mainCameraUpdate', this._mainCameraUpdate)
|
|
111
121
|
viewer.renderManager.removeEventListener('preRender', this._preRender)
|
|
@@ -159,46 +169,47 @@ export class TilesRendererPlugin extends AViewerPluginSync<TilesRendererPluginEv
|
|
|
159
169
|
|
|
160
170
|
private _cachedRefs?: Pick<TilesRenderer, 'lruCache' | 'downloadQueue' | 'parseQueue'/* | 'processNodeQueue'*/>
|
|
161
171
|
|
|
162
|
-
private
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
private _objectExt: IObjectExtension = {
|
|
173
|
+
uuid: 'TilesRendererPluginObjectExt',
|
|
174
|
+
isCompatible: (o)=>!!(o as TilesRendererGroup).tilesRenderer,
|
|
175
|
+
onRegister: (group: TilesRendererGroup)=>{
|
|
176
|
+
if (!group || !group.tilesRenderer || !this._viewer) return
|
|
177
|
+
|
|
178
|
+
// set the second renderer to share the cache and queues from the first
|
|
179
|
+
if (!this._cachedRefs) {
|
|
180
|
+
this._cachedRefs = {
|
|
181
|
+
lruCache: group.tilesRenderer.lruCache,
|
|
182
|
+
downloadQueue: group.tilesRenderer.downloadQueue,
|
|
183
|
+
parseQueue: group.tilesRenderer.parseQueue,
|
|
184
|
+
// @ts-expect-error not in ts
|
|
185
|
+
processNodeQueue: group.tilesRenderer.processNodeQueue,
|
|
186
|
+
}
|
|
187
|
+
} else {
|
|
188
|
+
group.tilesRenderer.lruCache = this._cachedRefs.lruCache
|
|
189
|
+
group.tilesRenderer.downloadQueue = this._cachedRefs.downloadQueue
|
|
190
|
+
group.tilesRenderer.parseQueue = this._cachedRefs.parseQueue
|
|
174
191
|
// @ts-expect-error not in ts
|
|
175
|
-
|
|
192
|
+
group.tilesRenderer.processNodeQueue = this._cachedRefs.processNodeQueue
|
|
176
193
|
}
|
|
177
|
-
} else {
|
|
178
|
-
group.tilesRenderer.lruCache = this._cachedRefs.lruCache
|
|
179
|
-
group.tilesRenderer.downloadQueue = this._cachedRefs.downloadQueue
|
|
180
|
-
group.tilesRenderer.parseQueue = this._cachedRefs.parseQueue
|
|
181
|
-
// @ts-expect-error not in ts
|
|
182
|
-
group.tilesRenderer.processNodeQueue = this._cachedRefs.processNodeQueue
|
|
183
|
-
}
|
|
184
194
|
|
|
185
|
-
|
|
195
|
+
this.objects.push(group)
|
|
186
196
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
group.tilesRenderer.registerPlugin({
|
|
198
|
+
dispose: () => {
|
|
199
|
+
const index = this.objects.indexOf(group)
|
|
200
|
+
if (index !== -1) this.objects.splice(index, 1)
|
|
201
|
+
this.dispatchEvent({type: 'removeTile', group})
|
|
202
|
+
},
|
|
203
|
+
})
|
|
204
|
+
group.tilesRenderer.setCamera(this._viewer.scene.mainCamera)
|
|
205
|
+
group.tilesRenderer.setResolutionFromRenderer(this._viewer.scene.mainCamera, this._viewer.renderManager.webglRenderer)
|
|
206
|
+
group.tilesRenderer.update()
|
|
207
|
+
group.addEventListener('dispose', ()=>{
|
|
208
|
+
group.tilesRenderer.dispose()
|
|
209
|
+
})
|
|
200
210
|
|
|
201
|
-
|
|
211
|
+
this.dispatchEvent({type: 'addTile', group})
|
|
212
|
+
},
|
|
202
213
|
}
|
|
203
214
|
|
|
204
215
|
@uiButton()
|
|
@@ -288,7 +299,20 @@ export class TilesRendererLoader extends Loader implements ILoader<TilesRenderer
|
|
|
288
299
|
})
|
|
289
300
|
tiles.addEventListener('load-tile-set', (e) => {
|
|
290
301
|
const isRoot = e.tileSet === tiles.rootTileSet
|
|
291
|
-
if (isRoot && resolve)
|
|
302
|
+
if (isRoot && resolve) {
|
|
303
|
+
resolve()
|
|
304
|
+
}
|
|
305
|
+
})
|
|
306
|
+
|
|
307
|
+
group.userData.rootPathRefresh = true // when next loaded from gltf, the object will be refreshed based on rootPath
|
|
308
|
+
group._rootPathRefreshed = true // so that it doesn't do it this time
|
|
309
|
+
group._sChildren = [] // so that it's children are not saved in the gltf exporter.
|
|
310
|
+
tiles.registerPlugin({
|
|
311
|
+
processTileModel: (model: Object3D, tile: any) => {
|
|
312
|
+
if (tile === (tiles.rootTileSet as any)?.root) {
|
|
313
|
+
group._sChildren = [model] // the root tileset will be saved inside the gltf on export
|
|
314
|
+
}
|
|
315
|
+
},
|
|
292
316
|
})
|
|
293
317
|
|
|
294
318
|
const ai = this.ai
|