Geometry.js
1.47 KB
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.6/esri/copyright.txt for details.
//>>built
define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/accessorSupport/decorators ../core/JSONSupport ./SpatialReference".split(" "),function(h,k,f,c,b,g,d){return function(e){function a(){var a=e.call(this)||this;a.type=null;a.extent=null;a.hasM=!1;a.hasZ=!1;a.spatialReference=d.WGS84;return a}f(a,e);Object.defineProperty(a.prototype,"cache",{get:function(){return{}},enumerable:!0,configurable:!0});a.prototype.clone=function(){console.warn(".clone() is not implemented for "+
this.declaredClass);return null};a.prototype.clearCache=function(){this.notifyChange("cache")};a.prototype.getCacheValue=function(a){return this.cache[a]};a.prototype.setCacheValue=function(a,b){this.cache[a]=b};c([b.property()],a.prototype,"type",void 0);c([b.property({readOnly:!0,dependsOn:["spatialReference"]})],a.prototype,"cache",null);c([b.property({readOnly:!0,dependsOn:["spatialReference"]})],a.prototype,"extent",void 0);c([b.property({type:Boolean,json:{write:{overridePolicy:function(a){return{enabled:a}}}}})],
a.prototype,"hasM",void 0);c([b.property({type:Boolean,json:{write:{overridePolicy:function(a){return{enabled:a}}}}})],a.prototype,"hasZ",void 0);c([b.property({type:d,json:{write:!0}})],a.prototype,"spatialReference",void 0);return a=c([b.subclass("esri.geometry.Geometry")],a)}(b.declared(g))});