@arcgis/core 6.0.0-next.49 → 6.0.0-next.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/arcgisGlobal.d.ts +0 -6
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/08dd03bc068862160cb2.js +1 -0
- package/assets/esri/core/workers/chunks/38a5be53c3a11adc82e2.js +1 -0
- package/assets/esri/core/workers/chunks/5f12213ccda1f222f244.js +1 -0
- package/assets/esri/core/workers/chunks/aa6f8ee1e1734488ff10.js +1 -0
- package/assets/esri/core/workers/chunks/d781b7e6f9f9f399cf03.js +1 -0
- package/assets/esri/core/workers/chunks/fb4fe32b0b53d8e57f92.js +1 -0
- package/chunks/Pattern.glsl.js +31 -42
- package/config.js +1 -1
- package/interfaces.d.ts +0 -36
- package/kernel.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +8 -8
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
- package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
- package/layers/geospatialPDF/parseAttachmentUtils.js +2 -0
- package/layers/geospatialPDF/sharedUtils.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/package.json +3 -3
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +2 -2
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +2 -2
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionLineRenderObject.js +2 -0
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/interactive/BufferManipulator3D.js +2 -0
- package/views/3d/interactive/BufferRenderObject.js +2 -0
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/Manipulator3DBase.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/LinkChartView.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/options/InteractiveToolOptions.js +1 -1
- package/views/interactive/options/ViewOptions.d.ts +5 -1
- package/views/interactive/options/bindViewToolOptions.js +1 -1
- package/views/interactive/sketch/SketchOptions.d.ts +1 -26
- package/views/interactive/sketch/SketchOptions.js +1 -1
- package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +4 -4
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawCircle.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawMesh.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPoint.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawRectangle.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentElevation.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentExtentRotate.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentExtentScale.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentMovePoint.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentReshapeEdgeOffset.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentSelectedVertex.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTransformMesh.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTransformPoint.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslate.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateVertex.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateXY.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateZ.js +1 -1
- package/views/interactive/tooltip/fields/TooltipField.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +8 -8
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/AreaMeasurement2D.d.ts +8 -8
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/BatchAttributeForm/attachmentUtils.d.ts +7 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +18 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +8 -8
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D.d.ts +8 -8
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +23 -23
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor.d.ts +24 -24
- package/widgets/Editor.js +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +25 -25
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.d.ts +24 -24
- package/widgets/Sketch.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GraphicHandler.js +1 -1
- package/widgets/support/GridControls/GridControlsViewModel.d.ts +3 -3
- package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
- package/widgets/support/GridControls.d.ts +4 -4
- package/widgets/support/GridControls.js +1 -1
- package/widgets/support/SnappingControls/SnappingControlsViewModel.d.ts +5 -5
- package/widgets/support/SnappingControls/SnappingControlsViewModel.js +1 -1
- package/widgets/support/SnappingControls/VisibleElements.d.ts +3 -3
- package/widgets/support/SnappingControls.d.ts +7 -7
- package/widgets/support/SnappingControls.js +1 -1
- package/assets/esri/core/workers/chunks/0fd5ff5b6037c89257ec.js +0 -1
- package/assets/esri/core/workers/chunks/27a91b52d1bee92b6f20.js +0 -1
- package/assets/esri/core/workers/chunks/3ce7120056040af3bab1.js +0 -1
- package/assets/esri/core/workers/chunks/630a36c4817f33f4cad2.js +0 -1
- package/assets/esri/core/workers/chunks/a0e2a1c6f37454547193.js +0 -1
- package/assets/esri/core/workers/chunks/c4974a4dc081e23899ba.js +0 -1
- package/views/interactive/sketch/SketchLabelOptions.d.ts +0 -72
- package/views/interactive/sketch/SketchLabelOptions.js +0 -2
- package/views/interactive/sketch/SketchTooltipElevationOptions.js +0 -2
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +0 -87
- package/views/interactive/sketch/SketchTooltipOptions.js +0 -2
- package/views/interactive/sketch/SketchTooltipVisibleElements.d.ts +0 -19
- package/views/interactive/sketch/SketchTooltipVisibleElements.js +0 -2
- package/views/interactive/sketch/SketchValueOptions.d.ts +0 -27
- package/views/interactive/sketch/SketchValueOptions.js +0 -2
- package/views/interactive/sketch/Units.d.ts +0 -20
- package/views/interactive/sketch/Units.js +0 -2
- package/views/interactive/snapping/SnappingOptions.d.ts +0 -75
- package/views/interactive/snapping/SnappingOptions.js +0 -2
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type TooltipOptions from "../options/TooltipOptions.js";
|
|
2
|
-
import type { TooltipOptionsProperties } from "../options/TooltipOptions.js";
|
|
3
|
-
|
|
4
|
-
/** @deprecated since 5.2. Use [TooltipOptionsProperties](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/TooltipOptions/#TooltipOptionsProperties) instead. */
|
|
5
|
-
export interface SketchTooltipOptionsProperties extends TooltipOptionsProperties {}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The `SketchTooltipOptions` allows users to configure the tooltips which are shown while sketching and editing.
|
|
9
|
-
*
|
|
10
|
-
* Properties that autocast to this class also accept instances of [TooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/TooltipOptions/).
|
|
11
|
-
* Autocasting plain objects still creates instances of `SketchTooltipOptions`.
|
|
12
|
-
*
|
|
13
|
-
* To enter the tooltip UI's [input mode](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchTooltipOptions/#inputEnabled),
|
|
14
|
-
* press the `Tab` key while drawing a new feature, or when editing a point, mesh, or a selected vertex.
|
|
15
|
-
*
|
|
16
|
-
* [<video src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/editor/editing-constraints.webm" aria-label="sketch-3d-with-constraints" autoplay muted playsinline loop></video>](https://developers.arcgis.com/javascript/latest/sample-code/sketch-3d/)
|
|
17
|
-
*
|
|
18
|
-
* #### Available tooltip inputs and constraints
|
|
19
|
-
*
|
|
20
|
-
* **Direction** field and its respective constraint controls the direction (angle) of a segment (applies to polylines/polygons while drawing).\
|
|
21
|
-
* It has two options that can be set either in the tooltip's UI or with
|
|
22
|
-
* [valueOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchValueOptions/):
|
|
23
|
-
* - **Deflection** – **relative** angle that is measured from the previous segment (default).
|
|
24
|
-
* Positive values are measured in a clockwise direction. Negative values are measured in a counterclockwise direction.
|
|
25
|
-
* - **Direction** – **absolute** angle that is measured clockwise from the main axis of the map (typically north).
|
|
26
|
-
*
|
|
27
|
-
* **Distance** field and its respective constraint controls the length of a segment (applies to polylines/polygons while drawing). Distance field is also shown
|
|
28
|
-
* when editing an edge offset in SceneView.
|
|
29
|
-
*
|
|
30
|
-
* **Coordinates** fields edit the longitude and latitude (in geographic coordinate systems and
|
|
31
|
-
* in Web Mercator) or X and Y values (in projected coordinate systems) of a point or a vertex
|
|
32
|
-
* of a polyline/polygon.\
|
|
33
|
-
* The coordinates can be entered as separate values or as a latitude+longitude pair. In case of the latter,
|
|
34
|
-
* the pair can be typed or pasted into either of the two coordinate fields and the input is converted to decimal degree format.
|
|
35
|
-
* The coordinates may use DD (decimal degrees), DDM (degrees and decimal minutes), or DMS (degrees, minutes, and seconds) format.
|
|
36
|
-
* See more about [supported latitude/longitude strings](https://developers.arcgis.com/javascript/latest/references/core/geometry/coordinateFormatter/#fromLatitudeLongitude).
|
|
37
|
-
*
|
|
38
|
-
* **Elevation (Z)** field and its respective constraint edits the Z value of a point or a vertex of a polyline/polygon geometry.\
|
|
39
|
-
* When drawing polygon or polyline segments, the Z (elevation) field is locked by default.
|
|
40
|
-
* This means that all vertices use the Z value of the first vertex. The constraint can be unlocked in the tooltips' input mode.
|
|
41
|
-
*
|
|
42
|
-
* **Orientation** field edits the orientation of a mesh. The angle is measured clockwise from the main axis
|
|
43
|
-
* of the map (typically north).\
|
|
44
|
-
* Note that the orientation field is connected to the mesh geometry's
|
|
45
|
-
* [rotation transform](https://developers.arcgis.com/javascript/latest/references/core/geometry/support/MeshTransform/#rotationAngle) property.
|
|
46
|
-
* The latter is an arithmetic rotation which is measured counterclockwise from the 3 o'clock position (typically east).
|
|
47
|
-
*
|
|
48
|
-
* **Scale** field edits the scale of a mesh.
|
|
49
|
-
*
|
|
50
|
-
* *The following fields are read-only: **Total length** (for polylines only), **Area** (for polygons only),
|
|
51
|
-
* or fields shown when dragging the manipulators, such as relative **Distance**, **Radius**, relative **Rotation**, relative **Scale**, and **Size**.*
|
|
52
|
-
*
|
|
53
|
-
* ##### Considerations when using distance, direction, and deflection constraints
|
|
54
|
-
*
|
|
55
|
-
* - In geographic coordinate systems (GCS) and in Web Mercator, the constraints are computed geodetically.
|
|
56
|
-
* - In projected coordinate systems (PCS), apart from Web Mercator, the constraints are computed in a Euclidean manner (in the respective PCS).
|
|
57
|
-
* - In 3D, the distance, direction, and deflection constraints are computed on a horizontal plane, dependent on the view's spatial reference.
|
|
58
|
-
*
|
|
59
|
-
* #### Available gestures
|
|
60
|
-
*
|
|
61
|
-
* Gesture | Action |
|
|
62
|
-
* ---------|---------|
|
|
63
|
-
* `Tab` | Activates the input mode and focuses on the next field. |
|
|
64
|
-
* Input value + `Tab` | Applies the constraint and focuses on the next field. |
|
|
65
|
-
* Empty value + `Tab` | Removes the constraint and focuses on the next field. |
|
|
66
|
-
* Input value + `Enter` | Applies the constraint and closes the input mode. |
|
|
67
|
-
* Empty value + `Enter` | Removes the constraint and closes the input mode. |
|
|
68
|
-
* Lock icon | Toggles the constraint on and off. |
|
|
69
|
-
* `Esc` | Closes the input mode but keeps any applied constraints. |
|
|
70
|
-
* Left-click-drag (on tooltip header) | Allows to change the position of the tooltip in input mode. |
|
|
71
|
-
*
|
|
72
|
-
* Numeric inputs accept simple math expressions with two values and one operator: `+`, `-`, `*`, or `/`.
|
|
73
|
-
*
|
|
74
|
-
* @deprecated since 5.2. Use [TooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/TooltipOptions/) instead.
|
|
75
|
-
* @since 4.24
|
|
76
|
-
* @see [Sketch](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/)
|
|
77
|
-
* @see [SketchViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/)
|
|
78
|
-
* @see [SketchLabelOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchLabelOptions/)
|
|
79
|
-
* @see [SketchValueOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchValueOptions/)
|
|
80
|
-
* @see [Editor](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/)
|
|
81
|
-
* @see [Sample - Sketch in 3D](https://developers.arcgis.com/javascript/latest/sample-code/sketch-3d/)
|
|
82
|
-
* @see [Sample - Edit features in 3D with the Editor widget](https://developers.arcgis.com/javascript/latest/sample-code/editor-3d/)
|
|
83
|
-
*/
|
|
84
|
-
export default class SketchTooltipOptions extends TooltipOptions {
|
|
85
|
-
/** @since 5.2 */
|
|
86
|
-
constructor(properties?: SketchTooltipOptionsProperties);
|
|
87
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import{ensureClass as n,requiresType as r}from"../../../core/accessorSupport/ensureType.js";import i from"../options/TooltipOptions.js";var a;let o=a=class extends i{constructor(e){super(e)}static from(e){return n(r(i,e)?a:i,e)}};o=a=e([t(`esri.views.interactive.sketch.SketchTooltipOptions`)],o);const s=o;export{s as default};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type TooltipVisibleElements from "../options/TooltipVisibleElements.js";
|
|
2
|
-
import type { TooltipVisibleElementsProperties } from "../options/TooltipVisibleElements.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated since 5.2. Use [TooltipVisibleElementsProperties](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/TooltipVisibleElements/#TooltipVisibleElementsProperties) instead.
|
|
6
|
-
* @since 5.0
|
|
7
|
-
*/
|
|
8
|
-
export interface SketchTooltipVisibleElementsProperties extends TooltipVisibleElementsProperties {}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The elements that are displayed within the tooltip while sketching and editing.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated since 5.2. Use [TooltipVisibleElements](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/TooltipVisibleElements/) instead.
|
|
14
|
-
* @since 5.0
|
|
15
|
-
*/
|
|
16
|
-
export default class SketchTooltipVisibleElements extends TooltipVisibleElements {
|
|
17
|
-
/** @since 5.2 */
|
|
18
|
-
constructor(properties?: SketchTooltipVisibleElementsProperties);
|
|
19
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import n from"../options/TooltipVisibleElements.js";let r=class extends n{constructor(e){super(e)}};r=e([t(`esri.views.interactive.sketch.SketchTooltipVisibleElements`)],r);const i=r;export{i as default};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type ValueOptions from "../options/ValueOptions.js";
|
|
2
|
-
import type { ValueOptionsProperties } from "../options/ValueOptions.js";
|
|
3
|
-
|
|
4
|
-
/** @deprecated since 5.2. Use [ValueOptionsProperties](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/#ValueOptionsProperties) instead. */
|
|
5
|
-
export interface SketchValueOptionsProperties extends ValueOptionsProperties {}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The `SketchValueOptions` allows users to configure how numerical values and
|
|
9
|
-
* constraints behave while sketching and editing.
|
|
10
|
-
*
|
|
11
|
-
* Properties that autocast to this class also accept instances of [ValueOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/).
|
|
12
|
-
* Autocasting plain objects still creates instances of `SketchValueOptions`.
|
|
13
|
-
*
|
|
14
|
-
* @deprecated since 5.2. Use [ValueOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/) instead.
|
|
15
|
-
* @since 4.29
|
|
16
|
-
* @see [Sketch](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/)
|
|
17
|
-
* @see [SketchViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/)
|
|
18
|
-
* @see [SketchLabelOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchLabelOptions/)
|
|
19
|
-
* @see [SketchTooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchTooltipOptions/)
|
|
20
|
-
* @see [Editor](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/)
|
|
21
|
-
* @see [Sample - Sketch in 3D](https://developers.arcgis.com/javascript/latest/sample-code/sketch-3d/)
|
|
22
|
-
* @see [Sample - Edit features in 3D with the Editor widget](https://developers.arcgis.com/javascript/latest/sample-code/editor-3d/)
|
|
23
|
-
*/
|
|
24
|
-
export default class SketchValueOptions extends ValueOptions {
|
|
25
|
-
/** @since 5.2 */
|
|
26
|
-
constructor(properties?: SketchValueOptionsProperties);
|
|
27
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import{ensureClass as n,requiresType as r}from"../../../core/accessorSupport/ensureType.js";import i from"../options/ValueOptions.js";var a;let o=a=class extends i{constructor(e){super(e)}static from(e){return n(r(i,e)?a:i,e)}};o=a=e([t(`esri.views.interactive.sketch.SketchValueOptions`)],o);const s=o;export{s as default};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type SupportUnits from "../support/Units.js";
|
|
2
|
-
import type { UnitsProperties as SupportUnitsProperties } from "../support/Units.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated since 5.2. Use [UnitsProperties](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/support/Units/#UnitsProperties) instead.
|
|
6
|
-
* @since 5.0
|
|
7
|
-
*/
|
|
8
|
-
export interface UnitsProperties extends SupportUnitsProperties {}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Units used for displaying or interpreting values in the UI.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated since 5.2. Use [Units](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/support/Units/) instead.
|
|
14
|
-
* @since 5.0
|
|
15
|
-
* @beta
|
|
16
|
-
*/
|
|
17
|
-
export default class Units extends SupportUnits {
|
|
18
|
-
/** @since 5.2 */
|
|
19
|
-
constructor(properties?: UnitsProperties);
|
|
20
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import n from"../support/Units.js";let r=class extends n{constructor(e){super(e)}};r=e([t(`esri.views.interactive.sketch.Units`)],r);const i=r;export{i as default};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type BaseSnappingOptions from "../options/SnappingOptions.js";
|
|
2
|
-
import type { SnappingOptionsProperties as BaseSnappingOptionsProperties } from "../options/SnappingOptions.js";
|
|
3
|
-
|
|
4
|
-
/** @deprecated since 5.2. Use [SnappingOptionsProperties](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/#SnappingOptionsProperties) instead. */
|
|
5
|
-
export interface SnappingOptionsProperties extends BaseSnappingOptionsProperties {}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The `SnappingOptions` allows users to configure snapping for their editing or drawing experience in both the [Sketch.snappingOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#snappingOptions) and [Editor.snappingOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/#snappingOptions) widgets.
|
|
9
|
-
*
|
|
10
|
-
* Properties that autocast to this class also accept instances of [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/).
|
|
11
|
-
* Autocasting plain objects still creates instances of this deprecated `SnappingOptions` class.
|
|
12
|
-
*
|
|
13
|
-
* Snapping options provide the ability to specify whether an application will utilize self snapping, feature snapping, or both. Both are described below.
|
|
14
|
-
*
|
|
15
|
-
* It is also possible to toggle snapping by pressing and holding down the `CTRL` key. This toggles the snapping on/off.
|
|
16
|
-
*
|
|
17
|
-
* #### Self snapping (Geometry guides)
|
|
18
|
-
* Self snapping is set via the [selfEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/snapping/SnappingOptions/#selfEnabled) property. This means that while a user is actively creating or updating a feature or graphic, they will see visualizations to help identify perpendicular and parallel lines, in addition to visualizations which aid in snapping to an extension of an existing feature. The following briefly demonstrates what self snapping looks like in a 2D application. Although this is shown for 2D, the same premise applies for 3D as well.
|
|
19
|
-
*
|
|
20
|
-
* <video src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-self-2d.webm" aria-label="self-snapping" autoplay muted playsinline loop></video>
|
|
21
|
-
* #### Feature snapping
|
|
22
|
-
* Feature snapping is set via the [featureEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/snapping/SnappingOptions/#featureEnabled) property. It provides the ability to snap vertices of a graphic or feature that is currently being drawn or reshaped to that of an existing feature's vertex, edge, or end point. These existing features belong to layers within the [Map](https://developers.arcgis.com/javascript/latest/references/core/Map/) and must be specified in the [featureSources](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/snapping/SnappingOptions/#featureSources) property. The following two images demonstrate feature snapping in a 2D application. Similar to self snapping, the same premise applies for 3D as well.
|
|
23
|
-
*
|
|
24
|
-
* <video src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-feature-2d.webm" aria-label="feature-snapping-create" autoplay muted playsinline loop></video>
|
|
25
|
-
*
|
|
26
|
-
* The above shows feature snapping to an existing feature's vertex endpoint and edge while creating a new feature. The bottom demonstrates taking an existing feature and reshaping its geometry to snap to another feature's vertex points.
|
|
27
|
-
*
|
|
28
|
-
* <video src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-reshape-2d.webm" aria-label="feature-snapping-update" autoplay muted playsinline loop></video>
|
|
29
|
-
*
|
|
30
|
-
* > [!WARNING]
|
|
31
|
-
* >
|
|
32
|
-
* > **Things to consider:**
|
|
33
|
-
* > Layer types currently supported for snapping are: [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/), [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) (except Mesh geometries),
|
|
34
|
-
* > [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
|
|
35
|
-
* > [MapNotesLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapNotesLayer/) (2D only), [SketchLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SketchLayer/) (2D only), [3D Object SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/) (3D only), and
|
|
36
|
-
* > [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BuildingSceneLayer/) (3D only).
|
|
37
|
-
* > Snapping is not yet implemented when using the [Sketch widget's](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/) circle tool. It will be addressed in a future release.
|
|
38
|
-
* > Enabling snapping via the `CTRL` key is not currently supported using the [Sketch widget's](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/) rectangle and circle tools. However, snapping can still be activated by setting the [enabled](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/snapping/SnappingOptions/#enabled) property to `true` in the [Sketch widget](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/) or its [view model](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/). *Note that this enables snapping for all tools. This behavior is subject to change in a future release.*
|
|
39
|
-
*
|
|
40
|
-
* Name | Details | 3D Example | 2D Example |
|
|
41
|
-
* ---------|---------|----------|:-----------:|
|
|
42
|
-
* Rectangle | Snap lines that are perpendicular to each other | <img alt="Rectangle" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-rectangle.avif" width="268px"> | <img alt="Rectangle-2d" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-rectangle-2d.avif" width="268px"> |
|
|
43
|
-
* Parallel | Snap to all parallel lines | <img alt="Parallel" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-parallel.avif" width="268px"> | <img alt="Parallel-2d" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-parallel-2.avif" width="268px"> |
|
|
44
|
-
* Extension | Snap to an extension of the current shape | <img alt="Extension" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-extension.avif" width="268px"> | <img alt="Extension-2" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-extension-2.avif" width="268px"> |
|
|
45
|
-
* Vertex (as seen when updating geometries)| Snap vertices to an existing vertex | <img alt="Vertex" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-vertex-3d.avif" width="143px"> | <img alt="Vertex-2" src="https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sketch/snapping-vertex-2.avif" width="143px"> |
|
|
46
|
-
*
|
|
47
|
-
* @deprecated since 5.2. Use [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/) instead.
|
|
48
|
-
* @since 4.19
|
|
49
|
-
* @see [FeatureSnappingLayerSource](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/snapping/FeatureSnappingLayerSource/)
|
|
50
|
-
* @see [Sketch](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/)
|
|
51
|
-
* @see [SketchViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/)
|
|
52
|
-
* @see [Editor](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/)
|
|
53
|
-
* @see [Sample - Sketch widget](https://developers.arcgis.com/javascript/latest/sample-code/sketch-geometries/)
|
|
54
|
-
* @see [Sample - Sketch in 3D](https://developers.arcgis.com/javascript/latest/sample-code/sketch-3d/)
|
|
55
|
-
* @see [Sample - Edit features in 3D with the Editor widget](https://developers.arcgis.com/javascript/latest/sample-code/editor-3d/)
|
|
56
|
-
* @see [Sample - Editor widget with configurations](https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-configurable/)
|
|
57
|
-
* @see [Sample - Snapping with Sketch widget and Magnifier](https://developers.arcgis.com/javascript/latest/sample-code/sketch-snapping-magnifier/)
|
|
58
|
-
* @example
|
|
59
|
-
* // Create a new instance of Sketch, and set
|
|
60
|
-
* // a layer for one of the featureSources property.
|
|
61
|
-
* // This enables feature snapping on that layer.
|
|
62
|
-
* const sketch = new Sketch({
|
|
63
|
-
* layer: graphicsLayer,
|
|
64
|
-
* view: view,
|
|
65
|
-
* snappingOptions: { // autocasts to SnappingOptions()
|
|
66
|
-
* enabled: true, // global snapping is turned on
|
|
67
|
-
* // assigns a collection of FeatureSnappingLayerSource() and enables feature snapping on this layer
|
|
68
|
-
* featureSources: [{ layer: graphicsLayer, enabled: true }]
|
|
69
|
-
* }
|
|
70
|
-
* });
|
|
71
|
-
*/
|
|
72
|
-
export default class SnappingOptions extends BaseSnappingOptions {
|
|
73
|
-
/** @since 5.2 */
|
|
74
|
-
constructor(properties?: SnappingOptionsProperties);
|
|
75
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import{ensureClass as n,requiresType as r}from"../../../core/accessorSupport/ensureType.js";import i from"../options/SnappingOptions.js";var a;let o=a=class extends i{constructor(e){super(e)}static from(e){return n(r(i,e)?a:i,e)}};o=a=e([t(`esri.views.interactive.snapping.SnappingOptions`)],o);export{o as default};
|