@arcgis/core 5.0.0-next.57 → 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/Components/arcadeFeatureUtils.d.ts +20 -1
- package/applications/Components/arcadeFeatureUtils.js +1 -1
- package/applications/Urban/meshUtils.d.ts +2 -2
- package/arcade.d.ts +1 -1
- package/arcade.js +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/18ce7b1559a45d017c45.js +1 -0
- package/assets/esri/core/workers/chunks/262c5794650853457acc.js +1 -0
- package/assets/esri/core/workers/chunks/3405a23973f9e701a4d6.js +1 -0
- package/assets/esri/core/workers/chunks/352c674730c7b7258ae3.js +1 -0
- package/assets/esri/core/workers/chunks/55a9ea536c64976c3409.js +1 -0
- package/assets/esri/core/workers/chunks/62752cd6821959cf6751.js +1 -0
- package/assets/esri/core/workers/chunks/72e3a48aa365542b0689.js +1 -0
- package/assets/esri/core/workers/chunks/{5f9e64f00329cb646f0c.js → 741d170187e58e81584d.js} +1 -1
- package/assets/esri/core/workers/chunks/a6b1e3ec30f6d641aea9.js +1 -0
- package/assets/esri/core/workers/chunks/{da2c41ac0f82f32013c1.js → a7aa87e2c4197ba595ef.js} +10 -10
- package/assets/esri/core/workers/chunks/{d76513a6260d9ec4ea25.js → bf82bb1cdd8b31e7f2aa.js} +1 -1
- package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Attribution.scss +2 -2
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +24 -0
- 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.json +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_en.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/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fr.json +1 -1
- package/chunks/lerc-wasm.js +1 -1
- package/config.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/editing/sharedTemplates/executor/builders/offsetLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/offsetPrimaryLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonBoundaryTwoPoint.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonVertices.js +1 -1
- package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
- package/editing/sharedTemplates/executor/builders/support/shapeUtils.js +1 -1
- package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
- package/editing/sharedTemplates/executor/support/createPresetServiceEdit.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/projection/projectBoundingSphere.js +1 -1
- package/geometry/support/curves/curveUtils.js +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/sphere.js +1 -1
- 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/KnowledgeGraphLayer.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +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/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +3 -3
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/knowledgeGraph/layerUtils.js +1 -1
- 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 +2 -2
- 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/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/GlslGraphWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/PipelineConnectionHandlers.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/I3SNode.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/support/ElevationRange.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.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/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +46 -5
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/EditorColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/VisibleElements.d.ts +30 -9
- package/widgets/FeatureTable/VisibleElements.js +1 -1
- package/widgets/FeatureTable/support/AttachmentsViewOptions.d.ts +1 -1
- package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -0
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable/support/interfaces.d.ts +2 -2
- package/widgets/FeatureTable.d.ts +46 -5
- package/widgets/FeatureTable.js +1 -1
- 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/30184e39129d9c66ea54.js +0 -1
- package/assets/esri/core/workers/chunks/5340887a4a48bde3407a.js +0 -1
- package/assets/esri/core/workers/chunks/537de53ef1e9101468f5.js +0 -1
- package/assets/esri/core/workers/chunks/94f02082a006003ef5a9.js +0 -1
- package/assets/esri/core/workers/chunks/a1f264abbd6354c333bf.js +0 -1
- package/assets/esri/core/workers/chunks/d3db7244fac7398cc700.js +0 -1
- package/assets/esri/core/workers/chunks/d94a2ad5a91de7086fbe.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
package/views/input/types.d.ts
CHANGED
|
@@ -1,2 +1,603 @@
|
|
|
1
|
+
import type Layer from "../../layers/Layer.js";
|
|
2
|
+
import type Point from "../../geometry/Point.js";
|
|
3
|
+
import type LayerView from "../layers/LayerView.js";
|
|
1
4
|
|
|
2
|
-
export type PointerType = "mouse" | "touch" | "pen";
|
|
5
|
+
export type PointerType = "mouse" | "touch" | "pen";
|
|
6
|
+
|
|
7
|
+
export type PointerEventType = "pointer-down" | "pointer-move" | "pointer-up" | "pointer-drag" | "pointer-enter" | "pointer-leave";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Indicates which mouse button was clicked.
|
|
11
|
+
* See [MouseEvent.button](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button).
|
|
12
|
+
*
|
|
13
|
+
* Value | Description
|
|
14
|
+
* ------|------------
|
|
15
|
+
* 0 | left click (or touch)
|
|
16
|
+
* 1 | middle click
|
|
17
|
+
* 2 | right click
|
|
18
|
+
* 3 | back click
|
|
19
|
+
* 4 | forward click
|
|
20
|
+
* -1 | unknown button
|
|
21
|
+
*/
|
|
22
|
+
export type MouseButton = 0 | 1 | 2 | 3 | 4 | -1;
|
|
23
|
+
|
|
24
|
+
export interface ViewEvent<T extends Event = Event> {
|
|
25
|
+
/**
|
|
26
|
+
* A function that can be called to defer event propagation until
|
|
27
|
+
* the passed in asynchronous function is completed. Calling defer will stall the entire event pipeline and should
|
|
28
|
+
* be used with caution.
|
|
29
|
+
*/
|
|
30
|
+
defer: EventDefer;
|
|
31
|
+
/** A standard [DOM Event](https://developer.mozilla.org/en-US/docs/Web/API/Event). */
|
|
32
|
+
native: T;
|
|
33
|
+
/** Time stamp (in milliseconds) at which the event was created. */
|
|
34
|
+
timestamp: number;
|
|
35
|
+
/** Prevents the event bubbling up the event chain. */
|
|
36
|
+
stopPropagation(): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @param operation - An asynchronous operation.
|
|
41
|
+
* @returns The result of calling the passed in operation.
|
|
42
|
+
* @since 4.33
|
|
43
|
+
* @example
|
|
44
|
+
* view.on("click", (event) => {
|
|
45
|
+
* event.defer(async () => {
|
|
46
|
+
* const hitTestResult = await view.hitTest(event);
|
|
47
|
+
*
|
|
48
|
+
* if (hitTestResult.results.length) {
|
|
49
|
+
* // stop the event from propagating
|
|
50
|
+
* event.stopPropagation();
|
|
51
|
+
* console.log("found hit, stopping propagation to prevent popup", hitTestResult.results[0]);
|
|
52
|
+
* }
|
|
53
|
+
* });
|
|
54
|
+
* });
|
|
55
|
+
*/
|
|
56
|
+
export type EventDefer = <T>(operation: () => Promise<T>) => Promise<T>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Aynchronous function passed to the defer method of an event.
|
|
60
|
+
*
|
|
61
|
+
* @returns The event pipeline is deferred until the promise is resolved.
|
|
62
|
+
* @since 4.33
|
|
63
|
+
* @see {@link views/input/IViewEvents!EventDefer}
|
|
64
|
+
*/
|
|
65
|
+
export type EventDeferredOperation<T extends Event = Event> = () => Promise<T>;
|
|
66
|
+
|
|
67
|
+
export type PointerId = number;
|
|
68
|
+
|
|
69
|
+
export interface ClickEvent extends ViewEvent<PointerEvent | MouseEvent> {
|
|
70
|
+
/** Indicates which mouse button was clicked. */
|
|
71
|
+
button: MouseButton;
|
|
72
|
+
/**
|
|
73
|
+
* Indicates the current mouse button state.
|
|
74
|
+
*
|
|
75
|
+
* Value | Description
|
|
76
|
+
* ------|------------
|
|
77
|
+
* 0 | left click (or touch)
|
|
78
|
+
* 1 | middle click
|
|
79
|
+
* 2 | right click
|
|
80
|
+
*/
|
|
81
|
+
buttons: number;
|
|
82
|
+
/**
|
|
83
|
+
* The point location of the click on the view in the spatial
|
|
84
|
+
* reference of the map.
|
|
85
|
+
*/
|
|
86
|
+
mapPoint: Point;
|
|
87
|
+
/** The event type. */
|
|
88
|
+
type: "click";
|
|
89
|
+
/** The horizontal screen coordinate of the click on the view. */
|
|
90
|
+
x: number;
|
|
91
|
+
/** The vertical screen coordinate of the click on the view. */
|
|
92
|
+
y: number;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface DoubleClickEvent extends ViewEvent<PointerEvent | MouseEvent> {
|
|
96
|
+
/** Indicates which mouse button was clicked. */
|
|
97
|
+
button: MouseButton;
|
|
98
|
+
/**
|
|
99
|
+
* Indicates the current mouse button state.
|
|
100
|
+
*
|
|
101
|
+
* Value | Description
|
|
102
|
+
* ------|------------
|
|
103
|
+
* 0 | left click (or touch)
|
|
104
|
+
* 1 | middle click
|
|
105
|
+
* 2 | right click
|
|
106
|
+
*/
|
|
107
|
+
buttons: number;
|
|
108
|
+
/**
|
|
109
|
+
* The point location of the click on the view in the spatial
|
|
110
|
+
* reference of the map.
|
|
111
|
+
*/
|
|
112
|
+
mapPoint: Point;
|
|
113
|
+
/** The event type. */
|
|
114
|
+
type: "double-click";
|
|
115
|
+
/** The horizontal screen coordinate of the click on the view. */
|
|
116
|
+
x: number;
|
|
117
|
+
/** The vertical screen coordinate of the click on the view. */
|
|
118
|
+
y: number;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface ImmediateClickEvent extends ViewEvent<PointerEvent | MouseEvent> {
|
|
122
|
+
/**
|
|
123
|
+
* Indicates which mouse button was clicked.
|
|
124
|
+
* See [MouseEvent.button](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button).
|
|
125
|
+
*
|
|
126
|
+
* Value | Description
|
|
127
|
+
* ------|------------
|
|
128
|
+
* 0 | left click (or touch)
|
|
129
|
+
* 1 | middle click
|
|
130
|
+
* 2 | right click
|
|
131
|
+
*/
|
|
132
|
+
button: MouseButton;
|
|
133
|
+
/**
|
|
134
|
+
* Indicates which buttons are pressed when the event is triggered.
|
|
135
|
+
* See [MouseEvent.buttons](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons).
|
|
136
|
+
*/
|
|
137
|
+
buttons: number;
|
|
138
|
+
/**
|
|
139
|
+
* The point location of the click on the view in the spatial
|
|
140
|
+
* reference of the map.
|
|
141
|
+
*/
|
|
142
|
+
mapPoint: Point;
|
|
143
|
+
/** The event type. */
|
|
144
|
+
type: "immediate-click";
|
|
145
|
+
/** The horizontal screen coordinate of the click on the view. */
|
|
146
|
+
x: number;
|
|
147
|
+
/** The vertical screen coordinate of the click on the view. */
|
|
148
|
+
y: number;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface ImmediateDoubleClickEvent extends ViewEvent<PointerEvent | MouseEvent> {
|
|
152
|
+
/**
|
|
153
|
+
* Indicates which mouse button was clicked.
|
|
154
|
+
* See [MouseEvent.button](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button).
|
|
155
|
+
*
|
|
156
|
+
* Value | Description
|
|
157
|
+
* ------|------------
|
|
158
|
+
* 0 | left click (or touch)
|
|
159
|
+
* 1 | middle click
|
|
160
|
+
* 2 | right click
|
|
161
|
+
*/
|
|
162
|
+
button: MouseButton;
|
|
163
|
+
/**
|
|
164
|
+
* Indicates which buttons are pressed when the event is triggered.
|
|
165
|
+
* See [MouseEvent.buttons](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons).
|
|
166
|
+
*/
|
|
167
|
+
buttons: number;
|
|
168
|
+
/**
|
|
169
|
+
* The point location of the click on the view in the spatial
|
|
170
|
+
* reference of the map.
|
|
171
|
+
*/
|
|
172
|
+
mapPoint: Point;
|
|
173
|
+
/** The event type. */
|
|
174
|
+
type: "immediate-double-click";
|
|
175
|
+
/** The horizontal screen coordinate of the click on the view. */
|
|
176
|
+
x: number;
|
|
177
|
+
/** The vertical screen coordinate of the click on the view. */
|
|
178
|
+
y: number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface HoldEvent extends ViewEvent<PointerEvent | MouseEvent> {
|
|
182
|
+
/**
|
|
183
|
+
* Indicates which mouse button was held down.
|
|
184
|
+
* See [MouseEvent.button](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button).
|
|
185
|
+
*
|
|
186
|
+
* Value | Description
|
|
187
|
+
* ------|------------
|
|
188
|
+
* 0 | left mouse button (or touch)
|
|
189
|
+
* 1 | middle mouse button
|
|
190
|
+
* 2 | right mouse button
|
|
191
|
+
*/
|
|
192
|
+
button: MouseButton;
|
|
193
|
+
/**
|
|
194
|
+
* Indicates which mouse buttons are pressed when the event is triggered.
|
|
195
|
+
* See [MouseEvent.buttons](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons).
|
|
196
|
+
*/
|
|
197
|
+
buttons: number;
|
|
198
|
+
/**
|
|
199
|
+
* The point location of the click on the view in the spatial
|
|
200
|
+
* reference of the map.
|
|
201
|
+
*/
|
|
202
|
+
mapPoint: Point;
|
|
203
|
+
/** The event type. */
|
|
204
|
+
type: "hold";
|
|
205
|
+
/** The horizontal screen coordinate of the hold on the view. */
|
|
206
|
+
x: number;
|
|
207
|
+
/** The vertical screen coordinate of the hold on the view. */
|
|
208
|
+
y: number;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface DragEvent extends ViewEvent<PointerEvent | MouseEvent> {
|
|
212
|
+
/**
|
|
213
|
+
* Indicates the state of the drag.
|
|
214
|
+
* The two values `added` and `removed` indicate a change in the number of pointers involved.
|
|
215
|
+
*/
|
|
216
|
+
action: "start" | "update" | "added" | "removed" | "end";
|
|
217
|
+
/** Amount of rotation (in degrees) since the last event of type `start`. */
|
|
218
|
+
angle: number;
|
|
219
|
+
/**
|
|
220
|
+
* Indicates which mouse button was clicked at the start of the drag.
|
|
221
|
+
* See [MouseEvent.button](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button).
|
|
222
|
+
*
|
|
223
|
+
* Value | Description
|
|
224
|
+
* ------|------------
|
|
225
|
+
* 0 | left mouse button (or touch)
|
|
226
|
+
* 1 | middle mouse button
|
|
227
|
+
* 2 | right mouse button
|
|
228
|
+
*/
|
|
229
|
+
button: MouseButton;
|
|
230
|
+
/**
|
|
231
|
+
* Indicates which mouse buttons are pressed when the event is triggered.
|
|
232
|
+
* See [MouseEvent.buttons](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons).
|
|
233
|
+
*/
|
|
234
|
+
buttons: number;
|
|
235
|
+
/** Screen coordinates of the start of the drag. */
|
|
236
|
+
origin: DragEventOrigin;
|
|
237
|
+
/** The radius of a sphere around the multiple pointers involved in this drag. Or 0 while only a single pointer is used. */
|
|
238
|
+
radius: number;
|
|
239
|
+
/** The event type. */
|
|
240
|
+
type: "drag";
|
|
241
|
+
/** The horizontal screen coordinate of the pointer on the view. */
|
|
242
|
+
x: number;
|
|
243
|
+
/** The vertical screen coordinate of the pointer on the view. */
|
|
244
|
+
y: number;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface DragEventOrigin {
|
|
248
|
+
/** The horizontal screen coordinate of the pointer on the view. */
|
|
249
|
+
x: number;
|
|
250
|
+
/** The vertical screen coordinate of the pointer on the view. */
|
|
251
|
+
y: number;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface KeyDownEvent extends ViewEvent<KeyboardEvent> {
|
|
255
|
+
/**
|
|
256
|
+
* The key value that was pressed, according to the
|
|
257
|
+
* [MDN full list of key values](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values).
|
|
258
|
+
*/
|
|
259
|
+
key: string;
|
|
260
|
+
/**
|
|
261
|
+
* Indicates whether this is the first event emitted
|
|
262
|
+
* due to the key press, or a repeat.
|
|
263
|
+
*/
|
|
264
|
+
repeat: boolean;
|
|
265
|
+
/** The event type. */
|
|
266
|
+
type: "key-down";
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface KeyUpEvent extends ViewEvent<KeyboardEvent> {
|
|
270
|
+
/**
|
|
271
|
+
* The key value that was released, according to the
|
|
272
|
+
* [MDN full list of key values](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values).
|
|
273
|
+
*/
|
|
274
|
+
key: string;
|
|
275
|
+
/** The event type. */
|
|
276
|
+
type: "key-up";
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface PointerEventCommon extends ViewEvent<PointerEvent> {
|
|
280
|
+
/** Indicates which mouse button was clicked. */
|
|
281
|
+
button: MouseButton;
|
|
282
|
+
/**
|
|
283
|
+
* Indicates which mouse buttons are pressed when the event is triggered.
|
|
284
|
+
* See [MouseEvent.buttons](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons).
|
|
285
|
+
*/
|
|
286
|
+
buttons: number;
|
|
287
|
+
/**
|
|
288
|
+
* Uniquely identifies a pointer between multiple down, move, and up events.
|
|
289
|
+
* Ids might get reused after a pointer-up event.
|
|
290
|
+
*/
|
|
291
|
+
pointerId: PointerId;
|
|
292
|
+
/** Indicates the pointer type. */
|
|
293
|
+
pointerType: PointerType;
|
|
294
|
+
/** The horizontal screen coordinate of the pointer on the view. */
|
|
295
|
+
x: number;
|
|
296
|
+
/** The vertical screen coordinate of the pointer on the view. */
|
|
297
|
+
y: number;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export interface PointerDownEvent extends PointerEventCommon {
|
|
301
|
+
/** The event type. */
|
|
302
|
+
type: "pointer-down";
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export interface PointerMoveEvent extends PointerEventCommon {
|
|
306
|
+
/** The event type. */
|
|
307
|
+
type: "pointer-move";
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export interface PointerUpEvent extends PointerEventCommon {
|
|
311
|
+
/** The event type. */
|
|
312
|
+
type: "pointer-up";
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface PointerEnterEvent extends PointerEventCommon {
|
|
316
|
+
/** The event type. */
|
|
317
|
+
type: "pointer-enter";
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export interface PointerLeaveEvent extends PointerEventCommon {
|
|
321
|
+
/** The event type. */
|
|
322
|
+
type: "pointer-leave";
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export interface ViewMouseWheelEvent extends ViewEvent<WheelEvent> {
|
|
326
|
+
/** Number representing the vertical scroll amount. */
|
|
327
|
+
deltaY: number;
|
|
328
|
+
/** The event type. */
|
|
329
|
+
type: "mouse-wheel";
|
|
330
|
+
/** The horizontal screen coordinate of the click on the view. */
|
|
331
|
+
x: number;
|
|
332
|
+
/** The vertical screen coordinate of the click on the view. */
|
|
333
|
+
y: number;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export interface ViewFocusEvent extends ViewEvent<FocusEvent> {}
|
|
337
|
+
|
|
338
|
+
export interface ViewBlurEvent extends ViewEvent<FocusEvent> {}
|
|
339
|
+
|
|
340
|
+
export interface ViewResizeEvent {
|
|
341
|
+
/** The new measured view height in pixels */
|
|
342
|
+
height: number;
|
|
343
|
+
/** The previous view height in pixels */
|
|
344
|
+
oldHeight: number;
|
|
345
|
+
/** The previous view width in pixels */
|
|
346
|
+
oldWidth: number;
|
|
347
|
+
/** The new measured view width in pixels */
|
|
348
|
+
width: number;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export interface LayerViewCreateEvent {
|
|
352
|
+
/** The layer in the map for which the `layerView` was created. */
|
|
353
|
+
layer: Layer;
|
|
354
|
+
/**
|
|
355
|
+
* The LayerView rendered
|
|
356
|
+
* in the view representing the layer in `layer`.
|
|
357
|
+
*/
|
|
358
|
+
layerView: LayerView;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface LayerViewCreateErrorEvent {
|
|
362
|
+
/** An error object describing why the layer view could not be created. */
|
|
363
|
+
error: Error;
|
|
364
|
+
/**
|
|
365
|
+
* The layer in the map for which the view emitting this event
|
|
366
|
+
* failed to create a layer view.
|
|
367
|
+
*/
|
|
368
|
+
layer: Layer;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export interface LayerViewDestroyEvent {
|
|
372
|
+
/** The layer in the map for which the `layerView` was destroyed. */
|
|
373
|
+
layer: Layer;
|
|
374
|
+
/** The LayerView that was destroyed in the view. */
|
|
375
|
+
layerView: LayerView;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface ViewBaseEventTypes {
|
|
379
|
+
/**
|
|
380
|
+
* Fires after each layer in the map has a corresponding [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created
|
|
381
|
+
* and rendered in the view.
|
|
382
|
+
*
|
|
383
|
+
* @see [View#whenLayerView()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
|
|
384
|
+
* @example
|
|
385
|
+
* // This function fires each time a layer view is created for a layer in
|
|
386
|
+
* // the map of the view.
|
|
387
|
+
* view.on("layerview-create", function(event) {
|
|
388
|
+
* // The event contains the layer and its layer view that has just been
|
|
389
|
+
* // created. Here we check for the creation of a layer view for a layer with
|
|
390
|
+
* // a specific id, and log the layer view
|
|
391
|
+
* if (event.layer.id === "satellite") {
|
|
392
|
+
* // The LayerView for the desired layer
|
|
393
|
+
* console.log(event.layerView);
|
|
394
|
+
* }
|
|
395
|
+
* });
|
|
396
|
+
*/
|
|
397
|
+
"layerview-create": LayerViewCreateEvent;
|
|
398
|
+
/**
|
|
399
|
+
* Fires when an error occurs during the creation of a [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html)
|
|
400
|
+
* after a layer has been added to the map.
|
|
401
|
+
*
|
|
402
|
+
* @see [View#whenLayerView()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
|
|
403
|
+
* @example
|
|
404
|
+
* // This function fires each time an error occurs during the creation of a layerview
|
|
405
|
+
* view.on("layerview-create-error", function(event) {
|
|
406
|
+
* console.error("LayerView failed to create for layer with the id: ", event.layer.id);
|
|
407
|
+
* });
|
|
408
|
+
*/
|
|
409
|
+
"layerview-create-error": LayerViewCreateErrorEvent;
|
|
410
|
+
/**
|
|
411
|
+
* Fires after a [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) is destroyed and is
|
|
412
|
+
* no longer rendered in the view. This happens for example when a layer is
|
|
413
|
+
* removed from the map of the view.
|
|
414
|
+
*/
|
|
415
|
+
"layerview-destroy": LayerViewDestroyEvent;
|
|
416
|
+
/**
|
|
417
|
+
* Fires when the view's size changes.
|
|
418
|
+
*
|
|
419
|
+
* @see [MapView#size](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#size)
|
|
420
|
+
* @see [MapView#height](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#height)
|
|
421
|
+
* @see [MapView#width](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#width)
|
|
422
|
+
*/
|
|
423
|
+
resize: ViewResizeEvent;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export interface ViewEventTypes extends ViewBaseEventTypes {
|
|
427
|
+
/**
|
|
428
|
+
* Fires when browser focus is moved away from the view.
|
|
429
|
+
*
|
|
430
|
+
* @since 4.7
|
|
431
|
+
*/
|
|
432
|
+
blur: ViewBlurEvent;
|
|
433
|
+
/**
|
|
434
|
+
* Fires after a user clicks on the view. This event emits slightly slower than an
|
|
435
|
+
* [View#@immediate-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-immediate-click) event to make sure that a [View#@double-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-double-click)
|
|
436
|
+
* event isn't triggered instead. The [View#@immediate-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-immediate-click) event can be used
|
|
437
|
+
* for responding to a click event without delay.
|
|
438
|
+
*
|
|
439
|
+
* @see [Sample: Access features with click events](https://developers.arcgis.com/javascript/latest/sample-code/view-hittest/)
|
|
440
|
+
* @example
|
|
441
|
+
* view.on("click", function(event){
|
|
442
|
+
* // event is the event object returned after the event fires
|
|
443
|
+
*
|
|
444
|
+
* // Prints the map coordinates of the clicked location
|
|
445
|
+
* console.log(event.mapPoint);
|
|
446
|
+
* });
|
|
447
|
+
* @example
|
|
448
|
+
* // Set up a click event handler and retrieve the screen point
|
|
449
|
+
* view.on("click", function(event) {
|
|
450
|
+
* // the hitTest() checks to see if any graphics in the view
|
|
451
|
+
* // intersect the given screen x, y coordinates
|
|
452
|
+
* view.hitTest(event)
|
|
453
|
+
* .then(getGraphics);
|
|
454
|
+
* });
|
|
455
|
+
* @example
|
|
456
|
+
* view.on("click", function(event) {
|
|
457
|
+
* // you must overwrite default click-for-popup
|
|
458
|
+
* // behavior to display your own popup
|
|
459
|
+
* view.popupEnabled = false;
|
|
460
|
+
*
|
|
461
|
+
* // Get the coordinates of the click on the view
|
|
462
|
+
* let lat = Math.round(event.mapPoint.latitude * 1000) / 1000;
|
|
463
|
+
* let lon = Math.round(event.mapPoint.longitude * 1000) / 1000;
|
|
464
|
+
*
|
|
465
|
+
* view.popup.open({
|
|
466
|
+
* // Set the popup's title to the coordinates of the location
|
|
467
|
+
* title: "Reverse geocode: [" + lon + ", " + lat + "]",
|
|
468
|
+
* location: event.mapPoint // Set the location of the popup to the clicked location
|
|
469
|
+
* content: "This is a point of interest" // content displayed in the popup
|
|
470
|
+
* });
|
|
471
|
+
* });
|
|
472
|
+
*/
|
|
473
|
+
click: ClickEvent;
|
|
474
|
+
/**
|
|
475
|
+
* Fires after double-clicking on the view.
|
|
476
|
+
*
|
|
477
|
+
* @example
|
|
478
|
+
* view.on("double-click", function(event) {
|
|
479
|
+
* // The event object contains the mapPoint and the screen coordinates of the location
|
|
480
|
+
* // that was clicked.
|
|
481
|
+
* console.log("screen point", event.x, event.y);
|
|
482
|
+
* console.log("map point", event.mapPoint);
|
|
483
|
+
* });
|
|
484
|
+
*/
|
|
485
|
+
"double-click": DoubleClickEvent;
|
|
486
|
+
/**
|
|
487
|
+
* Fires during a pointer drag on the view.
|
|
488
|
+
*
|
|
489
|
+
* @example
|
|
490
|
+
* view.on("drag", function(event){
|
|
491
|
+
* // Print out the current state of the
|
|
492
|
+
* // drag event.
|
|
493
|
+
* console.log("drag state", event.action);
|
|
494
|
+
* });
|
|
495
|
+
*/
|
|
496
|
+
drag: DragEvent;
|
|
497
|
+
/**
|
|
498
|
+
* Fires when browser focus is on the view.
|
|
499
|
+
*
|
|
500
|
+
* @since 4.7
|
|
501
|
+
*/
|
|
502
|
+
focus: ViewFocusEvent;
|
|
503
|
+
/**
|
|
504
|
+
* Fires after holding either a mouse button or a single finger on the view for a short amount of time.
|
|
505
|
+
*
|
|
506
|
+
* @example
|
|
507
|
+
* view.on("hold", function(event) {
|
|
508
|
+
* // The event object contains the mapPoint and the screen coordinates of the location
|
|
509
|
+
* // that was clicked.
|
|
510
|
+
* console.log("hold at screen point", event.x, event.y);
|
|
511
|
+
* console.log("hold at map point", event.mapPoint);
|
|
512
|
+
* });
|
|
513
|
+
*/
|
|
514
|
+
hold: HoldEvent;
|
|
515
|
+
/**
|
|
516
|
+
* Fires right after a user clicks on the view. In contrast to the [View#@click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-click) event,
|
|
517
|
+
* the `immediate-click` event is emitted as soon as the user clicks on
|
|
518
|
+
* the view, and is not inhibited by a [View#@double-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-double-click) event. This event
|
|
519
|
+
* is useful for interactive experiences that require feedback without delay.
|
|
520
|
+
*
|
|
521
|
+
* @since 4.7
|
|
522
|
+
* @example
|
|
523
|
+
* // Set up an immediate-click event handler and retrieve the screen point
|
|
524
|
+
* view.on("immediate-click", function(event) {
|
|
525
|
+
* // the hitTest() checks to see if any graphics in the view
|
|
526
|
+
* // intersect the given screen x, y coordinates
|
|
527
|
+
* view.hitTest(event)
|
|
528
|
+
* .then(getGraphics);
|
|
529
|
+
* });
|
|
530
|
+
*/
|
|
531
|
+
"immediate-click": ImmediateClickEvent;
|
|
532
|
+
/**
|
|
533
|
+
* Is emitted after two consecutive [View#@immediate-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-immediate-click) events.
|
|
534
|
+
* In contrast to [View#@double-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-double-click), an `immediate-double-click` cannot
|
|
535
|
+
* be prevented by use of `stopPropagation` on the [View#@immediate-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-immediate-click)
|
|
536
|
+
* event and can therefore be used to react to double-clicking independently of usage of the
|
|
537
|
+
* [View#@immediate-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-immediate-click) event.
|
|
538
|
+
*
|
|
539
|
+
* @since 4.15
|
|
540
|
+
*/
|
|
541
|
+
"immediate-double-click": ImmediateDoubleClickEvent;
|
|
542
|
+
/**
|
|
543
|
+
* Fires after a keyboard key is pressed.
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* // Zoom in when user clicks on "a" button
|
|
547
|
+
* // Zoom out when user clicks on "s" button
|
|
548
|
+
* view.on("key-down", function(event){
|
|
549
|
+
* console.log("key-down", event);
|
|
550
|
+
*
|
|
551
|
+
* if (event.key === "a"){
|
|
552
|
+
* let zm = view.zoom + 1;
|
|
553
|
+
*
|
|
554
|
+
* view.goTo({
|
|
555
|
+
* target: view.center,
|
|
556
|
+
* zoom: zm
|
|
557
|
+
* });
|
|
558
|
+
* }
|
|
559
|
+
* else if(event.key == "s"){
|
|
560
|
+
* let zm = view.zoom - 1;
|
|
561
|
+
*
|
|
562
|
+
* view.goTo({
|
|
563
|
+
* target: view.center,
|
|
564
|
+
* zoom: zm
|
|
565
|
+
* });
|
|
566
|
+
* }
|
|
567
|
+
* });
|
|
568
|
+
*/
|
|
569
|
+
"key-down": KeyDownEvent;
|
|
570
|
+
/** Fires after a keyboard key is released. */
|
|
571
|
+
"key-up": KeyUpEvent;
|
|
572
|
+
/**
|
|
573
|
+
* Fires when a wheel button of a pointing device (typically a mouse) is scrolled on the view.
|
|
574
|
+
*
|
|
575
|
+
* @example
|
|
576
|
+
* view.on("mouse-wheel", function(event){
|
|
577
|
+
* // deltaY value is positive when wheel is scrolled up
|
|
578
|
+
* // and it is negative when wheel is scrolled down.
|
|
579
|
+
* console.log(event.deltaY);
|
|
580
|
+
* });
|
|
581
|
+
*/
|
|
582
|
+
"mouse-wheel": ViewMouseWheelEvent;
|
|
583
|
+
/** Fires after a mouse button is pressed, or a finger touches the display. */
|
|
584
|
+
"pointer-down": PointerDownEvent;
|
|
585
|
+
/** Fires after a mouse cursor enters the view, or a display touch begins. */
|
|
586
|
+
"pointer-enter": PointerEnterEvent;
|
|
587
|
+
/** Fires after a mouse cursor leaves the view, or a display touch ends. */
|
|
588
|
+
"pointer-leave": PointerLeaveEvent;
|
|
589
|
+
/**
|
|
590
|
+
* Fires after the mouse or a finger on the display moves.
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* // Fires `pointer-move` event when user clicks on "Shift"
|
|
594
|
+
* // key and moves the pointer on the view.
|
|
595
|
+
* view.on('pointer-move', ["Shift"], function(event){
|
|
596
|
+
* let point = view.toMap({x: event.x, y: event.y});
|
|
597
|
+
* bufferPoint(point);
|
|
598
|
+
* });
|
|
599
|
+
*/
|
|
600
|
+
"pointer-move": PointerMoveEvent;
|
|
601
|
+
/** Fires after a mouse button is released, or a display touch ends. */
|
|
602
|
+
"pointer-up": PointerUpEvent;
|
|
603
|
+
}
|
|
@@ -4,7 +4,7 @@ import type BuildingComponentSublayerView from "./BuildingComponentSublayerView.
|
|
|
4
4
|
import type LayerView from "./LayerView.js";
|
|
5
5
|
import type { ResourceHandle } from "../../core/Handles.js";
|
|
6
6
|
import type { HighlightTarget } from "../types.js";
|
|
7
|
-
import type { LayerViewHighlightOptions } from "./
|
|
7
|
+
import type { LayerViewHighlightOptions } from "./types.js";
|
|
8
8
|
import type { LayerViewProperties } from "./LayerView.js";
|
|
9
9
|
|
|
10
10
|
export interface BuildingSceneLayerViewProperties extends LayerViewProperties {}
|
|
@@ -6,7 +6,7 @@ import type FeatureSet from "../../rest/support/FeatureSet.js";
|
|
|
6
6
|
import type Query from "../../rest/support/Query.js";
|
|
7
7
|
import type { AbortOptions } from "../../core/promiseUtils.js";
|
|
8
8
|
import type { QueryProperties } from "../../rest/support/Query.js";
|
|
9
|
-
import type { ObjectId } from "../
|
|
9
|
+
import type { ObjectId } from "../types.js";
|
|
10
10
|
import type { FeatureEffectProperties } from "../../layers/support/FeatureEffect.js";
|
|
11
11
|
import type { FeatureFilterProperties } from "../../layers/support/FeatureFilter.js";
|
|
12
12
|
|
|
@@ -2,7 +2,7 @@ import type HighlightOptions from "../support/HighlightOptions.js";
|
|
|
2
2
|
import type { ResourceHandle } from "../../core/Handles.js";
|
|
3
3
|
import type { PixelData } from "../../layers/support/types.js";
|
|
4
4
|
import type { PixelHighlightTarget, HighlightTarget } from "../types.js";
|
|
5
|
-
import type { LayerViewHighlightOptions } from "./
|
|
5
|
+
import type { LayerViewHighlightOptions } from "./types.js";
|
|
6
6
|
import type { HighlightOptionsProperties } from "../support/HighlightOptions.js";
|
|
7
7
|
|
|
8
8
|
export interface ImageryLayerViewMixinProperties {
|
|
@@ -2,7 +2,7 @@ import type MediaLayer from "../../layers/MediaLayer.js";
|
|
|
2
2
|
import type { ResourceHandle } from "../../core/Handles.js";
|
|
3
3
|
import type { MediaElement } from "../../layers/support/media.js";
|
|
4
4
|
import type { MediaLayerInteractionOptions, MediaLayerInteractionOptionsProperties } from "../3d/layers/support/MediaLayerInteractionOptions.js";
|
|
5
|
-
import type { LayerViewHighlightOptions } from "./
|
|
5
|
+
import type { LayerViewHighlightOptions } from "./types.js";
|
|
6
6
|
|
|
7
7
|
export interface MediaLayerViewMixinProperties extends Partial<Pick<MediaLayerViewMixin, "interactive" | "selectedElement">> {
|
|
8
8
|
/**
|
|
@@ -7,7 +7,7 @@ import type { ResourceHandle } from "../../core/Handles.js";
|
|
|
7
7
|
import type { AbortOptions } from "../../core/promiseUtils.js";
|
|
8
8
|
import type { QueryProperties } from "../../rest/support/Query.js";
|
|
9
9
|
import type { HighlightTarget } from "../types.js";
|
|
10
|
-
import type { LayerViewHighlightOptions } from "./
|
|
10
|
+
import type { LayerViewHighlightOptions } from "./types.js";
|
|
11
11
|
|
|
12
12
|
export interface PointCloudLayerViewMixinProperties {}
|
|
13
13
|
|
|
@@ -8,8 +8,8 @@ import type LayerView from "./LayerView.js";
|
|
|
8
8
|
import type { ResourceHandle } from "../../core/Handles.js";
|
|
9
9
|
import type { AbortOptions } from "../../core/promiseUtils.js";
|
|
10
10
|
import type { QueryProperties } from "../../rest/support/Query.js";
|
|
11
|
-
import type { ObjectId } from "../
|
|
12
|
-
import type { LayerViewHighlightOptions } from "./
|
|
11
|
+
import type { ObjectId } from "../types.js";
|
|
12
|
+
import type { LayerViewHighlightOptions } from "./types.js";
|
|
13
13
|
import type { FeatureFilterProperties } from "../../layers/support/FeatureFilter.js";
|
|
14
14
|
import type { LayerViewProperties } from "./LayerView.js";
|
|
15
15
|
|