@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.11 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */
import{__decorate as t}from"tslib";import{isSome as o}from"../../core/arrayUtils.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as r,subclass as s}from"../../core/accessorSupport/decorators.js";import{ensureType as i}from"../../core/accessorSupport/ensureType.js";import{fromJSON as p}from"../../geometry/support/jsonUtils.js";let f=class extends e{constructor(t){super(t),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};t([r({type:Number,json:{write:!0}})],f.prototype,"bevelRatio",void 0),t([r({json:{read:{reader:t=>t?t.map(t=>p(t)).filter(o):null},write:{writer:(t,o)=>{o.geometries=t?.map(t=>t.toJSON())??null}}}})],f.prototype,"geometries",void 0),t([r({type:Number,json:{write:!0}})],f.prototype,"offsetDistance",void 0),t([r({type:String,json:{write:!0}})],f.prototype,"offsetHow",void 0),t([r({type:String,json:{write:!0}})],f.prototype,"offsetUnit",void 0),f=t([s("esri.rest.support.OffsetParameters")],f),f.from=i(f);const l=f;export{l as default};