UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.11 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 o}from"../../../chunks/tslib.es6.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as e}from"../../../core/accessorSupport/decorators/subclass.js";import t from"../../../geometry/Extent.js";import s from"../../../geometry/Geometry.js";import m from"../../../geometry/Polygon.js";import{fromJSON as p}from"../../../geometry/support/jsonUtils.js";import i from"./ClipArea.js";var y;const c={base:s,key:"type",typeMap:{extent:t,polygon:m}};let n=y=class extends i{constructor(o){super(o),this.type="geometry",this.geometry=null}clone(){return new y({geometry:this.geometry?.clone()??null})}commitVersionProperties(){this.commitProperty("geometry")}};o([r({types:c,json:{read:p,write:!0}})],n.prototype,"geometry",void 0),n=y=o([e("esri.views.layers.support.Geometry")],n);const a=n;export{a as default};