UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.12 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as r}from"../../chunks/tslib.es6.js";import{setDeepValue as o}from"../../core/object.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";import s from"../support/OrderByInfo.js";function i(r,o,e){if(!r)return null;const t=r.find((r=>!!r.field));if(!t)return null;const i=new s;return i.read(t,e),[i]}function n(r,e,t,s){const i=r.find((r=>!!r.field));i&&o(t,[i.toJSON()],e)}const c={type:[s],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:i},write:{writer:n}}},p=o=>{let s=class extends o{constructor(){super(...arguments),this.orderBy=null}};return r([e(c)],s.prototype,"orderBy",void 0),s=r([t("esri.layers.mixins.OrderedLayer")],s),s};export{p as OrderedLayer,c as orderByProperty,i as readOrderByInfos,n as writeOrderByInfos};