From 2e9261b7982f8c5fe0d3d00b8c3f689cfed696cf Mon Sep 17 00:00:00 2001 From: ftoromanoff Date: Fri, 5 Jul 2024 17:19:36 +0200 Subject: [PATCH] to sasush --- src/Core/Prefab/Planar/PlanarLayer.js | 4 +--- src/Core/Prefab/PlanarView.js | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Core/Prefab/Planar/PlanarLayer.js b/src/Core/Prefab/Planar/PlanarLayer.js index 214b57c389..2c056430e1 100644 --- a/src/Core/Prefab/Planar/PlanarLayer.js +++ b/src/Core/Prefab/Planar/PlanarLayer.js @@ -38,9 +38,7 @@ class PlanarLayer extends TiledGeometryLayer { * @throws {Error} `object3d` must be a valid `THREE.Object3d`. */ constructor(id, object3d, config = {}) { - // eslint-disable-next-line prefer-rest-params - console.log(arguments); - if (arguments.length > 3 || object3d.isExtent) { + if (arguments.length > 3 || object3d?.isExtent) { console.warn("Deprecated: change in arguments, 'extent' should be set in config"); // eslint-disable-next-line prefer-rest-params const [, ext,, conf = {}] = arguments; diff --git a/src/Core/Prefab/PlanarView.js b/src/Core/Prefab/PlanarView.js index 8d5b8cc235..a27bfd8f9c 100644 --- a/src/Core/Prefab/PlanarView.js +++ b/src/Core/Prefab/PlanarView.js @@ -30,8 +30,6 @@ class PlanarView extends View { */ constructor(viewerDiv, options = {}) { THREE.Object3D.DEFAULT_UP.set(0, 0, 1); - // eslint-disable-next-line prefer-rest-params - console.log(arguments); if (arguments.length > 2 || options.isExtent) { console.warn("Deprecated: change in arguments, 'extent' should be set in options"); // eslint-disable-next-line prefer-rest-params