@arcgis/core 5.2.0-next.131 → 5.2.0-next.134
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/107f4bcf8e6c91a67010.js +1 -0
- package/assets/esri/core/workers/chunks/{081c9ccaa5884c730a91.js → 1688c4dcd36db992a9dc.js} +1 -1
- package/assets/esri/core/workers/chunks/3a6b8f9aabde7e138834.js +1 -0
- package/assets/esri/core/workers/chunks/{18d5bad86ea3ef3ec747.js → eba9e03c1c9aa55044a3.js} +120 -120
- package/assets/esri/core/workers/chunks/f6c8e5abe1d55ab5c7dd.js +1 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts.scss +0 -0
- package/chunks/GaussianSplat.glsl.js +24 -9
- package/chunks/LineMarker.glsl.js +23 -23
- package/chunks/RibbonLine.glsl.js +136 -99
- package/config.js +1 -1
- package/core/PooledArray.js +1 -1
- package/geometry/operators/affineTransformOperator.d.ts +4 -0
- package/geometry/operators/alphaShapeOperator.d.ts +10 -1
- package/geometry/operators/areaOperator.d.ts +3 -0
- package/geometry/operators/autoCompleteOperator.d.ts +3 -0
- package/geometry/operators/boundaryOperator.d.ts +4 -0
- package/geometry/operators/bufferOperator.d.ts +6 -0
- package/geometry/operators/centroidOperator.d.ts +3 -0
- package/geometry/operators/clipOperator.d.ts +4 -0
- package/geometry/operators/containsOperator.d.ts +4 -0
- package/geometry/operators/convexHullOperator.d.ts +6 -0
- package/geometry/operators/crossesOperator.d.ts +4 -0
- package/geometry/operators/cutOperator.d.ts +3 -0
- package/geometry/operators/densifyOperator.d.ts +5 -0
- package/geometry/operators/differenceOperator.d.ts +4 -0
- package/geometry/operators/disjointOperator.d.ts +4 -0
- package/geometry/operators/distanceOperator.d.ts +4 -0
- package/geometry/operators/equalsOperator.d.ts +4 -0
- package/geometry/operators/extendOperator.d.ts +4 -0
- package/geometry/operators/generalizeOperator.d.ts +5 -0
- package/geometry/operators/geodesicBufferOperator.d.ts +8 -0
- package/geometry/operators/geodesicProximityOperator.d.ts +9 -0
- package/geometry/operators/geodeticAreaOperator.d.ts +6 -0
- package/geometry/operators/geodeticDensifyOperator.d.ts +7 -0
- package/geometry/operators/geodeticDistanceOperator.d.ts +6 -0
- package/geometry/operators/geodeticLengthOperator.d.ts +6 -0
- package/geometry/operators/geodeticUtilsOperator.d.ts +7 -0
- package/geometry/operators/graphicBufferOperator.d.ts +4 -0
- package/geometry/operators/integrateOperator.d.ts +3 -0
- package/geometry/operators/intersectionOperator.d.ts +5 -0
- package/geometry/operators/intersectsOperator.d.ts +4 -0
- package/geometry/operators/isNearOperator.d.ts +4 -0
- package/geometry/operators/labelPointOperator.d.ts +4 -0
- package/geometry/operators/lengthOperator.d.ts +3 -0
- package/geometry/operators/linesToPolygonsOperator.d.ts +3 -0
- package/geometry/operators/locateBetweenOperator.d.ts +3 -0
- package/geometry/operators/minimumBoundingCircleOperator.d.ts +5 -0
- package/geometry/operators/multiPartToSinglePartOperator.d.ts +4 -0
- package/geometry/operators/offsetOperator.d.ts +5 -0
- package/geometry/operators/overlapsOperator.d.ts +4 -0
- package/geometry/operators/polygonOverlayOperator.d.ts +9 -1
- package/geometry/operators/polygonSlicerOperator.d.ts +7 -0
- package/geometry/operators/projectOperator.d.ts +6 -0
- package/geometry/operators/proximityOperator.d.ts +7 -0
- package/geometry/operators/relateOperator.d.ts +5 -0
- package/geometry/operators/reshapeOperator.d.ts +3 -0
- package/geometry/operators/shapePreservingProjectOperator.d.ts +7 -0
- package/geometry/operators/simplifyOGCOperator.d.ts +5 -0
- package/geometry/operators/simplifyOperator.d.ts +5 -0
- package/geometry/operators/support/GeographicTransformation.d.ts +2 -0
- package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -0
- package/geometry/operators/support/Transformation.d.ts +6 -1
- package/geometry/operators/support/geographicTransformationUtils.d.ts +4 -0
- package/geometry/operators/symmetricDifferenceOperator.d.ts +4 -0
- package/geometry/operators/touchesOperator.d.ts +4 -0
- package/geometry/operators/types.d.ts +1 -0
- package/geometry/operators/unionOperator.d.ts +4 -0
- package/geometry/operators/withinOperator.d.ts +4 -0
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.d.ts +0 -1
- package/layers/GeospatialPDFLayer.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/symbols/LineSymbol3D.d.ts +0 -7
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
- package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
- package/views/3d/state/Constraints.js +1 -1
- package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticBVH.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +23 -12
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +35 -25
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/IntersectorResult.js +1 -1
- package/views/3d/webgl-engine/lib/LineMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/PolygonIntersectionResults.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +4 -4
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/support/PromiseQueue.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/widgets/BatchAttributeForm/ValueChangeTransaction.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.d.ts +148 -1
- package/assets/esri/core/workers/chunks/540f60e31b19d85e9371.js +0 -1
- package/assets/esri/core/workers/chunks/55a560fd872f7463b33d.js +0 -1
- package/assets/esri/core/workers/chunks/cf6f671823fa6c2a9a5e.js +0 -1
|
@@ -14,6 +14,7 @@ import type Point from "../Point.js";
|
|
|
14
14
|
import type { LengthUnit } from "../../core/units.js";
|
|
15
15
|
import type { GeodeticCurveType } from "../types.js";
|
|
16
16
|
|
|
17
|
+
/** @since 5.2 */
|
|
17
18
|
export interface GeodeticUtilsOptions {
|
|
18
19
|
/**
|
|
19
20
|
* The type of geodetic curve along which distance will be measured.
|
|
@@ -40,6 +41,8 @@ export type Options = GeodeticUtilsOptions;
|
|
|
40
41
|
/**
|
|
41
42
|
* Object returned by the [calculateDistanceAndAzimuth()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/geodeticUtilsOperator/#calculateDistanceAndAzimuth) method.
|
|
42
43
|
* Azimuths are in positive degrees from 0 to 360, measured clockwise from due north.
|
|
44
|
+
*
|
|
45
|
+
* @since 5.2
|
|
43
46
|
*/
|
|
44
47
|
export interface CalculateDistanceAndAzimuthResult {
|
|
45
48
|
/** The geodetic distance between `point1` and `point2`. */
|
|
@@ -64,6 +67,7 @@ export interface CalculateDistanceAndAzimuthResult {
|
|
|
64
67
|
* Indicates if all dependencies of this module have been loaded.
|
|
65
68
|
*
|
|
66
69
|
* @returns Returns `true` if this module's dependencies have been loaded.
|
|
70
|
+
* @since 5.2
|
|
67
71
|
*/
|
|
68
72
|
export function geodeticUtilsIsLoaded(): boolean;
|
|
69
73
|
|
|
@@ -81,6 +85,7 @@ export function isLoaded(): boolean;
|
|
|
81
85
|
* Loads this module's dependencies. This method must be called first if `geodeticUtilsIsLoaded` returns `false`.
|
|
82
86
|
*
|
|
83
87
|
* @returns Resolves when the dependencies have been loaded.
|
|
88
|
+
* @since 5.2
|
|
84
89
|
* @see [geodeticUtilsIsLoaded()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/geodeticUtilsOperator/#geodeticUtilsIsLoaded)
|
|
85
90
|
*/
|
|
86
91
|
export function geodeticUtilsLoad(): Promise<void>;
|
|
@@ -106,6 +111,7 @@ export function load(): Promise<void>;
|
|
|
106
111
|
* @param point2 - The ending point.
|
|
107
112
|
* @param options - Additional options.
|
|
108
113
|
* @returns Returns an object containing the distance and azimuths between the two points.
|
|
114
|
+
* @since 5.2
|
|
109
115
|
* @example
|
|
110
116
|
* if (!geodeticUtilsIsLoaded()) {
|
|
111
117
|
* await geodeticUtilsLoad();
|
|
@@ -156,6 +162,7 @@ export function calculateDistanceAndAzimuth(point1: Point, point2: Point, option
|
|
|
156
162
|
* A negative azimuth is measured counter-clockwise from north.
|
|
157
163
|
* @param options - Additional options.
|
|
158
164
|
* @returns Returns the new point or `null` if the point cannot be represented in the spatial reference.
|
|
165
|
+
* @since 5.2
|
|
159
166
|
* @example
|
|
160
167
|
* if (!geodeticUtilsIsLoaded()) {
|
|
161
168
|
* await geodeticUtilsLoad();
|
|
@@ -9,6 +9,7 @@ import type Polygon from "../Polygon.js";
|
|
|
9
9
|
import type { LengthUnit } from "../../core/units.js";
|
|
10
10
|
import type { GeometryUnion } from "../types.js";
|
|
11
11
|
|
|
12
|
+
/** @since 5.2 */
|
|
12
13
|
export interface GraphicBufferOptions {
|
|
13
14
|
/**
|
|
14
15
|
* The max deviation of the result buffer from the true buffer in the spatial reference units of `geometries`.
|
|
@@ -70,6 +71,7 @@ export type Options = GraphicBufferOptions;
|
|
|
70
71
|
* * Open polylines paths with round caps degenerate to a point and will be drawn as circles (degenerate with zero tolerance).
|
|
71
72
|
* @param options - Additional options.
|
|
72
73
|
* @returns Returns the buffered geometries.
|
|
74
|
+
* @since 5.2
|
|
73
75
|
* @example
|
|
74
76
|
* // Buffer two polylines with different distances and buffer styles.
|
|
75
77
|
* const buffers = graphicBufferExecuteMany(
|
|
@@ -119,6 +121,8 @@ export function executeMany(geometries: GeometryUnion[], distances: number[], jo
|
|
|
119
121
|
/**
|
|
120
122
|
* Indicates if the operator supports input geometries that contain curves.
|
|
121
123
|
* The value will always be `true`. This will produce densified output geometries.
|
|
124
|
+
*
|
|
125
|
+
* @since 5.2
|
|
122
126
|
*/
|
|
123
127
|
export const graphicBufferSupportsCurves: boolean;
|
|
124
128
|
|
|
@@ -16,6 +16,7 @@ import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
|
16
16
|
* All the geometries must have the same spatial reference.
|
|
17
17
|
* @returns Returns the result of the subtraction.
|
|
18
18
|
* The operation filters out degenerate segments and returns `null` for empty geometries.
|
|
19
|
+
* @since 5.2
|
|
19
20
|
* @example
|
|
20
21
|
* // Integrate a set of geometries
|
|
21
22
|
* const result = integrateExecuteMany(geometries);
|
|
@@ -41,6 +42,8 @@ export function executeMany(geometries: GeometryUnion[]): (GeometryWithoutMeshUn
|
|
|
41
42
|
/**
|
|
42
43
|
* Indicates if the operator supports input geometries that contain curves.
|
|
43
44
|
* The value will always be `true`.
|
|
45
|
+
*
|
|
46
|
+
* @since 5.2
|
|
44
47
|
*/
|
|
45
48
|
export const integrateSupportsCurves: boolean;
|
|
46
49
|
|
|
@@ -12,6 +12,7 @@ import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @param geometry - The geometry to accelerate.
|
|
14
14
|
* @returns Returns `true` if the geometry was successfully accelerated.
|
|
15
|
+
* @since 5.2
|
|
15
16
|
*/
|
|
16
17
|
export function intersectionAccelerateGeometry(geometry: GeometryUnion): boolean;
|
|
17
18
|
|
|
@@ -56,6 +57,7 @@ export function accelerateGeometry(geometry: GeometryUnion): boolean;
|
|
|
56
57
|
* @param geometry1 - The geometry to intersect with `geometry2`.
|
|
57
58
|
* @param geometry2 - The geometry to intersect with `geometry1`.
|
|
58
59
|
* @returns Returns the result of the intersection of the two geometries or null.
|
|
60
|
+
* @since 5.2
|
|
59
61
|
* @example
|
|
60
62
|
* // Creates a new geometry based on the intersection of two polygons
|
|
61
63
|
* const intersection = intersectionExecute(polygon1, polygon2);
|
|
@@ -125,6 +127,7 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): Geo
|
|
|
125
127
|
* @param intersector - The geometry to intersect with the `geometries`.
|
|
126
128
|
* @returns Returns an array of geometries created by intersecting
|
|
127
129
|
* every geometry in the input geometries with the `intersector`, or an empty array if there is no intersection.
|
|
130
|
+
* @since 5.2
|
|
128
131
|
*/
|
|
129
132
|
export function intersectionExecuteMany(geometries: GeometryUnion[], intersector: GeometryUnion): GeometryWithoutMeshUnion[];
|
|
130
133
|
|
|
@@ -161,6 +164,8 @@ export function executeMany(geometries: GeometryUnion[], intersector: GeometryUn
|
|
|
161
164
|
/**
|
|
162
165
|
* Indicates if the operator supports input geometries that contain curves.
|
|
163
166
|
* The value will always be `true`.
|
|
167
|
+
*
|
|
168
|
+
* @since 5.2
|
|
164
169
|
*/
|
|
165
170
|
export const intersectionSupportsCurves: boolean;
|
|
166
171
|
|
|
@@ -14,6 +14,7 @@ import type { GeometryUnion } from "../types.js";
|
|
|
14
14
|
*
|
|
15
15
|
* @param geometry - The geometry to accelerate.
|
|
16
16
|
* @returns Returns `true` if the geometry was successfully accelerated.
|
|
17
|
+
* @since 5.2
|
|
17
18
|
*/
|
|
18
19
|
export function intersectsAccelerateGeometry(geometry: GeometryUnion): boolean;
|
|
19
20
|
|
|
@@ -34,6 +35,7 @@ export function accelerateGeometry(geometry: GeometryUnion): boolean;
|
|
|
34
35
|
* @param geometry1 - The geometry that is tested for the intersects relationship to `geometry2`.
|
|
35
36
|
* @param geometry2 - The geometry being intersected.
|
|
36
37
|
* @returns Returns `true` if `geometry1` intersects with `geometry2`.
|
|
38
|
+
* @since 5.2
|
|
37
39
|
* @example
|
|
38
40
|
* // Returns true if two geometries intersect
|
|
39
41
|
* const isIntersecting = intersectsExecute(polyline1, polyline2);
|
|
@@ -58,6 +60,8 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): boo
|
|
|
58
60
|
/**
|
|
59
61
|
* Indicates if the operator supports input geometries that contain curves.
|
|
60
62
|
* The value will always be `true`.
|
|
63
|
+
*
|
|
64
|
+
* @since 5.2
|
|
61
65
|
*/
|
|
62
66
|
export const intersectsSupportsCurves: boolean;
|
|
63
67
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import type { LengthUnit } from "../../core/units.js";
|
|
9
9
|
import type { GeometryUnion } from "../types.js";
|
|
10
10
|
|
|
11
|
+
/** @since 5.2 */
|
|
11
12
|
export interface IsNearOptions {
|
|
12
13
|
/**
|
|
13
14
|
* The length unit of the distance.
|
|
@@ -33,6 +34,7 @@ export type Options = IsNearOptions;
|
|
|
33
34
|
* Unless the `unit` option is set, the default is the geometry's spatial reference unit.
|
|
34
35
|
* @param options - Additional options.
|
|
35
36
|
* @returns Returns `true` if the minimum distance between the two geometries is equal or less than `distance`.
|
|
37
|
+
* @since 5.2
|
|
36
38
|
* @example
|
|
37
39
|
* // Check if two geometries are near each other
|
|
38
40
|
* const isNear = isNearExecute(point, polyline, 100);
|
|
@@ -60,6 +62,8 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion, dist
|
|
|
60
62
|
/**
|
|
61
63
|
* Indicates if the operator supports input geometries that contain curves.
|
|
62
64
|
* The value will always be `true`.
|
|
65
|
+
*
|
|
66
|
+
* @since 5.2
|
|
63
67
|
*/
|
|
64
68
|
export const isNearSupportsCurves: boolean;
|
|
65
69
|
|
|
@@ -20,6 +20,7 @@ import type { GeometryUnion } from "../types.js";
|
|
|
20
20
|
*
|
|
21
21
|
* @param geometry - The input geometry.
|
|
22
22
|
* @returns Returns the label point.
|
|
23
|
+
* @since 5.2
|
|
23
24
|
* @example
|
|
24
25
|
* // Perform the label point operation
|
|
25
26
|
* const labelPoint = labelPointExecute(polygon);
|
|
@@ -46,6 +47,7 @@ export function execute(geometry: GeometryUnion): Point;
|
|
|
46
47
|
* @param geometries - The set of input geometries.
|
|
47
48
|
* All the geometries must have the same spatial reference.
|
|
48
49
|
* @returns Returns the label points for each geometry.
|
|
50
|
+
* @since 5.2
|
|
49
51
|
*/
|
|
50
52
|
export function labelPointExecuteMany(geometries: GeometryUnion[]): Point[];
|
|
51
53
|
|
|
@@ -64,6 +66,8 @@ export function executeMany(geometries: GeometryUnion[]): Point[];
|
|
|
64
66
|
/**
|
|
65
67
|
* Indicates if the operator supports input geometries that contain curves.
|
|
66
68
|
* The value will always be `true`.
|
|
69
|
+
*
|
|
70
|
+
* @since 5.2
|
|
67
71
|
*/
|
|
68
72
|
export const labelPointSupportsCurves: boolean;
|
|
69
73
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import type { LengthUnit } from "../../core/units.js";
|
|
9
9
|
import type { GeometryUnion } from "../types.js";
|
|
10
10
|
|
|
11
|
+
/** @since 5.2 */
|
|
11
12
|
export interface LengthOptions {
|
|
12
13
|
/**
|
|
13
14
|
* The length unit of the return value.
|
|
@@ -30,6 +31,7 @@ export type Options = LengthOptions;
|
|
|
30
31
|
* @param geometry - The geometry to calculate the length from.
|
|
31
32
|
* @param options - Additional options.
|
|
32
33
|
* @returns Returns the planar length of the geometry.
|
|
34
|
+
* @since 5.2
|
|
33
35
|
* @example
|
|
34
36
|
* // Calculate the length of a polyline
|
|
35
37
|
* const length = lengthExecute(polyline);
|
|
@@ -56,6 +58,7 @@ export function execute(geometry: GeometryUnion, options?: LengthOptions): numbe
|
|
|
56
58
|
* The value will always be `true`.
|
|
57
59
|
*
|
|
58
60
|
* @default true
|
|
61
|
+
* @since 5.2
|
|
59
62
|
*/
|
|
60
63
|
export const lengthSupportsCurves: boolean;
|
|
61
64
|
|
|
@@ -12,6 +12,7 @@ import type { GeometryUnion } from "../types.js";
|
|
|
12
12
|
* @param geometries - The set of input geometries.
|
|
13
13
|
* All the geometries must have the same spatial reference.
|
|
14
14
|
* @returns Returns the result of polygons.
|
|
15
|
+
* @since 5.2
|
|
15
16
|
* @example
|
|
16
17
|
* // Perform the lines to polygons operation
|
|
17
18
|
* const polygons = linesToPolygonsExecuteMany([polyline1, polyline2]);
|
|
@@ -36,6 +37,8 @@ export function executeMany(geometries: GeometryUnion[]): Polygon[];
|
|
|
36
37
|
/**
|
|
37
38
|
* Indicates if the operator supports input geometries that contain curves.
|
|
38
39
|
* The value will always be `true`.
|
|
40
|
+
*
|
|
41
|
+
* @since 5.2
|
|
39
42
|
*/
|
|
40
43
|
export const linesToPolygonsSupportsCurves: boolean;
|
|
41
44
|
|
|
@@ -21,6 +21,7 @@ import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
|
21
21
|
* @returns Returns the result of geometries.
|
|
22
22
|
* For 1-dimensional geometries, the result could be either point, multipoint, or polyline.
|
|
23
23
|
* For polylines, the result can be both polyline and multipoint.
|
|
24
|
+
* @since 5.2
|
|
24
25
|
* @example
|
|
25
26
|
* // Perform the locate between operation
|
|
26
27
|
* const geometries = locateBetweenExecuteMany([polyline1, polyline2], 100, 200);
|
|
@@ -50,6 +51,8 @@ export function executeMany(geometries: GeometryUnion[], startM: number, endM: n
|
|
|
50
51
|
/**
|
|
51
52
|
* Indicates if the operator supports input geometries that contain curves.
|
|
52
53
|
* The value will always be `true`.
|
|
54
|
+
*
|
|
55
|
+
* @since 5.2
|
|
53
56
|
*/
|
|
54
57
|
export const locateBetweenSupportsCurves: boolean;
|
|
55
58
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import type Polygon from "../Polygon.js";
|
|
15
15
|
import type { GeometryUnion } from "../types.js";
|
|
16
16
|
|
|
17
|
+
/** @since 5.2 */
|
|
17
18
|
export interface MinimumBoundingCircleOptions {
|
|
18
19
|
/**
|
|
19
20
|
* If `true`, the input geometries will be merged into a single geometry before
|
|
@@ -36,6 +37,7 @@ export type Options = MinimumBoundingCircleOptions;
|
|
|
36
37
|
*
|
|
37
38
|
* @param geometry - The input geometry.
|
|
38
39
|
* @returns Returns the minimum bounding circle polygon with [curves](https://developers.arcgis.com/javascript/latest/references/core/geometry/Polygon/#curveRings).
|
|
40
|
+
* @since 5.2
|
|
39
41
|
* @example
|
|
40
42
|
* // Perform the minimum bounding circle operation
|
|
41
43
|
* const minimumBoundingCircle = minimumBoundingCircleExecute(polygon);
|
|
@@ -63,6 +65,7 @@ export function execute(geometry: GeometryUnion): Polygon;
|
|
|
63
65
|
* All the geometries must have the same spatial reference.
|
|
64
66
|
* @param options - Additional options.
|
|
65
67
|
* @returns Returns the minimum bounding circle polygons with [curves](https://developers.arcgis.com/javascript/latest/references/core/geometry/Polygon/#curveRings).
|
|
68
|
+
* @since 5.2
|
|
66
69
|
*/
|
|
67
70
|
export function minimumBoundingCircleExecuteMany(geometries: GeometryUnion[], options?: MinimumBoundingCircleOptions): Polygon[];
|
|
68
71
|
|
|
@@ -82,6 +85,8 @@ export function executeMany(geometries: GeometryUnion[], options?: MinimumBoundi
|
|
|
82
85
|
/**
|
|
83
86
|
* Indicates if the operator supports input geometries that contain curves.
|
|
84
87
|
* The value will always be `false`.
|
|
88
|
+
*
|
|
89
|
+
* @since 5.2
|
|
85
90
|
*/
|
|
86
91
|
export const minimumBoundingCircleSupportsCurves: boolean;
|
|
87
92
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
9
9
|
|
|
10
|
+
/** @since 5.2 */
|
|
10
11
|
export interface MultiPartToSinglePartOptions {
|
|
11
12
|
/**
|
|
12
13
|
* When this parameter is set to false, the input polygons will not be simplified before converting them to single part geometries. Make sure the input polygons are topologically simple.
|
|
@@ -35,6 +36,7 @@ export type Options = MultiPartToSinglePartOptions;
|
|
|
35
36
|
* @returns Returns the single part geometries.
|
|
36
37
|
* For non-simple polygons, the output of the method is not guaranteed to be correct if the `simplifyPolgons` option is set to `false`.
|
|
37
38
|
* In that case, the method may either throw an error, or produce some output which is not guaranteed to be correct.
|
|
39
|
+
* @since 5.2
|
|
38
40
|
* @example
|
|
39
41
|
* // Convert multipart geometries to single part geometries
|
|
40
42
|
* const singlePartGeometries = multiPartToSinglePartExecuteMany(multiPartGeometries);
|
|
@@ -64,6 +66,8 @@ export function executeMany(geometries: GeometryUnion[], options?: MultiPartToSi
|
|
|
64
66
|
/**
|
|
65
67
|
* Indicates if the operator supports input geometries that contain curves.
|
|
66
68
|
* The value will always be `true`.
|
|
69
|
+
*
|
|
70
|
+
* @since 5.2
|
|
67
71
|
*/
|
|
68
72
|
export const multiPartToSinglePartSupportsCurves: boolean;
|
|
69
73
|
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
import type { LengthUnit } from "../../core/units.js";
|
|
46
46
|
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
47
47
|
|
|
48
|
+
/** @since 5.2 */
|
|
48
49
|
export interface OffsetOptions {
|
|
49
50
|
/**
|
|
50
51
|
* The maximum distance of the resulting segments compared to the true circular arc (used only when joins is round).
|
|
@@ -99,6 +100,7 @@ export type Options = OffsetOptions;
|
|
|
99
100
|
* @param options - Additional options.
|
|
100
101
|
* @returns Returns the offset geometry or null.
|
|
101
102
|
* Very acute angles can return null when an offset geometry segment cannot be created with the given parameters.
|
|
103
|
+
* @since 5.2
|
|
102
104
|
* @example
|
|
103
105
|
* // Create an offset polygon.
|
|
104
106
|
* const offsetPolygon = offsetExecute(polygon, 100);
|
|
@@ -137,6 +139,7 @@ export function execute(geometry: GeometryUnion, distance: number, options?: Off
|
|
|
137
139
|
* Unless the `unit` option is set, the default is the spatial reference unit of `geometries`.
|
|
138
140
|
* @param options - Additional options.
|
|
139
141
|
* @returns Returns the offset geometry results or null. Very acute angles can return null when an offset geometry segment cannot be created with the given parameters.
|
|
142
|
+
* @since 5.2
|
|
140
143
|
*/
|
|
141
144
|
export function offsetExecuteMany(geometries: GeometryUnion[], distance: number, options?: OffsetOptions): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
142
145
|
|
|
@@ -160,6 +163,8 @@ export function executeMany(geometries: GeometryUnion[], distance: number, optio
|
|
|
160
163
|
/**
|
|
161
164
|
* Indicates if the operator supports input geometries that contain curves.
|
|
162
165
|
* The value will always be `true`. This will produce densified output geometries.
|
|
166
|
+
*
|
|
167
|
+
* @since 5.2
|
|
163
168
|
*/
|
|
164
169
|
export const offsetSupportsCurves: boolean;
|
|
165
170
|
|
|
@@ -12,6 +12,7 @@ import type { GeometryUnion } from "../types.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @param geometry - The geometry to accelerate.
|
|
14
14
|
* @returns Returns `true` if the geometry was successfully accelerated.
|
|
15
|
+
* @since 5.2
|
|
15
16
|
*/
|
|
16
17
|
export function overlapsAccelerateGeometry(geometry: GeometryUnion): boolean;
|
|
17
18
|
|
|
@@ -32,6 +33,7 @@ export function accelerateGeometry(geometry: GeometryUnion): boolean;
|
|
|
32
33
|
* @param geometry1 - The base geometry that is tested for the "overlaps" relationship with `geometry2`.
|
|
33
34
|
* @param geometry2 - The comparison geometry that is tested for the "overlaps" relationship with `geometry1`.
|
|
34
35
|
* @returns Returns `true` if the intersection set results in a geometry different from both of the input geometries, but of the same dimension. For example, if `geometry1` and `geometry2` are both polygons, then they must return a polygon in order to overlap. If two polygons cross each other at exactly one point then no overlap has occurred because points have a dimension of 0 and polygons have a dimension of 2. See the [Working with spatial relationship operators](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#dimensionality) guide topic on dimensionality for more details.
|
|
36
|
+
* @since 5.2
|
|
35
37
|
* @example
|
|
36
38
|
* // Returns true if one geometry overlaps another,
|
|
37
39
|
* // but is not contained or disjoint
|
|
@@ -58,6 +60,8 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): boo
|
|
|
58
60
|
/**
|
|
59
61
|
* Indicates if the operator supports input geometries that contain curves.
|
|
60
62
|
* The value will always be `true`.
|
|
63
|
+
*
|
|
64
|
+
* @since 5.2
|
|
61
65
|
*/
|
|
62
66
|
export const overlapsSupportsCurves: boolean;
|
|
63
67
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type Polygon from "../Polygon.js";
|
|
8
8
|
|
|
9
|
+
/** @since 5.2 */
|
|
9
10
|
export interface PolygonOverlayOptions {
|
|
10
11
|
/**
|
|
11
12
|
* Output overlapping areas of polygons.
|
|
@@ -46,7 +47,11 @@ export interface PolygonOverlayOptions {
|
|
|
46
47
|
*/
|
|
47
48
|
export type Options = PolygonOverlayOptions;
|
|
48
49
|
|
|
49
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Object returned by the [polygonOverlayExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/polygonOverlayOperator/#polygonOverlayExecuteMany) method.
|
|
52
|
+
*
|
|
53
|
+
* @since 5.2
|
|
54
|
+
*/
|
|
50
55
|
export interface ExecuteManyResult {
|
|
51
56
|
/** The array of polygons returned by the operator. */
|
|
52
57
|
results: Polygon[];
|
|
@@ -62,6 +67,7 @@ export interface ExecuteManyResult {
|
|
|
62
67
|
* @param options - Additional options.
|
|
63
68
|
* @returns Returns the result polygons and ids.
|
|
64
69
|
* Overlaps have two or more ids, no-overlaps have one id, and gaps have no ids.
|
|
70
|
+
* @since 5.2
|
|
65
71
|
* @example
|
|
66
72
|
* // Overlay a set of polygons
|
|
67
73
|
* const result = polygonOverlayExecuteMany(polygons);
|
|
@@ -88,6 +94,8 @@ export function executeMany(polygons: Polygon[], options?: PolygonOverlayOptions
|
|
|
88
94
|
/**
|
|
89
95
|
* Indicates if the operator supports input polygons that contain curves.
|
|
90
96
|
* The value will always be `true`.
|
|
97
|
+
*
|
|
98
|
+
* @since 5.2
|
|
91
99
|
*/
|
|
92
100
|
export const polygonOverlaySupportsCurves: boolean;
|
|
93
101
|
|
|
@@ -7,6 +7,7 @@ import type Polygon from "../Polygon.js";
|
|
|
7
7
|
import type Transformation from "./support/Transformation.js";
|
|
8
8
|
import type { AreaUnit } from "../../core/units.js";
|
|
9
9
|
|
|
10
|
+
/** @since 5.2 */
|
|
10
11
|
export interface PolygonSlicerOptions {
|
|
11
12
|
/**
|
|
12
13
|
* The affine transformation to apply to the polygon before slicing. When applying the transformation, the slicing starts from the bottom and proceeds to the top. The default is the identity transformation.
|
|
@@ -22,6 +23,7 @@ export interface PolygonSlicerOptions {
|
|
|
22
23
|
*/
|
|
23
24
|
export type Options = PolygonSlicerOptions;
|
|
24
25
|
|
|
26
|
+
/** @since 5.2 */
|
|
25
27
|
export interface PolygonSlicerFindSlicesByAreaOptions extends PolygonSlicerOptions {
|
|
26
28
|
/**
|
|
27
29
|
* The area unit of the remaining area.
|
|
@@ -48,6 +50,7 @@ export type FindSlicesByAreaOptions = PolygonSlicerFindSlicesByAreaOptions;
|
|
|
48
50
|
* @param options - Additional options.
|
|
49
51
|
* @returns Returns the y-coordinate set for the slice positions sorted in increasing y-order. The set can be used as input to the
|
|
50
52
|
* [polygonSlicerSliceIntoStrips()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/polygonSlicerOperator/#polygonSlicerSliceIntoStrips) method.
|
|
53
|
+
* @since 5.2
|
|
51
54
|
* @example
|
|
52
55
|
* // Find the slice positions for a polygon
|
|
53
56
|
* const slicePositions = polygonSlicerFindSlicesByArea(polygon, 3, 0);
|
|
@@ -81,6 +84,7 @@ export function findSlicesByArea(polygon: Polygon, partCount: number, remainingA
|
|
|
81
84
|
* @param options - Additional options.
|
|
82
85
|
* @returns Returns the array of polygons that are the result of the slicing.
|
|
83
86
|
* The number of output polygons will not necessarily match the number of requested slices. For example, if some of the slices became degenerate, they may not be output. The method uses topological operations that rely on the tolerance value in the input spatial reference. These operations may shift vertices in a way that affects result areas.
|
|
87
|
+
* @since 5.2
|
|
84
88
|
* @example
|
|
85
89
|
* // Slice a polygon into equal area parts
|
|
86
90
|
* const slicedPolygons = polygonSlicerRecursiveSliceEqualArea(polygon, 3);
|
|
@@ -112,6 +116,7 @@ export function recursiveSliceEqualArea(polygon: Polygon, partCount: number, opt
|
|
|
112
116
|
* @param options - Additional options.
|
|
113
117
|
* @returns Returns the array of polygons that are the result of the slicing.
|
|
114
118
|
* The number of output polygons will not necessarily match the number of requested slices. For example, if some of the slices became degenerate, they may not be output. The method uses topological operations that rely on the tolerance value in the input spatial reference. These operations may shift vertices in a way that affects result areas.
|
|
119
|
+
* @since 5.2
|
|
115
120
|
* @example
|
|
116
121
|
* // Slice a polygon into strips
|
|
117
122
|
* const slicedPolygons = polygonSlicerSliceIntoStrips(polygon, [100, 200, 300]);
|
|
@@ -138,6 +143,8 @@ export function sliceIntoStrips(polygon: Polygon, ySlices: number[], options?: P
|
|
|
138
143
|
/**
|
|
139
144
|
* Indicates if the operator supports input geometries that contain curves.
|
|
140
145
|
* The value will always be `true`.
|
|
146
|
+
*
|
|
147
|
+
* @since 5.2
|
|
141
148
|
*/
|
|
142
149
|
export const polygonSlicerSupportsCurves: boolean;
|
|
143
150
|
|
|
@@ -48,6 +48,7 @@ import type { ProjectOptions } from "./types.js";
|
|
|
48
48
|
* Indicates if all dependencies of this module have been loaded.
|
|
49
49
|
*
|
|
50
50
|
* @returns Returns `true` if this module's dependencies have been loaded.
|
|
51
|
+
* @since 5.2
|
|
51
52
|
*/
|
|
52
53
|
export function projectIsLoaded(): boolean;
|
|
53
54
|
|
|
@@ -65,6 +66,7 @@ export function isLoaded(): boolean;
|
|
|
65
66
|
* Loads this module's dependencies. This method must be called first if `projectIsLoaded` returns `false`.
|
|
66
67
|
*
|
|
67
68
|
* @returns Resolves when the dependencies have been loaded.
|
|
69
|
+
* @since 5.2
|
|
68
70
|
* @see [projectIsLoaded()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/projectOperator/#projectIsLoaded)
|
|
69
71
|
*/
|
|
70
72
|
export function projectLoad(): Promise<void>;
|
|
@@ -87,6 +89,7 @@ export function load(): Promise<void>;
|
|
|
87
89
|
* @param outSpatialReference - The spatial reference to which the input geometry is projected.
|
|
88
90
|
* @param options - Additional options.
|
|
89
91
|
* @returns Returns the projected geometry or null.
|
|
92
|
+
* @since 5.2
|
|
90
93
|
* @example
|
|
91
94
|
* if (!projectIsLoaded()) {
|
|
92
95
|
* await projectLoad();
|
|
@@ -133,6 +136,7 @@ export function execute(geometry: GeometryUnion, outSpatialReference: SpatialRef
|
|
|
133
136
|
* @param outSpatialReference - The spatial reference to which the input geometry is projected.
|
|
134
137
|
* @param options - Additional options.
|
|
135
138
|
* @returns Returns the projected geometries or null.
|
|
139
|
+
* @since 5.2
|
|
136
140
|
*/
|
|
137
141
|
export function projectExecuteMany(geometries: GeometryUnion[], outSpatialReference: SpatialReference, options?: ProjectOptions): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
138
142
|
|
|
@@ -154,6 +158,8 @@ export function executeMany(geometries: GeometryUnion[], outSpatialReference: Sp
|
|
|
154
158
|
* Indicates if the operator supports input geometries that contain curves.
|
|
155
159
|
* The value is `null` or `undefined` until the operator is loaded, then it will always be `true`.
|
|
156
160
|
* This will produce densified output geometries.
|
|
161
|
+
*
|
|
162
|
+
* @since 5.2
|
|
157
163
|
*/
|
|
158
164
|
export const projectSupportsCurves: boolean | null | undefined;
|
|
159
165
|
|
|
@@ -11,6 +11,7 @@ import type { LengthUnit } from "../../core/units.js";
|
|
|
11
11
|
import type { GeometryUnion } from "../types.js";
|
|
12
12
|
import type { ProximityResult } from "./types.js";
|
|
13
13
|
|
|
14
|
+
/** @since 5.2 */
|
|
14
15
|
export interface ProximityOptions {
|
|
15
16
|
/**
|
|
16
17
|
* The length unit of the search radius and result distances.
|
|
@@ -27,6 +28,7 @@ export interface ProximityOptions {
|
|
|
27
28
|
*/
|
|
28
29
|
export type Options = ProximityOptions;
|
|
29
30
|
|
|
31
|
+
/** @since 5.2 */
|
|
30
32
|
export interface ProximityGetNearestCoordinateOptions extends ProximityOptions {
|
|
31
33
|
/**
|
|
32
34
|
* When the parameter is set to true, this function will calculate the left/right side of a polyline or polygon.
|
|
@@ -59,6 +61,7 @@ export type GetNearestCoordinateOptions = ProximityGetNearestCoordinateOptions;
|
|
|
59
61
|
* @param point - The point used to search for the nearest coordinate in `geometry`.
|
|
60
62
|
* @param options - Additional options.
|
|
61
63
|
* @returns Returns the proximity result which contains the nearest coordinate on the input `geometry` to the given `inputPoint`.
|
|
64
|
+
* @since 5.2
|
|
62
65
|
* @example
|
|
63
66
|
* // Return the nearest result on a polygon to the given point
|
|
64
67
|
* const proximityResult = proximityGetNearestCoordinate(polygon, point);
|
|
@@ -88,6 +91,7 @@ export function getNearestCoordinate(geometry: GeometryUnion, point: Point, opti
|
|
|
88
91
|
* @param point - The point used to search for the nearest coordinate in the input `geometry`.
|
|
89
92
|
* @param options - Additional options.
|
|
90
93
|
* @returns Returns the proximity result which contains the nearest vertex on the `geometry` to the given `inputPoint`.
|
|
94
|
+
* @since 5.2
|
|
91
95
|
* @example
|
|
92
96
|
* // Return the nearest vertex on a polygon to the given point
|
|
93
97
|
* const proximityResult = proximityGetNearestCoordinate(polygon, point);
|
|
@@ -123,6 +127,7 @@ export function getNearestVertex(geometry: GeometryUnion, point: Point, options?
|
|
|
123
127
|
* The array is sorted by distance to the `inputPoint` with the closest point first.
|
|
124
128
|
* When there are more than the `maxVertexCountToReturn` vertices to return, it returns the closest vertices.
|
|
125
129
|
* The array will be empty when `geometry` is empty.
|
|
130
|
+
* @since 5.2
|
|
126
131
|
* @example
|
|
127
132
|
* // Return the nearest vertices on a polygon to the given point
|
|
128
133
|
* const proximityResultsArray = proximityGetNearestVertices(polygon, point, 100, 5);
|
|
@@ -154,6 +159,8 @@ export function getNearestVertices(geometry: GeometryUnion, point: Point, search
|
|
|
154
159
|
/**
|
|
155
160
|
* Indicates if the operator supports input geometries that contain curves.
|
|
156
161
|
* The value will always be `true`.
|
|
162
|
+
*
|
|
163
|
+
* @since 5.2
|
|
157
164
|
*/
|
|
158
165
|
export const proximitySupportsCurves: boolean;
|
|
159
166
|
|
|
@@ -12,6 +12,7 @@ import type { GeometryUnion } from "../types.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @param geometry - The geometry to accelerate.
|
|
14
14
|
* @returns Returns `true` if the geometry was successfully accelerated.
|
|
15
|
+
* @since 5.2
|
|
15
16
|
*/
|
|
16
17
|
export function relateAccelerateGeometry(geometry: GeometryUnion): boolean;
|
|
17
18
|
|
|
@@ -31,6 +32,7 @@ export function accelerateGeometry(geometry: GeometryUnion): boolean;
|
|
|
31
32
|
* @param geometry2 - The second geometry for the relation.
|
|
32
33
|
* @param relation - The DE-9IM matrix relation encoded as a string to test against the relationship of the two geometries
|
|
33
34
|
* @returns Returns `true` if the two geometries satisfy the DE-9IM matrix relation.
|
|
35
|
+
* @since 5.2
|
|
34
36
|
* @example
|
|
35
37
|
* // Returns true if the polygon geometry completely
|
|
36
38
|
* // contains the polyline based on the DE-9IM string
|
|
@@ -58,6 +60,7 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion, rela
|
|
|
58
60
|
*
|
|
59
61
|
* @param relation - The DE-9IM matrix relation encoded as a string.
|
|
60
62
|
* @returns Returns `true` if the DE-9IM matrix relation is valid.
|
|
63
|
+
* @since 5.2
|
|
61
64
|
*/
|
|
62
65
|
export function relateIsValidDE9IM(relation: string): boolean;
|
|
63
66
|
|
|
@@ -75,6 +78,8 @@ export function isValidDE9IM(relation: string): boolean;
|
|
|
75
78
|
/**
|
|
76
79
|
* Indicates if the operator supports input geometries that contain curves.
|
|
77
80
|
* The value will always be `true`.
|
|
81
|
+
*
|
|
82
|
+
* @since 5.2
|
|
78
83
|
*/
|
|
79
84
|
export const relateSupportsCurves: boolean;
|
|
80
85
|
|
|
@@ -17,6 +17,7 @@ import type Polyline from "../Polyline.js";
|
|
|
17
17
|
* @param reshaper - The single path polyline reshaper.
|
|
18
18
|
* @returns If the `geometry` is a polygon, the return type is polygon, and if the `geometry` is a polyline, the return type is polyline.
|
|
19
19
|
* If the `geometry` cannot be reshaped, then the return type is null.
|
|
20
|
+
* @since 5.2
|
|
20
21
|
* @example
|
|
21
22
|
* // Reshape a polygon geometry
|
|
22
23
|
* const reshapedPolygon = reshapeExecute(polygon, reshaperPolyline);
|
|
@@ -46,6 +47,8 @@ export function execute(geometry: Polygon | Polyline, reshaper: Polyline): Polyg
|
|
|
46
47
|
/**
|
|
47
48
|
* Indicates if the operator supports input geometries that contain curves.
|
|
48
49
|
* The value will always be `false`.
|
|
50
|
+
*
|
|
51
|
+
* @since 5.2
|
|
49
52
|
*/
|
|
50
53
|
export const reshapeSupportsCurves: boolean;
|
|
51
54
|
|
|
@@ -42,6 +42,7 @@ import type SpatialReference from "../SpatialReference.js";
|
|
|
42
42
|
import type GeographicTransformation from "./support/GeographicTransformation.js";
|
|
43
43
|
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
44
44
|
|
|
45
|
+
/** @since 5.2 */
|
|
45
46
|
export interface ShapePreservingProjectOptions {
|
|
46
47
|
/**
|
|
47
48
|
* An extent used to help pick the correct transform.
|
|
@@ -81,6 +82,7 @@ export type Options = ShapePreservingProjectOptions;
|
|
|
81
82
|
* Indicates if all dependencies of this module have been loaded.
|
|
82
83
|
*
|
|
83
84
|
* @returns Returns `true` if this module's dependencies have been loaded.
|
|
85
|
+
* @since 5.2
|
|
84
86
|
*/
|
|
85
87
|
export function shapePreservingProjectIsLoaded(): boolean;
|
|
86
88
|
|
|
@@ -98,6 +100,7 @@ export function isLoaded(): boolean;
|
|
|
98
100
|
* Loads this module's dependencies. This method must be called first if `shapePreservingProjectIsLoaded` returns `false`.
|
|
99
101
|
*
|
|
100
102
|
* @returns Resolves when the dependencies have been loaded.
|
|
103
|
+
* @since 5.2
|
|
101
104
|
* @see [shapePreservingProjectIsLoaded()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectIsLoaded)
|
|
102
105
|
*/
|
|
103
106
|
export function shapePreservingProjectLoad(): Promise<void>;
|
|
@@ -120,6 +123,7 @@ export function load(): Promise<void>;
|
|
|
120
123
|
* @param outSpatialReference - The spatial reference to which the input geometry is projected.
|
|
121
124
|
* @param options - Additional options.
|
|
122
125
|
* @returns The projected geometry or null.
|
|
126
|
+
* @since 5.2
|
|
123
127
|
* @example
|
|
124
128
|
* if (!shapePreservingProjectIsLoaded()) {
|
|
125
129
|
* await shapePreservingProjectLoad();
|
|
@@ -158,6 +162,7 @@ export function execute(geometry: GeometryUnion, outSpatialReference: SpatialRef
|
|
|
158
162
|
* @param outSpatialReference - The spatial reference to which the input geometries are projected.
|
|
159
163
|
* @param options - Additional options.
|
|
160
164
|
* @returns Returns the projected geometries or null.
|
|
165
|
+
* @since 5.2
|
|
161
166
|
*/
|
|
162
167
|
export function shapePreservingProjectExecuteMany(geometries: GeometryUnion[], outSpatialReference: SpatialReference, options?: ShapePreservingProjectOptions): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
163
168
|
|
|
@@ -178,6 +183,8 @@ export function executeMany(geometries: GeometryUnion[], outSpatialReference: Sp
|
|
|
178
183
|
/**
|
|
179
184
|
* Indicates if the operator supports input geometries that contain curves.
|
|
180
185
|
* The value is `null` or `undefined` until the operator is loaded, then it will always be `false`.
|
|
186
|
+
*
|
|
187
|
+
* @since 5.2
|
|
181
188
|
*/
|
|
182
189
|
export const shapePreservingProjectSupportsCurves: boolean | null | undefined;
|
|
183
190
|
|