/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../chunks/_rollupPluginBabelHelpers","../../../../chunks/tslib.es6","../../../../geometry","../../../../core/reactiveUtils","../../../../core/Logger","../../../../core/accessorSupport/ensureType","../../../../core/arrayUtils","../../../../core/has","../../../../core/accessorSupport/set","../../../../core/accessorSupport/decorators/subclass","../../../../geometry/support/aaBoundingRect","../../../support/TileTreeDebugger","../../../../geometry/Polygon"],(function(e,r,t,i,s,o,a,n,l,u,c,g,p,T){"use strict";e.TerrainTileTree3DDebugger=function(e){function t(r){var t;return(t=e.call(this,r)||this).enablePolygons=!1,t}r._inheritsLoose(t,e);var i=t.prototype;return i.initialize=function(){s.watch((()=>this.enabled),(e=>this.view.basemapTerrain.renderPatchBorders=e),s.initial)},i.getTiles=function(){return this.view.basemapTerrain.test.getRenderedTiles().map((e=>({...e,geometry:T.fromExtent(g.toExtent(e.extent,this.view.basemapTerrain.spatialReference))})))},t}(p.TileTreeDebugger),e.TerrainTileTree3DDebugger=t.__decorate([c.subclass("esri.views.3d.layers.support.TerrainTileTree3DDebugger")],e.TerrainTileTree3DDebugger),Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
