/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{property as i,subclass as s}from"../../core/accessorSupport/decorators.js";import n from"../../geometry/Extent.js";var p;const l=new t({upperLeft:"upper-left",lowerLeft:"lower-left"});let m=p=class extends o{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}}}}})],m.prototype,"extent",void 0),e([i({type:["view","edit"],json:{write:!0}})],m.prototype,"mode",void 0),e([i({type:String,json:{read:l.read,write:l.write}})],m.prototype,"originPosition",void 0),e([i({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],m.prototype,"tolerance",void 0),m=p=e([s("esri.rest.support.QuantizationParameters")],m);export{m as default};
