Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
4.0 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("../../../chunks/tslib.es6 ../../../core/Error ../../../core/maybe ../../../core/reactiveUtils ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./LayerView3D ./graphics/elevationAlignPointsInFeatures ./graphics/GraphicsProcessor ./graphics/queryForSymbologySnapping ./support/LayerViewPerformanceInfo ./support/projectExtentUtils ../webgl-engine/lib/UpdatePolicy ../../layers/LayerView".split(" "),
function(d,h,k,l,e,b,y,z,m,n,p,q,r,t,u,v,w){b=class extends n.LayerView3D(w){constructor(){super(...arguments);this.type="graphics-3d";this.symbologySnappingSupported=!0;this._slicePlaneEnabled=!1;this.fullExtentInLocalViewSpatialReference=null;this.ignoresMemoryFactor=!0}initialize(){this._set("processor",new q.GraphicsProcessor({owner:this,scaleVisibilityEnabled:!0,frustumVisibilityEnabled:!0}));this.addResolvingPromise(this.processor.initializePromise);this.addHandles(this.layer.on("graphic-update",
a=>this.processor.graphicsCore.graphicUpdateHandler(a)));this.addResolvingPromise(u.toViewIfLocal(this).then(a=>this.fullExtentInLocalViewSpatialReference=a));this.layer.internal?this.notifyChange("updating"):this.addHandles(l.when(()=>this.view?.basemapTerrain?.ready,()=>()=>this.notifyChange("updating"),{once:!0}))}destroy(){this._updatingHandles.removeAll();this._set("processor",k.destroyMaybe(this.processor))}get loadedGraphics(){return this.layer.graphics}get legendEnabled(){return this.canResume()&&
!this.processor?.frustumVisibilitySuspended}get visibleAtCurrentScale(){return!this.processor?.scaleVisibilitySuspended}get slicePlaneEnabled(){const a=this.layer.internal;return this._slicePlaneEnabled&&!a}set slicePlaneEnabled(a){this._slicePlaneEnabled=a}getSuspendInfo(){const a=super.getSuspendInfo();a.outsideOfView=this.processor?.frustumVisibilitySuspended??!1;return a}getHit(a){return this.processor.getHit(a)}whenGraphicBounds(a,c){return this.processor.whenGraphicBounds(a,c)}computeAttachmentOrigin(a,
c){return this.processor?.computeAttachmentOrigin(a,c)}getSymbolLayerSize(a,c){return this.processor.getSymbolLayerSize(a,c)}queryGraphics(){return Promise.resolve(this.loadedGraphics)}maskOccludee(a){return this.processor.maskOccludee(a)}highlight(a){return this.processor.highlight(a)}async elevationAlignPointsInFeatures(a,c){const {processor:f}=this;if(null==f?.graphics3DGraphics)throw new h("graphicslayerview3d:missing-processor","A Graphics3D processor is needed to resolve graphics elevation.");
const {graphics3DGraphics:x}=f;return p.elevationAlignPointsInFeatures(this.view,this.layer,g=>"number"===typeof g?x.get(g):void 0,a,c)}async queryForSymbologySnapping(a,c){return r.queryForSymbologySnapping(this.processor,a,c)}get updatePolicy(){return this.processor?.graphicsCore.effectiveUpdatePolicy||v.UpdatePolicy.SYNC}isUpdating(){return this.view&&this.layer&&!(!this.processor?.updating&&(this.layer.internal||this.view.basemapTerrain?.ready))}get performanceInfo(){return new t.LayerViewPerformanceInfo(this.usedMemory,
this.loadedGraphics.length,-1,-1)}get usedMemory(){return this.processor?.graphicsCore?.usedMemory??0}get unloadedMemory(){return this.processor?.graphicsCore?.unprocessedMemoryEstimate}get test(){return{graphics3DProcessor:this.processor,loadedGraphics:this.loadedGraphics}}};d.__decorate([e.property()],b.prototype,"loadedGraphics",null);d.__decorate([e.property({readOnly:!0})],b.prototype,"legendEnabled",null);d.__decorate([e.property()],b.prototype,"layer",void 0);d.__decorate([e.property({readOnly:!0})],
b.prototype,"processor",void 0);d.__decorate([e.property({readOnly:!0})],b.prototype,"visibleAtCurrentScale",null);d.__decorate([e.property()],b.prototype,"_slicePlaneEnabled",void 0);d.__decorate([e.property({type:Boolean})],b.prototype,"slicePlaneEnabled",null);return b=d.__decorate([m.subclass("esri.views.3d.layers.GraphicsLayerView3D")],b)});