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