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.
7 lines
2.0 KiB
7 lines
2.0 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("exports ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(b,c,g,d,k,l,m,h){function f(a){return null==a?null:JSON.stringify(a)}b.Edits=class extends g{constructor(a){super(a);this._stagedForDelete=!1;this.initialFeature=this.feature=null}get attributesModified(){return this._stringifyAttributes(this.feature)!==this._stringifyAttributes(this.initialFeature)}get geometryModified(){return this._stringifyGeometry(this.feature)!== |
|
this._stringifyGeometry(this.initialFeature)}get stagedForDelete(){return this._stagedForDelete}get modified(){return this.attributesModified||this.geometryModified||this._stagedForDelete}stageDelete(){this._stagedForDelete=!0}unstageDelete(){this._stagedForDelete=!1}trackChanges(){this.initialFeature=this.feature?.clone()}updateAttributes(a){const {feature:e}=this;e&&(e.attributes=a,this.notifyChange("attributesModified"))}updateGeometry(a){const {feature:e}=this;e&&(e.geometry=a,this.notifyChange("geometryModified"))}_stringifyAttributes(a){return f(a?.attributes)}_stringifyGeometry(a){a= |
|
a?.geometry;return"mesh"===a?.type?f({transform:a.transform,vertexSpace:a.vertexSpace}):f(a)}};c.__decorate([d.property()],b.Edits.prototype,"_stagedForDelete",void 0);c.__decorate([d.property()],b.Edits.prototype,"attributesModified",null);c.__decorate([d.property()],b.Edits.prototype,"feature",void 0);c.__decorate([d.property()],b.Edits.prototype,"geometryModified",null);c.__decorate([d.property()],b.Edits.prototype,"initialFeature",void 0);c.__decorate([d.property()],b.Edits.prototype,"modified", |
|
null);b.Edits=c.__decorate([h.subclass("esri.widgets.Editor.Edits")],b.Edits);Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}); |