Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

6 lines
1.4 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("../../chunks/tslib.es6 ../../core/Accessor ../../core/domUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass".split(" "),function(c,b,f,d,g,k,l,h){b=class extends b{constructor(){super(...arguments);this.widget=null}destroy(){this.node=null;this.widget?.destroy()}get id(){return this._get("id")??this.widget?.id??this.node?.id}set id(a){this._set("id",a)}set node(a){const e=
this._get("node");a!==e&&(a&&a.classList.add("esri-component"),e&&e.classList.remove("esri-component"),this._set("node",a))}castNode(a){this.widget?.destroy();if(!a)return this._set("widget",null),null;if("string"===typeof a||a&&"nodeType"in a)return this._set("widget",null),f.byId(a);a&&"function"===typeof a.render&&!a.domNode&&(a.domNode=document.createElement("div"));this._set("widget",a);return a.domNode}};c.__decorate([d.property()],b.prototype,"id",null);c.__decorate([d.property()],b.prototype,
"node",null);c.__decorate([g.cast("node")],b.prototype,"castNode",null);c.__decorate([d.property({readOnly:!0})],b.prototype,"widget",void 0);return b=c.__decorate([h.subclass("esri.views.ui.Component")],b)});