@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.3 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as o}from"../../chunks/tslib.es6.js";import{isSome as t}from"../../core/arrayUtils.js";import r from"../../core/JSONSupport.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";import{fromJSON as i}from"../../geometry/support/jsonUtils.js";let m=class extends r{constructor(o){super(o),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};o([e({type:Number,json:{write:!0}})],m.prototype,"bevelRatio",void 0),o([e({json:{read:{reader:o=>o?o.map((o=>i(o))).filter(t):null},write:{writer:(o,t)=>{t.geometries=o?.map((o=>o.toJSON()))??null}}}})],m.prototype,"geometries",void 0),o([e({type:Number,json:{write:!0}})],m.prototype,"offsetDistance",void 0),o([e({type:String,json:{write:!0}})],m.prototype,"offsetHow",void 0),o([e({type:String,json:{write:!0}})],m.prototype,"offsetUnit",void 0),m=o([p("esri.rest.support.OffsetParameters")],m),m.from=s(m);const f=m;export{f as default};