UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.39 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 e}from"../../chunks/tslib.es6.js";import{JSONMap as o}from"../../core/jsonMap.js";import t from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{property as i}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import n from"../../geometry/Extent.js";var p;const c=new o({upperLeft:"upper-left",lowerLeft:"lower-left"});let a=p=class extends t{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new p(r({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};e([i({type:n,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],a.prototype,"extent",void 0),e([i({type:["view","edit"],json:{write:!0}})],a.prototype,"mode",void 0),e([i({type:String,json:{read:c.read,write:c.write}})],a.prototype,"originPosition",void 0),e([i({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],a.prototype,"tolerance",void 0),a=p=e([s("esri.rest.support.QuantizationParameters")],a);const m=a;export{m as default};