UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.55 kB
import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Accessor.js";import o from"../../../core/Collection.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import{subclass as i}from"../../../core/accessorSupport/decorators/subclass.js";import s from"./FeatureSnappingLayerSource.js";import{defaults as a}from"./Settings.js";let l=class extends t{constructor(e){super(e),this.enabled=!1,this.enabledToggled=!1,this.selfEnabled=!0,this.featureEnabled=!0,this.featureSources=new o,this.distance=a.distance,this.touchSensitivityMultiplier=a.touchSensitivityMultiplier}get effectiveEnabled(){return this.enabledToggled?!this.enabled:this.enabled}get effectiveSelfEnabled(){return this.effectiveEnabled&&this.selfEnabled}get effectiveFeatureEnabled(){return this.effectiveEnabled&&this.featureEnabled}};e([r()],l.prototype,"enabled",void 0),e([r()],l.prototype,"enabledToggled",void 0),e([r()],l.prototype,"selfEnabled",void 0),e([r()],l.prototype,"featureEnabled",void 0),e([r({type:o.ofType(s)})],l.prototype,"featureSources",void 0),e([r()],l.prototype,"distance",void 0),e([r()],l.prototype,"touchSensitivityMultiplier",void 0),e([r({readOnly:!0})],l.prototype,"effectiveEnabled",null),e([r({readOnly:!0})],l.prototype,"effectiveSelfEnabled",null),e([r({readOnly:!0})],l.prototype,"effectiveFeatureEnabled",null),l=e([i("esri.views.interactive.snapping.SnappingOptions")],l);const n=l;export{n as default};