@arcgis/core 5.1.0-next.72 → 5.1.0-next.74
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/Viewpoint.js +1 -1
- package/applications/Urban/editingSessionUtils.d.ts +95 -0
- package/applications/Urban/editingSessionUtils.js +2 -0
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{91a0227a64a944af3286.js → 003476e950bd27a2f884.js} +2 -2
- package/assets/esri/core/workers/chunks/{8a664451845a47048859.js → 0539b5d015157c1d34a0.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a4d7ba6dc1d4b41d80d.js → 07eff82916681fcff069.js} +1 -1
- package/assets/esri/core/workers/chunks/{b801631b58e6fc6cec8a.js → 0ae360bf253adee46737.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a14e3db28c403b046cf.js → 0d2bc1be5802681666a4.js} +1 -1
- package/assets/esri/core/workers/chunks/0eed2b1b06355ab89013.js +1 -0
- package/assets/esri/core/workers/chunks/{b495f14d90abe8d1a558.js → 12e575a6d2b008b8fc2b.js} +1 -1
- package/assets/esri/core/workers/chunks/{61ef14e42bc09b787d89.js → 13e60f19f436b8d683ae.js} +1 -1
- package/assets/esri/core/workers/chunks/18f77ee3552d92962f15.js +1 -0
- package/assets/esri/core/workers/chunks/1a87e9bbd85ba29b1514.js +1 -0
- package/assets/esri/core/workers/chunks/{aa1a3a849aba84cf585b.js → 1db1656a033f3992f0d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{b54b7cc6b23a70fed700.js → 1f8ccf96069ac3a40c3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{cdf6ad970dc1893dac58.js → 24646a1176ce34039155.js} +1 -1
- package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 359d3acb3953e64e5a78.js} +1 -1
- package/assets/esri/core/workers/chunks/{b79058f5bda6fcac22f8.js → 37091cf498a16ccad7ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{0839da55707f7c4cf780.js → 3b9100c59a8050f4834e.js} +1 -1
- package/assets/esri/core/workers/chunks/452c01cecbbd1e370098.js +1 -0
- package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +1 -0
- package/assets/esri/core/workers/chunks/{260d4571722cb1ff1366.js → 484d6c1b0fe1633515b7.js} +1 -1
- package/assets/esri/core/workers/chunks/{0d96e39380fd84cea9ba.js → 4bbe684050b3b04681d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e6ccf9f3e756186e93e.js → 4c13869d260a902d3014.js} +1 -1
- package/assets/esri/core/workers/chunks/4c97cc922eece3a91b6b.js +1 -0
- package/assets/esri/core/workers/chunks/{656d6963e8f837fbf28f.js → 54023458195549f66215.js} +1 -1
- package/assets/esri/core/workers/chunks/{02876e434dc91c42b2f4.js → 5476c2f7b83f4ccd0335.js} +1 -1
- package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +2 -0
- package/assets/esri/core/workers/chunks/{faad127dc07e54e7f6d1.js → 5abe34bb0110694f7b42.js} +1 -1
- package/assets/esri/core/workers/chunks/{c1838822b096d5f36a8b.js → 5b324e572737a308500d.js} +1 -1
- package/assets/esri/core/workers/chunks/6124141ac642e4ce1454.js +1 -0
- package/assets/esri/core/workers/chunks/{ae0a572cbbdd9815ee2e.js → 62b3e933f548ce354b99.js} +1 -1
- package/assets/esri/core/workers/chunks/6b66fc32451433129a88.js +1 -0
- package/assets/esri/core/workers/chunks/{6ea8b0d68881d16a2432.js → 6d25230dd85a4ba54c4f.js} +1 -1
- package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +1 -0
- package/assets/esri/core/workers/chunks/{9f4b97204def91567e3c.js → 7595ceba529ed01c7590.js} +1 -1
- package/assets/esri/core/workers/chunks/75d5ea0da181f9e7425f.js +1312 -0
- package/assets/esri/core/workers/chunks/{af75e91b88e747aa76ac.js → 7601278ebced0c0c31cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{1661684357912726a72a.js → 77dd719516138afb1a2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f9ea461c268c421f9c9.js → 7951d93f5f15aa76f49c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce2aa75e084ee56f5e29.js → 7f55eef696e9ed717bfc.js} +1 -1
- package/assets/esri/core/workers/chunks/85aac8539996372f1ee8.js +1 -0
- package/assets/esri/core/workers/chunks/{50d5d6654ada9f28345d.js → 85e65ced3312bf9cf162.js} +1 -1
- package/assets/esri/core/workers/chunks/{b92794def31592a6a25f.js → 8d75f6f27c1c17c33992.js} +1 -1
- package/assets/esri/core/workers/chunks/{3cd9bd20e75ba4d5b294.js → 8f4cd30ce23e41c1a42c.js} +1 -1
- package/assets/esri/core/workers/chunks/95d82c619dcbec2e1050.js +1 -0
- package/assets/esri/core/workers/chunks/983f6c8727fd9484718e.js +1 -0
- package/assets/esri/core/workers/chunks/{5a83ea967ecde01d5622.js → 9be9ccce6369f67202bc.js} +1 -1
- package/assets/esri/core/workers/chunks/{628f56c09838eb9c573b.js → a270960d80d8344dd75f.js} +1 -1
- package/assets/esri/core/workers/chunks/{b475f5492c6e3fd4cca8.js → a36761e3122f70fbb3c9.js} +1 -1
- package/assets/esri/core/workers/chunks/{1edd39c7c4acdc591d10.js → a809b811121099a87a98.js} +1 -1
- package/assets/esri/core/workers/chunks/{47f2113357b2aa4f4f37.js → a9d2c83bb10b5ade0ca0.js} +1 -1
- package/assets/esri/core/workers/chunks/abdf146b35e179b5b245.js +1 -0
- package/assets/esri/core/workers/chunks/ad064583f8a836005098.js +1 -0
- package/assets/esri/core/workers/chunks/{d2aa75816e84b1e7fd25.js → afc0baf86ece710ef867.js} +1 -1
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +1 -0
- package/assets/esri/core/workers/chunks/{68b47a5a50e0b5fffca2.js → b905e637a67fbb7af4ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{03894992558d063d0d5e.js → bab23b905678e42815e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → bcb021a167580bb1619f.js} +1 -1
- package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +1 -0
- package/assets/esri/core/workers/chunks/bec3ee5ea945e1e07a35.js +1 -0
- package/assets/esri/core/workers/chunks/{a65d576e90179a2b5400.js → c5507480344176fad241.js} +1 -1
- package/assets/esri/core/workers/chunks/{d4a9eb4470cc6a1f67fc.js → c5f155fe114a2a05aaf2.js} +2 -2
- package/assets/esri/core/workers/chunks/{84772b023d04e415f17f.js → c61002a117dc2218d6af.js} +1 -1
- package/assets/esri/core/workers/chunks/c70df6ed190f9ebcf6aa.js +1 -0
- package/assets/esri/core/workers/chunks/{0dad0bca8d58b2c63d22.js → c804a66ef7615aa8de89.js} +1 -1
- package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +1 -0
- package/assets/esri/core/workers/chunks/{dec6d41d614105e6fd93.js → d00dafad202450e6ee2e.js} +1 -1
- package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +1 -0
- package/assets/esri/core/workers/chunks/{06df187a116709f69952.js → d35c475f004367e333eb.js} +1 -1
- package/assets/esri/core/workers/chunks/d82da31dc702b8fd6a07.js +1 -0
- package/assets/esri/core/workers/chunks/dd4f431511edd975a53b.js +1 -0
- package/assets/esri/core/workers/chunks/{99101789035f1787c630.js → e785f76c1a75cb1d1e1f.js} +1 -1
- package/assets/esri/core/workers/chunks/f53805c7a84203305b2c.js +1 -0
- package/assets/esri/core/workers/chunks/f590b60fca607d66001a.js +1 -0
- package/assets/esri/core/workers/chunks/{f6d047358d14328f3622.js → f60292d97bcdbf19165b.js} +1 -1
- package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +1 -0
- package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +186 -116
- package/chunks/GlobalIlluminationBlur.glsl.js +81 -61
- package/chunks/GlobalIlluminationUpscale.glsl.js +66 -0
- package/chunks/geometryEngineBase.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/form/elements/FieldElement.d.ts +3 -2
- package/form/elements/FieldElement.js +1 -1
- package/form/elements/inputs/Input.d.ts +1 -1
- package/form/elements/inputs/MultipleChoiceInput.d.ts +65 -0
- package/form/elements/inputs/MultipleChoiceInput.js +2 -0
- package/form/elements/inputs/inputUtils.js +1 -1
- package/form/elements/inputs/multipleChoice/Choice.d.ts +30 -0
- package/form/elements/inputs/multipleChoice/Choice.js +2 -0
- package/form/elements/inputs/multipleChoice/OtherChoice.d.ts +28 -0
- package/form/elements/inputs/multipleChoice/OtherChoice.js +2 -0
- package/form/elements/inputs.d.ts +11 -2
- package/form/elements/inputs.js +1 -1
- package/form/support/formUtils.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/geometryEngineJSON.js +1 -1
- package/geometry/operators/projectOperator.d.ts +5 -4
- package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
- package/geometry/support/normalizeUtils.js +1 -1
- package/geometry/support/normalizeUtilsCommon.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +28 -0
- package/kernel.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/support/SymbolLayerDrawing.d.ts +18 -4
- package/package.json +2 -2
- package/popup/Features.d.ts +9 -9
- package/popup/Features.js +1 -1
- package/popup/actionUtils.js +1 -1
- package/popup/actions.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/PortalQueryParams.js +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/third-party-notices.txt +7 -29
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/state/GoToOperation.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/support/cameraScaleUtils.js +2 -0
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +13 -12
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/GlobalIlluminationWeights.glsl.js +21 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +11 -7
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscale.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscaleTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/SceneView.d.ts +1 -0
- package/views/draw/support/editingSessionUtils.js +2 -0
- package/views/interactive/sketch/SketchOptions.d.ts +3 -1
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +15 -1
- package/views/support/Scheduler.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInputAdapter.js +2 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +28 -4
- package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/templates/AttachmentElementTemplate.js +2 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/support/widgetUtils.js +1 -1
- package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +0 -1
- package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +0 -1
- package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +0 -1
- package/assets/esri/core/workers/chunks/266ba61b72a278d93a26.js +0 -1
- package/assets/esri/core/workers/chunks/2abf124e2956e4f76688.js +0 -1
- package/assets/esri/core/workers/chunks/43678e08a3d9d51c2a6d.js +0 -1
- package/assets/esri/core/workers/chunks/5b278b9980752ef495a2.js +0 -1
- package/assets/esri/core/workers/chunks/5e59ff96aecdf2adcb3b.js +0 -1
- package/assets/esri/core/workers/chunks/74be994d789c57031631.js +0 -1
- package/assets/esri/core/workers/chunks/770880ad43f252962017.js +0 -1
- package/assets/esri/core/workers/chunks/81750c5177d8d52a3e05.js +0 -1
- package/assets/esri/core/workers/chunks/85edbb072a2ce6c1bb30.js +0 -2
- package/assets/esri/core/workers/chunks/943cf0653a2b7de16a4f.js +0 -1
- package/assets/esri/core/workers/chunks/a11f05ddd8314b648f76.js +0 -1
- package/assets/esri/core/workers/chunks/a37fc886227365f7ecd5.js +0 -1
- package/assets/esri/core/workers/chunks/af5db0372d526e592fcc.js +0 -1
- package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +0 -1
- package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +0 -1
- package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +0 -1
- package/assets/esri/core/workers/chunks/d0c3ab70f390cd579fed.js +0 -1
- package/assets/esri/core/workers/chunks/d8d7331600d93bbca2b4.js +0 -1
- package/assets/esri/core/workers/chunks/dca595fdd5e1a571e441.js +0 -1
- package/assets/esri/core/workers/chunks/de583214195eff13cb00.js +0 -1140
- package/assets/esri/core/workers/chunks/df8143b72ef94806c992.js +0 -1
- package/assets/esri/core/workers/chunks/ef013a77950c1902de11.js +0 -1
- package/assets/esri/core/workers/chunks/fa160a2a5dc9f5a7c34b.js +0 -1
- package/geometry/support/triangulationUtilsDeprecated.js +0 -2
- package/views/3d/layers/graphics/extrudeUtilsDeprecated.js +0 -2
- package/views/3d/support/renderInfoUtils/polygonDeprecated.js +0 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EncodingColor.glsl.js +0 -7
- package/views/3d/webgl-engine/shaders/GlobalIllumination.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/GlobalIlluminationBlur.glsl.js +0 -2
- /package/assets/esri/core/workers/chunks/{85edbb072a2ce6c1bb30.js.LICENSE.txt → 5511e640e171c294f52a.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d4a9eb4470cc6a1f67fc.js.LICENSE.txt → c5f155fe114a2a05aaf2.js.LICENSE.txt} +0 -0
package/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.
|
|
2
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.74";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
package/core/has.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
const e=globalThis,a={...e.esriConfig?.has};function has(d){return"function"==typeof a[d]?a[d]=a[d](e):a[d]}has.add=(e,d,r,t)=>{(t||void 0===a[e])&&(a[e]=d),r&&has(e)},has.cache=a,has.add("big-integer-warning-enabled",!0),has.add("esri-deprecation-warnings",!0),has.add("esri-tests-disable-screenshots",!1),has.add("esri-tests-use-full-window",!1),has.add("esri-tests-post-to-influx",!0),has.add("esri-cim-animations-enable-status","enabled"),has.add("esri-cim-animations-spotlight",!1),has.add("esri-cim-animations-freeze-time",!1),(()=>{has.add("host-webworker",void 0!==e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope);const a="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(has.add("host-browser",a),has.add("host-node",!("object"!=typeof e.process||!e.process.versions?.node||!e.process.versions.v8)),has.add("dom",a),has("host-browser")){const e=navigator,a=e.userAgent,d=e.appVersion,r=parseFloat(d);if(has.add("wp",parseFloat(a.split("Windows Phone")[1])||void 0),has.add("msapp",parseFloat(a.split("MSAppHost/")[1])||void 0),has.add("khtml",d.includes("Konqueror")?r:void 0),has.add("edge",parseFloat(a.split("Edge/")[1])||void 0),has.add("opr",parseFloat(a.split("OPR/")[1])||void 0),has.add("webkit",!has("wp")&&!has("edge")&&parseFloat(a.split("WebKit/")[1])||void 0),has.add("chrome",!has("edge")&&!has("opr")&&parseFloat(a.split("Chrome/")[1])||void 0),has.add("android",!has("wp")&&parseFloat(a.split("Android ")[1])||void 0),has.add("safari",!d.includes("Safari")||has("wp")||has("chrome")||has("android")||has("edge")||has("opr")?void 0:parseFloat(d.split("Version/")[1])),has.add("mac",d.includes("Macintosh")),!has("wp")&&/(iPhone|iPod|iPad)/.test(a)){const e=RegExp.$1.replace(/P/,"p"),d=/OS ([\d_]+)/.test(a)?RegExp.$1:"1",r=parseFloat(d.replace(/_/,".").replaceAll("_",""));has.add(e,r),has.add("ios",r)}has("webkit")||(!a.includes("Gecko")||has("wp")||has("khtml")||has("edge")||has.add("mozilla",r),has("mozilla")&&has.add("ff",parseFloat(a.split("Firefox/")[1]||a.split("Minefield/")[1])||void 0))}})(),(()=>{if(e.navigator){const e=navigator.userAgent,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),d=/iPhone/i.test(e);a&&has.add("esri-mobile",a),d&&has.add("esri-iPhone",d),has.add("esri-geolocation",!!navigator.geolocation)}has.add("esri-wasm","WebAssembly"in e),has.add("esri-performance-mode-frames-between-render",20),has.add("esri-force-performance-mode",!1),has.add("esri-shared-array-buffer",()=>{const a="SharedArrayBuffer"in e,d=!1===e.crossOriginIsolated;return a&&!d}),has.add("wasm-simd",()=>{const e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),has.add("esri-atomics","Atomics"in e),has.add("esri-workers","Worker"in e),has.add("web-feat:cache","caches"in e),has.add("esri-workers-arraybuffer-transfer",!has("safari")||Number(has("safari"))>=12),has.add("min-workers-pool-size",2),has.add("max-workers-pool-size",has("esri-mobile")?3:8),has.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),has.add("featurelayer-simplify-payload-size-factors",[1,1,4]),has.add("featurelayer-animation-enabled",!0),has.add("featurelayer-snapshot-enabled",!0),has.add("featurelayer-snapshot-initial-tolerance",0),has.add("featurelayer-snapshot-point-min-threshold",8e4),has.add("featurelayer-snapshot-point-max-threshold",4e5),has.add("featurelayer-snapshot-multipoint-min-threshold",2e4),has.add("featurelayer-snapshot-multipoint-max-threshold",1e5),has.add("featurelayer-snapshot-polygon-min-threshold",2e3),has.add("featurelayer-snapshot-polygon-max-threshold",2e3),has.add("featurelayer-snapshot-polyline-min-threshold",2e3),has.add("featurelayer-snapshot-polyline-max-threshold",2e3),has.add("featurelayer-snapshot-max-vertex-count",25e4),has.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),has.add("featurelayer-snapshot-concurrency",4),has.add("featurelayer-snapshot-allow-editable",!1),has.add("featurelayer-snapshot-coverage",.1),has.add("featurelayer-query-max-depth",4),has.add("featurelayer-query-max-page-size",8e3),has.add("featurelayer-query-pausing-enabled",!1),has.add("featurelayer-query-tile-concurrency",4),has.add("featurelayer-query-tile-max-features",6e5),has.add("featurelayer-advanced-symbols",!1),has.add("featurelayer-pbf",!0),has.add("featurelayer-pbf-statistics",!1),has.add("featurelayer-pbf-true-curves",!0),has.add("feature-layers-workers",!0),has.add("feature-polyline-generalization-factor",1),has.add("featurelayer-relative-time-queries-enabled",!0),has.add("featurelayer-relative-time-queries-bin-window-public",1),has.add("featurelayer-relative-time-queries-bin-window-private",60),has.add("parquetlayer-full-query-feature-count",2e4),has.add("parquetlayer-hittest-max-feature-count",1),has.add("parquetlayer-persistence-enabled",!1),has.add("parquetlayer-cache-enabled",!0),has.add("mapview-transitions-duration",200),has.add("mapview-essential-goto-duration",200),has.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),has.add("mapserver-pbf-version-support",10.81),has.add("mapservice-popup-identify-max-tolerance",20),has.add("request-queue-concurrency-global",50),has.add("request-queue-concurrency-hosted",16),has.add("request-queue-concurrency-non-hosted",
|
|
2
|
+
const e=globalThis,a={...e.esriConfig?.has};function has(d){return"function"==typeof a[d]?a[d]=a[d](e):a[d]}has.add=(e,d,r,t)=>{(t||void 0===a[e])&&(a[e]=d),r&&has(e)},has.cache=a,has.add("big-integer-warning-enabled",!0),has.add("esri-deprecation-warnings",!0),has.add("esri-tests-disable-screenshots",!1),has.add("esri-tests-use-full-window",!1),has.add("esri-tests-post-to-influx",!0),has.add("esri-cim-animations-enable-status","enabled"),has.add("esri-cim-animations-spotlight",!1),has.add("esri-cim-animations-freeze-time",!1),(()=>{has.add("host-webworker",void 0!==e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope);const a="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(has.add("host-browser",a),has.add("host-node",!("object"!=typeof e.process||!e.process.versions?.node||!e.process.versions.v8)),has.add("dom",a),has("host-browser")){const e=navigator,a=e.userAgent,d=e.appVersion,r=parseFloat(d);if(has.add("wp",parseFloat(a.split("Windows Phone")[1])||void 0),has.add("msapp",parseFloat(a.split("MSAppHost/")[1])||void 0),has.add("khtml",d.includes("Konqueror")?r:void 0),has.add("edge",parseFloat(a.split("Edge/")[1])||void 0),has.add("opr",parseFloat(a.split("OPR/")[1])||void 0),has.add("webkit",!has("wp")&&!has("edge")&&parseFloat(a.split("WebKit/")[1])||void 0),has.add("chrome",!has("edge")&&!has("opr")&&parseFloat(a.split("Chrome/")[1])||void 0),has.add("android",!has("wp")&&parseFloat(a.split("Android ")[1])||void 0),has.add("safari",!d.includes("Safari")||has("wp")||has("chrome")||has("android")||has("edge")||has("opr")?void 0:parseFloat(d.split("Version/")[1])),has.add("mac",d.includes("Macintosh")),!has("wp")&&/(iPhone|iPod|iPad)/.test(a)){const e=RegExp.$1.replace(/P/,"p"),d=/OS ([\d_]+)/.test(a)?RegExp.$1:"1",r=parseFloat(d.replace(/_/,".").replaceAll("_",""));has.add(e,r),has.add("ios",r)}has("webkit")||(!a.includes("Gecko")||has("wp")||has("khtml")||has("edge")||has.add("mozilla",r),has("mozilla")&&has.add("ff",parseFloat(a.split("Firefox/")[1]||a.split("Minefield/")[1])||void 0))}})(),(()=>{if(e.navigator){const e=navigator.userAgent,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),d=/iPhone/i.test(e);a&&has.add("esri-mobile",a),d&&has.add("esri-iPhone",d),has.add("esri-geolocation",!!navigator.geolocation)}has.add("esri-wasm","WebAssembly"in e),has.add("esri-performance-mode-frames-between-render",20),has.add("esri-force-performance-mode",!1),has.add("esri-shared-array-buffer",()=>{const a="SharedArrayBuffer"in e,d=!1===e.crossOriginIsolated;return a&&!d}),has.add("wasm-simd",()=>{const e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),has.add("esri-atomics","Atomics"in e),has.add("esri-workers","Worker"in e),has.add("web-feat:cache","caches"in e),has.add("esri-workers-arraybuffer-transfer",!has("safari")||Number(has("safari"))>=12),has.add("min-workers-pool-size",2),has.add("max-workers-pool-size",has("esri-mobile")?3:8),has.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),has.add("featurelayer-simplify-payload-size-factors",[1,1,4]),has.add("featurelayer-animation-enabled",!0),has.add("featurelayer-snapshot-enabled",!0),has.add("featurelayer-snapshot-initial-tolerance",0),has.add("featurelayer-snapshot-point-min-threshold",8e4),has.add("featurelayer-snapshot-point-max-threshold",4e5),has.add("featurelayer-snapshot-multipoint-min-threshold",2e4),has.add("featurelayer-snapshot-multipoint-max-threshold",1e5),has.add("featurelayer-snapshot-polygon-min-threshold",2e3),has.add("featurelayer-snapshot-polygon-max-threshold",2e3),has.add("featurelayer-snapshot-polyline-min-threshold",2e3),has.add("featurelayer-snapshot-polyline-max-threshold",2e3),has.add("featurelayer-snapshot-max-vertex-count",25e4),has.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),has.add("featurelayer-snapshot-concurrency",4),has.add("featurelayer-snapshot-allow-editable",!1),has.add("featurelayer-snapshot-coverage",.1),has.add("featurelayer-query-max-depth",4),has.add("featurelayer-query-max-page-size",8e3),has.add("featurelayer-query-pausing-enabled",!1),has.add("featurelayer-query-tile-concurrency",4),has.add("featurelayer-query-tile-max-features",6e5),has.add("featurelayer-advanced-symbols",!1),has.add("featurelayer-pbf",!0),has.add("featurelayer-pbf-statistics",!1),has.add("featurelayer-pbf-true-curves",!0),has.add("feature-layers-workers",!0),has.add("feature-polyline-generalization-factor",1),has.add("featurelayer-relative-time-queries-enabled",!0),has.add("featurelayer-relative-time-queries-bin-window-public",1),has.add("featurelayer-relative-time-queries-bin-window-private",60),has.add("parquetlayer-full-query-feature-count",2e4),has.add("parquetlayer-hittest-max-feature-count",1),has.add("parquetlayer-persistence-enabled",!1),has.add("parquetlayer-cache-enabled",!0),has.add("mapview-transitions-duration",200),has.add("mapview-essential-goto-duration",200),has.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),has.add("mapserver-pbf-version-support",10.81),has.add("mapservice-popup-identify-max-tolerance",20),has.add("request-queue-concurrency-global",50),has.add("request-queue-concurrency-hosted",16),has.add("request-queue-concurrency-non-hosted",10),has.add("curve-densification-coarse-segments",128),has.add("curve-densification-max-segments",2e3),has.add("curve-densification-min-segments",3),has.add("curve-densification-pixel-deviation",.5),has.add("view-readyState-waiting-delay",1e3),has.add("gradient-depth-bias",.01),has.add("gradient-depth-epsilon",1e-8),has.add("enable-feature:esri-compress-textures",!0),has.add("enable-feature:basemap-groundlayers",!0),has.add("enable-feature:im-shading",!0),has.add("enable-feature:im-vertex-normals",!0),!has("host-webworker")&&has("host-browser")&&(has.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),has.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})();export{has as default};
|
|
@@ -10,6 +10,7 @@ import type { TextBoxInputProperties } from "./inputs/TextBoxInput.js";
|
|
|
10
10
|
import type { TextAreaInputProperties } from "./inputs/TextAreaInput.js";
|
|
11
11
|
import type { SwitchInputProperties } from "./inputs/SwitchInput.js";
|
|
12
12
|
import type { RadioButtonsInputProperties } from "./inputs/RadioButtonsInput.js";
|
|
13
|
+
import type { MultipleChoiceInputProperties } from "./inputs/MultipleChoiceInput.js";
|
|
13
14
|
import type { DateTimePickerInputProperties } from "./inputs/DateTimePickerInput.js";
|
|
14
15
|
import type { DateTimeOffsetPickerInputProperties } from "./inputs/DateTimeOffsetPickerInput.js";
|
|
15
16
|
import type { DatePickerInputProperties } from "./inputs/DatePickerInput.js";
|
|
@@ -23,7 +24,7 @@ export interface FieldElementProperties extends ElementProperties, Partial<Pick<
|
|
|
23
24
|
*/
|
|
24
25
|
domain?: (CodedValueDomainProperties & { type: "coded-value" }) | (RangeDomainProperties & { type: "range" }) | null;
|
|
25
26
|
/** The input to use for the element. The client application is responsible for defining the default user interface. */
|
|
26
|
-
input?: ((BarcodeScannerInputProperties & { type: "barcode-scanner" }) | (ComboBoxInputProperties & { type: "combo-box" }) | (DatePickerInputProperties & { type: "date-picker" }) | (DateTimeOffsetPickerInputProperties & { type: "timestampoffset-picker" }) | (DateTimePickerInputProperties & { type: "datetime-picker" }) | (RadioButtonsInputProperties & { type: "radio-buttons" }) | (SwitchInputProperties & { type: "switch" }) | (TextAreaInputProperties & { type: "text-area" }) | (TextBoxInputProperties & { type: "text-box" }) | (TimePickerInputProperties & { type: "time-picker" })) | null;
|
|
27
|
+
input?: ((BarcodeScannerInputProperties & { type: "barcode-scanner" }) | (ComboBoxInputProperties & { type: "combo-box" }) | (DatePickerInputProperties & { type: "date-picker" }) | (DateTimeOffsetPickerInputProperties & { type: "timestampoffset-picker" }) | (DateTimePickerInputProperties & { type: "datetime-picker" }) | (MultipleChoiceInputProperties & { type: "multiple-choice" }) | (RadioButtonsInputProperties & { type: "radio-buttons" }) | (SwitchInputProperties & { type: "switch" }) | (TextAreaInputProperties & { type: "text-area" }) | (TextBoxInputProperties & { type: "text-box" }) | (TimePickerInputProperties & { type: "time-picker" })) | null;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -130,7 +131,7 @@ export default class FieldElement extends Element {
|
|
|
130
131
|
accessor hint: string | null | undefined;
|
|
131
132
|
/** The input to use for the element. The client application is responsible for defining the default user interface. */
|
|
132
133
|
get input(): Input | null | undefined;
|
|
133
|
-
set input(value: ((BarcodeScannerInputProperties & { type: "barcode-scanner" }) | (ComboBoxInputProperties & { type: "combo-box" }) | (DatePickerInputProperties & { type: "date-picker" }) | (DateTimeOffsetPickerInputProperties & { type: "timestampoffset-picker" }) | (DateTimePickerInputProperties & { type: "datetime-picker" }) | (RadioButtonsInputProperties & { type: "radio-buttons" }) | (SwitchInputProperties & { type: "switch" }) | (TextAreaInputProperties & { type: "text-area" }) | (TextBoxInputProperties & { type: "text-box" }) | (TimePickerInputProperties & { type: "time-picker" })) | null | undefined);
|
|
134
|
+
set input(value: ((BarcodeScannerInputProperties & { type: "barcode-scanner" }) | (ComboBoxInputProperties & { type: "combo-box" }) | (DatePickerInputProperties & { type: "date-picker" }) | (DateTimeOffsetPickerInputProperties & { type: "timestampoffset-picker" }) | (DateTimePickerInputProperties & { type: "datetime-picker" }) | (MultipleChoiceInputProperties & { type: "multiple-choice" }) | (RadioButtonsInputProperties & { type: "radio-buttons" }) | (SwitchInputProperties & { type: "switch" }) | (TextAreaInputProperties & { type: "text-area" }) | (TextBoxInputProperties & { type: "text-box" }) | (TimePickerInputProperties & { type: "time-picker" })) | null | undefined);
|
|
134
135
|
/**
|
|
135
136
|
* A reference to the [ExpressionInfo.name](https://developers.arcgis.com/javascript/latest/references/core/form/ExpressionInfo/#name) of an
|
|
136
137
|
* [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as i,subclass as t}from"../../core/accessorSupport/decorators.js";import s from"./Element.js";import{types as o}from"./inputs.js";import{fromJSON as r,types as
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as i,subclass as t}from"../../core/accessorSupport/decorators.js";import s from"./Element.js";import{types as o}from"./inputs.js";import{fromJSON as r,types as n}from"../../layers/support/domains.js";var p;let l=p=class extends s{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new p({description:this.description,domain:this.domain?.clone()??null,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input?.clone(),label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};e([i({types:n,json:{read:{reader:r},write:!0}})],l.prototype,"domain",void 0),e([i({type:Boolean,json:{write:!0}})],l.prototype,"editable",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"editableExpression",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"fieldName",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"hint",void 0),e([i({types:o,json:{read:{source:"inputType"},write:{target:"inputType"}}})],l.prototype,"input",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"requiredExpression",void 0),e([i({type:String,json:{read:!1,write:!0}})],l.prototype,"type",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"valueExpression",void 0),l=p=e([t("esri.form.elements.FieldElement")],l);export{l as default};
|
|
@@ -2,4 +2,4 @@ import type { JSONSupport } from "../../../core/JSONSupport.js";
|
|
|
2
2
|
|
|
3
3
|
export default abstract class Input extends JSONSupport {}
|
|
4
4
|
|
|
5
|
-
export type InputType = "barcode-scanner" | "combo-box" | "date-picker" | "datetime-picker" | "timestampoffset-picker" | "radio-buttons" | "switch" | "text-area" | "text-box" | "time-picker";
|
|
5
|
+
export type InputType = "barcode-scanner" | "combo-box" | "date-picker" | "datetime-picker" | "multiple-choice" | "timestampoffset-picker" | "radio-buttons" | "switch" | "text-area" | "text-box" | "time-picker";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type Input from "./Input.js";
|
|
2
|
+
import type Choice from "./multipleChoice/Choice.js";
|
|
3
|
+
import type OtherChoice from "./multipleChoice/OtherChoice.js";
|
|
4
|
+
import type { ChoiceProperties } from "./multipleChoice/Choice.js";
|
|
5
|
+
import type { OtherChoiceProperties } from "./multipleChoice/OtherChoice.js";
|
|
6
|
+
|
|
7
|
+
export interface MultipleChoiceInputProperties extends Partial<Pick<MultipleChoiceInput, "choiceDelimeter" | "includeOtherChoice" | "maxSelectedChoices" | "minSelectedChoices">> {
|
|
8
|
+
/** An array of available choices. */
|
|
9
|
+
choices?: ChoiceProperties[] | null;
|
|
10
|
+
/** The configuration for the `other` choice when [includeOtherChoice](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/MultipleChoiceInput/#includeOtherChoice) is `true`. */
|
|
11
|
+
otherChoice?: OtherChoiceProperties | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The `MultipleChoiceInput` class defines the desired user interface for a multiple choice group input. This [FieldElement.input](https://developers.arcgis.com/javascript/latest/references/core/form/elements/FieldElement/#input) is used in [field elements](https://developers.arcgis.com/javascript/latest/references/core/form/elements/FieldElement/) that are set within a [feature layer's](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#formTemplate) or [FeatureForm's](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureForm/#formTemplate) `formTemplate`. This is displayed within the [Editor](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/) widget.
|
|
16
|
+
*
|
|
17
|
+
* @since 5.1
|
|
18
|
+
* @see [FieldElement](https://developers.arcgis.com/javascript/latest/references/core/form/elements/FieldElement/)
|
|
19
|
+
* @example
|
|
20
|
+
* // Creates a new multiple choice input for a field element within a form
|
|
21
|
+
* const multipleChoiceInput = new MultipleChoiceInput({
|
|
22
|
+
* includeOtherChoice: true,
|
|
23
|
+
* otherChoice: {
|
|
24
|
+
* fieldName: "other",
|
|
25
|
+
* label: "Other",
|
|
26
|
+
* hint: "Provide additional details"
|
|
27
|
+
* },
|
|
28
|
+
* minSelectedChoices: 1,
|
|
29
|
+
* maxSelectedChoices: 3,
|
|
30
|
+
* choices: [
|
|
31
|
+
* { label: "Option 1", value: "option1" },
|
|
32
|
+
* { label: "Option 2", value: "option2" },
|
|
33
|
+
* { label: "Option 3", value: "option3" }
|
|
34
|
+
* ]
|
|
35
|
+
* });
|
|
36
|
+
*/
|
|
37
|
+
export default class MultipleChoiceInput extends Input {
|
|
38
|
+
constructor(properties?: MultipleChoiceInputProperties);
|
|
39
|
+
/**
|
|
40
|
+
* Defines the delimiter used to separate multiple selected choice values.
|
|
41
|
+
*
|
|
42
|
+
* @default ","
|
|
43
|
+
*/
|
|
44
|
+
accessor choiceDelimeter: string;
|
|
45
|
+
/** An array of available choices. */
|
|
46
|
+
get choices(): Choice[] | null | undefined;
|
|
47
|
+
set choices(value: ChoiceProperties[] | null | undefined);
|
|
48
|
+
/** Indicates whether an additional `other` choice should be displayed. */
|
|
49
|
+
accessor includeOtherChoice: boolean | null | undefined;
|
|
50
|
+
/** The maximum number of choices allowed. */
|
|
51
|
+
accessor maxSelectedChoices: number | null | undefined;
|
|
52
|
+
/** The minimum number of choices required. */
|
|
53
|
+
accessor minSelectedChoices: number | null | undefined;
|
|
54
|
+
/** The configuration for the `other` choice when [includeOtherChoice](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/MultipleChoiceInput/#includeOtherChoice) is `true`. */
|
|
55
|
+
get otherChoice(): OtherChoice | null | undefined;
|
|
56
|
+
set otherChoice(value: OtherChoiceProperties | null | undefined);
|
|
57
|
+
/** The type of form element input. */
|
|
58
|
+
get type(): "multiple-choice";
|
|
59
|
+
/**
|
|
60
|
+
* Creates a deep clone of the `MultipleChoiceInput` class.
|
|
61
|
+
*
|
|
62
|
+
* @returns A deep clone of the `MultipleChoiceInput` instance.
|
|
63
|
+
*/
|
|
64
|
+
clone(): MultipleChoiceInput;
|
|
65
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as o}from"../../../core/accessorSupport/decorators.js";import i from"./Input.js";import c from"./multipleChoice/Choice.js";import r from"./multipleChoice/OtherChoice.js";var h;let s=h=class extends i{constructor(e){super(e),this.choiceDelimeter=",",this.choices=null,this.includeOtherChoice=null,this.maxSelectedChoices=null,this.minSelectedChoices=null,this.otherChoice=null,this.type="multiple-choice"}clone(){return new h({choiceDelimeter:this.choiceDelimeter,choices:this.choices?.map(e=>e.clone())??null,includeOtherChoice:this.includeOtherChoice,maxSelectedChoices:this.maxSelectedChoices,minSelectedChoices:this.minSelectedChoices,otherChoice:this.otherChoice?.clone()??null})}};e([t({type:String,json:{write:!0}})],s.prototype,"choiceDelimeter",void 0),e([t({type:[c],json:{write:{isRequired:!0}}})],s.prototype,"choices",void 0),e([t({type:Boolean,json:{write:!0}})],s.prototype,"includeOtherChoice",void 0),e([t({type:Number,json:{write:!0}})],s.prototype,"maxSelectedChoices",void 0),e([t({type:Number,json:{write:!0}})],s.prototype,"minSelectedChoices",void 0),e([t({type:r,json:{write:!0}})],s.prototype,"otherChoice",void 0),e([t({type:["multiple-choice"],json:{read:!1,write:!0}})],s.prototype,"type",void 0),s=h=e([o("esri.form.elements.inputs.MultipleChoiceInput")],s);const l=s;export{l as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
function t(t){return"barcode-scanner"===t.type}function e(t){return"combo-box"===t.type}function n(t){return"date-picker"===t.type}function r(t){return"datetime-picker"===t.type}function u(t){return"timestampoffset-picker"===t.type}function
|
|
2
|
+
function t(t){return"barcode-scanner"===t.type}function e(t){return"combo-box"===t.type}function n(t){return"date-picker"===t.type}function r(t){return"datetime-picker"===t.type}function u(t){return"multiple-choice"===t.type}function i(t){return"timestampoffset-picker"===t.type}function c(t){return"radio-buttons"===t.type}function o(t){return"switch"===t.type}function p(t){return"text-area"===t.type}function f(t){return"text-box"===t.type}function y(t){return"time-picker"===t.type}export{t as isBarcodeScannerInput,e as isComboBoxInput,n as isDatePickerInput,i as isDateTimeOffsetPickerInput,r as isDateTimePickerInput,u as isMultipleChoiceInput,c as isRadioButtonsInput,o as isSwitchInput,p as isTextAreaInput,f as isTextBoxInput,y as isTimePickerInput};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { JSONSupport } from "../../../../core/JSONSupport.js";
|
|
2
|
+
|
|
3
|
+
export interface ChoiceProperties extends Partial<Pick<Choice, "label" | "value">> {}
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Defines a choice in a [MultipleChoiceInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/MultipleChoiceInput/).
|
|
7
|
+
*
|
|
8
|
+
* @since 5.1
|
|
9
|
+
*/
|
|
10
|
+
export default class Choice extends JSONSupport {
|
|
11
|
+
constructor(properties?: ChoiceProperties);
|
|
12
|
+
/**
|
|
13
|
+
* The label shown for the choice.
|
|
14
|
+
*
|
|
15
|
+
* @default ""
|
|
16
|
+
*/
|
|
17
|
+
accessor label: string;
|
|
18
|
+
/**
|
|
19
|
+
* The stored value for the choice.
|
|
20
|
+
*
|
|
21
|
+
* @default ""
|
|
22
|
+
*/
|
|
23
|
+
accessor value: string;
|
|
24
|
+
/**
|
|
25
|
+
* Creates a deep clone of the `Choice` class.
|
|
26
|
+
*
|
|
27
|
+
* @returns A deep clone of the `Choice` instance.
|
|
28
|
+
*/
|
|
29
|
+
clone(): Choice;
|
|
30
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../../../core/JSONSupport.js";import{property as o,subclass as r}from"../../../../core/accessorSupport/decorators.js";var s;let l=s=class extends t{constructor(e){super(e),this.label="",this.value=""}clone(){return new s({label:this.label,value:this.value})}};e([o({type:String,json:{write:!0}})],l.prototype,"label",void 0),e([o({type:String,json:{write:!0}})],l.prototype,"value",void 0),l=s=e([r("esri.form.elements.inputs.multipleChoice.Choice")],l);const i=l;export{i as default};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { JSONSupport } from "../../../../core/JSONSupport.js";
|
|
2
|
+
|
|
3
|
+
export interface OtherChoiceProperties extends Partial<Pick<OtherChoice, "fieldName" | "hint" | "label">> {}
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Defines the configuration for the `other` choice in a [MultipleChoiceInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/MultipleChoiceInput/).
|
|
7
|
+
*
|
|
8
|
+
* @since 5.1
|
|
9
|
+
*/
|
|
10
|
+
export default class OtherChoice extends JSONSupport {
|
|
11
|
+
constructor(properties?: OtherChoiceProperties);
|
|
12
|
+
/**
|
|
13
|
+
* The name of the field used to store the `other` choice value.
|
|
14
|
+
*
|
|
15
|
+
* @default ""
|
|
16
|
+
*/
|
|
17
|
+
accessor fieldName: string;
|
|
18
|
+
/** A string representing placeholder text when 'Other' choice is selected. */
|
|
19
|
+
accessor hint: string | null | undefined;
|
|
20
|
+
/** The label used for the `other` choice. */
|
|
21
|
+
accessor label: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a deep clone of the `OtherChoice` class.
|
|
24
|
+
*
|
|
25
|
+
* @returns A deep clone of the `OtherChoice` instance.
|
|
26
|
+
*/
|
|
27
|
+
clone(): OtherChoice;
|
|
28
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../../../core/JSONSupport.js";import{property as o,subclass as i}from"../../../../core/accessorSupport/decorators.js";var r;let s=r=class extends e{constructor(t){super(t),this.fieldName="",this.hint=null,this.label=null}clone(){return new r({fieldName:this.fieldName,hint:this.hint,label:this.label})}};t([o({type:String,json:{write:!0}})],s.prototype,"fieldName",void 0),t([o({type:String,json:{write:!0}})],s.prototype,"hint",void 0),t([o({type:String,json:{write:!0}})],s.prototype,"label",void 0),s=r=t([i("esri.form.elements.inputs.multipleChoice.OtherChoice")],s);const l=s;export{l as default};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* import DatePickerInput from "@arcgis/core/form/elements/inputs/DatePickerInput.js";
|
|
10
10
|
* import DateTimeOffsetPickerInput from "@arcgis/core/form/elements/inputs/DateTimeOffsetPickerInput.js";
|
|
11
11
|
* import DateTimePickerInput from "@arcgis/core/form/elements/inputs/DateTimePickerInput.js";
|
|
12
|
+
* import MultipleChoiceInput from "@arcgis/core/form/elements/inputs/MultipleChoiceInput.js";
|
|
12
13
|
* import RadioButtonsInput from "@arcgis/core/form/elements/inputs/RadioButtonsInput.js";
|
|
13
14
|
* import SwitchInput from "@arcgis/core/form/elements/inputs/SwitchInput.js";
|
|
14
15
|
* import TextAreaInput from "@arcgis/core/form/elements/inputs/TextAreaInput.js";
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
* You can use this module to import them on a single line:
|
|
20
21
|
*
|
|
21
22
|
* ```js
|
|
22
|
-
* import { BarcodeScannerInput, ComboBoxInput, DatePickerInput, DateTimeOffsetPickerInput, DateTimePickerInput, RadioButtonsInput, SwitchInput, TextAreaInput, TextBoxInput, TimePickerInput } from "@arcgis/core/form/elements/inputs.js";
|
|
23
|
+
* import { BarcodeScannerInput, ComboBoxInput, DatePickerInput, DateTimeOffsetPickerInput, DateTimePickerInput, MultipleChoiceInput, RadioButtonsInput, SwitchInput, TextAreaInput, TextBoxInput, TimePickerInput } from "@arcgis/core/form/elements/inputs.js";
|
|
23
24
|
* ```
|
|
24
25
|
*
|
|
25
26
|
* This module also allows you to implement [type guards](https://basarat.gitbook.io/typescript/type-system/typeguard)
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
* @see [DatePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DatePickerInput/)
|
|
48
49
|
* @see [DateTimeOffsetPickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DateTimeOffsetPickerInput/)
|
|
49
50
|
* @see [DateTimePickerInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/DateTimePickerInput/)
|
|
51
|
+
* @see [MultipleChoiceInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/MultipleChoiceInput/)
|
|
50
52
|
* @see [RadioButtonsInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/RadioButtonsInput/)
|
|
51
53
|
* @see [SwitchInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/SwitchInput/)
|
|
52
54
|
* @see [TextAreaInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/TextAreaInput/)
|
|
@@ -58,6 +60,7 @@ import type ComboBoxInputClass from "./inputs/ComboBoxInput.js";
|
|
|
58
60
|
import type DatePickerInputClass from "./inputs/DatePickerInput.js";
|
|
59
61
|
import type DateTimeOffsetPickerInputClass from "./inputs/DateTimeOffsetPickerInput.js";
|
|
60
62
|
import type DateTimePickerInputClass from "./inputs/DateTimePickerInput.js";
|
|
63
|
+
import type MultipleChoiceInputClass from "./inputs/MultipleChoiceInput.js";
|
|
61
64
|
import type RadioButtonsInputClass from "./inputs/RadioButtonsInput.js";
|
|
62
65
|
import type SwitchInputClass from "./inputs/SwitchInput.js";
|
|
63
66
|
import type TextAreaInputClass from "./inputs/TextAreaInput.js";
|
|
@@ -65,7 +68,7 @@ import type TextBoxInputClass from "./inputs/TextBoxInput.js";
|
|
|
65
68
|
import type TimePickerInputClass from "./inputs/TimePickerInput.js";
|
|
66
69
|
|
|
67
70
|
/** Form element input types. */
|
|
68
|
-
export type Input = BarcodeScannerInputClass | ComboBoxInputClass | DatePickerInputClass | DateTimeOffsetPickerInputClass | DateTimePickerInputClass | RadioButtonsInputClass | SwitchInputClass | TextAreaInputClass | TextBoxInputClass | TimePickerInputClass;
|
|
71
|
+
export type Input = BarcodeScannerInputClass | ComboBoxInputClass | DatePickerInputClass | DateTimeOffsetPickerInputClass | DateTimePickerInputClass | MultipleChoiceInputClass | RadioButtonsInputClass | SwitchInputClass | TextAreaInputClass | TextBoxInputClass | TimePickerInputClass;
|
|
69
72
|
|
|
70
73
|
/** The `BarcodeScannerInput` class defines the desired user interface is 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. */
|
|
71
74
|
export const BarcodeScannerInput: typeof BarcodeScannerInputClass;
|
|
@@ -97,6 +100,12 @@ export const DateTimePickerInput: typeof DateTimePickerInputClass;
|
|
|
97
100
|
/** The `DateTimePickerInput` class defines the desired user interface for editing date (including time) fields in a form. */
|
|
98
101
|
export type DateTimePickerInput = DateTimePickerInputClass;
|
|
99
102
|
|
|
103
|
+
/** The `MultipleChoiceInput` class defines the desired user interface for a multiple choice group. */
|
|
104
|
+
export const MultipleChoiceInput: typeof MultipleChoiceInputClass;
|
|
105
|
+
|
|
106
|
+
/** The `MultipleChoiceInput` class defines the desired user interface for a multiple choice group. */
|
|
107
|
+
export type MultipleChoiceInput = MultipleChoiceInputClass;
|
|
108
|
+
|
|
100
109
|
/** The `RadioButtonsInput` class defines the desired user interface for a radio button group. */
|
|
101
110
|
export const RadioButtonsInput: typeof RadioButtonsInputClass;
|
|
102
111
|
|
package/form/elements/inputs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import t from"./inputs/BarcodeScannerInput.js";import p from"./inputs/ComboBoxInput.js";import i from"./inputs/DatePickerInput.js";import o from"./inputs/DateTimeOffsetPickerInput.js";import
|
|
2
|
+
import t from"./inputs/BarcodeScannerInput.js";import p from"./inputs/ComboBoxInput.js";import i from"./inputs/DatePickerInput.js";import o from"./inputs/DateTimeOffsetPickerInput.js";import e from"./inputs/DateTimePickerInput.js";import r from"./inputs/Input.js";import m from"./inputs/MultipleChoiceInput.js";import s from"./inputs/RadioButtonsInput.js";import n from"./inputs/SwitchInput.js";import u from"./inputs/TextAreaInput.js";import c from"./inputs/TextBoxInput.js";import a from"./inputs/TimePickerInput.js";const f=t,j=p,I=i,k=o,x=e,b=m,d=s,T=n,h=u,l=c,B=a,P={base:r,key:"type",typeMap:{"barcode-scanner":f,"combo-box":j,"date-picker":I,"datetime-picker":x,"multiple-choice":b,"timestampoffset-picker":k,"radio-buttons":d,switch:T,"text-area":h,"text-box":l,"time-picker":B}};export{f as BarcodeScannerInput,j as ComboBoxInput,I as DatePickerInput,k as DateTimeOffsetPickerInput,x as DateTimePickerInput,b as MultipleChoiceInput,d as RadioButtonsInput,T as SwitchInput,h as TextAreaInput,l as TextBoxInput,B as TimePickerInput,P as types};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{ensureOneOfType as t}from"../../core/accessorSupport/ensureType.js";import e from"../elements/AttachmentElement.js";import o from"../elements/Element.js";import p from"../elements/FieldElement.js";import r from"../elements/RelationshipElement.js";import i from"../elements/TextElement.js";import n from"../elements/UtilityNetworkAssociationsElement.js";const s=t=>"field"===t.type,u=t=>"group"===t.type,m=t=>"text"===t.type,y=t=>"
|
|
2
|
+
import{ensureOneOfType as t}from"../../core/accessorSupport/ensureType.js";import e from"../elements/AttachmentElement.js";import o from"../elements/Element.js";import p from"../elements/FieldElement.js";import r from"../elements/RelationshipElement.js";import i from"../elements/TextElement.js";import n from"../elements/UtilityNetworkAssociationsElement.js";const s=t=>"field"===t.type,u=t=>"group"===t.type,m=t=>"text"===t.type,y=t=>"attachment"===t.type,l=t=>"relationship"===t.type,a=t=>"utilityNetworkAssociations"===t.type;function f(t){return c(t)||h(t)}function c(t){return"text-area"===t.type}function h(t){return"text-box"===t.type}function x(t){return{typesWithGroup:{base:o,key:"type",typeMap:{attachment:e,field:p,group:t,relationship:r,text:i,utilityNetworkAssociations:n}},typesWithoutGroup:{base:o,key:"type",typeMap:{attachment:e,field:p,relationship:r,text:i,utilityNetworkAssociations:n}}}}function G(t,e,o=!0){if(!t)return null;const p=o?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter(t=>p[t.type]).map(t=>p[t.type].fromJSON(t))}function W(t,e,o=!0){if(!t)return null;const p=o?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter(t=>p[t.type]).map(t=>t.toJSON())}function j(e,o,p=!0){return e?e.map(e=>t(p?o.typesWithGroup:o.typesWithoutGroup,e)):null}export{x as buildTypeMaps,j as ensureType,G as fromJSON,y as isAttachmentElement,s as isFieldElement,u as isGroupElement,l as isRelationshipElement,c as isTextAreaInput,h as isTextBoxInput,m as isTextElement,f as isTextInput,a as isUtilityNetworkAssociationsElement,W as toJSON};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{deprecatedModule as e}from"../core/deprecate.js";import n from"../core/Logger.js";import{ensureClass as r}from"../core/accessorSupport/ensureType.js";import{assertNotMesh as t}from"./asserts.js";import{
|
|
2
|
+
import{deprecatedModule as e}from"../core/deprecate.js";import n from"../core/Logger.js";import{ensureClass as r}from"../core/accessorSupport/ensureType.js";import{assertNotMesh as t}from"./asserts.js";import{g as o}from"../chunks/geometryEngineBase.js";import i from"./SpatialReference.js";import{hydratedAdapter as u}from"./geometryAdapters/hydrated.js";function c(e){const n=Array.isArray(e)?e[0].spatialReference:e.spatialReference;return n?r(i,n):i.WGS84}function f(e){return o.extendedSpatialReferenceInfo(e)}function s(e,n){return t(e),o.clip(u,c(e),e,n)}function a(e,n){return t(e),o.cut(u,c(e),e,n)}function l(e,n){return t(e),t(n),o.contains(u,c(e),e,n)}function p(e,n){return t(e),t(n),o.crosses(u,c(e),e,n)}function m(e,n,r){return t(e),t(n),o.distance(u,c(e),e,n,r)}function g(e,n){return t(e),t(n),o.equals(u,c(e),e,n)}function d(e,n){return t(e),t(n),o.intersects(u,c(e),e,n)}function h(e,n){return t(e),t(n),o.touches(u,c(e),e,n)}function w(e,n){return t(e),t(n),o.within(u,c(e),e,n)}function y(e,n){return t(e),t(n),o.disjoint(u,c(e),e,n)}function R(e,n){return t(e),t(n),o.overlaps(u,c(e),e,n)}function x(e,n,r){return t(e),t(n),o.relate(u,c(e),e,n,r)}function S(e){return t(e),o.isSimple(u,c(e),e)}function j(e){return t(e),o.simplify(u,c(e),e)}function A(e,n=!1){return o.convexHull(u,c(e),e,n)}function E(e,n){return t(n),o.difference(u,c(e),e,n)}function L(e,n){return t(n),o.symmetricDifference(u,c(e),e,n)}function T(e,n){return t(n),o.intersect(u,c(e),e,n)}function D(e){return o.union(u,c(e),e)}function O(e,n,r,t,i,f){return o.offset(u,c(e),e,n,r,t,i,f)}function v(e,n,r,t=!1){return o.buffer(u,c(e),e,n,r,t)}function J(e,n,r,t,i,f){return o.geodesicBuffer(u,c(e),e,n,r,t,i,f)}function N(e,n,r=!0){return t(e),o.nearestCoordinate(u,c(e),e,n,r)}function V(e,n){return t(e),o.nearestVertex(u,c(e),e,n)}function z(e,n,r,i){return t(e),o.nearestVertices(u,c(e),e,n,r,i)}function B(e){return"xmin"in e?"center"in e?e.center:null:"x"in e?e:"extent"in e?e.extent?.center??null:null}function G(e,n,r){if(null==e)throw new U;const t=e.spatialReference;if(null==(r=r??B(e)))throw new U;const i=e.constructor.fromJSON(o.rotate(e,n,r));return i.spatialReference=t,i}function H(e,n){if(null==e)throw new U;const r=e.spatialReference;if(null==(n=n??B(e)))throw new U;const t=e.constructor.fromJSON(o.flipHorizontal(e,n));return t.spatialReference=r,t}function I(e,n){if(null==e)throw new U;const r=e.spatialReference;if(null==(n=n??B(e)))throw new U;const t=e.constructor.fromJSON(o.flipVertical(e,n));return t.spatialReference=r,t}function P(e,n,r,i){return t(e),o.generalize(u,c(e),e,n,r,i)}function b(e,n,r){return t(e),o.densify(u,c(e),e,n,r)}function k(e,n,r,i=0){return t(e),o.geodesicDensify(u,c(e),e,n,r,i)}function q(e,n){return t(e),o.planarArea(u,c(e),e,n)}function C(e,n){return t(e),o.planarLength(u,c(e),e,n)}function W(e,n,r){return t(e),o.geodesicArea(u,c(e),e,n,r)}function F(e,n,r){return t(e),o.geodesicLength(u,c(e),e,n,r)}function K(e,n){return o.intersectLinesToPoints(u,c(e),e,n)}function M(e,n){o.changeDefaultSpatialReferenceTolerance(e,n)}function Q(e){o.clearDefaultSpatialReferenceTolerance(e)}e(n.getLogger("esri.geometry.geometryEngine"),"esri.geometry.geometryEngine",{see:"https://arcg.is/1PiGTm1",version:"4.32",warnOnce:!0});class U extends Error{constructor(){super("Illegal Argument Exception")}}export{v as buffer,M as changeDefaultSpatialReferenceTolerance,Q as clearDefaultSpatialReferenceTolerance,s as clip,l as contains,A as convexHull,p as crosses,a as cut,b as densify,E as difference,y as disjoint,m as distance,g as equals,f as extendedSpatialReferenceInfo,H as flipHorizontal,I as flipVertical,P as generalize,W as geodesicArea,J as geodesicBuffer,k as geodesicDensify,F as geodesicLength,T as intersect,K as intersectLinesToPoints,d as intersects,S as isSimple,N as nearestCoordinate,V as nearestVertex,z as nearestVertices,O as offset,R as overlaps,q as planarArea,C as planarLength,x as relate,G as rotate,j as simplify,L as symmetricDifference,h as touches,D as union,w as within};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{g as n}from"../chunks/geometryEngineBase.js";import{jsonAdapter as e}from"./geometryAdapters/json.js";function r(e){return n.extendedSpatialReferenceInfo(e)}function t(r,t,u){return n.clip(e,r,t,u)}function u(r,t,u){return n.cut(e,r,t,u)}function i(r,t,u){return n.contains(e,r,t,u)}function o(r,t,u){return n.crosses(e,r,t,u)}function c(r,t,u,i){return n.distance(e,r,t,u,i)}function f(r,t,u){return n.equals(e,r,t,u)}function l(r,t,u){return n.intersects(e,r,t,u)}function a(r,t,u){return n.touches(e,r,t,u)}function s(r,t,u){return n.within(e,r,t,u)}function p(r,t,u){return n.disjoint(e,r,t,u)}function g(r,t,u){return n.overlaps(e,r,t,u)}function m(r,t,u,i){return n.relate(e,r,t,u,i)}function d(r,t){return n.isSimple(e,r,t)}function h(r,t){return n.simplify(e,r,t)}function w(r,t,u=!1){return n.convexHull(e,r,t,u)}function x(r,t,u){return n.difference(e,r,t,u)}function E(r,t,u){return n.symmetricDifference(e,r,t,u)}function y(r,t,u){return n.intersect(e,r,t,u)}function A(r,t,u=null){return n.union(e,r,t,u)}function R(r,t,u,i,o,c,f){return n.offset(e,r,t,u,i,o,c,f)}function j(r,t,u,i,o=!1){return n.buffer(e,r,t,u,i,o)}function D(r,t,u,i,o,c,f){return n.geodesicBuffer(e,r,t,u,i,o,c,f)}function I(r,t,u,i=!0){return n.nearestCoordinate(e,r,t,u,i)}function S(r,t,u){return n.nearestVertex(e,r,t,u)}function L(r,t,u,i,o){return n.nearestVertices(e,r,t,u,i,o)}function T(e,r,t,u){if(null==r||null==u)throw new Error("Illegal Argument Exception");const i=n.rotate(r,t,u);return i.spatialReference=e,i}function V(e,r,t){if(null==r||null==t)throw new Error("Illegal Argument Exception");const u=n.flipHorizontal(r,t);return u.spatialReference=e,u}function v(e,r,t){if(null==r||null==t)throw new Error("Illegal Argument Exception");const u=n.flipVertical(r,t);return u.spatialReference=e,u}function z(r,t,u,i,o){return n.generalize(e,r,t,u,i,o)}function B(r,t,u,i){return n.densify(e,r,t,u,i)}function H(r,t,u,i,o=0){return n.geodesicDensify(e,r,t,u,i,o)}function b(r,t,u){return n.planarArea(e,r,t,u)}function k(r,t,u){return n.planarLength(e,r,t,u)}function q(r,t,u,i){return n.geodesicArea(e,r,t,u,i)}function C(r,t,u,i){return n.geodesicLength(e,r,t,u,i)}function P(r,t,u){return null==t||null==u?[]:n.intersectLinesToPoints(e,r,t,u)}function F(e,r){n.changeDefaultSpatialReferenceTolerance(e,r)}function G(e){n.clearDefaultSpatialReferenceTolerance(e)}export{j as buffer,F as changeDefaultSpatialReferenceTolerance,G as clearDefaultSpatialReferenceTolerance,t as clip,i as contains,w as convexHull,o as crosses,u as cut,B as densify,x as difference,p as disjoint,c as distance,f as equals,r as extendedSpatialReferenceInfo,V as flipHorizontal,v as flipVertical,z as generalize,q as geodesicArea,D as geodesicBuffer,H as geodesicDensify,C as geodesicLength,y as intersect,P as intersectLinesToPoints,l as intersects,d as isSimple,I as nearestCoordinate,S as nearestVertex,L as nearestVertices,R as offset,g as overlaps,b as planarArea,k as planarLength,m as relate,T as rotate,h as simplify,E as symmetricDifference,a as touches,A as union,s as within};
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
* >
|
|
22
22
|
* > **Known Limitations**
|
|
23
23
|
* >
|
|
24
|
-
* > This operator currently only supports [equation-based geographic transformations](https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/geographic-coordinate-system-transformation.htm).
|
|
25
|
-
* >
|
|
26
|
-
* >
|
|
27
|
-
* >
|
|
24
|
+
* > * This operator currently only supports [equation-based geographic transformations](https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/geographic-coordinate-system-transformation.htm).
|
|
25
|
+
* > * Grid-based transformations are not supported.
|
|
26
|
+
* > * The result geometry is not guaranteed to be simple. Apply the [simplifyOperator](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/) to ensure the result is topologically simple.
|
|
27
|
+
* > * Projecting an Extent may return an Extent with a larger area than the input.
|
|
28
|
+
* > * Vertical coordinate system projections are not supported.
|
|
28
29
|
*
|
|
29
30
|
* > [!WARNING]
|
|
30
31
|
* >
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import t from"../../../core/Error.js";import{memoize as e}from"../../../core/memoize.js";import{fromJSON as s}from"../jsonUtils.js";import{interpolateCubicBezier as n}from"./bezierCurveUtils.js";import{deriveCircleFromCircularArc as i}from"./circularArcUtils.js";import{isCurvedGeometry as r,
|
|
2
|
+
import t from"../../../core/Error.js";import{memoize as e}from"../../../core/memoize.js";import{fromJSON as s}from"../jsonUtils.js";import{interpolateCubicBezier as n}from"./bezierCurveUtils.js";import{deriveCircleFromCircularArc as i}from"./circularArcUtils.js";import{isCurvedGeometry as r,getCurves as a,getEndpoint as o,isCoordinate as c,isBezierCurve as h,isCircularArc as u,isEllipticArc4 as p,hasUnsupportedCurve as l,isEllipticArc7 as m,cloneCurve as d}from"./curveUtils.js";import{deriveCircleFromEllipticArc4 as f}from"./ellipticArc4Utils.js";import{deriveEllipse as S,interpolateEllipse as v}from"./ellipticArc7Utils.js";import{interpolateSegment as E,pointToSegmentDistance2 as g,distance2 as x}from"./mathUtils.js";const M={maxSegmentLength:0,maxDeviation:0,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1},P=100,k=1e-6,C=[0,0];function _(t){return{maxSegmentLength:t.maxSegmentLength??M.maxSegmentLength,maxDeviation:t.maxDeviation??M.maxDeviation,maxSegmentsPerCurve:t.maxSegmentsPerCurve??M.maxSegmentsPerCurve,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??M.minSegmentsPerCurve,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:n,minSegmentsPerCurve:i}){const r=s*s,a=e*e,o=1/n,c=this.interpolate(0),h=this.interpolate(1);x(this.curveStart,c)>k&&t.push(c),this.initialize(c,h);const u=1/i;for(let p=i-1;p>0;p--){const t=p*u;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===r||!isFinite(r)||x(this.arcStart,this.arcEnd)<r)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return x(this.curveEnd,h)>k&&t.push([...this.curveEnd]),t}}class R extends y{constructor(t,e){const[s,n,i]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[n,i],this._arcControlPoints=[n,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:n,tEnd:i}=this,[r,a]=this._arcControlPoints,o=(t-n)/(i-n),c=E([],e,r,o),h=E(C,r,a,o),u=E([],a,s,o),p=E([],c,h,o),l=E([],h,u,o),m=E([],p,l,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([l,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=p,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[i,r]=this._curveControlPoints;return n(e,i,r,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,n]=this._arcControlPoints;return Math.max(g(s,t,e),g(n,t,e))}}class w extends y{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=S(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return v(this._derivedEllipse,t)}getDeviation2(){return g(this._arcMid,this.arcStart,this.arcEnd)}}function b(t,e,s,{cx:n,cy:i,radius:r,thetaStart:a,thetaEnd:o,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:l}){if(c)return t.push([...s]),t;const m=2*r,d=[n+r*Math.cos(a),i+r*Math.sin(a)],f=[n+r*Math.cos(o),i+r*Math.sin(o)];x(e,d)>k&&t.push(d);const S=Math.abs(o-a),v=u>0&&u<m?2*Math.asin(u/m):S,E=h>0&&h<=r?2*Math.acos(1-h/r):S,g=Math.min(v,E),M=Math.min(p,Math.max(l,Math.ceil(Math.abs(S/g)))),P=1/M;for(let x=1;x<M;x++){const e=x*P,s=a*(1-e)+o*e;t.push([n+r*Math.cos(s),i+r*Math.sin(s)])}return t.push(f),x(s,f)>k&&t.push([...s]),t}function j(t,e,s,n){return new R(e,s).densify(t,n)}function Z(t,e,s,n){const r=i(e,s),[a]=s.c;return b(t,e,a,r,n)}function D(t,e,s,n){const i=f(e,s),[r]=s.a;return b(t,e,r,i,n)}function z(t,e,s,n){const[i,r,a,o,c,h,u]=s.a;return 0===h||0===u?(t.push([...i]),t):new w(e,s).densify(t,n)}function A(t,e,s,n){return c(s)?(t.push([...s]),t):h(s)?j(t,e,s,n):u(s)?Z(t,e,s,n):p(s)?D(t,e,s,n):z(t,e,s,n)}function L(t,e={}){if(!r(t))return t;const s=_(e),n=a(t),i=[];for(const r of n){const t=[];for(let e=0;e<r.length-1;e++){const n=e+1,i=[...o(r[e])];0===e&&t.push(i);A(t,i,r[n],s)}i.push(t)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const U=e(t=>({maxDeviation:0,maxSegmentLength:t*P,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));function T(t,e,s){if(!r(t))return t;const n=new Set(e),i=_(s),l=a(t),f=[];let S=!1;for(const r of l){const t=[];for(let e=0;e<r.length-1;e++){const s=e+1,a=[...o(r[e])];0===e&&t.push(a);const l=r[s];c(l)?t.push([...l]):h(l)&&!n.has("cubic-bezier")?j(t,a,l,i):u(l)&&!n.has("circular-arc")?Z(t,a,l,i):p(l)&&!n.has("elliptic-arc")?D(t,a,l,i):m(l)&&!n.has("elliptic-arc")?z(t,a,l,i):(t.push(d(l)),S=!0)}f.push(t)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...S?{curvePaths:f}:{paths:f}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...S?{curveRings:f}:{rings:f}}}async function I(t,e,n){const i=new Set(e);return await J(t,i,n),t.map(t=>{if(!t||!r(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const i=U(n);return s(T(t,e,i))})}async function J(e,s,n){let i=null;for(const a of e)if(a&&r(a)&&null==a.spatialReference.xyTolerance&&l(a,s)){const e=a.spatialReference;if(!e)throw new t("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const s=N(e);if(n.has(s))a.spatialReference=n.get(s);else{i||(i=await import("../../operators/support/apiConverter.js"));const r=i.fromSpatialReference(e),o=r?.getTolerance();if(null==o)throw new t("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=a.spatialReference.clone();c.read({xyTolerance:o}),a.spatialReference=c,n.set(s,c)}}}function N(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}export{L as densifyCurvedGeometry,I as densifyUnsupportedCurves,U as getAutoDensifyOptions,N as getCacheKey,T as selectiveDensifyCurvedGeometryJSON};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import
|
|
2
|
+
import e from"../../config.js";import{Cyclical as t}from"../../core/Cyclical.js";import n from"../../core/Error.js";import o from"../../core/Logger.js";import r from"../Polygon.js";import s from"../Polyline.js";import i from"../SpatialReference.js";import{cutParams as l,offsetMagnitude as c,updatePolyGeometry as f,getGeometryParts as u}from"./normalizeUtilsCommon.js";import{getInfo as p}from"./spatialReferenceUtils.js";import{geographicToWebMercator as a,webMercatorToGeographic as h}from"./webMercatorUtils.js";import{isCurvedGeometry as m}from"./curves/curveUtils.js";import{densifyCurvedGeometry as g}from"./curves/densifyCurvedGeometry.js";import{cut as y}from"../../rest/geometryService/cut.js";import{simplify as x}from"../../rest/geometryService/simplify.js";const d=()=>o.getLogger("esri.geometry.support.normalizeUtils");function M(e){return"polygon"===e.type}function j(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function b(e){const t=[];let n=0,o=0;for(let r=0;r<e.length;r++){const s=e[r];let i=null;for(let e=0;e<s.length;e++)i=s[e],t.push(i),0===e?(n=i[0],o=n):(n=Math.min(n,i[0]),o=Math.max(o,i[0]));i&&t.push([(n+o)/2,0])}return t}function v(e,t){if(!(e instanceof s||e instanceof r)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw d().error(e),new n("internal:geometry",e)}const o=u(e),i=[];for(const n of o){const e=[];i.push(e),e.push([n[0][0],n[0][1]]);for(let o=0;o<n.length-1;o++){const r=n[o][0],s=n[o][1],i=n[o+1][0],l=n[o+1][1],c=Math.sqrt((i-r)*(i-r)+(l-s)*(l-s)),f=(l-s)/c,u=(i-r)/c,p=c/t;if(p>1){for(let l=1;l<=p-1;l++){const n=l*t,o=u*n+r,i=f*n+s;e.push([o,i])}const n=(c+Math.floor(p-1)*t)/2,o=u*n+r,i=f*n+s;e.push([o,i])}e.push([i,l])}}return M(e)?new r({rings:i,spatialReference:e.spatialReference}):new s({paths:i,spatialReference:e.spatialReference})}function R(e,t,n){const o=1e6;if(t){const t=m(e)?g(e,{maxSegmentLength:o}):v(e,o);e=h(t,!0)}return n&&(e=f(e,n)),e}function L(e,t,n){if(Array.isArray(e)){const o=e[0];if(o>t){const n=c(o,t);e[0]=o+n*(-2*t)}else if(o<n){const t=c(o,n);e[0]=o+t*(-2*n)}}else{const o=e.x;if(o>t){const n=c(o,t);e=e.clone().offset(n*(-2*t),0)}else if(o<n){const t=c(o,n);e=e.clone().offset(t*(-2*n),0)}}return e}function P(e,t){let n=-1;for(let o=0;o<t.cutIndexes.length;o++){const r=t.cutIndexes[o],s=t.geometries[o],i=u(s);for(let e=0;e<i.length;e++){const t=i[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const o=t[e][0];n=o>n?o:n}n=Number(n.toFixed(9));const o=-360*c(n,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(o,0))}return!0}})}if(r===n){if(j(e))for(const t of u(s))e[r]=e[r].addRing(t);else if(w(e))for(const t of u(s))e[r]=e[r].addPath(t)}else n=r,e[r]=s}return e}async function S(t,n,o){if(!Array.isArray(t))return S([t],n);n&&"string"!=typeof n&&d().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof n?n:n?.url??e.geometryServiceUrl;let u,h,m,g,M,j,w,b,v=0;const U=[],z=[];for(const e of t)if(null!=e)if(u||(u=e.spatialReference,h=p(u),m=u.isWebMercator,j=m?102100:4326,g=l[j].maxX,M=l[j].minX,w=l[j].plus180Line,b=l[j].minus180Line),h)if("mesh"===e.type)z.push(e);else if("point"===e.type)z.push(L(e.clone(),g,M));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(e=>L(e,g,M)),z.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,h);z.push(t.rings?new r(t):t)}else if(e.extent){const t=e.extent,n=c(t.xmin,M)*(2*g);let o=0===n?e.clone():f(e.clone(),n);t.offset(n,0);let{xmin:r,xmax:s}=t;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),t.intersects(w)&&s!==g?(v=s>v?s:v,o=R(o,m),U.push(o),z.push("cut")):t.intersects(b)&&r!==M?(v=s*(2*g)>v?s*(2*g):v,o=R(o,m,360),U.push(o),z.push("cut")):z.push(o)}else z.push(e.clone());else z.push(e);else z.push(e);let A=c(v,g),C=-90;const F=A,N=new s;for(;A>0;){const e=360*A-180;N.addPath([[e,C],[e,-1*C]]),C*=-1,A--}if(U.length>0&&F>0){const e=P(U,await y(i,U,N,o)),n=[],r=[];for(let o=0;o<z.length;o++){const s=z[o];if("cut"!==s)r.push(s);else{const s=e.shift(),i=t[o];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&s.rings.length>=i.rings.length?(n.push(s),r.push("simplify")):r.push(m?a(s):s)}}if(!n.length)return r;const s=await x(i,n,o),l=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?l.push(e):l.push(m?a(s.shift()):s.shift())}return l}const W=[];for(let e=0;e<z.length;e++){const t=z[e];if("cut"!==t)W.push(t);else{const e=U.shift();W.push(!0===m?a(e):e)}}return W}function U(e){if(!e)return null;const t=e.extent;if(!t)return null;const n=e.spatialReference&&p(e.spatialReference);if(!n)return t;const[o,r]=n.valid,s=2*r,{width:i}=t;let l,{xmin:c,xmax:f}=t;if([c,f]=[f,c],"extent"===e.type||0===i||i<=r||i>s||c<o||f>r)return t;switch(e.type){case"polygon":if(!(e.rings.length>1))return t;l=b(e.rings);break;case"polyline":if(!(e.paths.length>1))return t;l=b(e.paths);break;case"multipoint":l=e.points}const u=t.clone();for(let p=0;p<l.length;p++){let e=l[p][0];e<0?(e+=r,f=Math.max(e,f)):(e-=r,c=Math.min(e,c))}return u.xmin=c,u.xmax=f,u.width<i?(u.xmin-=r,u.xmax-=r,u):t}function z(e,t,n){const o=p(n);if(null==o)return e;const[r,s]=o.valid,i=2*s;let l=0,c=0;t>s?l=Math.ceil(Math.abs(t-s)/i):t<r&&(l=-Math.ceil(Math.abs(t-r)/i)),e>s?c=Math.ceil(Math.abs(e-s)/i):e<r&&(c=-Math.ceil(Math.abs(e-r)/i));let f=e+(l-c)*i;const u=f-t;return u>s?f-=i:u<r&&(f+=i),f}function A(e,t){const n=C(t);return n?.normalize(e)??e}function C(e){const n=p(e);if(null==n)return null;const[o,r]=n.valid;return new t(o,r)}const F=C(i.WGS84),N=C(i.WebMercator);export{C as createSpatialReferenceCyclical,F as gcsCyclical,z as getClosestDenormalizedXToReference,U as getDenormalizedExtent,S as normalizeCentralMeridian,A as normalizeMapX,v as straightLineDensify,N as webMercatorCyclical};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import e from"../Polyline.js";import n from"../SpatialReference.js";import{isPolygon as t}from"./jsonTypeUtils.js";const
|
|
2
|
+
import e from"../Polyline.js";import n from"../SpatialReference.js";import{isPolygon as t}from"./jsonTypeUtils.js";import{isCurvedGeometry as o,isCircularArc as r,isEllipticArc as i,isBezierCurve as s}from"./curves/curveUtils.js";const c={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new e({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.WebMercator}),minus180Line:new e({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new e({paths:[[[180,-180],[180,180]]],spatialReference:n.WGS84}),minus180Line:new e({paths:[[[-180,-180],[-180,180]]],spatialReference:n.WGS84})}};function f(e,n){return Math.ceil((e-n)/(2*n))}function a(e,n){if(o(e))for(const t of p(e))for(const e of t){if(r(e)){const[t,o]=e.c;t[0]+=n,o[0]+=n;continue}if(i(e)){const[t,o]=e.a;t[0]+=n,o[0]+=n;continue}if(s(e)){const[t,o,r]=e.b;t[0]+=n,o[0]+=n,r[0]+=n;continue}e[0]+=n}for(const t of u(e))for(const e of t)e[0]+=n;return e}function u(e){return t(e)?e.rings:e.paths}function p(e){return t(e)?e.curveRings:e.curvePaths}export{c as cutParams,p as getCurvedGeometryParts,u as getGeometryParts,f as offsetMagnitude,a as updatePolyGeometry};
|