@arcgis/core 5.0.0-next.58 → 5.0.0-next.59
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/Graphic.d.ts +2 -2
- package/Viewpoint.d.ts +1 -1
- package/applications/Urban/meshUtils.d.ts +2 -2
- package/arcade.d.ts +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0bd73a66baea2f52e8a6.js +1 -0
- package/assets/esri/core/workers/chunks/262c5794650853457acc.js +1 -0
- package/assets/esri/core/workers/chunks/55a9ea536c64976c3409.js +1 -0
- package/assets/esri/core/workers/chunks/{5f9e64f00329cb646f0c.js → 741d170187e58e81584d.js} +1 -1
- package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Attribution.scss +2 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
- package/chunks/lerc-wasm.js +1 -1
- package/config.js +1 -1
- package/geometry/Extent.d.ts +1 -1
- package/geometry/Mesh.d.ts +2 -2
- package/geometry/SpatialReference.js +1 -1
- package/geometry/geometryEngine.d.ts +3 -3
- package/geometry/{geometryEngineInterfaces.d.ts → geometryEngineTypes.d.ts} +1 -1
- package/geometry/operators/affineTransformOperator.d.ts +3 -3
- package/geometry/operators/alphaShapeOperator.d.ts +1 -1
- package/geometry/operators/areaOperator.d.ts +1 -1
- package/geometry/operators/boundaryOperator.d.ts +3 -3
- package/geometry/operators/bufferOperator.d.ts +1 -1
- package/geometry/operators/centroidOperator.d.ts +1 -1
- package/geometry/operators/clipOperator.d.ts +3 -3
- package/geometry/operators/containsOperator.d.ts +1 -1
- package/geometry/operators/convexHullOperator.d.ts +3 -3
- package/geometry/operators/crossesOperator.d.ts +1 -1
- package/geometry/operators/cutOperator.d.ts +2 -2
- package/geometry/operators/densifyOperator.d.ts +3 -3
- package/geometry/operators/differenceOperator.d.ts +3 -3
- package/geometry/operators/disjointOperator.d.ts +1 -1
- package/geometry/operators/distanceOperator.d.ts +1 -1
- package/geometry/operators/equalsOperator.d.ts +1 -1
- package/geometry/operators/generalizeOperator.d.ts +3 -3
- package/geometry/operators/geodesicBufferOperator.d.ts +1 -2
- package/geometry/operators/geodesicProximityOperator.d.ts +2 -5
- package/geometry/operators/geodeticAreaOperator.d.ts +1 -2
- package/geometry/operators/geodeticDensifyOperator.d.ts +3 -4
- package/geometry/operators/geodeticDistanceOperator.d.ts +1 -2
- package/geometry/operators/geodeticLengthOperator.d.ts +1 -2
- package/geometry/operators/geodeticUtilsOperator.d.ts +1 -1
- package/geometry/operators/graphicBufferOperator.d.ts +1 -1
- package/geometry/operators/integrateOperator.d.ts +2 -2
- package/geometry/operators/intersectionOperator.d.ts +3 -3
- package/geometry/operators/intersectsOperator.d.ts +1 -1
- package/geometry/operators/isNearOperator.d.ts +1 -1
- package/geometry/operators/labelPointOperator.d.ts +1 -1
- package/geometry/operators/lengthOperator.d.ts +1 -1
- package/geometry/operators/linesToPolygonsOperator.d.ts +1 -1
- package/geometry/operators/locateBetweenOperator.d.ts +2 -2
- package/geometry/operators/minimumBoundingCircleOperator.d.ts +1 -1
- package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
- package/geometry/operators/offsetOperator.d.ts +3 -3
- package/geometry/operators/overlapsOperator.d.ts +1 -1
- package/geometry/operators/projectOperator.d.ts +4 -6
- package/geometry/operators/proximityOperator.d.ts +2 -2
- package/geometry/operators/relateOperator.d.ts +1 -1
- package/geometry/operators/shapePreservingProjectOperator.d.ts +3 -3
- package/geometry/operators/simplifyOGCOperator.d.ts +3 -3
- package/geometry/operators/simplifyOperator.d.ts +3 -3
- package/geometry/operators/symmetricDifferenceOperator.d.ts +3 -3
- package/geometry/operators/touchesOperator.d.ts +1 -1
- package/geometry/operators/{support/proximityResult.d.ts → types.d.ts} +18 -3
- package/geometry/operators/unionOperator.d.ts +3 -3
- package/geometry/operators/withinOperator.d.ts +1 -1
- package/geometry/support/geodesicUtils.d.ts +15 -2
- package/geometry/support/jsonUtils.d.ts +1 -1
- package/geometry/support/meshUtils/types.d.ts +34 -0
- package/geometry/support/meshUtils.d.ts +4 -7
- package/geometry/support/webMercatorUtils.d.ts +1 -1
- package/geometry/types.d.ts +23 -1
- package/geometry.d.ts +1 -1
- package/interfaces.d.ts +69 -72
- package/kernel.js +1 -1
- package/layers/CSVLayer.d.ts +0 -2
- package/layers/CatalogLayer.d.ts +1 -1
- package/layers/FeatureLayer.d.ts +1 -1
- package/layers/GeoJSONLayer.d.ts +1 -1
- package/layers/OGCFeatureLayer.d.ts +1 -1
- package/layers/OrientedImageryLayer.d.ts +1 -3
- package/layers/ParquetLayer.d.ts +1 -1
- package/layers/WFSLayer.d.ts +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
- package/layers/mixins/APIKeyMixin.d.ts +2 -2
- package/layers/mixins/ArcGISImageService.d.ts +4 -3
- package/layers/mixins/BlendLayer.d.ts +16 -15
- package/layers/mixins/DisplayFilteredLayer.d.ts +6 -3
- package/layers/mixins/FeatureEffectLayer.d.ts +23 -21
- package/layers/mixins/FeatureLayerBase.d.ts +23 -20
- package/layers/mixins/ImageryTileMixin.d.ts +5 -5
- package/layers/mixins/PortalLayer.d.ts +7 -7
- package/layers/mixins/RasterPresetRendererMixin.d.ts +6 -3
- package/layers/mixins/SceneService.d.ts +2 -2
- package/layers/mixins/TemporalLayer.d.ts +8 -7
- package/layers/mixins/TemporalSceneLayer.d.ts +2 -2
- package/layers/mixins/TrackableLayer.d.ts +4 -4
- package/layers/ogc/wfsUtils.d.ts +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +2 -2
- package/layers/support/DisplayFilterInfo.d.ts +7 -7
- package/layers/support/FeatureReductionCluster.d.ts +5 -5
- package/layers/support/FieldsIndex.d.ts +1 -2
- package/layers/support/RasterBandInfo.d.ts +1 -1
- package/layers/support/RasterInfo.d.ts +2 -2
- package/layers/support/RasterSensorInfo.d.ts +1 -1
- package/layers/support/Sublayer.d.ts +3 -3
- package/layers/support/SubtypeSublayer.d.ts +1 -1
- package/layers/support/TrackInfo.d.ts +2 -2
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/fieldUtils.d.ts +0 -1
- package/layers/support/source/QueryTableDataSource.d.ts +2 -2
- package/layers/support/types.d.ts +2 -2
- package/layers/types.d.ts +1 -1
- package/package.json +1 -1
- package/popup/FieldInfo.d.ts +8 -8
- package/popup/content/AttachmentsContent.d.ts +2 -2
- package/popup/content/CustomContent.d.ts +1 -1
- package/portal/interfaces.d.ts +2 -2
- package/portal/support/resourceUtils.d.ts +6 -7
- package/rest/featureService/types.d.ts +1 -1
- package/rest/geometryService.d.ts +2 -2
- package/rest/imageService.d.ts +1 -1
- package/rest/knowledgeGraph/GraphAnyValue.d.ts +1 -1
- package/rest/query/support/AttachmentInfo.d.ts +1 -1
- package/rest/query.d.ts +1 -1
- package/rest/support/BufferParameters.d.ts +1 -1
- package/rest/support/DataLayer.d.ts +1 -1
- package/rest/support/DensifyParameters.d.ts +1 -1
- package/rest/support/DistanceParameters.d.ts +1 -1
- package/rest/support/FeatureSet.d.ts +2 -2
- package/rest/support/FindImagesParameters.d.ts +1 -1
- package/rest/support/GeneralizeParameters.d.ts +1 -1
- package/rest/support/IdentifyParameters.d.ts +1 -1
- package/rest/support/ImageGPSInfoParameters.d.ts +1 -1
- package/rest/support/ImageMeasureResultAreaValue.d.ts +1 -1
- package/rest/support/ImageToMapMultirayParameters.d.ts +1 -1
- package/rest/support/OffsetParameters.d.ts +1 -1
- package/rest/support/ProjectParameters.d.ts +1 -1
- package/rest/support/Query.d.ts +1 -1
- package/rest/support/QueryMixin.d.ts +1 -1
- package/rest/support/RelationParameters.d.ts +1 -1
- package/rest/support/RelationshipQuery.d.ts +1 -1
- package/rest/support/TopFeaturesQuery.d.ts +1 -1
- package/smartMapping/labels/bins.d.ts +3 -6
- package/smartMapping/labels/clusters.d.ts +2 -2
- package/smartMapping/popup/clusters.d.ts +4 -4
- package/smartMapping/popup/templates.d.ts +4 -4
- package/smartMapping/renderers/color.d.ts +6 -6
- package/smartMapping/renderers/size.d.ts +6 -6
- package/smartMapping/statistics/support/ageUtils.d.ts +5 -5
- package/smartMapping/statistics/types.d.ts +5 -5
- package/smartMapping/types.d.ts +9 -1
- package/support/revision.js +1 -1
- package/unionTypes.d.ts +1 -1
- package/views/2d/MapViewConstraints.d.ts +5 -4
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/BreakpointsOwner.d.ts +1 -1
- package/views/LinkChartView.d.ts +1 -2
- package/views/MapView.d.ts +1 -2
- package/views/SceneView.d.ts +1 -2
- package/views/View.d.ts +1 -1
- package/views/Viewport2DMixin.d.ts +1 -1
- package/views/draw/MultipointDrawAction.d.ts +1 -1
- package/views/draw/MultipointDrawAction.js +1 -1
- package/views/draw/PointDrawAction.d.ts +1 -1
- package/views/draw/PointDrawAction.js +1 -1
- package/views/draw/PolygonDrawAction.d.ts +1 -1
- package/views/draw/PolygonDrawAction.js +1 -1
- package/views/draw/PolylineDrawAction.d.ts +1 -1
- package/views/draw/PolylineDrawAction.js +1 -1
- package/views/draw/SegmentDrawAction.d.ts +1 -1
- package/views/draw/SegmentDrawAction.js +1 -1
- package/views/input/{IViewEvents.js → mouseButtons.js} +1 -1
- package/views/input/types.d.ts +602 -1
- package/views/layers/BuildingSceneLayerView.d.ts +1 -1
- package/views/layers/FeatureLayerViewMixin.d.ts +1 -1
- package/views/layers/ImageryLayerViewMixin.d.ts +1 -1
- package/views/layers/MediaLayerViewMixin.d.ts +1 -1
- package/views/layers/PointCloudLayerView.d.ts +1 -1
- package/views/layers/SceneLayerView.d.ts +2 -2
- package/views/types.d.ts +148 -2
- package/webdoc/geotriggersInfo/FeatureFilter.d.ts +1 -1
- package/webscene/support/FeatureReferenceObjectId.d.ts +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -2
- package/widgets/BasemapLayerList.d.ts +3 -4
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -1
- package/widgets/CatalogLayerList.d.ts +2 -4
- package/widgets/Directions/DirectionsViewModel.d.ts +1 -1
- package/widgets/Editor/types.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +2 -2
- package/widgets/FeatureTable/VisibleElements.d.ts +30 -9
- package/widgets/FeatureTable/support/AttachmentsViewOptions.d.ts +1 -1
- package/widgets/FeatureTable/support/interfaces.d.ts +2 -2
- package/widgets/FeatureTable.d.ts +4 -4
- package/widgets/LayerList/LayerListViewModel.d.ts +9 -10
- package/widgets/LayerList/ListItem.d.ts +9 -11
- package/widgets/LayerList/ListItemPanel.d.ts +1 -1
- package/widgets/LayerList.d.ts +7 -4
- package/widgets/Legend/LegendViewModel.d.ts +5 -5
- package/widgets/Legend/support/ActiveLayerInfo.d.ts +5 -5
- package/widgets/Legend.d.ts +4 -4
- package/widgets/Popup/types.d.ts +3 -3
- package/widgets/Popup.d.ts +3 -3
- package/widgets/TableList/TableListViewModel.d.ts +2 -4
- package/widgets/TableList.d.ts +1 -1
- package/widgets/UtilityNetworkTrace/types.d.ts +1 -1
- package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +0 -1
- package/assets/esri/core/workers/chunks/a1f264abbd6354c333bf.js +0 -1
- package/assets/esri/core/workers/chunks/ed38c1043e6a83f49f93.js +0 -1
- package/geometry/geodesicUtils.d.ts +0 -19
- package/geometry/operators/support/geodeticCurveType.d.ts +0 -2
- package/geometry/operators/support/projectionTransformation.d.ts +0 -16
- package/geometry/support/MeshVertexSpace.d.ts +0 -4
- package/geometry/support/meshUtils/elevation.d.ts +0 -16
- package/geometry/support/meshUtils/elevationSampler.d.ts +0 -9
- package/geometry/support/meshUtils/georeference.d.ts +0 -10
- package/geometry/support/typeUtils.d.ts +0 -16
- package/smartMapping/popup/support/utils.d.ts +0 -13
- package/smartMapping/support/binningUtils.d.ts +0 -11
- package/smartMapping/support/clusterUtils.d.ts +0 -11
- package/smartMapping/support/utils.d.ts +0 -4
- package/views/2d/constraints/GeometryConstraint.d.ts +0 -4
- package/views/HitTestItem3D.d.ts +0 -20
- package/views/HitTestOptions.d.ts +0 -25
- package/views/IBreakpointsOwner.d.ts +0 -55
- package/views/IObjectId.d.ts +0 -2
- package/views/ISceneView.d.ts +0 -5
- package/views/IView.d.ts +0 -43
- package/views/input/IViewEvents.d.ts +0 -602
- /package/views/draw/input/{CursorUpdateEvents.d.ts → CursorUpdateEvent.d.ts} +0 -0
- /package/views/draw/input/{CursorUpdateEvents.js → CursorUpdateEvent.js} +0 -0
- /package/views/layers/{HighlightableLayerView.d.ts → types.d.ts} +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @since 4.31
|
|
9
9
|
*/
|
|
10
|
-
import type { GeometryUnion,
|
|
10
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Performs the topological integration of the geometry set in the XY plane.
|
|
@@ -20,7 +20,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
|
|
|
20
20
|
* // Integrate a set of geometries
|
|
21
21
|
* const result = integrateOperator.executeMany(geometries);
|
|
22
22
|
*/
|
|
23
|
-
export function executeMany(geometries: GeometryUnion[]): (
|
|
23
|
+
export function executeMany(geometries: GeometryUnion[]): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @since 4.31
|
|
7
7
|
*/
|
|
8
|
-
import type { GeometryUnion,
|
|
8
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Accelerate a geometry. This method prepares the geometry for faster intersection operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
|
|
@@ -46,7 +46,7 @@ export function accelerateGeometry(geometry: GeometryUnion): boolean;
|
|
|
46
46
|
* // Creates a new geometry based on the intersection of two polygons
|
|
47
47
|
* const intersection = intersectionOperator.execute(polygon1, polygon2);
|
|
48
48
|
*/
|
|
49
|
-
export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion):
|
|
49
|
+
export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): GeometryWithoutMeshUnion | null | undefined;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Performs the topological intersection operation on the geometry set.
|
|
@@ -73,7 +73,7 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): Geo
|
|
|
73
73
|
* @returns Returns an array of geometries created by intersecting
|
|
74
74
|
* every geometry in the input geometries with the `intersector`, or an empty array if there is no intersection.
|
|
75
75
|
*/
|
|
76
|
-
export function executeMany(geometries: GeometryUnion[], intersector: GeometryUnion):
|
|
76
|
+
export function executeMany(geometries: GeometryUnion[], intersector: GeometryUnion): GeometryWithoutMeshUnion[];
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @since 4.31
|
|
9
9
|
*/
|
|
10
|
-
import type { GeometryUnion } from "../
|
|
10
|
+
import type { GeometryUnion } from "../types.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Accelerate a geometry. This method prepares the geometry for faster intersects operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @see [Sample - Geometry operator - centroid analysis](https://developers.arcgis.com/javascript/latest/sample-code/geometry-operator-centroid/)
|
|
14
14
|
*/
|
|
15
15
|
import type Point from "../Point.js";
|
|
16
|
-
import type { GeometryUnion } from "../
|
|
16
|
+
import type { GeometryUnion } from "../types.js";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Performs the label point operation on the geometry.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @since 4.31
|
|
10
10
|
*/
|
|
11
|
-
import type { GeometryUnion,
|
|
11
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Performs the locate between or locate along operation on the geometry.
|
|
@@ -25,7 +25,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
|
|
|
25
25
|
* // Perform the locate between operation
|
|
26
26
|
* const geometries = locateBetweenOperator.executeMany([polyline1, polyline2], 100, 200);
|
|
27
27
|
*/
|
|
28
|
-
export function executeMany(geometries: GeometryUnion[], startM: number, endM: number): (
|
|
28
|
+
export function executeMany(geometries: GeometryUnion[], startM: number, endM: number): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @since 4.31
|
|
7
7
|
*/
|
|
8
|
-
import type { GeometryUnion,
|
|
8
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
9
9
|
|
|
10
10
|
export interface Options {
|
|
11
11
|
/**
|
|
@@ -32,7 +32,7 @@ export interface Options {
|
|
|
32
32
|
* // Convert multipart geometries to single part geometries
|
|
33
33
|
* const singlePartGeometries = multiPartToSinglePartOperator.executeMany(multiPartGeometries);
|
|
34
34
|
*/
|
|
35
|
-
export function executeMany(geometries: GeometryUnion[], options?: Options):
|
|
35
|
+
export function executeMany(geometries: GeometryUnion[], options?: Options): GeometryWithoutMeshUnion[];
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* @see 
|
|
44
44
|
*/
|
|
45
45
|
import type { LengthUnit } from "../../core/units.js";
|
|
46
|
-
import type { GeometryUnion,
|
|
46
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
47
47
|
|
|
48
48
|
export interface Options {
|
|
49
49
|
/**
|
|
@@ -96,7 +96,7 @@ export interface Options {
|
|
|
96
96
|
* // Create an offset polygon.
|
|
97
97
|
* const offsetPolygon = offsetOperator.execute(polygon, 100);
|
|
98
98
|
*/
|
|
99
|
-
export function execute(geometry: GeometryUnion, distance: number, options?: Options):
|
|
99
|
+
export function execute(geometry: GeometryUnion, distance: number, options?: Options): GeometryWithoutMeshUnion | null | undefined;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Creates offset versions of the input geometries.
|
|
@@ -110,7 +110,7 @@ export function execute(geometry: GeometryUnion, distance: number, options?: Opt
|
|
|
110
110
|
* @param options - Additional options.
|
|
111
111
|
* @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.
|
|
112
112
|
*/
|
|
113
|
-
export function executeMany(geometries: GeometryUnion[], distance: number, options?: Options): (
|
|
113
|
+
export function executeMany(geometries: GeometryUnion[], distance: number, options?: Options): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @since 4.31
|
|
7
7
|
*/
|
|
8
|
-
import type { GeometryUnion } from "../
|
|
8
|
+
import type { GeometryUnion } from "../types.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Accelerate a geometry. This method prepares the geometry for faster overlaps operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
|
|
@@ -40,10 +40,8 @@
|
|
|
40
40
|
* @see [Sample - Client-side projection](https://developers.arcgis.com/javascript/latest/sample-code/client-projection/)
|
|
41
41
|
*/
|
|
42
42
|
import type SpatialReference from "../SpatialReference.js";
|
|
43
|
-
import type {
|
|
44
|
-
import type {
|
|
45
|
-
|
|
46
|
-
export interface Options extends ProjectionTransformationOptions {}
|
|
43
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
44
|
+
import type { ProjectOptions } from "./types.js";
|
|
47
45
|
|
|
48
46
|
/**
|
|
49
47
|
* Indicates if all dependencies of this module have been loaded.
|
|
@@ -79,7 +77,7 @@ export function load(): Promise<void>;
|
|
|
79
77
|
* // Project a geometry to a different spatial reference
|
|
80
78
|
* const geometry = projectOperator.execute(polygon, outSpatialReference);
|
|
81
79
|
*/
|
|
82
|
-
export function execute(geometry: GeometryUnion, outSpatialReference: SpatialReference, options?:
|
|
80
|
+
export function execute(geometry: GeometryUnion, outSpatialReference: SpatialReference, options?: ProjectOptions): GeometryWithoutMeshUnion | null | undefined;
|
|
83
81
|
|
|
84
82
|
/**
|
|
85
83
|
* Projects an array of geometries to the specified output spatial reference.
|
|
@@ -90,7 +88,7 @@ export function execute(geometry: GeometryUnion, outSpatialReference: SpatialRef
|
|
|
90
88
|
* @param options - Additional options.
|
|
91
89
|
* @returns Returns the projected geometries or null.
|
|
92
90
|
*/
|
|
93
|
-
export function executeMany(geometries: GeometryUnion[], outSpatialReference: SpatialReference, options?:
|
|
91
|
+
export function executeMany(geometries: GeometryUnion[], outSpatialReference: SpatialReference, options?: ProjectOptions): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
94
92
|
|
|
95
93
|
/**
|
|
96
94
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type Point from "../Point.js";
|
|
10
10
|
import type { LengthUnit } from "../../core/units.js";
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
11
|
+
import type { GeometryUnion } from "../types.js";
|
|
12
|
+
import type { ProximityResult } from "./types.js";
|
|
13
13
|
|
|
14
14
|
export interface Options {
|
|
15
15
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @since 4.31
|
|
7
7
|
*/
|
|
8
|
-
import type { GeometryUnion } from "../
|
|
8
|
+
import type { GeometryUnion } from "../types.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Accelerate a geometry. This method prepares the geometry for faster relate operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
import type Extent from "../Extent.js";
|
|
29
29
|
import type SpatialReference from "../SpatialReference.js";
|
|
30
30
|
import type GeographicTransformation from "./support/GeographicTransformation.js";
|
|
31
|
-
import type { GeometryUnion,
|
|
31
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
32
32
|
|
|
33
33
|
export interface Options {
|
|
34
34
|
/**
|
|
@@ -85,7 +85,7 @@ export function load(): Promise<void>;
|
|
|
85
85
|
* // Project a geometry to a different spatial reference while preserving its shape.
|
|
86
86
|
* const geometry = shapePreservingProjectOperator.execute(polyline, spatialReference);
|
|
87
87
|
*/
|
|
88
|
-
export function execute(geometry: GeometryUnion, outSpatialReference: SpatialReference, options?: Options):
|
|
88
|
+
export function execute(geometry: GeometryUnion, outSpatialReference: SpatialReference, options?: Options): GeometryWithoutMeshUnion | null | undefined;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Performs the shape preserving project operation on multiple geometries.
|
|
@@ -96,7 +96,7 @@ export function execute(geometry: GeometryUnion, outSpatialReference: SpatialRef
|
|
|
96
96
|
* @param options - Additional options.
|
|
97
97
|
* @returns Returns the projected geometries or null.
|
|
98
98
|
*/
|
|
99
|
-
export function executeMany(geometries: GeometryUnion[], outSpatialReference: SpatialReference, options?: Options): (
|
|
99
|
+
export function executeMany(geometries: GeometryUnion[], outSpatialReference: SpatialReference, options?: Options): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 4.33
|
|
8
8
|
*/
|
|
9
|
-
import type { GeometryUnion,
|
|
9
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Performs the OGC simplify operation on a single geometry.
|
|
@@ -19,7 +19,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
|
|
|
19
19
|
* const simplified = simplifyOGCOperator.execute(polyline);
|
|
20
20
|
* console.log(simplifyOGCOperator.isSimple(simplified)); // true
|
|
21
21
|
*/
|
|
22
|
-
export function execute(geometry: GeometryUnion):
|
|
22
|
+
export function execute(geometry: GeometryUnion): GeometryWithoutMeshUnion | null | undefined;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Performs the OGC simplify operation on the geometry set.
|
|
@@ -29,7 +29,7 @@ export function execute(geometry: GeometryUnion): GeometrySansMeshUnion | null |
|
|
|
29
29
|
* @returns Returns the simplified geometry, or null. Geometry's with non-finite x or y, or infinite Zs return null.
|
|
30
30
|
* The method will set NaN z values to 0.
|
|
31
31
|
*/
|
|
32
|
-
export function executeMany(geometries: GeometryUnion[]): (
|
|
32
|
+
export function executeMany(geometries: GeometryUnion[]): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Indicates if the given geometry is OGC topologically simple. This operation takes into account z-values.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @since 4.31
|
|
9
9
|
*/
|
|
10
|
-
import type { GeometryUnion,
|
|
10
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Performs the simplify operation on a single geometry.
|
|
@@ -19,7 +19,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
|
|
|
19
19
|
* const simplified = simplifyOperator.execute(polyline);
|
|
20
20
|
* console.log(simplifyOperator.isSimple(simplified)); // true
|
|
21
21
|
*/
|
|
22
|
-
export function execute(geometry: GeometryUnion):
|
|
22
|
+
export function execute(geometry: GeometryUnion): GeometryWithoutMeshUnion | null | undefined;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Performs the simplify operation on the geometry set.
|
|
@@ -28,7 +28,7 @@ export function execute(geometry: GeometryUnion): GeometrySansMeshUnion | null |
|
|
|
28
28
|
* All the geometries must have the same spatial reference.
|
|
29
29
|
* @returns Returns an array whose elements may either be simplified geometries or null.
|
|
30
30
|
*/
|
|
31
|
-
export function executeMany(geometries: GeometryUnion[]): (
|
|
31
|
+
export function executeMany(geometries: GeometryUnion[]): (GeometryWithoutMeshUnion | null | undefined)[];
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Indicates if the given geometry is non-OGC topologically simple. This operation takes into account z-values.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @since 4.31
|
|
11
11
|
* @see [Wikipedia - Symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
|
|
12
12
|
*/
|
|
13
|
-
import type { GeometryUnion,
|
|
13
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Performs the symmetric difference (XOR) operation on two geometries.
|
|
@@ -22,7 +22,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
|
|
|
22
22
|
* // Calculate the symmetric difference of two polygons.
|
|
23
23
|
* const differencePolygon = symmetricDifferenceOperator.execute(polygon1, polygon2);
|
|
24
24
|
*/
|
|
25
|
-
export function execute(leftGeometry: GeometryUnion, rightGeometry: GeometryUnion):
|
|
25
|
+
export function execute(leftGeometry: GeometryUnion, rightGeometry: GeometryUnion): GeometryWithoutMeshUnion;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Performs the symmetric difference (XOR) operation on every geometry in `inputGeometries` with `rightGeometry`.
|
|
@@ -31,7 +31,7 @@ export function execute(leftGeometry: GeometryUnion, rightGeometry: GeometryUnio
|
|
|
31
31
|
* @param rightGeometry - The geometry being XOR'd with the `inputGeometries`.
|
|
32
32
|
* @returns Returns an array of the result geometries.
|
|
33
33
|
*/
|
|
34
|
-
export function executeMany(inputGeometries: GeometryUnion[], rightGeometry: GeometryUnion):
|
|
34
|
+
export function executeMany(inputGeometries: GeometryUnion[], rightGeometry: GeometryUnion): GeometryWithoutMeshUnion[];
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @since 4.31
|
|
7
7
|
*/
|
|
8
|
-
import type { GeometryUnion } from "../
|
|
8
|
+
import type { GeometryUnion } from "../types.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Accelerate a geometry. This method prepares the geometry for faster touches operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type Extent from "../Extent.js";
|
|
2
|
+
import type Point from "../Point.js";
|
|
3
|
+
import type GeographicTransformation from "./support/GeographicTransformation.js";
|
|
2
4
|
|
|
3
5
|
/** Object returned from the [getNearestCoordinate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestCoordinate), {@link geometry/operators/proximityOperator#nearestVegetNearestVertex getNearestVertex()}, and [getNearestVertices()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertices) methods. */
|
|
4
6
|
export interface ProximityResult {
|
|
@@ -15,10 +17,23 @@ export interface ProximityResult {
|
|
|
15
17
|
* Indicates if the nearest coordinate is on the right side or left side of the input point.
|
|
16
18
|
*
|
|
17
19
|
* > [!WARNING]
|
|
18
|
-
* >
|
|
19
|
-
* > Note: This property will only be present when `calculateLeftRightSide` is set to `true` when calling `getNearestCoordinate()`.
|
|
20
|
+
* > This property will only be present when `calculateLeftRightSide` is set to `true` when calling `getNearestCoordinate()`.
|
|
20
21
|
*/
|
|
21
22
|
isRightSide?: boolean;
|
|
22
23
|
/** The index of the vertex on the geometry that is closest to the input point. */
|
|
23
24
|
vertexIndex: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ProjectOptions {
|
|
28
|
+
/**
|
|
29
|
+
* An extent used to help pick the correct transform.
|
|
30
|
+
* This is not used if the `geographicTransformation` option is provided.
|
|
31
|
+
* The extent's spatial reference should be the same as the `geometries` spatial reference.
|
|
32
|
+
*/
|
|
33
|
+
readonly areaOfInterestExtent?: Extent | null;
|
|
34
|
+
/**
|
|
35
|
+
* The geographic transformation used to transform the geometries.
|
|
36
|
+
* Specify this parameter to project a geometry when the default transformation is not appropriate for your requirements.
|
|
37
|
+
*/
|
|
38
|
+
readonly geographicTransformation?: GeographicTransformation | null;
|
|
24
39
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @since 4.31
|
|
7
7
|
*/
|
|
8
|
-
import type { GeometryUnion,
|
|
8
|
+
import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Perform a topological union operation on two geometries.
|
|
@@ -17,7 +17,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
|
|
|
17
17
|
* // Return the union of two polygons
|
|
18
18
|
* const union = unionOperator.execute(polygon1, polygon2);
|
|
19
19
|
*/
|
|
20
|
-
export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion):
|
|
20
|
+
export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): GeometryWithoutMeshUnion | null | undefined;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Perform a topological union operation on a geometry set.
|
|
@@ -26,7 +26,7 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): Geo
|
|
|
26
26
|
* All the geometries must have the same spatial reference.
|
|
27
27
|
* @returns Returns the union of `geometries` as a geometry or null.
|
|
28
28
|
*/
|
|
29
|
-
export function executeMany(geometries: GeometryUnion[]):
|
|
29
|
+
export function executeMany(geometries: GeometryUnion[]): GeometryWithoutMeshUnion | null | undefined;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Indicates if the operator supports input geometries that contain curves.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @since 4.31
|
|
9
9
|
*/
|
|
10
|
-
import type { GeometryUnion } from "../
|
|
10
|
+
import type { GeometryUnion } from "../types.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Accelerate a geometry. This method prepares the geometry for faster within operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
|
|
@@ -10,7 +10,6 @@ import type Point from "../Point.js";
|
|
|
10
10
|
import type Polygon from "../Polygon.js";
|
|
11
11
|
import type Polyline from "../Polyline.js";
|
|
12
12
|
import type { AreaUnit, LengthUnit } from "../../core/units.js";
|
|
13
|
-
import type { InverseGeodeticSolverResult } from "../geodesicUtils.js";
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* Geodetically computes the area for one or more polygons.
|
|
@@ -153,4 +152,18 @@ export function geodesicDistance(from: Point, to: Point, unit?: LengthUnit): Inv
|
|
|
153
152
|
* const { latitude, longitude } = destination;
|
|
154
153
|
* console.log("Latitude: ", latitude, ", Longitude: ", longitude);
|
|
155
154
|
*/
|
|
156
|
-
export function pointFromDistance(point: Point, distance: number, azimuth: number): Point;
|
|
155
|
+
export function pointFromDistance(point: Point, distance: number, azimuth: number): Point;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Computed distance and direction between two known locations.
|
|
159
|
+
*
|
|
160
|
+
* @deprecated since version 4.33. Use [geodeticUtilsOperator's CalculateDistanceAndAzimuthResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticUtilsOperator.html#CalculateDistanceAndAzimuthResult) instead.
|
|
161
|
+
*/
|
|
162
|
+
export interface InverseGeodeticSolverResult {
|
|
163
|
+
/** The azimuth (or "bearing") in degrees. Value will be in the range of 0-360°. */
|
|
164
|
+
readonly azimuth?: number;
|
|
165
|
+
/** The distance between the two locations. */
|
|
166
|
+
readonly distance: number;
|
|
167
|
+
/** The azimuth in degrees in the reverse direction. Value will be in the range of 0-360°. */
|
|
168
|
+
readonly reverseAzimuth?: number;
|
|
169
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @see [Geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html)
|
|
6
6
|
* @see [Using fromJSON() to create a class instance](https://developers.arcgis.com/javascript/latest/using-fromjson)
|
|
7
7
|
*/
|
|
8
|
-
import type { GeometryUnion } from "
|
|
8
|
+
import type { GeometryUnion } from "../types.js";
|
|
9
9
|
import type { GeometryType } from "../../portal/jsonTypes.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type Point from "../../Point.js";
|
|
2
|
+
import type MeshMaterial from "../MeshMaterial.js";
|
|
2
3
|
import type { AbortOptions } from "../../../core/promiseUtils.js";
|
|
3
4
|
import type { LengthUnit } from "../../../core/units.js";
|
|
4
5
|
import type { MeshMaterialProperties } from "../MeshMaterial.js";
|
|
6
|
+
import type { DemResolution } from "../../../layers/support/ElevationQueryContext.js";
|
|
5
7
|
|
|
6
8
|
export interface VertexSpaceParameters {
|
|
7
9
|
/** The unit of the size (defaults to the unit of the location's spatial reference). */
|
|
@@ -131,6 +133,28 @@ export interface CenterAtParameters extends GeographicParameters {
|
|
|
131
133
|
origin?: Point;
|
|
132
134
|
}
|
|
133
135
|
|
|
136
|
+
export interface CreateFromElevationParameters extends AbortOptions {
|
|
137
|
+
/**
|
|
138
|
+
* Controls the horizontal resolution (cell size)
|
|
139
|
+
* in meters from which elevation data is sampled (defaults to `auto`). See [ElevationLayer#queryElevation()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation)
|
|
140
|
+
* for more details on the different settings.
|
|
141
|
+
*
|
|
142
|
+
* @default "auto"
|
|
143
|
+
*/
|
|
144
|
+
demResolution?: DemResolution;
|
|
145
|
+
/** The material to be used for the mesh. */
|
|
146
|
+
material?: MeshMaterial;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface CreateElevationSamplerParameters {
|
|
150
|
+
/**
|
|
151
|
+
* The value to use when there is no data available.
|
|
152
|
+
*
|
|
153
|
+
* @default 0
|
|
154
|
+
*/
|
|
155
|
+
noDataValue?: number;
|
|
156
|
+
}
|
|
157
|
+
|
|
134
158
|
export interface Size {
|
|
135
159
|
/** The depth of the created mesh. */
|
|
136
160
|
depth?: number;
|
|
@@ -156,4 +180,14 @@ export interface ExportGLTFOptions extends AbortOptions {
|
|
|
156
180
|
* in the binary glTF model.
|
|
157
181
|
*/
|
|
158
182
|
origin: Point;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** Represents the position and normal vertex attribute buffers of a mesh. */
|
|
186
|
+
export interface VertexAttributes {
|
|
187
|
+
/** The normal buffer. */
|
|
188
|
+
normal?: Float32Array<ArrayBuffer> | null;
|
|
189
|
+
/** The position buffer. */
|
|
190
|
+
position: Float64Array<ArrayBuffer>;
|
|
191
|
+
/** The tangent buffer. */
|
|
192
|
+
tangent?: Float32Array<ArrayBuffer> | null;
|
|
159
193
|
}
|
|
@@ -10,11 +10,8 @@ import type Point from "../Point.js";
|
|
|
10
10
|
import type ElevationLayer from "../../layers/ElevationLayer.js";
|
|
11
11
|
import type ElevationSampler from "../../layers/support/ElevationSampler.js";
|
|
12
12
|
import type { AbortOptions } from "../../core/promiseUtils.js";
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type { CreateParameters as CreateElevationSamplerParameters } from "./meshUtils/elevationSampler.js";
|
|
16
|
-
import type { VertexAttributes } from "./meshUtils/georeference.js";
|
|
17
|
-
import type { GeographicParameters } from "./meshUtils/types.js";
|
|
13
|
+
import type { MeshVertexSpaceUnion } from "../types.js";
|
|
14
|
+
import type { VertexAttributes, GeographicParameters, CreateElevationSamplerParameters, CreateFromElevationParameters } from "./meshUtils/types.js";
|
|
18
15
|
|
|
19
16
|
/**
|
|
20
17
|
* Creates a mesh geometry by sampling elevation data from an elevation service on a regular grid.
|
|
@@ -36,7 +33,7 @@ import type { GeographicParameters } from "./meshUtils/types.js";
|
|
|
36
33
|
* // Do something with the mesh
|
|
37
34
|
* });
|
|
38
35
|
*/
|
|
39
|
-
export function createFromElevation(source: ElevationLayer | Ground | ElevationSampler, extent: Extent, options?:
|
|
36
|
+
export function createFromElevation(source: ElevationLayer | Ground | ElevationSampler, extent: Extent, options?: CreateFromElevationParameters): Promise<Mesh>;
|
|
40
37
|
|
|
41
38
|
/**
|
|
42
39
|
* Creates an elevation sampler from a mesh. The sampler can be used to query elevation values
|
|
@@ -146,4 +143,4 @@ export function merge(geometries: Mesh[]): Mesh | null | undefined;
|
|
|
146
143
|
*
|
|
147
144
|
* view.graphics.add(new Graphic({ geometry: highestPoint }));
|
|
148
145
|
*/
|
|
149
|
-
export function convertVertexSpace(mesh: Mesh, targetVertexSpace:
|
|
146
|
+
export function convertVertexSpace(mesh: Mesh, targetVertexSpace: MeshVertexSpaceUnion, options?: AbortOptions): Promise<Mesh>;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @see [Sample - CoordinateConversion widget - Custom Formats](https://developers.arcgis.com/javascript/latest/sample-code/widgets-coordinateconversion-custom/)
|
|
12
12
|
*/
|
|
13
13
|
import type SpatialReference from "../SpatialReference.js";
|
|
14
|
-
import type { GeometryUnion } from "
|
|
14
|
+
import type { GeometryUnion } from "../types.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Returns `true` if the `source` spatial reference can be projected to the `target` spatial reference with the [project()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#project) function, or
|
package/geometry/types.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
import type Extent from "./Extent.js";
|
|
2
|
+
import type Mesh from "./Mesh.js";
|
|
3
|
+
import type Multipoint from "./Multipoint.js";
|
|
4
|
+
import type Point from "./Point.js";
|
|
5
|
+
import type Polygon from "./Polygon.js";
|
|
6
|
+
import type Polyline from "./Polyline.js";
|
|
7
|
+
import type MeshGeoreferencedVertexSpace from "./support/MeshGeoreferencedVertexSpace.js";
|
|
8
|
+
import type MeshLocalVertexSpace from "./support/MeshLocalVertexSpace.js";
|
|
9
|
+
|
|
10
|
+
export type FeatureGeometryType = "point" | "multipoint" | "polyline" | "polygon";
|
|
11
|
+
|
|
12
|
+
export type GeometryType = "point" | "multipoint" | "polyline" | "polygon" | "extent" | "mesh";
|
|
13
|
+
|
|
14
|
+
export type GeometryUnion = Extent | Multipoint | Point | Polygon | Polyline | Mesh;
|
|
15
|
+
|
|
16
|
+
export type GeometryWithoutMeshUnion = Extent | Multipoint | Point | Polygon | Polyline;
|
|
17
|
+
|
|
18
|
+
export type CurveType = "circular-arc" | "elliptic-arc" | "cubic-bezier";
|
|
19
|
+
|
|
20
|
+
export type GeodeticCurveType = "geodesic" | "loxodrome" | "great-elliptic" | "normal-section" | "shape-preserving";
|
|
1
21
|
|
|
2
22
|
export type LatitudeLongitudeFormat = "dd" | "ddm" | "dms";
|
|
3
23
|
|
|
@@ -11,4 +31,6 @@ export interface CompressedTextureData {
|
|
|
11
31
|
type: "encoded-mesh-texture";
|
|
12
32
|
}
|
|
13
33
|
|
|
14
|
-
export type MeshTextureData = HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageData | CompressedTextureData;
|
|
34
|
+
export type MeshTextureData = HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageData | CompressedTextureData;
|
|
35
|
+
|
|
36
|
+
export type MeshVertexSpaceUnion = MeshGeoreferencedVertexSpace | MeshLocalVertexSpace;
|
package/geometry.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ import type PointClass from "./geometry/Point.js";
|
|
|
42
42
|
import type PolygonClass from "./geometry/Polygon.js";
|
|
43
43
|
import type PolylineClass from "./geometry/Polyline.js";
|
|
44
44
|
import type SpatialReferenceClass from "./geometry/SpatialReference.js";
|
|
45
|
-
import type { GeometryUnion } from "./geometry/
|
|
45
|
+
import type { GeometryUnion } from "./geometry/types.js";
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Spatial Reference.
|