{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/I3STreeDebugger.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/TileTree3DDebugger.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAsB,CAAC,2BAAwB,CAAC,2BAA6C,CAAC,2BAAwC,CAAC,2BAA2C,CAAC,2BAAwC,CAAC,2BAA2C,CAAC,2BAAsB,CAAC,2BAA+B,CAAC,mCAAE,kCAAkC,aAAa,sCAAsC,SAAS,2BAA2B,kBAAkB,cAAc,4BAA4B,sDAAsD,8BAA8B,sGAAsG,uBAAuB,mBAAmB,2BAA2B,yHAAyH,iBAAiB,67BAA67B,qBAAqB,2BAA2B,EAAE,OAAO,+CAA+C,QAAQ,uBAAuB,4DAA4D,GAAG,4BAA4B,kBAAkB,GAAG,qBAAqB,uCAAuC,GAAG,2BAA2B,iBAAiB,sDAAsD,iBAAiB,+GAA+G,uBAAuB,oBAAoB,8CAA8C;AAAA,oGAAE,C;;;;;;;ACxBn9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAqB,CAAC,2BAA2B,CAAC,2BAA4B,CAAC,2BAAwB,CAAC,2BAA6C,CAAC,2BAAuC,CAAC,2BAAmC,CAAC,2BAAqC,CAAC,2BAAuC,CAAC,mCAAE,kCAAkC,aAAa,sCAAsC,SAAS,8BAA8B,+PAA+P,cAAc,2BAA2B,wEAAwE,0DAA0D,iCAAiC,oBAAoB,UAAU,0BAA0B,UAAU,sBAAsB,GAAG,GAAG,8CAA8C,eAAe,qBAAqB,iBAAiB,mDAAmD,+BAA+B,iCAAiC,iDAAiD,qCAAqC,WAAW,+BAA+B,gCAAgC,yCAAyC,uCAAuC,yBAAyB,sBAAsB,0CAA0C,kDAAkD,GAAG,wDAAwD,0CAA0C,+CAA+C,uCAAuC,gBAAgB,oBAAoB,UAAU,kCAAkC,eAAe,sBAAsB,aAAa,yBAAyB,WAAW,sBAAsB,YAAY,GAAG,EAAE,EAAE,oBAAoB,+CAA+C,8BAA8B,gEAAgE,2BAA2B,iBAAiB,wDAAwD,YAAY,oHAAoH,IAAI,uBAAuB;AAAA,oGAAE,C","file":"js/chunk-16b30882.70907987.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../geometry\",\"../../../../core/maybe\",\"../../../../core/accessorSupport/decorators\",\"../../../../core/libs/gl-matrix-2/mat4\",\"../../../../core/libs/gl-matrix-2/mat4f64\",\"../../../../core/libs/gl-matrix-2/vec3\",\"../../../../core/libs/gl-matrix-2/vec3f64\",\"./TileTree3DDebugger\",\"../../support/projectionUtils\"],(function(e,r,t,o,i,f,u,c,a,s,n,l){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.I3STreeDebugger=void 0;var p=function(e){function r(r){return e.call(this,r)||this}return t.__extends(r,e),r.prototype.update=function(){if(this.clear(),this.enabled){var e=this.lv.getVisibleNodes(),r=this.view.renderSpatialReference,t=this.nodeSR,f=e.map((function(e){return function(e,r,t){var f=e.serviceObb;if(i.isNone(f))return null;u.mat4.fromQuat(v,f.quaternion),a.vec3.copy(h,f.center),l.bufferToBuffer(h,t,0,h,r,0,1),v[12]=h[0],v[13]=h[1],v[14]=h[2];var c=[[],[],[]];a.vec3.copy(h,f.halfSize),a.vec3.transformMat4(h,h,v),l.bufferToBuffer(h,r,0,h,t,0,1),c[0].push([h[0],h[1]]),a.vec3.copy(h,f.halfSize),h[0]=-h[0],a.vec3.transformMat4(h,h,v),l.bufferToBuffer(h,r,0,h,t,0,1),c[0].push([h[0],h[1]]),a.vec3.copy(h,f.halfSize),h[0]=-h[0],h[1]=-h[1],a.vec3.transformMat4(h,h,v),l.bufferToBuffer(h,r,0,h,t,0,1),c[0].push([h[0],h[1]]),a.vec3.copy(h,f.halfSize),h[1]=-h[1],a.vec3.transformMat4(h,h,v),l.bufferToBuffer(h,r,0,h,t,0,1),c[0].push([h[0],h[1]]),c[1].push(c[0][0]),c[1].push(c[0][1]),a.vec3.copy(h,f.halfSize),h[0]=-h[0],h[2]=-h[2],a.vec3.transformMat4(h,h,v),l.bufferToBuffer(h,r,0,h,t,0,1),c[1].push([h[0],h[1]]),a.vec3.copy(h,f.halfSize),h[2]=-h[2],a.vec3.transformMat4(h,h,v),l.bufferToBuffer(h,r,0,h,t,0,1),c[1].push([h[0],h[1]]),c[2].push(c[0][0]),c[2].push(c[0][3]),a.vec3.copy(h,f.halfSize),h[1]=-h[1],h[2]=-h[2],a.vec3.transformMat4(h,h,v),l.bufferToBuffer(h,r,0,h,t,0,1),c[2].push([h[0],h[1]]),c[2].push(c[1][3]);var s=new o.Polygon({rings:c,spatialReference:t});return{lij:[e.level,e.childCount],id:e.id,geometry:s}}(e,r,t)})).sort((function(e,r){return e.lij[0]===r.lij[0]?e.id>r.id?-1:1:e.lij[0]-r.lij[0]}));this._update(f,(function(e){return e.geometry}),{getLabel:function(e){return e.lij[0]+\"/\"+e.id+\"/\"+e.lij[1]}})}},t.__decorate([f.property({constructOnly:!0})],r.prototype,\"lv\",void 0),t.__decorate([f.property({constructOnly:!0})],r.prototype,\"nodeSR\",void 0),r=t.__decorate([f.subclass(\"esri.views.3d.layers.support.I3STreeDebugger\")],r)}(n.TileTree3DDebugger);r.I3STreeDebugger=p;var v=c.mat4f64.create(),h=s.vec3f64.create()}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../Graphic\",\"../../../../core/Accessor\",\"../../../../core/mathUtils\",\"../../../../core/maybe\",\"../../../../core/accessorSupport/decorators\",\"../../../../symbols/FillSymbol3DLayer\",\"../../../../symbols/PointSymbol3D\",\"../../../../symbols/PolygonSymbol3D\",\"../../../../symbols/TextSymbol3DLayer\"],(function(e,t,r,o,i,s,l,n,a,c,p,y){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.TileTree3DDebugger=void 0;var u=[[0,179,255],[117,62,128],[0,104,255],[215,189,166],[32,0,193],[98,162,206],[102,112,129],[52,125,0],[142,118,246],[138,83,0],[92,122,255],[122,55,83],[0,142,255],[81,40,179],[0,200,244],[13,24,127],[0,170,147],[19,58,241],[22,44,35]],h=function(e){function t(t){var r=e.call(this,t)||this;return r.updating=!1,r.enablePolygons=!0,r._graphics=[],r._enabled=!0,r}return r.__extends(t,e),t.prototype.initialize=function(){this._symbols=u.map((function(e){return new p(new a({material:{color:[e[0],e[1],e[2],.6]},outline:{color:\"black\",size:1}}))}))},Object.defineProperty(t.prototype,\"enabled\",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.update())},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.view&&(this.clear(),this._set(\"view\",null))},t.prototype._update=function(e,t,r){var i=this;if(this.clear(),this._enabled){var n,a=r.getLabel||function(e){var t=e.lij[0]+\"/\"+e.lij[1]+\"/\"+e.lij[2];return l.isSome(n)&&(t+=\" (\"+n+\")\"),t};e.forEach((function(p,u){var h=p.lij[0],b=t(p);i.enablePolygons&&i._graphics.push(new o({geometry:b,symbol:i._symbols[h%i._symbols.length]}));var d=u/(e.length-1),g=s.lerp(0,200,d),_=s.lerp(20,6,d);n=r.getLoadPriority&&r.getLoadPriority(p);var m=l.isSome(n)&&n>=e.length,f=a(p),v=new o({geometry:b.extent.center,symbol:new c({verticalOffset:{screenLength:40/.75},callout:{type:\"line\",color:\"white\",border:{color:\"black\"}},symbolLayers:[new y({text:f,halo:{color:\"white\",size:1/.75},material:{color:[g,m?0:g,m?0:g]},size:_/.75})]})});i._graphics.push(v)})),this.view.graphics.addMany(this._graphics)}},t.prototype.clear=function(){this.view.graphics.removeMany(this._graphics),this._graphics=[]},r.__decorate([n.property({constructOnly:!0})],t.prototype,\"view\",void 0),r.__decorate([n.property({readOnly:!0})],t.prototype,\"updating\",void 0),t=r.__decorate([n.subclass(\"esri.views.3d.layers.support.TileTree3DDebugger\")],t)}(i);t.TileTree3DDebugger=h}));"],"sourceRoot":""}