@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 3.5 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 t}from"../../chunks/tslib.es6.js";import e from"../../core/JSONSupport.js";import{clone as o}from"../../core/lang.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import{ensureType as i}from"../../core/accessorSupport/ensureType.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import{writer as n}from"../../core/accessorSupport/decorators/writer.js";import p from"../../geometry/SpatialReference.js";import{DataLayerSource as a}from"../../layers/support/source/DataLayerSource.js";var u;let c=class extends e{static{u=this}constructor(t){super(t),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(t,e){e.historicMoment=t&&t.getTime()}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(e.definitionExpression="1=1")}clone(){return new u(o({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};t([r({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),t([r({type:a,json:{write:!0}})],c.prototype,"dynamicDataSource",void 0),t([r({type:String,json:{write:!0}})],c.prototype,"gdbVersion",void 0),t([r({type:Number,json:{write:!0}})],c.prototype,"geometryPrecision",void 0),t([r({type:Date})],c.prototype,"historicMoment",void 0),t([n("historicMoment")],c.prototype,"_writeHistoricMoment",null),t([r({type:Number,json:{write:!0}})],c.prototype,"maxAllowableOffset",void 0),t([r({json:{write:!0}})],c.prototype,"objectIds",void 0),t([r({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),t([r({type:[String],json:{write:!0}})],c.prototype,"outFields",void 0),t([r({type:p,json:{read:{source:"outSR"},write:{target:"outSR"}}})],c.prototype,"outSpatialReference",void 0),t([r({json:{write:!0}})],c.prototype,"relationshipId",void 0),t([r({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),t([n("start"),n("num")],c.prototype,"writeStart",null),t([r({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),t([r({json:{write:!0}})],c.prototype,"returnGeometry",void 0),t([r({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],c.prototype,"returnM",void 0),t([r({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],c.prototype,"returnZ",void 0),t([r({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=u=t([s("esri.rest.support.RelationshipQuery")],c),c.from=i(c);export{c as default};