@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 3.21 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as o}from"../../chunks/tslib.es6.js";import e from"../../core/Accessor.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import n from"../support/SnappingControls/VisibleElements.js";let s=class extends e{constructor(o){super(o),this.point=!0,this.polyline=!0,this.polygon=!0,this.rectangle=!0,this.circle=!0,this.multipoint=!0,this.mesh=!0,this.freehandPolyline=!1,this.freehandPolygon=!1}};o([t({type:Boolean,nonNullable:!0})],s.prototype,"point",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"polyline",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"polygon",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"rectangle",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"circle",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"multipoint",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"mesh",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"freehandPolyline",void 0),o([t({type:Boolean,nonNullable:!0})],s.prototype,"freehandPolygon",void 0),s=o([l("esri.widgets.Sketch.VisibleElements.CreateToolVisibilityMap")],s);let i=class extends e{constructor(o){super(o),this["rectangle-selection"]=!0,this["lasso-selection"]=!0,this["custom-selection"]=!0}};o([t({nonNullable:!0})],i.prototype,"rectangle-selection",void 0),o([t({nonNullable:!0})],i.prototype,"lasso-selection",void 0),o([t({nonNullable:!0})],i.prototype,"custom-selection",void 0),i=o([l("esri.widgets.Sketch.VisibleElements.SelectionToolVisibilityMap")],i);let p=class extends e{constructor(o){super(o),this.createTools=new s,this.directionModePicker=!1,this.duplicateButton=!0,this.deleteButton=!0,this.selectionCountLabel=!0,this.labelsToggle=!0,this.selectionTools=new i,this.settingsMenu=!0,this.snappingControls=!0,this.snappingControlsElements=new n,this.tooltipsToggle=!0,this.undoRedoMenu=!0}};o([t({type:s,nonNullable:!0})],p.prototype,"createTools",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"directionModePicker",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"duplicateButton",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"deleteButton",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"selectionCountLabel",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"labelsToggle",void 0),o([t({type:i,nonNullable:!0})],p.prototype,"selectionTools",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"settingsMenu",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"snappingControls",void 0),o([t({type:n,nonNullable:!0})],p.prototype,"snappingControlsElements",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"tooltipsToggle",void 0),o([t({type:Boolean,nonNullable:!0})],p.prototype,"undoRedoMenu",void 0),p=o([l("esri.widgets.Sketch.VisibleElements")],p);export{s as CreateToolVisibilityMap,i as SelectionToolVisibilityMap,p as VisibleElements};