UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 2.22 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as r}from"../../../chunks/tslib.es6.js";import s from"../../../core/Accessor.js";import e from"../../../core/Identifiable.js";import{destroyMaybe as o}from"../../../core/maybe.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as i}from"../../../core/accessorSupport/decorators/subclass.js";import{GraphicsProcessor as p}from"./graphics/GraphicsProcessor.js";import{defaultHighlightName as c}from"../../support/HighlightDefaults.js";let a=class extends(e.IdentifiableMixin(s)){constructor(r){super(r),this.processor=null,this.slicePlaneEnabled=!1,this.layer=new h,this.suspended=!1}initialize(){this._set("processor",new p({owner:this}))}destroy(){this._set("processor",o(this.processor))}get graphics(){return this.view?.graphics}get loadedGraphics(){return this.graphics}get updating(){return!!this.processor?.updating}get symbolUpdateType(){return this.processor.graphicsCore.symbolUpdateType}getHit(r){return this.processor.getHit(r)}whenGraphicBounds(r,s){return this.processor.whenGraphicBounds(r,s)}graphicChanged(r){this.processor.graphicsCore.graphicUpdateHandler(r)}get updatePolicy(){return this.processor.graphicsCore.effectiveUpdatePolicy}async queryGraphics(){return this.loadedGraphics}highlight(r,s){return this.processor.highlight(r,s?.name??c)}maskOccludee(r){return this.processor.maskOccludee(r)}get test(){return{graphics3DProcessor:this.processor}}};r([t({readOnly:!0})],a.prototype,"graphics",null),r([t()],a.prototype,"loadedGraphics",null),r([t({readOnly:!0})],a.prototype,"updating",null),r([t({constructOnly:!0})],a.prototype,"view",void 0),r([t()],a.prototype,"processor",void 0),r([t({type:Boolean})],a.prototype,"slicePlaneEnabled",void 0),r([t()],a.prototype,"layer",void 0),r([t()],a.prototype,"suspended",void 0),a=r([i("esri.views.3d.layers.GraphicsView3D")],a);class h extends e{constructor(){super(),this.type="graphics-view-3d-dummy",this.id=this.uid}}const n=a;export{n as default};