@arcgis/core 5.2.0-next.163 → 5.2.0-next.165
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 +47 -14
- package/PopupTemplate.js +1 -1
- package/WebScene.d.ts +3 -0
- package/analysis/LineOfSightAnalysis.d.ts +1 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
- package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
- package/analysis/Viewshed.d.ts +4 -4
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{97d6ef9e34a43ad2e556.js → 02e10f44edf911832c2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{97b5f4302fb867c829f4.js → 07f7177bfaf9de73bc25.js} +1 -1
- package/assets/esri/core/workers/chunks/{612345f17f5eeb99ea8f.js → 0d9c4c6c571ce26d356b.js} +1 -1
- package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
- package/assets/esri/core/workers/chunks/{12a7997a40c77f5c9160.js → 151e5799ede763a03ee2.js} +1 -1
- package/assets/esri/core/workers/chunks/196979cc6a765be3c5cd.js +1 -0
- package/assets/esri/core/workers/chunks/1ab59a97ffa49e9e1659.js +1 -0
- package/assets/esri/core/workers/chunks/{8715661a838361d4211a.js → 1b24a40c0fa197014873.js} +1 -1
- package/assets/esri/core/workers/chunks/{83f29a159b8b5197e76a.js → 266c90d8d56a2da42fcf.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1d989b72203113a06fe.js → 2a36fe3f3f257a779a1b.js} +1 -1
- package/assets/esri/core/workers/chunks/{fcaf9450642fcef83286.js → 3048e74e6246324ce6fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{95b82cbbe355266c65d7.js → 30af63b3b750142faadb.js} +1 -1
- package/assets/esri/core/workers/chunks/{74137ffec5265628c33b.js → 36c780a9527c75b36725.js} +1 -1
- package/assets/esri/core/workers/chunks/{6a0ec102962d2c7b4368.js → 40d803584eeade4df433.js} +1 -1
- package/assets/esri/core/workers/chunks/{a546ec82ba149e12f7bf.js → 41773d858e212468db88.js} +1 -1
- package/assets/esri/core/workers/chunks/{129e04d24ced77c9bb6d.js → 49b967d89d2841cea675.js} +1 -1
- package/assets/esri/core/workers/chunks/{b59aaf30c7fe2c8d1aaa.js → 4b99b4cf729881e616bc.js} +1 -1
- package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
- package/assets/esri/core/workers/chunks/{a09d2e1e2540921e4717.js → 4d3d7ec407ee5cd5f036.js} +1 -1
- package/assets/esri/core/workers/chunks/{85bba551057366cd00ae.js → 4db829a0238024736fe6.js} +1 -1
- package/assets/esri/core/workers/chunks/{2c626f525f3483c03477.js → 548b8f74a6883e364931.js} +1 -1
- package/assets/esri/core/workers/chunks/{25a3bd8bede2d07d3a54.js → 5af8fb4ec2c72697e35b.js} +1 -1
- package/assets/esri/core/workers/chunks/{340256866f524cb069f6.js → 5d2f043ebe1051326c56.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f46acfda693c70abbdd.js → 61552b4b8111a8624d84.js} +1 -1
- package/assets/esri/core/workers/chunks/{e653c81ffb3d818645dd.js → 632fdf1d95ad69109427.js} +1 -1
- package/assets/esri/core/workers/chunks/{434a8ba841a59e0deab9.js → 67e533748435253aaba6.js} +1 -1
- package/assets/esri/core/workers/chunks/69d5f8ef78b9b8b3d33d.js +1 -0
- package/assets/esri/core/workers/chunks/{feb41abc03d677df6f73.js → 6b9961261241fdce0e94.js} +1 -1
- package/assets/esri/core/workers/chunks/6f897b4e7ddd1dd1672b.js +1 -0
- package/assets/esri/core/workers/chunks/{8aa80b892fde552577e8.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{e251921bc5367258c4d2.js → 710b8251a59884aee31e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f528ac5c648ca6a98582.js → 711cfb84659cb4437679.js} +1 -1
- package/assets/esri/core/workers/chunks/{af349c7bc8ef41a0e1bd.js → 7748c2886d0122b40eeb.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a7b02037151767542f1.js → 7dbf4c7480bf9c72820d.js} +1 -1
- package/assets/esri/core/workers/chunks/{1bca39e0e651426bdbb5.js → 7dfbc31f3b56728485a4.js} +1 -1
- package/assets/esri/core/workers/chunks/{c19f238b55ff2893f7c2.js → 82a022cc21364c9a8539.js} +1 -1
- package/assets/esri/core/workers/chunks/{5cb26bbaa08114aec5ce.js → 89cc1a5539b82fb46216.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ab57cb1bfd3dc8d3c2a.js → 8b8118ab56cc808b5a71.js} +1 -1
- package/assets/esri/core/workers/chunks/{542e5640ea1b80ef801a.js → 9189dfe19a2a2ccd5173.js} +1 -1
- package/assets/esri/core/workers/chunks/{f74ae0eff3f08978e607.js → 9f358c7b052cdc0ac06f.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee08ae5b73439a1ff666.js → a163c6005aba3378edaa.js} +1 -1
- package/assets/esri/core/workers/chunks/{ec9a2425b4a498054a19.js → a17673e691ced46a90d3.js} +1 -1
- package/assets/esri/core/workers/chunks/{72bd866df89b8d92e247.js → a43b33955aa78a2a8deb.js} +1 -1
- package/assets/esri/core/workers/chunks/{46c5371c7a627537098c.js → a88f346786b04bd194dc.js} +6 -6
- package/assets/esri/core/workers/chunks/{092e311cb7aea92a6a26.js → acb265a22be5e12f38e5.js} +1 -1
- package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
- package/assets/esri/core/workers/chunks/{9e8f012a56237fc8285f.js → aea44253c80493ef5755.js} +1 -1
- package/assets/esri/core/workers/chunks/b5b9d42e1f84ee82429c.js +1 -0
- package/assets/esri/core/workers/chunks/c046c4fc934bc6f54c69.js +1 -0
- package/assets/esri/core/workers/chunks/{c72a904e01dc8c17d992.js → c47d095434d09b5f10c6.js} +1 -1
- package/assets/esri/core/workers/chunks/c4b7111dcedd9d6e1c2a.js +1 -0
- package/assets/esri/core/workers/chunks/{81cad8d2f62a5f671c55.js → cb4db5489388559d6bd9.js} +1 -1
- package/assets/esri/core/workers/chunks/{bbd44ac63d2a317d8ed9.js → cc794bb94ebc1cb66024.js} +1 -1
- package/assets/esri/core/workers/chunks/{be308db5b61a7246edfe.js → cc94bf05b235e65291fc.js} +1 -1
- package/assets/esri/core/workers/chunks/d4af9faa5d901274fad2.js +1 -0
- package/assets/esri/core/workers/chunks/d77c68e0fc3b259bf4f9.js +1 -0
- package/assets/esri/core/workers/chunks/{fc5a36e54929e03efa86.js → dba5f44c4e4a3f075df2.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f43e06dcfe56229bb0f.js → debe45e792212682b304.js} +1 -1
- package/assets/esri/core/workers/chunks/{8414ffd937c1099e0bbc.js → e6d10136bc08aef255ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{45fd2b456a6997584ca1.js → f8379cd45f750f28a3d8.js} +1 -1
- package/assets/esri/core/workers/chunks/{709e019885822b1f6f3e.js → f905f1a1aa4c123cbe83.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2fcbc494333376192aa.js → f9c80e9fc349db4873e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0351753f6b4d1adf11e.js → fc0dbb588a4062615cb6.js} +1 -1
- package/assets/esri/core/workers/chunks/feb4f8c807bb0dca488f.js +1 -0
- package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
- package/chunks/GlobalIllumination.glsl.js +17 -47
- package/config.js +1 -1
- package/core/workers/WorkerFallback.js +4 -2
- package/core/workers/workerFactory.js +1 -1
- package/core/workers/workers.js +4 -2
- package/form/elements/inputs.d.ts +126 -25
- package/form/elements/inputs.js +1 -1
- package/form/elements.d.ts +1 -0
- package/geometry/support/clipRay.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.d.ts +49 -9
- package/graphic/BuildingGraphicOrigin.d.ts +49 -0
- package/graphic/CSVGraphicOrigin.d.ts +42 -9
- package/graphic/CatalogGraphicOrigin.d.ts +42 -9
- package/graphic/DimensionFeatureGraphicOrigin.d.ts +42 -9
- package/graphic/FeatureGraphicOrigin.d.ts +42 -9
- package/graphic/GeoJSONGraphicOrigin.d.ts +42 -9
- package/graphic/GeoRSSGraphicOrigin.d.ts +42 -9
- package/graphic/GraphicOrigin.d.ts +52 -12
- package/graphic/ImageryGraphicOrigin.d.ts +42 -9
- package/graphic/ImageryTileGraphicOrigin.d.ts +42 -9
- package/graphic/KMLGraphicOrigin.d.ts +47 -10
- package/graphic/KnowledgeGraphGraphicOrigin.d.ts +49 -1
- package/graphic/LinkChartGraphicOrigin.d.ts +49 -1
- package/graphic/MapImageGraphicOrigin.d.ts +49 -1
- package/graphic/MapNotesGraphicOrigin.d.ts +48 -1
- package/graphic/OGCFeatureGraphicOrigin.d.ts +42 -9
- package/graphic/OrientedImageryGraphicOrigin.d.ts +42 -9
- package/graphic/ParquetGraphicOrigin.d.ts +42 -9
- package/graphic/PointCloudGraphicOrigin.d.ts +43 -0
- package/graphic/SceneGraphicOrigin.d.ts +43 -0
- package/graphic/SketchGraphicOrigin.d.ts +43 -0
- package/graphic/StreamGraphicOrigin.d.ts +43 -0
- package/graphic/SubtypeGroupGraphicOrigin.d.ts +49 -1
- package/graphic/TileGraphicOrigin.d.ts +49 -1
- package/graphic/VectorTileGraphicOrigin.d.ts +43 -14
- package/graphic/VoxelGraphicOrigin.d.ts +43 -0
- package/graphic/WCSGraphicOrigin.d.ts +43 -0
- package/graphic/WFSGraphicOrigin.d.ts +42 -9
- package/graphic/getGraphicOriginTitle.d.ts +21 -3
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.d.ts +2 -1
- package/layers/GeoJSONLayer.d.ts +2 -107
- package/layers/ParquetLayer.d.ts +24 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/SceneLayer.d.ts +40 -16
- package/layers/ViewshedLayer.d.ts +10 -4
- package/layers/WMSLayer.d.ts +2 -69
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.d.ts +70 -48
- package/layers/mixins/TiledImagery.d.ts +0 -11
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/save/imageryUtils.js +1 -1
- package/layers/save/mapImageLayerUtils.js +1 -1
- package/layers/save/mediaLayerUtils.js +1 -1
- package/layers/save/parquetLayerUtils.js +2 -0
- package/layers/save/streamLayerUtils.js +1 -1
- package/layers/support/LabelClass.d.ts +8 -2
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/layersMapping.js +1 -1
- package/package.json +2 -2
- package/popup/content.d.ts +38 -1
- package/popup/content.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/webScene.js +1 -1
- package/smartMapping/popup/support/clusterUtils.js +1 -1
- package/smartMapping/popup/support/utils.js +2 -2
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/support/timeUtils.d.ts +11 -0
- package/symbols/cim/CIMCursor.js +1 -1
- package/tables/elements.d.ts +1 -0
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +0 -1
- package/views/3d/environment/SunLighting.js +1 -1
- package/views/3d/environment/VirtualLighting.d.ts +0 -1
- package/views/3d/environment/VirtualLighting.js +1 -1
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +5 -5
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
- package/views/layers/LineOfSightLayerView.d.ts +2 -2
- package/views/layers/ViewshedLayerView.d.ts +2 -1
- package/views/selection/SelectionOperation.js +1 -1
- package/views/selection/types.d.ts +43 -3
- package/views/support/layerViewUtils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/webscene/Slide.d.ts +1 -2
- package/widgets/DirectionalPad/VisibleElements.d.ts +5 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +3 -3
- package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
- package/widgets/support/SelectionList/GroupLayerItem.d.ts +6 -0
- package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
- package/widgets/support/SelectionList/ItemBase.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +6 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/SelectionToolbar.d.ts +8 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0cb50bc2b2125c5fedf2.js +0 -1
- package/assets/esri/core/workers/chunks/1fe24ffcd88280d84fbe.js +0 -1
- package/assets/esri/core/workers/chunks/2f04b8679c9f15390517.js +0 -1
- package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
- package/assets/esri/core/workers/chunks/72071ea5de89720fbe42.js +0 -1
- package/assets/esri/core/workers/chunks/9de5ad77bc37ec142218.js +0 -1
- package/assets/esri/core/workers/chunks/c19cd5a03b6d480fe53b.js +0 -1
- package/assets/esri/core/workers/chunks/d1f98c5249c487eb96f1.js +0 -1
- package/assets/esri/core/workers/chunks/e01fc1c31bc023dd0e33.js +0 -1
- package/assets/esri/core/workers/chunks/e077e321a3109c2fbbe2.js +0 -1
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
* }
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
|
+
* @deprecated since 5.2. Import individual input modules directly instead.
|
|
44
45
|
* @since 4.16
|
|
45
46
|
* @see [FormTemplate](https://developers.arcgis.com/javascript/latest/references/core/form/FormTemplate/)
|
|
46
47
|
* @see [FieldElement](https://developers.arcgis.com/javascript/latest/references/core/form/elements/FieldElement/)
|
|
@@ -70,77 +71,177 @@ import type TextAreaInputClass from "./inputs/TextAreaInput.js";
|
|
|
70
71
|
import type TextBoxInputClass from "./inputs/TextBoxInput.js";
|
|
71
72
|
import type TimePickerInputClass from "./inputs/TimePickerInput.js";
|
|
72
73
|
|
|
73
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Form element input types.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated since 5.2. Import [Input](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/Input/) directly instead.
|
|
78
|
+
*/
|
|
74
79
|
export type Input = BarcodeScannerInputClass | ComboBoxInputClass | DatePickerInputClass | DateTimeOffsetPickerInputClass | DateTimePickerInputClass | DynamicChoiceInputClass | MultipleChoiceInputClass | RadioButtonsInputClass | SwitchInputClass | TextAreaInputClass | TextBoxInputClass | TimePickerInputClass;
|
|
75
80
|
|
|
76
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* The `BarcodeScannerInput` class defines the desired user interface for a barcode or QR code scanner. If this type is used in an ArcGIS Maps SDK for JavaScript web application, it will default to the [TextBoxInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TextBoxInput/) type as the API does not support bar code scanning as an input type.
|
|
83
|
+
*
|
|
84
|
+
* @deprecated since 5.2. Import [BarcodeScannerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/BarcodeScannerInput/) directly instead.
|
|
85
|
+
*/
|
|
77
86
|
export const BarcodeScannerInput: typeof BarcodeScannerInputClass;
|
|
78
87
|
|
|
79
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* The `BarcodeScannerInput` class defines the desired user interface for a barcode or QR code scanner. If this type is used in an ArcGIS Maps SDK for JavaScript web application, it will default to the [TextBoxInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TextBoxInput/) type as the API does not support bar code scanning as an input type.
|
|
90
|
+
*
|
|
91
|
+
* @deprecated since 5.2. Import [BarcodeScannerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/BarcodeScannerInput/) directly instead.
|
|
92
|
+
*/
|
|
80
93
|
export type BarcodeScannerInput = BarcodeScannerInputClass;
|
|
81
94
|
|
|
82
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* The `ComboBoxInput` class defines the desired user interface for a combo box group.
|
|
97
|
+
*
|
|
98
|
+
* @deprecated since 5.2. Import [ComboBoxInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/ComboBoxInput/) directly instead.
|
|
99
|
+
*/
|
|
83
100
|
export const ComboBoxInput: typeof ComboBoxInputClass;
|
|
84
101
|
|
|
85
|
-
/**
|
|
102
|
+
/**
|
|
103
|
+
* The `ComboBoxInput` class defines the desired user interface for a combo box group.
|
|
104
|
+
*
|
|
105
|
+
* @deprecated since 5.2. Import [ComboBoxInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/ComboBoxInput/) directly instead.
|
|
106
|
+
*/
|
|
86
107
|
export type ComboBoxInput = ComboBoxInputClass;
|
|
87
108
|
|
|
88
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* The `DatePickerInput` class defines the desired user interface for working with date-only types.
|
|
111
|
+
*
|
|
112
|
+
* @deprecated since 5.2. Import [DatePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DatePickerInput/) directly instead.
|
|
113
|
+
*/
|
|
89
114
|
export const DatePickerInput: typeof DatePickerInputClass;
|
|
90
115
|
|
|
91
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* The `DatePickerInput` class defines the desired user interface for working with date-only types.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated since 5.2. Import [DatePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DatePickerInput/) directly instead.
|
|
120
|
+
*/
|
|
92
121
|
export type DatePickerInput = DatePickerInputClass;
|
|
93
122
|
|
|
94
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* The `DateTimeOffsetPickerInput` class defines the desired user interface for editing date and time fields in a form that also requires the option to include an offset from Coordinated Universal Time (UTC).
|
|
125
|
+
*
|
|
126
|
+
* @deprecated since 5.2. Import [DateTimeOffsetPickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DateTimeOffsetPickerInput/) directly instead.
|
|
127
|
+
*/
|
|
95
128
|
export const DateTimeOffsetPickerInput: typeof DateTimeOffsetPickerInputClass;
|
|
96
129
|
|
|
97
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* The `DateTimeOffsetPickerInput` class defines the desired user interface for editing date and time fields in a form that also requires the option to include an offset from Coordinated Universal Time (UTC).
|
|
132
|
+
*
|
|
133
|
+
* @deprecated since 5.2. Import [DateTimeOffsetPickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DateTimeOffsetPickerInput/) directly instead.
|
|
134
|
+
*/
|
|
98
135
|
export type DateTimeOffsetPickerInput = DateTimeOffsetPickerInputClass;
|
|
99
136
|
|
|
100
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* The `DateTimePickerInput` class defines the desired user interface for editing date (including time) fields in a form.
|
|
139
|
+
*
|
|
140
|
+
* @deprecated since 5.2. Import [DateTimePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DateTimePickerInput/) directly instead.
|
|
141
|
+
*/
|
|
101
142
|
export const DateTimePickerInput: typeof DateTimePickerInputClass;
|
|
102
143
|
|
|
103
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* The `DateTimePickerInput` class defines the desired user interface for editing date (including time) fields in a form.
|
|
146
|
+
*
|
|
147
|
+
* @deprecated since 5.2. Import [DateTimePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DateTimePickerInput/) directly instead.
|
|
148
|
+
*/
|
|
104
149
|
export type DateTimePickerInput = DateTimePickerInputClass;
|
|
105
150
|
|
|
106
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* The `DynamicChoiceInput` class defines the desired user interface for a dynamically generated choice group.
|
|
153
|
+
*
|
|
154
|
+
* @deprecated since 5.2. Import [DynamicChoiceInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DynamicChoiceInput/) directly instead.
|
|
155
|
+
*/
|
|
107
156
|
export const DynamicChoiceInput: typeof DynamicChoiceInputClass;
|
|
108
157
|
|
|
109
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* The `DynamicChoiceInput` class defines the desired user interface for a dynamically generated choice group.
|
|
160
|
+
*
|
|
161
|
+
* @deprecated since 5.2. Import [DynamicChoiceInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DynamicChoiceInput/) directly instead.
|
|
162
|
+
*/
|
|
110
163
|
export type DynamicChoiceInput = DynamicChoiceInputClass;
|
|
111
164
|
|
|
112
|
-
/**
|
|
165
|
+
/**
|
|
166
|
+
* The `MultipleChoiceInput` class defines the desired user interface for a multiple choice group.
|
|
167
|
+
*
|
|
168
|
+
* @deprecated since 5.2. Import [MultipleChoiceInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/MultipleChoiceInput/) directly instead.
|
|
169
|
+
*/
|
|
113
170
|
export const MultipleChoiceInput: typeof MultipleChoiceInputClass;
|
|
114
171
|
|
|
115
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* The `MultipleChoiceInput` class defines the desired user interface for a multiple choice group.
|
|
174
|
+
*
|
|
175
|
+
* @deprecated since 5.2. Import [MultipleChoiceInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/MultipleChoiceInput/) directly instead.
|
|
176
|
+
*/
|
|
116
177
|
export type MultipleChoiceInput = MultipleChoiceInputClass;
|
|
117
178
|
|
|
118
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* The `RadioButtonsInput` class defines the desired user interface for a radio button group.
|
|
181
|
+
*
|
|
182
|
+
* @deprecated since 5.2. Import [RadioButtonsInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/RadioButtonsInput/) directly instead.
|
|
183
|
+
*/
|
|
119
184
|
export const RadioButtonsInput: typeof RadioButtonsInputClass;
|
|
120
185
|
|
|
121
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* The `RadioButtonsInput` class defines the desired user interface for a radio button group.
|
|
188
|
+
*
|
|
189
|
+
* @deprecated since 5.2. Import [RadioButtonsInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/RadioButtonsInput/) directly instead.
|
|
190
|
+
*/
|
|
122
191
|
export type RadioButtonsInput = RadioButtonsInputClass;
|
|
123
192
|
|
|
124
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* The `SwitchInput` class defines the desired user interface for a binary switch or toggle. This should be used when selecting between two options in a form.
|
|
195
|
+
*
|
|
196
|
+
* @deprecated since 5.2. Import [SwitchInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/SwitchInput/) directly instead.
|
|
197
|
+
*/
|
|
125
198
|
export const SwitchInput: typeof SwitchInputClass;
|
|
126
199
|
|
|
127
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* The `SwitchInput` class defines the desired user interface for a binary switch or toggle. This should be used when selecting between two options in a form.
|
|
202
|
+
*
|
|
203
|
+
* @deprecated since 5.2. Import [SwitchInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/SwitchInput/) directly instead.
|
|
204
|
+
*/
|
|
128
205
|
export type SwitchInput = SwitchInputClass;
|
|
129
206
|
|
|
130
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* `TextAreaInput` defines the desired user interface for a multi-line text area.
|
|
209
|
+
*
|
|
210
|
+
* @deprecated since 5.2. Import [TextAreaInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TextAreaInput/) directly instead.
|
|
211
|
+
*/
|
|
131
212
|
export const TextAreaInput: typeof TextAreaInputClass;
|
|
132
213
|
|
|
133
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* `TextAreaInput` defines the desired user interface for a multi-line text area.
|
|
216
|
+
*
|
|
217
|
+
* @deprecated since 5.2. Import [TextAreaInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TextAreaInput/) directly instead.
|
|
218
|
+
*/
|
|
134
219
|
export type TextAreaInput = TextAreaInputClass;
|
|
135
220
|
|
|
136
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* `TextBoxInput` defines the desired user interface for a single-line text box.
|
|
223
|
+
*
|
|
224
|
+
* @deprecated since 5.2. Import [TextBoxInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TextBoxInput/) directly instead.
|
|
225
|
+
*/
|
|
137
226
|
export const TextBoxInput: typeof TextBoxInputClass;
|
|
138
227
|
|
|
139
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* `TextBoxInput` defines the desired user interface for a single-line text box.
|
|
230
|
+
*
|
|
231
|
+
* @deprecated since 5.2. Import [TextBoxInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TextBoxInput/) directly instead.
|
|
232
|
+
*/
|
|
140
233
|
export type TextBoxInput = TextBoxInputClass;
|
|
141
234
|
|
|
142
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* The `TimePickerInput` class defines the desired user interface for working with time-only types.
|
|
237
|
+
*
|
|
238
|
+
* @deprecated since 5.2. Import [TimePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TimePickerInput/) directly instead.
|
|
239
|
+
*/
|
|
143
240
|
export const TimePickerInput: typeof TimePickerInputClass;
|
|
144
241
|
|
|
145
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* The `TimePickerInput` class defines the desired user interface for working with time-only types.
|
|
244
|
+
*
|
|
245
|
+
* @deprecated since 5.2. Import [TimePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TimePickerInput/) directly instead.
|
|
246
|
+
*/
|
|
146
247
|
export type TimePickerInput = TimePickerInputClass;
|
package/form/elements/inputs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"./inputs/BarcodeScannerInput.js";import
|
|
2
|
+
import{deprecatedModule as e}from"../../core/deprecate.js";import t from"../../core/Logger.js";import n from"./inputs/BarcodeScannerInput.js";import r from"./inputs/ComboBoxInput.js";import i from"./inputs/DatePickerInput.js";import a from"./inputs/DateTimeOffsetPickerInput.js";import o from"./inputs/DateTimePickerInput.js";import s from"./inputs/DynamicChoiceInput.js";import c from"./inputs/Input.js";import l from"./inputs/MultipleChoiceInput.js";import u from"./inputs/RadioButtonsInput.js";import d from"./inputs/SwitchInput.js";import f from"./inputs/TextAreaInput.js";import p from"./inputs/TextBoxInput.js";import m from"./inputs/TimePickerInput.js";e(t.getLogger(`esri.form.elements.inputs`),`esri.form.elements.inputs`,{replacement:`Individual input module imports`,version:`5.2`,warnOnce:!0});const h=n,g=r,_=i,v=a,y=o,b=s,x=l,S=u,C=d,w=f,T=p,E=m,D={base:c,key:`type`,typeMap:{"barcode-scanner":h,"combo-box":g,"date-picker":_,"datetime-picker":y,"dynamic-choice":b,"multiple-choice":x,"timestampoffset-picker":v,"datetimeoffset-picker":v,"radio-buttons":S,switch:C,"text-area":w,"text-box":T,"time-picker":E}};export{h as BarcodeScannerInput,g as ComboBoxInput,_ as DatePickerInput,v as DateTimeOffsetPickerInput,y as DateTimePickerInput,b as DynamicChoiceInput,x as MultipleChoiceInput,S as RadioButtonsInput,C as SwitchInput,w as TextAreaInput,T as TextBoxInput,E as TimePickerInput,D as types};
|
package/form/elements.d.ts
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
* }
|
|
35
35
|
* ```
|
|
36
36
|
*
|
|
37
|
+
* @deprecated since 5.2. Import individual element modules directly instead.
|
|
37
38
|
* @since 4.16
|
|
38
39
|
* @see [FormTemplate](https://developers.arcgis.com/javascript/latest/references/core/form/FormTemplate/)
|
|
39
40
|
* @see [AttachmentElement](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{ObjectStack as e}from"../../core/ObjectStack.js";import{length as t,add as n,scale as r}from"../../core/libs/gl-matrix-2/math/vec3.js";import{copy as i,fromValues as a,create as o}from"./ray.js";function s(e){return e?{ray:o(e.ray),c0:e.c0,c1:e.c1}:{ray:o(),c0:0,c1:Number.MAX_VALUE}}function c(e,t,n){let r=
|
|
2
|
+
import{ObjectStack as e}from"../../core/ObjectStack.js";import{length as t,add as n,scale as r}from"../../core/libs/gl-matrix-2/math/vec3.js";import{copy as i,fromValues as a,create as o}from"./ray.js";function s(e){return e?{ray:o(e.ray),c0:e.c0,c1:e.c1}:{ray:o(),c0:0,c1:Number.MAX_VALUE}}function c(e,t,n){let r=_.get();return r.ray=e,r.c0=t,r.c1=n,r}function l(e,t=s()){return u(e.ray,e.c0,e.c1,t)}function u(e,t,n,r=s()){return i(e,r.ray),r.c0=t,r.c1=n,r}function d(e,t=s()){return i(e,t.ray),t.c0=0,t.c1=Number.MAX_VALUE,t}function f(e,n,r=s()){let i=t(e.vector);return a(e.origin,n,r.ray),r.c0=0,r.c1=i,r}function p(e,t){return h(e,e.c0,t)}function m(e,t){return h(e,e.c1,t)}function h(e,t,i){return n(i,e.ray.origin,r(i,e.ray.direction,t))}function g(e,t,n,r){let i=r.ray.origin[e],a=r.ray.direction[e];if(Math.abs(a)<=2**-52)return r.c0<=r.c1&&i>=t&&i<=n;let o=(t-i)/a,s=(n-i)/a;return r.c0=Math.max(r.c0,Math.min(o,s)),r.c1=Math.min(r.c1,Math.max(o,s)),r.c0<=r.c1}const _=new e(()=>s());export{g as clipSlab,l as copy,s as create,f as fromLineSegmentAndDirection,d as fromRay,u as fromValues,h as getAt,m as getEnd,p as getStart,c as wrap};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{clamp as e}from"../../core/mathUtils.js";import{exactEquals as t,subtract as n,normalize as r,dot as i,lerp as a,copy as o,add as s,scale as c,cross as l,set as u,scaleAndAdd as d}from"../../core/libs/gl-matrix-2/math/vec3.js";import{create as f}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{equals as p,exactEquals as m}from"../../core/libs/gl-matrix-2/math/vec4.js";import{projectPointSignedLength as h}from"./vector.js";import{sv3d as g,sv4d as
|
|
2
|
+
import{clamp as e}from"../../core/mathUtils.js";import{exactEquals as t,subtract as n,normalize as r,dot as i,lerp as a,copy as o,add as s,scale as c,cross as l,set as u,scaleAndAdd as d}from"../../core/libs/gl-matrix-2/math/vec3.js";import{create as f}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{equals as p,exactEquals as m}from"../../core/libs/gl-matrix-2/math/vec4.js";import{projectPointSignedLength as h}from"./vector.js";import{sv3d as g,sv4d as _}from"./vectorStacks.js";import{tangentFrame as ee}from"../../views/3d/support/mathUtils.js";function v(e=Z){return[e[0],e[1],e[2],e[3]]}const te=m,ne=p;function re(e=Z[0],t=Z[1],n=Z[2],r=Z[3]){return x(e,t,n,r,_.get())}function y(e,t){return x(t[0],t[1],t[2],t[3],e)}function b(e){return e}function x(e,t,n,r,i=v()){return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function S(e,t,n){return o(n,e),n[3]=t,n}function C(e,t,n){let r=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function w(e,t,n,r=v()){let i=n[0]-t[0],a=n[1]-t[1],o=n[2]-t[2],s=e[0]-t[0],c=e[1]-t[1],l=e[2]-t[2],u=a*l-o*c,d=o*s-i*l,f=i*c-a*s,p=u*u+d*d+f*f,m=Math.abs(p-1)>1e-5&&p>1e-12?1/Math.sqrt(p):1;return r[0]=u*m,r[1]=d*m,r[2]=f*m,r[3]=-(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]),r}function T(e,a,o,s=0,c=Math.floor(1/3*o),l=Math.floor(2/3*o)){if(o<3)return!1;a(D,s);let u=c,d=!1;for(;u<o-1&&!d;)a(O,u),u++,d=!t(D,O);if(!d)return!1;for(u=Math.max(u,l),d=!1;u<o&&!d;)a(k,u),u++,n(A,D,O),r(A,A),n(j,O,k),r(j,j),d=!t(D,k)&&!t(O,k)&&Math.abs(i(A,j))<ie;return d?(w(D,O,k,e),!0):s===0&&c===1&&l===2?!1:T(e,a,o,0,1,2)}function E(e,t,n=!0){let r=t.length/3;return T(e,(e,n)=>u(e,t[n*3+0],t[n*3+1],t[n*3+2]),n?r-1:r)}const ie=.99619469809,D=f(),O=f(),k=f(),A=f(),j=f();function ae(e,t,n){return t!==e&&y(e,t),e[3]=-i(b(e),n),e}function oe(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function se(e,t,n,r){return l(k,t,e),C(n,k,r)}function M(e,t,r,i){return Y(X(e,t,n(g.get(),r,t),ue,i))}function N(e,t,n){return t!=null&&Y(X(e,t.origin,t.direction,de,n))}function P(e,t,n){return Y(X(e,t.origin,t.vector,0,n))}function F(e,t,n){return Y(X(e,t.origin,t.vector,1,n))}function I(e,t){return q(e,t)<=0}function L(e,t){return q(e,t)>=0}function R(e,t){return V(e,t.ray.origin,t.ray.direction,t,!1,!1,!0,1e-6)}function z(e,t){return V(e,t.ray.origin,t.ray.direction,t,!1,!1,!1,1e-6)}function B(e,t){return t.c0<=t.c1&&V(e,t.ray.origin,t.ray.direction,t,!1,!0,!1,0)}function V(e,t,n,r,a,o,s,c){let l=i(b(e),n),u=q(e,t);if(l>=-c&&l<=c)return H(u,a,o);let d=-u/l,f=H(l,a,!1);return s&&!f&&!H(u,a,o)?!1:(f?d>r.c0&&(r.c0=d):d<r.c1&&(r.c1=d),r.c0<=r.c1)}function H(e,t,n){return n?t?e>=0:e<=0:t?e>0:e<0}function U(e,t,n,r=!1){let i=t.at(-1),s=q(e,i),c=r?s>0:s<=0;for(let l=0;l<t.length;l++){let u=t.at(l),d=q(e,u),f=r?d>0:d<=0;c!==f&&a(n(),i,u,s/(s-d)),f&&o(n(),u),i=u,s=d,c=f}}function W(e,t,r,i,a,o=!1){return n(Q,r,t),$.c0=0,$.c1=1,V(e,t,Q,$,o,!o,!1,1e-6)?(d(i,t,Q,$.c0),d(a,t,Q,$.c1),!0):!1}function G(e,t,r){let i=c(g.get(),b(e),-e[3]),a=K(e,n(g.get(),t,i),g.get());return s(r,a,i),r}function ce(e,t,r,i){let a=b(e),o=g.get(),s=g.get();ee(a,o,s);let c=n(g.get(),r,t),l=h(o,c),d=h(s,c),f=h(a,c);return u(i,l,d,f)}function K(e,t,r){let a=c(g.get(),b(e),i(b(e),t));return n(r,t,a),r}function le(e,t){return Math.abs(q(e,t))}function q(e,t){return i(b(e),t)+e[3]}function J(e,t,n){for(let r=0;r<n;++r)if(I(e,t[r]))return!1;return!0}function Y(e){return e===0||e===1}function X(t,n,r,a,o){let l=i(b(t),r),u=q(t,n);if(l===0)return u>=0?2:3;let d=-u/l;return a&1&&(d=e(d,0,1)),!(a&4)&&d<0||!(a&8)&&d>1?u>=0?2:3:(s(o,n,c(o,r,d)),u>=0?0:1)}const Z=[0,0,1,0],ue=12,de=8,Q=f(),$={c0:0,c1:1};export{J as areAllPointsOutside,R as clip,B as clipClosedNegativeHalfspace,z as clipInfinite,W as clipLineSegment,U as clipPolygon,y as copy,v as create,le as distance,ne as equals,te as exactEquals,E as fromArray,T as fromManyPoints,S as fromNormalAndOffset,w as fromPoints,C as fromPositionAndNormal,x as fromValues,se as fromVectorsAndPoint,b as getNormal,M as intersectLine,X as intersectLineOrRay,P as intersectLineSegment,F as intersectLineSegmentClamp,N as intersectRay,L as isPointInClosedPositiveHalfspace,I as isPointInside,oe as negate,G as projectPoint,ce as projectPointLocal,K as projectVector,ae as setOffsetFromPoint,q as signedDistance,Z as up,re as wrap};
|
|
@@ -4,23 +4,63 @@ import type AnnotationFeatureSublayer from "../layers/support/AnnotationFeatureS
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Provides information about the [AnnotationFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/AnnotationFeatureLayer/) from which a graphic originates.
|
|
7
|
+
* The [layer](https://developers.arcgis.com/javascript/latest/references/core/graphic/AnnotationFeatureGraphicOrigin/#layer) property references the AnnotationFeatureLayer, and the
|
|
8
|
+
* [sublayer](https://developers.arcgis.com/javascript/latest/references/core/graphic/AnnotationFeatureGraphicOrigin/#sublayer) property references the [AnnotationFeatureSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/AnnotationFeatureSublayer/) that contains the graphic, when available.
|
|
9
|
+
* The sublayer is `null` when no annotation sublayer information is available.
|
|
7
10
|
* The [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as
|
|
8
11
|
* [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/AnnotationFeatureLayer/#queryFeatures).
|
|
9
12
|
*
|
|
13
|
+
* Before accessing the layer properties, use [isAnnotationFeatureGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/isAnnotationFeatureGraphicOrigin/) to check
|
|
14
|
+
* whether the graphic's origin is an AnnotationFeatureGraphicOrigin.
|
|
15
|
+
*
|
|
16
|
+
* Use [getGraphicOriginTitle](https://developers.arcgis.com/javascript/latest/references/core/graphic/getGraphicOriginTitle/) to get the sublayer's title, or the layer's title when the sublayer is `null`.
|
|
17
|
+
* To get the popup template applicable to the graphic, call [Graphic.getEffectivePopupTemplate()](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#getEffectivePopupTemplate) on the graphic
|
|
18
|
+
* instead of accessing the AnnotationFeatureLayer's template directly.
|
|
19
|
+
*
|
|
10
20
|
* @since 5.1
|
|
11
21
|
* @see [MapView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest)
|
|
12
22
|
* @see [SceneView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest)
|
|
13
23
|
* @see [AnnotationFeatureLayer.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/AnnotationFeatureLayer/#queryFeatures)
|
|
14
24
|
* @example
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
25
|
+
* Access the layer and sublayer of a graphic that originated from a MapImageLayer.
|
|
26
|
+
* ```js
|
|
27
|
+
* import { isMapImageGraphicOrigin } from "@arcgis/core/graphic/isMapImageGraphicOrigin.js";
|
|
28
|
+
*
|
|
29
|
+
* const origin = graphic.origin;
|
|
30
|
+
*
|
|
31
|
+
* // Check whether the graphic came from a MapImageLayer
|
|
32
|
+
* if (isMapImageGraphicOrigin(origin)) {
|
|
33
|
+
* console.log(origin.layer.title);
|
|
34
|
+
* console.log(origin.sublayer.title);
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
* @example
|
|
38
|
+
* Access the vector tile style layer associated with a graphic returned by hitTest().
|
|
39
|
+
* ```js
|
|
40
|
+
* import { isVectorTileGraphicOrigin } from "@arcgis/core/graphic/isVectorTileGraphicOrigin.js";
|
|
41
|
+
*
|
|
42
|
+
* viewElement.addEventListener("arcgisViewClick", async (event) => {
|
|
43
|
+
* // Get hit-test results from the VectorTileLayer at the clicked location
|
|
44
|
+
* const response = await view.hitTest(event.detail, { include: vectorTileLayer });
|
|
45
|
+
*
|
|
46
|
+
* for (const result of response.results) {
|
|
47
|
+
* // Only graphic results contain a graphic with origin information
|
|
48
|
+
* if (result.type !== "graphic") {
|
|
49
|
+
* continue;
|
|
50
|
+
* }
|
|
51
|
+
*
|
|
52
|
+
* const graphic = result.graphic;
|
|
53
|
+
* const origin = graphic.origin;
|
|
54
|
+
*
|
|
55
|
+
* // Check whether the graphic came from a VectorTileLayer
|
|
56
|
+
* if (isVectorTileGraphicOrigin(origin)) {
|
|
57
|
+
* // layerId identifies a style layer within the VectorTileLayer
|
|
58
|
+
* const styleLayer = origin.layer.getStyleLayer(origin.layerId);
|
|
59
|
+
* console.log(styleLayer);
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
24
64
|
*/
|
|
25
65
|
export default class AnnotationFeatureGraphicOrigin extends GraphicOrigin {
|
|
26
66
|
constructor(layer: AnnotationFeatureLayer, sublayer: AnnotationFeatureSublayer | null);
|
|
@@ -4,12 +4,61 @@ import type BuildingComponentSublayer from "../layers/buildingSublayers/Building
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Provides information about the [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BuildingSceneLayer/) from which a graphic originates.
|
|
7
|
+
* The [layer](https://developers.arcgis.com/javascript/latest/references/core/graphic/BuildingGraphicOrigin/#layer) property references the BuildingSceneLayer, and the
|
|
8
|
+
* [sublayer](https://developers.arcgis.com/javascript/latest/references/core/graphic/BuildingGraphicOrigin/#sublayer) property references the [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/buildingSublayers/BuildingComponentSublayer/) that contains the graphic.
|
|
7
9
|
* The [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as
|
|
8
10
|
* [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest).
|
|
9
11
|
*
|
|
12
|
+
* Before accessing the layer properties, use [isBuildingGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/isBuildingGraphicOrigin/) to check
|
|
13
|
+
* whether the graphic's origin is a BuildingGraphicOrigin.
|
|
14
|
+
*
|
|
15
|
+
* If you only need the title of the originating component sublayer, use [getGraphicOriginTitle](https://developers.arcgis.com/javascript/latest/references/core/graphic/getGraphicOriginTitle/).
|
|
16
|
+
* To get the popup template applicable to the graphic, call [Graphic.getEffectivePopupTemplate()](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#getEffectivePopupTemplate) on the graphic
|
|
17
|
+
* instead of accessing the component sublayer's template directly.
|
|
18
|
+
*
|
|
10
19
|
* @since 5.0
|
|
11
20
|
* @see [SceneView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest)
|
|
12
21
|
* @see [Scene component hitTest()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#hitTest)
|
|
22
|
+
* @example
|
|
23
|
+
* Access the layer and sublayer of a graphic that originated from a MapImageLayer.
|
|
24
|
+
* ```js
|
|
25
|
+
* import { isMapImageGraphicOrigin } from "@arcgis/core/graphic/isMapImageGraphicOrigin.js";
|
|
26
|
+
*
|
|
27
|
+
* const origin = graphic.origin;
|
|
28
|
+
*
|
|
29
|
+
* // Check whether the graphic came from a MapImageLayer
|
|
30
|
+
* if (isMapImageGraphicOrigin(origin)) {
|
|
31
|
+
* console.log(origin.layer.title);
|
|
32
|
+
* console.log(origin.sublayer.title);
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
* @example
|
|
36
|
+
* Access the vector tile style layer associated with a graphic returned by hitTest().
|
|
37
|
+
* ```js
|
|
38
|
+
* import { isVectorTileGraphicOrigin } from "@arcgis/core/graphic/isVectorTileGraphicOrigin.js";
|
|
39
|
+
*
|
|
40
|
+
* viewElement.addEventListener("arcgisViewClick", async (event) => {
|
|
41
|
+
* // Get hit-test results from the VectorTileLayer at the clicked location
|
|
42
|
+
* const response = await view.hitTest(event.detail, { include: vectorTileLayer });
|
|
43
|
+
*
|
|
44
|
+
* for (const result of response.results) {
|
|
45
|
+
* // Only graphic results contain a graphic with origin information
|
|
46
|
+
* if (result.type !== "graphic") {
|
|
47
|
+
* continue;
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* const graphic = result.graphic;
|
|
51
|
+
* const origin = graphic.origin;
|
|
52
|
+
*
|
|
53
|
+
* // Check whether the graphic came from a VectorTileLayer
|
|
54
|
+
* if (isVectorTileGraphicOrigin(origin)) {
|
|
55
|
+
* // layerId identifies a style layer within the VectorTileLayer
|
|
56
|
+
* const styleLayer = origin.layer.getStyleLayer(origin.layerId);
|
|
57
|
+
* console.log(styleLayer);
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
13
62
|
*/
|
|
14
63
|
export default class BuildingGraphicOrigin extends GraphicOrigin {
|
|
15
64
|
constructor(sublayer: BuildingComponentSublayer);
|
|
@@ -6,6 +6,9 @@ import type CSVLayer from "../layers/CSVLayer.js";
|
|
|
6
6
|
* The [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as
|
|
7
7
|
* [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#queryFeatures).
|
|
8
8
|
*
|
|
9
|
+
* Before accessing the layer properties, use [isCSVGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/isCSVGraphicOrigin/) to check
|
|
10
|
+
* whether the graphic's origin is a CSVGraphicOrigin.
|
|
11
|
+
*
|
|
9
12
|
* @since 5.0
|
|
10
13
|
* @see [MapView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest)
|
|
11
14
|
* @see [SceneView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest)
|
|
@@ -14,15 +17,45 @@ import type CSVLayer from "../layers/CSVLayer.js";
|
|
|
14
17
|
* @see [CSVLayer.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#queryFeatures)
|
|
15
18
|
* @see [CSVLayerView.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/CSVLayerView/#queryFeatures)
|
|
16
19
|
* @example
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
20
|
+
* Access the layer and sublayer of a graphic that originated from a MapImageLayer.
|
|
21
|
+
* ```js
|
|
22
|
+
* import { isMapImageGraphicOrigin } from "@arcgis/core/graphic/isMapImageGraphicOrigin.js";
|
|
23
|
+
*
|
|
24
|
+
* const origin = graphic.origin;
|
|
25
|
+
*
|
|
26
|
+
* // Check whether the graphic came from a MapImageLayer
|
|
27
|
+
* if (isMapImageGraphicOrigin(origin)) {
|
|
28
|
+
* console.log(origin.layer.title);
|
|
29
|
+
* console.log(origin.sublayer.title);
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
* @example
|
|
33
|
+
* Access the vector tile style layer associated with a graphic returned by hitTest().
|
|
34
|
+
* ```js
|
|
35
|
+
* import { isVectorTileGraphicOrigin } from "@arcgis/core/graphic/isVectorTileGraphicOrigin.js";
|
|
36
|
+
*
|
|
37
|
+
* viewElement.addEventListener("arcgisViewClick", async (event) => {
|
|
38
|
+
* // Get hit-test results from the VectorTileLayer at the clicked location
|
|
39
|
+
* const response = await view.hitTest(event.detail, { include: vectorTileLayer });
|
|
40
|
+
*
|
|
41
|
+
* for (const result of response.results) {
|
|
42
|
+
* // Only graphic results contain a graphic with origin information
|
|
43
|
+
* if (result.type !== "graphic") {
|
|
44
|
+
* continue;
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* const graphic = result.graphic;
|
|
48
|
+
* const origin = graphic.origin;
|
|
49
|
+
*
|
|
50
|
+
* // Check whether the graphic came from a VectorTileLayer
|
|
51
|
+
* if (isVectorTileGraphicOrigin(origin)) {
|
|
52
|
+
* // layerId identifies a style layer within the VectorTileLayer
|
|
53
|
+
* const styleLayer = origin.layer.getStyleLayer(origin.layerId);
|
|
54
|
+
* console.log(styleLayer);
|
|
55
|
+
* }
|
|
56
|
+
* }
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
26
59
|
*/
|
|
27
60
|
export default class CSVGraphicOrigin extends GraphicOrigin {
|
|
28
61
|
constructor(layer: CSVLayer);
|
|
@@ -7,6 +7,9 @@ import type CatalogFootprintLayer from "../layers/catalog/CatalogFootprintLayer.
|
|
|
7
7
|
* The [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as
|
|
8
8
|
* [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/catalog/CatalogFootprintLayer/#queryFeatures).
|
|
9
9
|
*
|
|
10
|
+
* Before accessing the layer properties, use [isCatalogGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/isCatalogGraphicOrigin/) to check
|
|
11
|
+
* whether the graphic's origin is a CatalogGraphicOrigin.
|
|
12
|
+
*
|
|
10
13
|
* @since 5.0
|
|
11
14
|
* @see [MapView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest)
|
|
12
15
|
* @see [SceneView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest)
|
|
@@ -15,15 +18,45 @@ import type CatalogFootprintLayer from "../layers/catalog/CatalogFootprintLayer.
|
|
|
15
18
|
* @see [CatalogFootprintLayer.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/catalog/CatalogFootprintLayer/#queryFeatures)
|
|
16
19
|
* @see [CatalogFootprintLayerView.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/CatalogFootprintLayerView/#queryFeatures)
|
|
17
20
|
* @example
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
21
|
+
* Access the layer and sublayer of a graphic that originated from a MapImageLayer.
|
|
22
|
+
* ```js
|
|
23
|
+
* import { isMapImageGraphicOrigin } from "@arcgis/core/graphic/isMapImageGraphicOrigin.js";
|
|
24
|
+
*
|
|
25
|
+
* const origin = graphic.origin;
|
|
26
|
+
*
|
|
27
|
+
* // Check whether the graphic came from a MapImageLayer
|
|
28
|
+
* if (isMapImageGraphicOrigin(origin)) {
|
|
29
|
+
* console.log(origin.layer.title);
|
|
30
|
+
* console.log(origin.sublayer.title);
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
* @example
|
|
34
|
+
* Access the vector tile style layer associated with a graphic returned by hitTest().
|
|
35
|
+
* ```js
|
|
36
|
+
* import { isVectorTileGraphicOrigin } from "@arcgis/core/graphic/isVectorTileGraphicOrigin.js";
|
|
37
|
+
*
|
|
38
|
+
* viewElement.addEventListener("arcgisViewClick", async (event) => {
|
|
39
|
+
* // Get hit-test results from the VectorTileLayer at the clicked location
|
|
40
|
+
* const response = await view.hitTest(event.detail, { include: vectorTileLayer });
|
|
41
|
+
*
|
|
42
|
+
* for (const result of response.results) {
|
|
43
|
+
* // Only graphic results contain a graphic with origin information
|
|
44
|
+
* if (result.type !== "graphic") {
|
|
45
|
+
* continue;
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* const graphic = result.graphic;
|
|
49
|
+
* const origin = graphic.origin;
|
|
50
|
+
*
|
|
51
|
+
* // Check whether the graphic came from a VectorTileLayer
|
|
52
|
+
* if (isVectorTileGraphicOrigin(origin)) {
|
|
53
|
+
* // layerId identifies a style layer within the VectorTileLayer
|
|
54
|
+
* const styleLayer = origin.layer.getStyleLayer(origin.layerId);
|
|
55
|
+
* console.log(styleLayer);
|
|
56
|
+
* }
|
|
57
|
+
* }
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
27
60
|
*/
|
|
28
61
|
export default class CatalogGraphicOrigin extends GraphicOrigin {
|
|
29
62
|
constructor(layer: CatalogFootprintLayer);
|
|
@@ -6,20 +6,53 @@ import type DimensionFeatureLayer from "../layers/DimensionFeatureLayer.js";
|
|
|
6
6
|
* The [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as
|
|
7
7
|
* [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/DimensionFeatureLayer/#queryFeatures).
|
|
8
8
|
*
|
|
9
|
+
* Before accessing the layer properties, use [isDimensionFeatureGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/isDimensionFeatureGraphicOrigin/) to check
|
|
10
|
+
* whether the graphic's origin is a DimensionFeatureGraphicOrigin.
|
|
11
|
+
*
|
|
9
12
|
* @since 5.1
|
|
10
13
|
* @see [MapView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest)
|
|
11
14
|
* @see [SceneView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest)
|
|
12
15
|
* @see [DimensionFeatureLayer.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/DimensionFeatureLayer/#queryFeatures)
|
|
13
16
|
* @example
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
17
|
+
* Access the layer and sublayer of a graphic that originated from a MapImageLayer.
|
|
18
|
+
* ```js
|
|
19
|
+
* import { isMapImageGraphicOrigin } from "@arcgis/core/graphic/isMapImageGraphicOrigin.js";
|
|
20
|
+
*
|
|
21
|
+
* const origin = graphic.origin;
|
|
22
|
+
*
|
|
23
|
+
* // Check whether the graphic came from a MapImageLayer
|
|
24
|
+
* if (isMapImageGraphicOrigin(origin)) {
|
|
25
|
+
* console.log(origin.layer.title);
|
|
26
|
+
* console.log(origin.sublayer.title);
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
* @example
|
|
30
|
+
* Access the vector tile style layer associated with a graphic returned by hitTest().
|
|
31
|
+
* ```js
|
|
32
|
+
* import { isVectorTileGraphicOrigin } from "@arcgis/core/graphic/isVectorTileGraphicOrigin.js";
|
|
33
|
+
*
|
|
34
|
+
* viewElement.addEventListener("arcgisViewClick", async (event) => {
|
|
35
|
+
* // Get hit-test results from the VectorTileLayer at the clicked location
|
|
36
|
+
* const response = await view.hitTest(event.detail, { include: vectorTileLayer });
|
|
37
|
+
*
|
|
38
|
+
* for (const result of response.results) {
|
|
39
|
+
* // Only graphic results contain a graphic with origin information
|
|
40
|
+
* if (result.type !== "graphic") {
|
|
41
|
+
* continue;
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* const graphic = result.graphic;
|
|
45
|
+
* const origin = graphic.origin;
|
|
46
|
+
*
|
|
47
|
+
* // Check whether the graphic came from a VectorTileLayer
|
|
48
|
+
* if (isVectorTileGraphicOrigin(origin)) {
|
|
49
|
+
* // layerId identifies a style layer within the VectorTileLayer
|
|
50
|
+
* const styleLayer = origin.layer.getStyleLayer(origin.layerId);
|
|
51
|
+
* console.log(styleLayer);
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
23
56
|
*/
|
|
24
57
|
export default class DimensionFeatureGraphicOrigin extends GraphicOrigin {
|
|
25
58
|
constructor(layer: DimensionFeatureLayer);
|