UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 2.63 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as t}from"../chunks/tslib.es6.js";import{property as o}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{enumeration as e}from"../core/accessorSupport/decorators/enumeration.js";import{subclass as r}from"../core/accessorSupport/decorators/subclass.js";import i from"./Symbol3DLayer.js";import{ObjectSymbol3DLayerResource as s}from"./support/ObjectSymbol3DLayerResource.js";import{Symbol3DAnchorPosition3D as p}from"./support/Symbol3DAnchorPosition3D.js";import{Symbol3DMaterial as h}from"./support/Symbol3DMaterial.js";var a;let n=class extends i{static{a=this}constructor(t){super(t),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new a({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition?.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:this.material?.clone()??null,castShadows:this.castShadows,resource:this.resource?.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};t([o({type:h,json:{write:!0}})],n.prototype,"material",void 0),t([o({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],n.prototype,"castShadows",void 0),t([o({type:s,json:{write:!0}})],n.prototype,"resource",void 0),t([e({Object:"object"},{readOnly:!0})],n.prototype,"type",void 0),t([o({type:Number,json:{write:!0}})],n.prototype,"width",void 0),t([o({type:Number,json:{write:!0}})],n.prototype,"height",void 0),t([o({type:Number,json:{write:!0}})],n.prototype,"depth",void 0),t([e({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"},{default:"origin"})],n.prototype,"anchor",void 0),t([o({type:p,json:{type:[Number],read:{reader:t=>new p({x:t[0],y:t[1],z:t[2]})},write:{writer:(t,o)=>{o.anchorPosition=[t.x,t.y,t.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],n.prototype,"anchorPosition",void 0),t([o({type:Number,json:{write:!0}})],n.prototype,"heading",void 0),t([o({type:Number,json:{write:!0}})],n.prototype,"tilt",void 0),t([o({type:Number,json:{write:!0}})],n.prototype,"roll",void 0),t([o({readOnly:!0})],n.prototype,"isPrimitive",null),n=a=t([r("esri.symbols.ObjectSymbol3DLayer")],n);export{n as default};