From 1a7f76e65edf2900fdfde509449d50e37fa456d7 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Mon, 25 May 2026 21:09:42 +0900 Subject: [PATCH] Remove warnings from CesiumIonPlugin --- src/plugins.js | 15 --------------- src/three/plugins/CesiumIonAuthPlugin.js | 16 ---------------- 2 files changed, 31 deletions(-) diff --git a/src/plugins.js b/src/plugins.js index 2cc4c22ba..4771b833d 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -3,18 +3,3 @@ export * from '3d-tiles-renderer/core/plugins'; // Export all three.js plugins export * from '3d-tiles-renderer/three/plugins'; - -// Override with backward compatible version (no constructor warning) -import { CesiumIonAuthPlugin as CesiumIonAuthPluginDeprecated } from '3d-tiles-renderer/three/plugins'; -export class CesiumIonAuthPlugin extends CesiumIonAuthPluginDeprecated { - - constructor( options ) { - - super( { - ...options, - __suppress_warning__: true, - } ); - - } - -} diff --git a/src/three/plugins/CesiumIonAuthPlugin.js b/src/three/plugins/CesiumIonAuthPlugin.js index 0f68c5588..69837f5a5 100644 --- a/src/three/plugins/CesiumIonAuthPlugin.js +++ b/src/three/plugins/CesiumIonAuthPlugin.js @@ -25,20 +25,12 @@ export class CesiumIonAuthPlugin extends CesiumIonAuthPluginImpl { if ( type === 'TERRAIN' && tiles.getPluginByName( 'QUANTIZED_MESH_PLUGIN' ) === null ) { - console.warn( - 'CesiumIonAuthPlugin: CesiumIonAuthPlugin plugin auto-registration has been deprecated. ' + - 'Please implement a custom "assetTypeHandler" for "TERRAIN" using "QuantizedMeshPlugin", instead.' - ); tiles.registerPlugin( new QuantizedMeshPlugin( { useRecommendedSettings: this.useRecommendedSettings, } ) ); } else if ( type === 'IMAGERY' && tiles.getPluginByName( 'GENERATED_SURFACE_PLUGIN' ) === null ) { - console.warn( - 'CesiumIonAuthPlugin: CesiumIonAuthPlugin plugin auto-registration has been deprecated. ' + - 'Please implement a custom "assetTypeHandler" for "IMAGERY" using "GeneratedSurfacePlugin", instead.' - ); const overlay = new TMSTilesOverlay( { url: tiles.rootURL } ); tiles.registerPlugin( new GeneratedSurfacePlugin( { shape: 'ellipsoid', overlay } ) ); @@ -52,14 +44,6 @@ export class CesiumIonAuthPlugin extends CesiumIonAuthPluginImpl { ...options, } ); - if ( options.__suppress_warning__ ) { - - console.warn( - 'CesiumIonAuthPlugin: Plugin has been moved to "3d-tiles-renderer/core/plugins".' - ); - - } - } }