@arcgis/core 4.33.0-next.20250211 → 4.33.0-next.20250213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{3c23e567cfb7372c44ba.js → 0a5689348d544090006d.js} +1 -1
- package/assets/esri/core/workers/chunks/0b8bf1966653c326e95a.js +1 -0
- package/assets/esri/core/workers/chunks/{baee20c14763bef80b09.js → 1249fd2f83caeaefd8ce.js} +1 -1
- package/assets/esri/core/workers/chunks/135fb580d8afd8d60811.js +1 -0
- package/assets/esri/core/workers/chunks/{946a9890f3621d1dfbc5.js → 144e534d4ac1aafab60d.js} +1 -1
- package/assets/esri/core/workers/chunks/{cee3a38b92a48a58c4d0.js → 152becae48572299b07f.js} +1 -1
- package/assets/esri/core/workers/chunks/15ad8036736a32652c9b.js +1 -0
- package/assets/esri/core/workers/chunks/{f200dca22f9f9bbb8670.js → 17213c3fc63f580e5b73.js} +1 -1
- package/assets/esri/core/workers/chunks/211c32244e05164dcd38.js +314 -0
- package/assets/esri/core/workers/chunks/219b06cca6aa1e041f40.js +1 -0
- package/assets/esri/core/workers/chunks/24e6476f32ad2014d39d.js +1 -0
- package/assets/esri/core/workers/chunks/272662e4e28341419b4f.js +1 -0
- package/assets/esri/core/workers/chunks/282c2d52011b331d4704.js +1 -0
- package/assets/esri/core/workers/chunks/{5fbdb5fea7d6676fcf19.js → 2c1a85a801cb4d9d737e.js} +1 -1
- package/assets/esri/core/workers/chunks/2dc35c1c5d83174a2c06.js +1 -0
- package/assets/esri/core/workers/chunks/{7f87cf3d6a365d987f69.js → 30bd5b3204e09f516ea2.js} +1 -1
- package/assets/esri/core/workers/chunks/{e4651d577d297386268e.js → 32035bc69ee18b19623d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c04091eea7089dc2e864.js → 35bcb0622234b38d85b4.js} +1 -1
- package/assets/esri/core/workers/chunks/{92984981afcbb95828cd.js → 37cfd102b6ab5b959f9d.js} +1 -1
- package/assets/esri/core/workers/chunks/3835c2884c55e73dc202.js +1 -0
- package/assets/esri/core/workers/chunks/39c595734a9e9cd67e41.js +1 -0
- package/assets/esri/core/workers/chunks/{1d51c064045e9c47bd2e.js → 3bad184751fcb26c003c.js} +1 -1
- package/assets/esri/core/workers/chunks/{e468bf4ec7402942ad8c.js → 3ebdd0701e77bb28c75d.js} +1 -1
- package/assets/esri/core/workers/chunks/{a559db8654b4f83fd79b.js → 3f6516af411256d90a03.js} +1 -1
- package/assets/esri/core/workers/chunks/{c83b26ff96e39266adc2.js → 4300c80fa10c5d9141e8.js} +1 -1
- package/assets/esri/core/workers/chunks/4848a3e31632d15dc4ce.js +1 -0
- package/assets/esri/core/workers/chunks/{77764ca90bdd13ee2167.js → 486df1e042204b90b0dd.js} +2 -2
- package/assets/esri/core/workers/chunks/{77764ca90bdd13ee2167.js.LICENSE.txt → 486df1e042204b90b0dd.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/52f61e1f5972a72b6b54.js +1 -0
- package/assets/esri/core/workers/chunks/544ad8fa4777ba8ec177.js +1 -0
- package/assets/esri/core/workers/chunks/{354531dc2f0dea2ad96f.js → 5693d9ce4472a4c5959f.js} +2 -2
- package/assets/esri/core/workers/chunks/{354531dc2f0dea2ad96f.js.LICENSE.txt → 5693d9ce4472a4c5959f.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{e56647e61296643c5f84.js → 5719471414810b6a9aec.js} +1 -1
- package/assets/esri/core/workers/chunks/{1accbc048b74857269e4.js → 57924f4909f2cbe5d64c.js} +1 -1
- package/assets/esri/core/workers/chunks/{b21b152fa15896577242.js → 5b56b271afb0fadf48b4.js} +2 -2
- package/assets/esri/core/workers/chunks/{b21b152fa15896577242.js.LICENSE.txt → 5b56b271afb0fadf48b4.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{b3aeda290470dcb2bdd2.js → 5cf08ee5114273163e09.js} +1 -1
- package/assets/esri/core/workers/chunks/{76794184ba8c2e66745e.js → 629f4621ba6ffdcaa2f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{32d3657dcae89b740f8b.js → 6518954889df2e781c47.js} +2 -2
- package/assets/esri/core/workers/chunks/{32d3657dcae89b740f8b.js.LICENSE.txt → 6518954889df2e781c47.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/6c64ccf5f64b5025b239.js +1 -0
- package/assets/esri/core/workers/chunks/{220b12654b94c94f8d8a.js → 6fa1f1e431aae1794ce3.js} +1 -1
- package/assets/esri/core/workers/chunks/82facb23dfaba2819bc7.js +1 -0
- package/assets/esri/core/workers/chunks/8722d05ae9b0aa5162a4.js +1 -0
- package/assets/esri/core/workers/chunks/89960be0e525d42ccffe.js +1 -0
- package/assets/esri/core/workers/chunks/8de4280080296adb1757.js +1 -0
- package/assets/esri/core/workers/chunks/{1f443b99653708470f31.js → 96d7f47ea8fbf345101c.js} +1 -1
- package/assets/esri/core/workers/chunks/9be12d0df67e2c4c3787.js +1 -0
- package/assets/esri/core/workers/chunks/{e6087eda5e3b7e5ad3e1.js → a12afed58acff17708ca.js} +1 -1
- package/assets/esri/core/workers/chunks/a80c3ada9e09b8832e9b.js +1 -0
- package/assets/esri/core/workers/chunks/a8457210711b663059f0.js +1 -0
- package/assets/esri/core/workers/chunks/{95ad76e58452b60fb79f.js → a864ef9b584c83ebf6ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{df3d1a8d3f11d52eb30d.js → afdbdc1569b56489c14d.js} +1 -1
- package/assets/esri/core/workers/chunks/{308ec51ff4a66f7fcb0d.js → b0952b81d5be214262dd.js} +2 -2
- package/assets/esri/core/workers/chunks/{308ec51ff4a66f7fcb0d.js.LICENSE.txt → b0952b81d5be214262dd.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{89e3f7880abd014a62c0.js → b42d26123784997c66e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{4040158835f9036967cd.js → b83151b03bbeba466f82.js} +2 -2
- package/assets/esri/core/workers/chunks/{4040158835f9036967cd.js.LICENSE.txt → b83151b03bbeba466f82.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{94490937dca566fe2640.js → c061cad8323f0469e7e4.js} +1 -1
- package/assets/esri/core/workers/chunks/{fef135e55706d84d1947.js → c4ce3c35b52b7999e877.js} +1 -1
- package/assets/esri/core/workers/chunks/cbba0b6bd41d16eacb5c.js +1 -0
- package/assets/esri/core/workers/chunks/cc8eb975a543556f88ae.js +1 -0
- package/assets/esri/core/workers/chunks/{6e6422eda398774acbc7.js → d60da671aba70485050e.js} +1 -1
- package/assets/esri/core/workers/chunks/de638753a30c9aa41bad.js +1 -0
- package/assets/esri/core/workers/chunks/de87009542886fad9a2f.js +2 -0
- package/assets/esri/core/workers/chunks/{b765670b47d209d7655a.js.LICENSE.txt → de87009542886fad9a2f.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{bb73cd34fbae935ccbcc.js → dff4a9d656b84fe3e052.js} +1 -1
- package/assets/esri/core/workers/chunks/ea4c7560e64335f155f9.js +1 -0
- package/assets/esri/core/workers/chunks/eac791e3a0bb056a28f3.js +1 -0
- package/assets/esri/core/workers/chunks/f088e7db4e7ac85aaff1.js +1 -0
- package/assets/esri/core/workers/chunks/{a38cb1fff519bad8abe3.js → f0d28fe4deb7cd894765.js} +1 -1
- package/assets/esri/core/workers/chunks/{08980b1ad3d5d67c6390.js → f419aaf3bab086060894.js} +1 -1
- package/assets/esri/core/workers/chunks/f52ed527b46c316eb369.js +1 -0
- package/assets/esri/core/workers/chunks/{140d0c4285c6978103ea.js → f5ce6af342c02a4b0d15.js} +7 -7
- package/assets/esri/core/workers/chunks/{1cbeac3301b6943bb28a.js → fc07d47d44c04f123650.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/themes/base/_core.scss +4 -0
- package/assets/esri/themes/base/widgets/_BasemapGallery.scss +0 -5
- package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationLayers.scss +80 -0
- package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationList.scss +14 -0
- package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +41 -0
- package/assets/esri/themes/base/widgets/_FilterBuilder.scss +1 -6
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/Bufferer-B-V7yYm-.js +5 -0
- package/chunks/ComponentShader.glsl.js +6 -6
- package/chunks/Distance2DCalculator-Coa0qAFt.js +5 -0
- package/chunks/Envelope.js +1 -1
- package/chunks/{GeodeticDistanceCalculator-BsWHOuqE.js → GeodeticDistanceCalculator-D4iQ-_NX.js} +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +2 -4
- package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
- package/chunks/disjointOperator.js +1 -1
- package/chunks/distanceOperator.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat2df32.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat2df64.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat2f32.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat2f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat3f32.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat3f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat4f32.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat4f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/quat2f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec2f32.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec3f32.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec3f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec4f32.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
- package/core/sql.js +1 -1
- package/editing/sharedTemplates/SharedTemplate.d.ts +4 -0
- package/editing/sharedTemplates/SharedTemplate.js +1 -1
- package/editing/sharedTemplates/SharedTemplateMetadata.js +1 -1
- package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/equallySpaced.js +1 -1
- package/editing/sharedTemplates/executor/builders/offsetLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/offsetPrimaryLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtAllVerticesOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtBeginningOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtBeginningOfRadial.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtEndOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtInteriorVertices.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtNotBeginningOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtNotEndOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtPolygonCentroid.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtPolygonNotStart.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtPolygonStart.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointIdentity.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointPrimaryIdentity.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonBoundaryTwoPoint.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonIdentity.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonPrimaryIdentity.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonVertices.js +1 -1
- package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
- package/editing/sharedTemplates/executor/builders/twoPointLines.js +1 -1
- package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
- package/editing/sharedTemplates/executor/support/createServiceEdit.js +1 -1
- package/editing/sharedTemplates/executor/support/executorUtils.js +1 -1
- package/editing/sharedTemplates/templateDefinitions/GroupTemplateDefinition.js +1 -1
- package/editing/sharedTemplates/templateDefinitions/PresetTemplateDefinition.js +1 -1
- package/editing/sharedTemplates/templateDefinitions/parts/builders/builderUtils.js +1 -1
- package/editing/templateUtils.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
- package/geometry/operators/gx/operatorIntegrate.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/gx/operatorUnion.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/shapePreservingProjectOperator.js +1 -1
- package/geometry/operators/support/apiConverter.js +1 -1
- package/geometry/operators/support/initNoPeFactory.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/DoubleArray.js +1 -1
- package/geometry/support/UCharArray.js +5 -0
- package/geometry/support/UShortArray.js +5 -0
- package/interfaces.d.ts +117 -67
- package/layers/VectorTileLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/mixins/operationalLayers.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/save/utils.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/rasterFunctions/stretchUtils.js +1 -1
- package/layers/support/wmsUtils.js +1 -1
- package/networks/Network.js +1 -1
- package/networks/RulesTable.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/typeUtils.js +1 -1
- package/package.json +3 -3
- package/portal/Portal.js +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapNotesLayerView2D.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/HighlightCounter.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsCorePerformanceInfo.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
- package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/lib/AnimationTimer.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
- package/views/3d/webgl-engine/lib/textureUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/layers/LayerView.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/webgl/Parameters.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
- package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor/AddAssociationWorkflow.js +5 -0
- package/widgets/Editor/AddAssociationWorkflowData.js +5 -0
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflowData.js +1 -1
- package/widgets/Editor/components/PendingFeatureList.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/modelUploadUtils.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +5 -0
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +5 -0
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/UtilityNetworkAssociationAddAssociationViewModel.js +5 -0
- package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/galleryUtils.js +5 -0
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch/support/sketchUtils.js +1 -1
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.d.ts +2 -2
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
- package/widgets/support/FilterBuilder.js +1 -1
- package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
- package/widgets/support/FilterCondition.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +5 -0
- package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
- package/assets/esri/core/workers/chunks/08c4b585290efc98ca5d.js +0 -1
- package/assets/esri/core/workers/chunks/117e7a12af77c761efb5.js +0 -1
- package/assets/esri/core/workers/chunks/12199e8abf377ffc27cd.js +0 -1
- package/assets/esri/core/workers/chunks/324a5547c64a3bae670d.js +0 -1
- package/assets/esri/core/workers/chunks/3c8e5b5fb52611e30ed6.js +0 -1
- package/assets/esri/core/workers/chunks/4be5e453fe54f5631659.js +0 -1
- package/assets/esri/core/workers/chunks/5be7cf1564e756c24066.js +0 -1
- package/assets/esri/core/workers/chunks/5eceedac9b2b4d1ef133.js +0 -1
- package/assets/esri/core/workers/chunks/6c9bb00f33649ab59dab.js +0 -314
- package/assets/esri/core/workers/chunks/6d79ec15d1858839f576.js +0 -1
- package/assets/esri/core/workers/chunks/74e0116ae84def626c87.js +0 -1
- package/assets/esri/core/workers/chunks/7966c245a073c85f04b1.js +0 -1
- package/assets/esri/core/workers/chunks/7e3b374f906441cd7fb0.js +0 -1
- package/assets/esri/core/workers/chunks/84c1c3336011a1b79669.js +0 -1
- package/assets/esri/core/workers/chunks/88a34690480d3658bad8.js +0 -1
- package/assets/esri/core/workers/chunks/8bd51b5b392dfacc922f.js +0 -1
- package/assets/esri/core/workers/chunks/9c6380af3bc3130658e1.js +0 -1
- package/assets/esri/core/workers/chunks/9e7895e8201127ffe0a8.js +0 -1
- package/assets/esri/core/workers/chunks/a5e9ea13e844a62b2a7f.js +0 -1
- package/assets/esri/core/workers/chunks/a6ec3665bde2af8a96e6.js +0 -1
- package/assets/esri/core/workers/chunks/b18620fc15707e4413a1.js +0 -1
- package/assets/esri/core/workers/chunks/b765670b47d209d7655a.js +0 -2
- package/assets/esri/core/workers/chunks/c249ad935f54d3b49ae3.js +0 -1
- package/assets/esri/core/workers/chunks/c7927c2d5414f19defd5.js +0 -1
- package/assets/esri/core/workers/chunks/d27a199fd8e2ade69254.js +0 -1
- package/assets/esri/core/workers/chunks/debfb75a94b66b58cbbc.js +0 -1
- package/assets/esri/core/workers/chunks/e71b780d1e6a32f303b7.js +0 -1
- package/assets/esri/core/workers/chunks/f285ed5425b31123d2bc.js +0 -1
- package/assets/esri/core/workers/chunks/f9070edd8e0b2a57af79.js +0 -1
- package/assets/esri/core/workers/chunks/faf9063420262ea40fd8.js +0 -1
- package/chunks/Bufferer-DjC-SKTJ.js +0 -5
- package/chunks/Distance2DCalculator-8-JrFGHH.js +0 -5
- package/editing/sharedTemplates/support/sharedTemplateUtils.js +0 -5
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationSettings.js +0 -5
- package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.d.ts +0 -4
- package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +0 -5
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as e}from"../../chunks/tslib.es6.js";import
|
|
5
|
+
import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../request.js";import r from"../../core/Accessor.js";import{makeHandle as o}from"../../core/handleUtils.js";import{getOrCreateMapValue as s}from"../../core/MapUtils.js";import{abortMaybe as a}from"../../core/maybe.js";import{onAbort as i,throwIfAborted as n,createAbortError as l,throwIfAbortError as c,createResolver as p}from"../../core/promiseUtils.js";import{watch as m}from"../../core/reactiveUtils.js";import{property as d}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as f}from"../../core/accessorSupport/decorators/subclass.js";import{isSharedPresetTemplate as u,isSharedFeatureTemplate as h}from"../templateUtils.js";import{SharedTemplateMissingTemplatesError as y,SharedTemplateLayerResolverError as v,SharedTemplateRequestError as w,SharedTemplateLayerUnavailableError as S}from"./support/sharedTemplateErrors.js";import{isFeatureLayer as g,isSubtypeGroupLayer as b}from"../../layers/support/layerUtils.js";const _=new Map;function j(e,t){return s(_,e,(()=>{const r=new R({layerResolver:t?.layerResolver??U(e),makeSharedTemplateFromJSON:t.makeSharedTemplateFromJSON,view:e});return e.addHandles(o((()=>{_.delete(e),r.destroy()}))),r}))}let R=class extends r{constructor(e){super(e),this._abortController=null,this._cache=new Map,this._pending=new Map,this.layerResolver=null,this.makeSharedTemplateFromJSON=null,this.view=null}initialize(){this.addHandles(m((()=>this.view.spatialReference),(()=>this._reset())))}destroy(){this._abortController=a(this._abortController)}async getTemplates({templateIds:e,featureService:t,signal:r}){const o=this._cache,s=this._pending,a=[],l=new Set,c=new Set,p=Symbol();for(const i of new Set(e)){const e=k(t,i);if(o.has(e))a.push(o.get(e));else if(s.has(e)){const t=s.get(e);t.subscribers.add(p),c.add(t)}else l.add(i),s.set(e,C())}if(a.length===e.length)return a;const m=()=>{for(const{subscribers:e}of c)e.delete(p)},d=i(r,m);try{const e=await this._loadTemplates({templateIds:Array.from(l),featureService:t,signal:r}),o=await Promise.all(Array.from(c).map((({resolver:e})=>e.promise)));a.push(...e),a.push(...o)}catch(f){m();for(const e of l){const r=k(t,e),o=s.get(r);o?.resolver.reject(f),s.delete(r)}throw f}finally{d?.remove()}return n(r),a}async _loadTemplates({templateIds:e,featureService:t,signal:r}){if(0===e.length)return[];const o=this._cache,s=this._pending,a=this._abortController=new AbortController,n=i(r,(()=>{for(const r of e){if(I(s.get(k(t,r))))return}a.abort()})),c=await T({featureService:t,templateIds:e,signal:a.signal,spatialReference:this.view.spatialReference});if(c.length<e.length)throw new y(e,c);const p=await Promise.all(c.map((e=>this._makeTemplate({json:e,featureService:t}))));for(const i of p){const e=k(t,i.templateId),a=s.get(e);!r?.aborted||I(a)?(o.set(e,i),a?.resolver.resolve(i)):a?.resolver.reject(l()),s.delete(e)}return n?.remove(),p}async _makeTemplate({json:e,featureService:t}){const{view:r}=this,o=this.makeSharedTemplateFromJSON(e);o.featureService=t,o.view=r;const{layerIds:s,subtypeCode:a}=o;try{o.layer=await this.layerResolver({featureService:t,layerIds:s,subtypeCode:a})}catch(i){throw new v(o.templateId,i)}if(u(o)&&o.definition){o.definition.spatialReference=r.spatialReference;for(const e of o.definition.allParts)e.geometry&&(e.geometry.spatialReference=r.spatialReference)}if(h(o)&&o.definition?.defaultValues){const e=o.definition.defaultValues,t={},{fieldsIndex:r}=o.layer;for(const s in o.definition.defaultValues)t[r.get(s)?.name??s]=e[s];o.definition.defaultValues=t}return o}_reset(){this._abortController?.abort(),this._cache.clear(),this._pending.clear()}};async function T({templateIds:e,featureService:r,spatialReference:o,signal:s}){const a=`${r.url}/sharedTemplates/templates`,i=await t(a,{query:{f:"json",outSR:o,ids:e.join(",")},signal:s}).catch((t=>{throw c(t),new w(e,t)}));return i.data?.templates??[]}function I(e){return null!=e&&e.subscribers.size>0}function C(){return{resolver:p(),subscribers:new Set}}function k(e,t){return`${e.url}/${t}`}function O(e){return g(e)||b(e)}function U(e){return async({featureService:t,layerIds:r})=>{const o=new Set(r),s=e.map.allLayers.find((e=>e.url===t.url&&O(e)&&o.has(e.layerId)));if(null==s)throw new S(r);return s}}e([d()],R.prototype,"_abortController",void 0),e([d()],R.prototype,"_cache",void 0),e([d()],R.prototype,"_pending",void 0),e([d({constructOnly:!0})],R.prototype,"layerResolver",void 0),e([d({constructOnly:!0})],R.prototype,"makeSharedTemplateFromJSON",void 0),e([d({constructOnly:!0})],R.prototype,"view",void 0),R=e([f("esri.editing.sharedTemplates.SharedTemplateProvider")],R);export{R as SharedTemplateProvider,j as getSharedTemplateProvider};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{correctZandMFollowingBuffer as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{isPolyline as r}from"../support/executorUtils.js";import{e as s}from"../../../../chunks/bufferOperator.js";function o({edits:o,mode:i,relationships:p,shape:
|
|
5
|
+
import{correctZandMFollowingBuffer as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{isPolyline as r}from"../support/executorUtils.js";import{e as s}from"../../../../chunks/bufferOperator.js";function o({edits:o,mode:i,relationships:p,shape:a,templatePart:n}){if(!r(a))return;const u=n.builderConfig.distanceValue??0;if(u<=0)return;const m=t(s(a,u),a);m&&e({templatePart:n,shape:m,edits:o,relationships:p,mode:i})}const i=!1;export{o as execute,i as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{correctZandMFollowingBuffer as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{isPoint as r}from"../support/executorUtils.js";import{e as s}from"../../../../chunks/bufferOperator.js";function o({templatePart:o,shape:i,edits:p,relationships:
|
|
5
|
+
import{correctZandMFollowingBuffer as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{isPoint as r}from"../support/executorUtils.js";import{e as s}from"../../../../chunks/bufferOperator.js";function o({templatePart:o,shape:i,edits:p,relationships:a,mode:n}){if(!r(i))return;const u=o.builderConfig?.distanceValue??0;if(u<=0)return;const m=t(s(i,u),i);m&&e({templatePart:o,shape:m,edits:p,relationships:a,mode:n})}const i=!1;export{o as execute,i as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{correctZandMFollowingBuffer as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{isPolygon as r}from"../support/executorUtils.js";import{e as s}from"../../../../chunks/bufferOperator.js";function o({templatePart:o,shape:i,edits:p,relationships:
|
|
5
|
+
import{correctZandMFollowingBuffer as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{isPolygon as r}from"../support/executorUtils.js";import{e as s}from"../../../../chunks/bufferOperator.js";function o({templatePart:o,shape:i,edits:p,relationships:a,mode:n}){if(!r(i))return;const u=o.builderConfig?.distanceValue??0;if(u<=0)return;const m=t(s(i,u),i);m&&e({templatePart:o,shape:m,edits:p,relationships:a,mode:n})}const i=!1;export{o as execute,i as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readVertexBeforeOffset as r,readByNumber as e,readCount as i,readDistance as o,getHeightUnitCorrectionFactor as s,makeFeatureFromGroupPart as l}from"./support/builderUtils.js";import{offset as n}from"./support/offsetUtils.js";import{computedTotalLength as p,pointAlongLineWithZAndOffset as f,pointAlongLineAndOffset as u,pointAlongLineWithZ as a,pointAlongLine as m}from"./support/shapeUtils.js";import{isPolyline as h,maxDigitizingDisplayEdits as d}from"../support/executorUtils.js";function c({templatePart:c,shape:g,edits:j,relationships:U,mode:b}){if(
|
|
5
|
+
import{readOffsetDistance as t,readVertexBeforeOffset as r,readByNumber as e,readCount as i,readDistance as o,getHeightUnitCorrectionFactor as s,makeFeatureFromGroupPart as l}from"./support/builderUtils.js";import{offset as n}from"./support/offsetUtils.js";import{computedTotalLength as p,pointAlongLineWithZAndOffset as f,pointAlongLineAndOffset as u,pointAlongLineWithZ as a,pointAlongLine as m}from"./support/shapeUtils.js";import{isPolyline as h,maxDigitizingDisplayEdits as d}from"../support/executorUtils.js";function c({templatePart:c,shape:g,edits:j,relationships:U,mode:b}){if(!h(g))return;const x=g,{builderConfig:P}=c,S=t(P),Z=r(P),k=e(P);let z=k?i(P):0,C=k?0:o(P,!1);const E=s(x),M=Z||0===S?x:n(x,S);if(null===M||!h(M))return;const $=p(M);if(k){if(z<=1)return;if(C=$/(z+1),C<=0)return}else{if(C<0)return;if(z=Math.floor($/C),0===z)return}let q=C,v=0;for(;v<z;){let t=null;if(t=Z?M.hasZ?f(M,q,S,E):u(M,q,S):M.hasZ?a(M,q,E):m(M,q),t&&l({templatePart:c,shape:t,edits:j,relationships:U,mode:b},`ES${v.toString()}`),"digitizing"===b&&j.length>d)break;q+=C,v++}}const g=!1;export{c as execute,g as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{offset as s}from"./support/offsetUtils.js";import{convertRadialToPolylines as o}from"./support/shapeUtils.js";import{isRadial as r,isPolyline as i,maxDigitizingDisplayEdits as p}from"../support/executorUtils.js";import
|
|
5
|
+
import{readOffsetDistance as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{offset as s}from"./support/offsetUtils.js";import{convertRadialToPolylines as o}from"./support/shapeUtils.js";import{isRadial as r,isPolyline as i,maxDigitizingDisplayEdits as p}from"../support/executorUtils.js";import a from"../../../../geometry/Polyline.js";function l({templatePart:l,shape:f,edits:n,relationships:m,mode:h}){let c=[];if(r(f))c=o(f);else{if(!i(f))return;c=[f]}const u=t(l.builderConfig);for(const t of c){const o=t.clone();for(const t of o.paths){let r=new a({spatialReference:o.spatialReference,paths:[t],hasZ:o.hasZ,hasM:o.hasM});r&&u&&(r=s(r,u)),r&&e({templatePart:l,shape:r,edits:n,relationships:m,mode:h})}if("digitizing"===h&&n.length>p)break}}const f=!1;export{l as execute,f as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{offset as s}from"./support/offsetUtils.js";import{convertRadialToPolylines as o}from"./support/shapeUtils.js";import{isRadial as r,isPolyline as i,maxDigitizingDisplayEdits as p}from"../support/executorUtils.js";import
|
|
5
|
+
import{readOffsetDistance as t,makeFeatureFromGroupPart as e}from"./support/builderUtils.js";import{offset as s}from"./support/offsetUtils.js";import{convertRadialToPolylines as o}from"./support/shapeUtils.js";import{isRadial as r,isPolyline as i,maxDigitizingDisplayEdits as p}from"../support/executorUtils.js";import a from"../../../../geometry/Polyline.js";function l({templatePart:l,shape:f,edits:n,relationships:m,mode:h}){let c=[];if(r(f))c=o(f);else{if(!i(f))return;c=[f]}const u=t(l.builderConfig);for(const t of c){const o=t.clone();for(const t of o.paths){let r=new a({spatialReference:o.spatialReference,paths:[t],hasZ:o.hasZ,hasM:o.hasM});r&&u&&(r=s(r,u)),r&&e({templatePart:l,shape:r,edits:n,relationships:m,mode:h})}if("digitizing"===h&&n.length>p)break}}const f=!1;export{l as execute,f as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{lineVerticesOffset as r,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{lineVerticesOffset as r,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function f({templatePart:f,shape:l,edits:a,relationships:n,mode:m}){if(!p(l))return;const u=l,{builderConfig:c}=f,d=t(c),h=e(c),x=o(c),P=s(c,h);r({templatePart:f,edits:a,relationships:n,shape:u,distance:P,isProportional:h,offsetDistance:d,vertexBeforeOffset:x,vertexPlacement:i.All,mode:m})}const l=!1;export{f as execute,l as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{vertexOffsetFromStartOrEndOfLine as r,VertexEndPlacement as i}from"./support/offsetUtils.js";import{isPolyline as
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{vertexOffsetFromStartOrEndOfLine as r,VertexEndPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function n({templatePart:n,shape:f,edits:a,relationships:l,mode:m}){if(!p(f))return;const u=f,{builderConfig:c}=n,d=t(c),h=e(c),x=o(c),P=s(c,h);r({templatePart:n,edits:a,relationships:l,shape:u,distance:P,isProportional:h,offsetDistance:d,vertexBeforeOffset:x,vertexPlacement:i.AtBeginning,mode:m})}const f=!1;export{n as execute,f as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s,readIsUnique as r}from"./support/builderUtils.js";import{vertexOffsetFromStartOrEndOfLine as i,VertexEndPlacement as p}from"./support/offsetUtils.js";import{convertRadialToPolylines as
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s,readIsUnique as r}from"./support/builderUtils.js";import{vertexOffsetFromStartOrEndOfLine as i,VertexEndPlacement as p}from"./support/offsetUtils.js";import{convertRadialToPolylines as f}from"./support/shapeUtils.js";import{isRadial as n}from"../support/executorUtils.js";function a({templatePart:a,shape:m,edits:l,relationships:u,mode:c}){if(!n(m))return;const{builderConfig:d}=a,h=t(d),j=e(d),x=o(d),P=s(d,j),U=r(d);for(const t of f(m))if(i({templatePart:a,edits:l,relationships:u,shape:t,distance:P,isProportional:j,offsetDistance:h,vertexBeforeOffset:x,vertexPlacement:p.AtBeginning,mode:c}),U)break}const m=!1;export{a as execute,m as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{vertexOffsetFromStartOrEndOfLine as r,VertexEndPlacement as i}from"./support/offsetUtils.js";import{convertRadialToPolylines as p}from"./support/shapeUtils.js";import{isPolyline as f}from"../support/executorUtils.js";function a({templatePart:a,shape:l,edits:n,relationships:m,mode:d}){let u=[];if("radial"===l.type)u=p(l);else{if(!f(l))return;u=[l]}const{builderConfig:c}=a,h=t(c),j=e(c),x=o(c),P=-1*s(c,j);for(const t of u)r({templatePart:a,edits:n,relationships:m,shape:t,distance:P,isProportional:j,offsetDistance:h,vertexBeforeOffset:x,vertexPlacement:i.AtEnd,mode:d})}const l=!1;export{a as execute,l as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as r}from"./support/builderUtils.js";import{lineVerticesOffset as s,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as r}from"./support/builderUtils.js";import{lineVerticesOffset as s,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function f({templatePart:f,shape:n,edits:a,relationships:l,mode:m}){if(!p(n))return;const u=n,{builderConfig:c}=f,d=t(c),h=e(c),x=o(c),P=r(c,h);s({templatePart:f,edits:a,relationships:l,shape:u,distance:P,isProportional:h,offsetDistance:d,vertexBeforeOffset:x,vertexPlacement:i.Interior,mode:m})}const n=!1;export{f as execute,n as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as r,readDistance as s,getHeightUnitCorrectionFactor as o,makeFeatureFromGroupPart as n}from"./support/builderUtils.js";import{offset as a}from"./support/offsetUtils.js";import{getSegmentLength3d as i,getSegmentLength as p,pointAlongLineWithZAndOffset as l,pointAlongLineAndOffset as f,offsetPointFromSegment as c}from"./support/shapeUtils.js";import{maxDigitizingDisplayEdits as h,isPolyline as u}from"../support/executorUtils.js";import m from"../../../../geometry/Multipoint.js";import{e as g}from"../../../../chunks/intersectsOperator.js";import{fromSpatialReference as y}from"../../../../geometry/operators/support/apiConverter.js";function d(t){if(b(t)&&"digitizing"!==t.mode)return j(t)}async function j({templatePart:u,parentTemplate:m,shape:d,edits:j,relationships:b,mode:M}){const{builderConfig:
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as r,readDistance as s,getHeightUnitCorrectionFactor as o,makeFeatureFromGroupPart as n}from"./support/builderUtils.js";import{offset as a}from"./support/offsetUtils.js";import{getSegmentLength3d as i,getSegmentLength as p,pointAlongLineWithZAndOffset as l,pointAlongLineAndOffset as f,offsetPointFromSegment as c}from"./support/shapeUtils.js";import{maxDigitizingDisplayEdits as h,isPolyline as u}from"../support/executorUtils.js";import m from"../../../../geometry/Multipoint.js";import{e as g}from"../../../../chunks/intersectsOperator.js";import{fromSpatialReference as y}from"../../../../geometry/operators/support/apiConverter.js";function d(t){if(b(t)&&"digitizing"!==t.mode)return j(t)}async function j({templatePart:u,parentTemplate:m,shape:d,edits:j,relationships:b,mode:M}){const{builderConfig:U}=u,Z=t(U),P=e(U),T=r(U),V=s(U,P),k=T||0===Z?d:a(d,Z);if(null===k)return;const w=m.layer.createQuery();w.geometry=k,w.spatialRelationship="intersects",w.returnM=!0,w.returnZ=!0,w.outSpatialReference=k.spatialReference,w.cacheHint=!1,w.returnGeometry=!0,w.historicMoment=m.layer.historicMoment,w.gdbVersion=m.layer.gdbVersion;const x=2*(y(k.spatialReference)?.getTolerance()??.001);w.distance=x;const{features:C}=await m.layer.queryFeatures(w);if(0===C.length)return;const S=[];for(const t of C)S.push(R(t.geometry));const q=o(k);let v=0,z=0;for(let t=0;t<k.paths.length&&!(j.length>h);t++){const e=k.paths[t].length;for(let r=0;r<e;r++){let s=k.getPoint(t,r);if(null!=s){for(const o of S)if(g(s,o)){if(r>0&&0!==V&&(v+=k.hasZ?i(k.paths[t][r-1],k.paths[t][r],q):p(k.paths[t][r-1],k.paths[t][r])),0!==V){let o=1;if(P){const s=V<0?r-1:r+1;if(s>=e||s<0)return;o=k.hasZ?i(k.paths[t][r],k.paths[t][s],q):p(k.paths[t][r],k.paths[t][s])}const n=v+o*V;s=k.hasZ?l(k,n,Z,q):f(k,n,Z)}else 0!==Z&&(s=c(s,r===e-1?[k.paths[t][r-1],k.paths[t][r]]:[k.paths[t][r],k.paths[t][r+1]],Z));s&&n({templatePart:u,shape:s,edits:j,relationships:b,mode:M},`V${z.toString()}`);break}z++}}}}function R(t){const e=[];for(const r of t.paths)for(const t of r)e.push([...t]);return new m({spatialReference:t.spatialReference,points:e})}function b(t){return null!=t.parentTemplate&&u(t.shape)}const M=!0;export{d as execute,M as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{lineVerticesOffset as r,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{lineVerticesOffset as r,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function n({templatePart:n,shape:f,edits:a,relationships:l,mode:m}){if(!p(f))return;const u=f,{builderConfig:c}=n,d=t(c),h=e(c),x=o(c),P=s(c,h);r({templatePart:n,edits:a,relationships:l,shape:u,distance:P,isProportional:h,offsetDistance:d,vertexBeforeOffset:x,vertexPlacement:i.NotBeginning,mode:m})}const f=!1;export{n as execute,f as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{lineVerticesOffset as r,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function
|
|
5
|
+
import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as s}from"./support/builderUtils.js";import{lineVerticesOffset as r,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function f({templatePart:f,shape:n,edits:a,relationships:l,mode:m}){if(!p(n))return;const d=n,{builderConfig:u}=f,c=t(u),h=e(u),x=o(u),P=s(u,h);r({templatePart:f,edits:a,relationships:l,shape:d,distance:P,isProportional:h,offsetDistance:c,vertexBeforeOffset:x,vertexPlacement:i.NotEnd,mode:m})}const n=!1;export{f as execute,n as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPolygon as e}from"../support/executorUtils.js";function o({templatePart:o,shape:r,edits:s,relationships:i,mode:p}){if(
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPolygon as e}from"../support/executorUtils.js";function o({templatePart:o,shape:r,edits:s,relationships:i,mode:p}){if(!e(r))return;const{centroid:a}=r;a&&t({templatePart:o,shape:a,edits:s,relationships:i,mode:p})}const r=!1;export{o as execute,r as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{sameStartEndPoint as e,pointFromPolygonVertex as o}from"./support/shapeUtils.js";import{isPolygon as s,maxDigitizingDisplayEdits as r}from"../support/executorUtils.js";function i({templatePart:i,shape:
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{sameStartEndPoint as e,pointFromPolygonVertex as o}from"./support/shapeUtils.js";import{isPolygon as s,maxDigitizingDisplayEdits as r}from"../support/executorUtils.js";function i({templatePart:i,shape:p,edits:n,relationships:l,mode:m}){if(!s(p))return;let a=0;const{rings:h}=p;for(let s=0;s<h.length;s++){const f=h[s],g=f.length,u=0===s?1:0,c=e(f)?g-1:g;for(let e=u;e<c&&!("digitizing"===m&&n.length>r);e++){const r=o(p,s,e);t({templatePart:i,shape:r,edits:n,relationships:l,mode:m},`V${(a+e).toString()}`)}a+=g}}const p=!1;export{i as execute,p as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{pointFromPolygonVertex as e}from"./support/shapeUtils.js";import{isPolygon as r}from"../support/executorUtils.js";function s({templatePart:s,shape:o,edits:i,relationships:p,mode:
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{pointFromPolygonVertex as e}from"./support/shapeUtils.js";import{isPolygon as r}from"../support/executorUtils.js";function s({templatePart:s,shape:o,edits:i,relationships:p,mode:n}){if(!r(o))return;const{rings:l}=o;for(let r=0;r<l.length;r++){if(l[r].length>0){const l=e(o,r,0);return void t({templatePart:s,shape:l,edits:i,relationships:p,mode:n},"V0")}}}const o=!1;export{s as execute,o as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPoint as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPoint as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){e(s)&&t({templatePart:o,shape:s.clone(),edits:p,relationships:r,mode:i},"IDP1")}const s=!1;export{o as execute,s as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPoint as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPoint as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){e(s)&&t({templatePart:o,shape:s.clone(),edits:p,relationships:r,mode:i},"IDP1")}const s=!1;export{o as execute,s as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as s}from"./support/builderUtils.js";import{sameStartEndPoint as t}from"./support/shapeUtils.js";import{isPolygon as e,maxDigitizingDisplayEdits as o}from"../support/executorUtils.js";import i from"../../../../geometry/Polyline.js";function r({templatePart:r,shape:p,edits:n,relationships:
|
|
5
|
+
import{makeFeatureFromGroupPart as s}from"./support/builderUtils.js";import{sameStartEndPoint as t}from"./support/shapeUtils.js";import{isPolygon as e,maxDigitizingDisplayEdits as o}from"../support/executorUtils.js";import i from"../../../../geometry/Polyline.js";function r({templatePart:r,shape:p,edits:n,relationships:a,mode:l}){if(!e(p))return;const f=p.clone(),h=[];for(const s of f.rings){const e=s.slice();t(s)||e.push(e[0].slice()),h.push(e)}if(h.length>0)for(const t of h){if("digitizing"===l&&n.length>o)break;const e=new i({paths:[t],spatialReference:f.spatialReference,hasZ:f.hasZ,hasM:f.hasM});s({templatePart:r,shape:e,edits:n,relationships:a,mode:l})}}const p=!1;export{r as execute,p as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as s}from"./support/builderUtils.js";import{sameStartEndPoint as t,convertToTwoPoint as e}from"./support/shapeUtils.js";import{isPolygon as o,maxDigitizingDisplayEdits as i}from"../support/executorUtils.js";import r from"../../../../geometry/Polyline.js";function p({templatePart:p,shape:
|
|
5
|
+
import{makeFeatureFromGroupPart as s}from"./support/builderUtils.js";import{sameStartEndPoint as t,convertToTwoPoint as e}from"./support/shapeUtils.js";import{isPolygon as o,maxDigitizingDisplayEdits as i}from"../support/executorUtils.js";import r from"../../../../geometry/Polyline.js";function p({templatePart:p,shape:a,edits:n,relationships:l,mode:f}){if(!o(a))return;const h=[];for(const s of a.rings){const e=s.slice();t(s)||e.push(e[0].slice()),h.push(e)}if(h.length>0){const t=new r({paths:h,spatialReference:a.spatialReference,hasZ:a.hasZ,hasM:a.hasM}),o=e(t);for(const e of o){if("digitizing"===f&&n.length>i)break;s({templatePart:p,shape:e,edits:n,relationships:l,mode:f})}}}const a=!1;export{p as execute,a as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPolygon as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPolygon as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){e(s)&&t({templatePart:o,shape:s.clone(),edits:p,relationships:r,mode:i})}const s=!1;export{o as execute,s as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPolygon as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{isPolygon as e}from"../support/executorUtils.js";function o({templatePart:o,shape:s,edits:p,relationships:r,mode:i}){e(s)&&t({templatePart:o,shape:s.clone(),edits:p,relationships:r,mode:i})}const s=!1;export{o as execute,s as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{sameStartEndPoint as i,pointFromPolygonVertex as e}from"./support/shapeUtils.js";import{isPolygon as s,maxDigitizingDisplayEdits as o}from"../support/executorUtils.js";function r({templatePart:r,shape:
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{sameStartEndPoint as i,pointFromPolygonVertex as e}from"./support/shapeUtils.js";import{isPolygon as s,maxDigitizingDisplayEdits as o}from"../support/executorUtils.js";function r({templatePart:r,shape:p,edits:n,relationships:l,mode:a}){if(s(p))for(let s=0;s<p.rings.length;s++){const g=p.rings[s],m=g.length,h=i(g)?m-1:m;if("digitizing"===a&&n.length>o)break;for(let i=0;i<h&&!("digitizing"===a&&n.length>o);i++){const o=e(p,s,i);t({templatePart:r,shape:o,edits:n,relationships:l,mode:a})}}}const p=!1;export{r as execute,p as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../../../../../core/Error.js";import{getMetersPerVerticalUnitForSR as t,getMetersPerUnitForSR as o}from"../../../../../core/unitUtils.js";import{
|
|
5
|
+
import e from"../../../../../core/Error.js";import{getMetersPerVerticalUnitForSR as t,getMetersPerUnitForSR as o}from"../../../../../core/unitUtils.js";import{isLoadedSharedTemplate as n,isSharedPresetTemplate as r,isSharedFeatureTemplate as s}from"../../../../templateUtils.js";import{createPresetServiceEdit as i,createFeatureServiceEdit as a}from"../../support/createServiceEdit.js";import l from"../../../../../geometry/Polygon.js";import{isPoint as u,isPolygon as f}from"../../../../../geometry/support/jsonUtils.js";function p({edits:t,mode:o,relationships:l,shape:f,templatePart:p},c=""){if(null===p)return;const{template:m}=p;if(!n(m))throw new e("shared-template:template-not-loaded","A template part's template must be loaded before use");if(r(m)){if(!u(f))throw new e("shared-template:invalid-geometry","Preset templates must have a point geometry");i({geometry:f,template:m,edits:t,relationships:l,rotation:0,mode:o,tag:c})}else s(m)&&a({geometry:f,template:m,edits:t,relationships:l,tag:c})}function c(e,t){if(!e||!f(e))return null;if(!t.hasZ&&!t.hasM)return e;let o=null,n=null;const r=t.hasZ&&t.hasM?3:2;switch(t.type){case"point":o=t.hasZ?t.z:null,n=t.hasM?t.m:null;break;case"polygon":case"polyline":{const e="polygon"===t.type?t.rings:t.paths;for(const s of e)for(const e of s)t.hasZ&&(null===o||e[2]>o)&&(o=e[2]),t.hasM&&(null===n||e[r]>n)&&(n=e[r])}break;case"multipoint":for(const e of t.points)t.hasZ&&(null===o||e[2]>o)&&(o=e[2]),t.hasM&&(null===n||e[r]>n)&&(n=e[r]);break;default:return e}const s=Z(e.rings,t.hasZ,t.hasM,o,n);return new l({rings:s,spatialReference:e.spatialReference,hasZ:t.hasZ,hasM:t.hasM})}function m(e){let n=1;if(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid){n=t(e.spatialReference)/o(e.spatialReference)}return n}function h(e){let t=!1;return void 0!==e.byNumber&&(t=!0===e.byNumber),t}function d(e){let t=0;return void 0!==e.count&&(t=e.count),t}function g(e,t){let o=0;return t?void 0!==e.proportional&&(o=e.proportional):void 0!==e.distanceValue&&(o=e.distanceValue),t&&(o/=100),o}function y(e){return!0===e.isProportional}function v(e){return!1!==e.createUnique}function b(e){let t=0;return void 0!==e.offsetDistance&&(t=e.offsetDistance),void 0!==e.side&&1===e.side&&(t*=-1),t}function M(e){return!0===e.vertexBeforeOffset}function Z(e,t,o,n,r){const s=[];for(const i of e)s.push(j(i,t,o,n,r));return s}function j(e,t,o,n,r){const s=[];for(const i of e){const e=[i[0],i[1]];t&&(e[2]=n),o&&(e[t?3:2]=r),s.push(e)}return s}export{c as correctZandMFollowingBuffer,m as getHeightUnitCorrectionFactor,p as makeFeatureFromGroupPart,h as readByNumber,d as readCount,g as readDistance,y as readIsProportional,v as readIsUnique,b as readOffsetDistance,M as readVertexBeforeOffset};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{convertToTwoPoint as o}from"./support/shapeUtils.js";import{isPolyline as s,maxDigitizingDisplayEdits as e}from"../support/executorUtils.js";function i({templatePart:i,shape:r,edits:p,relationships:
|
|
5
|
+
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{convertToTwoPoint as o}from"./support/shapeUtils.js";import{isPolyline as s,maxDigitizingDisplayEdits as e}from"../support/executorUtils.js";function i({templatePart:i,shape:r,edits:p,relationships:a,mode:m}){if(!s(r))return;const n=o(r);for(const o of n){if("digitizing"===m&&p.length>e)break;t({templatePart:i,shape:o,edits:p,relationships:a,mode:m})}}const r=!1;export{i as execute,r as isAsync};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import t from"../../../core/Error.js";import{isPromiseLike as
|
|
5
|
+
import t from"../../../core/Error.js";import e from"../../../core/Logger.js";import{isPromiseLike as r}from"../../../core/promiseUtils.js";import{isLoadedSharedTemplate as o,isSharedFeatureTemplate as n,isSharedGroupTemplate as i,isSharedPresetTemplate as s}from"../../templateUtils.js";import{createFeatureServiceEdit as p,createPresetServiceEdit as a}from"./support/createServiceEdit.js";import{calculateExtent as l,groupEditsByLayer as m}from"./support/executorUtils.js";import{getBuilder as u}from"./support/getBuilder.js";import{isPoint as c}from"../../../geometry/support/jsonUtils.js";const f=()=>e.getLogger("esri.editing.sharedTemplates.executor.createTemplateExecutor");async function d(e){if(!o(e))throw new t("template-executor:template-not-loaded","The template must be loaded before it can be executed.");if(n(e))return h(e);if(i(e))return y(e);if(s(e))return x(e);throw new t("template-executor:unsupported-template-type","The template type is not supported.")}function h(t){return e=>{const r=[],o=[];p({geometry:e,template:t,edits:r,relationships:o});const n=l(r);return{edits:m(r),relationships:o,primary:r[0]??null,featureExtent:n,rotationPoint:n?.center??null}}}async function y(t){const e=await Promise.all(t.definition.allParts.map(g));return(o,n)=>{const i=[],s=[],p=()=>{const t=l(i);return{edits:m(i),relationships:s,primary:i[0]??null,featureExtent:t,rotationPoint:t?.center??null}};if(null==o)return f().warn("No geometry provided to group template executor. Result will be empty."),p();const a=e.map((e=>e({edits:i,mode:n,parentTemplate:t,relationships:s,shape:o}))).filter(r);return 0===a.length?p():Promise.all(a).then((()=>p()))}}async function g(t){const e=await u(t.builderType);return r=>e.execute({...r,templatePart:t})}function x(e){return(r,o,n=0)=>{if(!c(r))throw new t("template-executor:invalid-input-geometry","The input goemetry for a preset template must be a point.");const i=[],s=[],p=a({geometry:r,template:e,edits:i,relationships:s,rotation:n,mode:o});return{edits:m(i),relationships:s,primary:i[0]??null,featureExtent:l(i),rotationPoint:p}}}export{d as createTemplateExecutor};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../../../../Graphic.js";import t from"../../../../core/Error.js";import{generateUUID as s}from"../../../../core/uuid.js";import{
|
|
5
|
+
import e from"../../../../Graphic.js";import t from"../../../../core/Error.js";import{generateUUID as s}from"../../../../core/uuid.js";import{isLoadedSharedTemplate as a,isSharedFeatureTemplate as i,isSharedPresetTemplate as r}from"../../../templateUtils.js";import{isRadial as o,maxDigitizingDisplayEdits as n}from"./executorUtils.js";import l from"../../../../geometry/Multipoint.js";import h from"../../../../geometry/Point.js";import p from"../../../../geometry/Polygon.js";import f from"../../../../geometry/Polyline.js";import{execute as u}from"../../../../geometry/operators/affineTransformOperator.js";import c from"../../../../geometry/operators/support/Transformation.js";import{isSubtypeGroupLayer as m}from"../../../../layers/support/layerUtils.js";function g({edits:s,geometry:a,relationships:i,tag:r="",template:n}){if(o(a)){const e=a.geometry.clone();for(const t of e.paths){g({geometry:new f({spatialReference:e.spatialReference,paths:[t],hasZ:e.hasZ,hasM:e.hasM}),template:n,edits:s,relationships:i,tag:r})}return}const{definition:l,layer:h}=n;a=y(a,h);const p=new e({attributes:l.defaultValues?{...l.defaultValues}:{},geometry:a,sourceLayer:h});if(x(p,h),h.globalIdField&&(p.attributes[h.globalIdField]=R()),s.push({id:h.layerId,graphic:p,tag:r,layer:h}),0!==l.relationships.length)for(const o of l.relationships||[]){if(null==o.relationshipMetadata||null==o.template?.definition)throw new t("shared-template:missing-relationship-metadata-or-definition","Relationship part must have metadata and a fully loaded template with definition");const{definition:a,layer:r}=o.template,n=new e({attributes:a.defaultValues?{...a.defaultValues}:{},sourceLayer:r});x(n,r),r.globalIdField&&(n.attributes[r.globalIdField]=R()),s.push({graphic:n,id:r.layerId,tag:"",layer:r}),i.push({...o.relationshipMetadata,sourceGraphic:p,destinationGraphic:n})}}function d({edits:e,geometry:s,mode:o,relationships:l,rotation:h,tag:p="",template:f}){const{definition:m}=f,y=s.x-m.origin.x,Z=s.y-m.origin.y,M=m.origin.hasZ&&s.hasZ?s.z-m.origin.z:0,R=j(m.origin.clone(),y,Z,M),w=(new c).rotate(h,R.x,R.y);for(const c of m.parts){if(e.length>n&&"digitizing"===o)break;const h=c.template;if(!a(h))throw new t("shared-template:template-not-loaded","A template part's template must be loaded before use");if(i(h)){let t=j(c.geometry,y,Z,M);w.isIdentity||(t=u(t,w)),g({edits:e,geometry:t,relationships:l,tag:p,template:h})}else if(r(h)){const t=[];if(d({edits:w.isIdentity?t:e,geometry:s,mode:o,relationships:l,rotation:0,tag:p,template:h}),!w.isIdentity)for(const s of t){const{geometry:t}=s.graphic;t&&"mesh"!==t.type&&(s.graphic.geometry=u(t,w),e.push(s))}}}return R}function y(e,t){if(!e)return null;if(e.hasZ===t.hasZ&&e.hasM===t.hasM)return e;switch(e.type){case"point":return new h({spatialReference:e.spatialReference,x:e.x,y:e.y,...t.hasZ?e.hasZ?{z:e.z}:{z:w(t)}:{},...t.hasM?e.hasM?{m:e.m}:{m:b(t)??void 0}:{}});case"polygon":return new p({spatialReference:e.spatialReference,rings:Z(e.rings,t.hasZ,t.hasM,w(t),b(t),e.hasM?e.hasZ?3:2:-1,e.hasZ?2:-1),hasZ:t.hasZ,hasM:t.hasM});case"polyline":return new f({spatialReference:e.spatialReference,paths:Z(e.paths,t.hasZ,t.hasM,w(t),b(t),e.hasM?e.hasZ?3:2:-1,e.hasZ?2:-1),hasZ:t.hasZ,hasM:t.hasM});case"multipoint":return new l({spatialReference:e.spatialReference,hasZ:t.hasZ,hasM:t.hasM,points:M(e.points,t.hasZ,t.hasM,w(t),b(t),e.hasM?e.hasZ?3:2:-1,e.hasZ?2:-1)});default:return e}}function Z(e,t,s,a,i,r,o){const n=[];for(const l of e)n.push(M(l,t,s,a,i,r,o));return n}function M(e,t,s,a,i,r,o){const n=[];for(const l of e){const e=[l[0],l[1]];t&&(e[2]=o>-1?l[2]:a),s&&(e[t?3:2]=r>-1?l[r]:i),n.push(e)}return n}function R(){return`{${s()}}`.toUpperCase()}function w(e){return e.capabilities.editing?.zDefault??0}function b(e){return e.capabilities.editing.supportsUpdateWithoutM?void 0:0}function j(e,t,s,a=0){if(!e)return null;if("point"===e.type)return new h({spatialReference:e.spatialReference,x:e.x+t,y:e.y+s,...e.hasZ?{z:e.z+a}:{},...e.hasM?{m:e.m}:{}});if("multipoint"===e.type){const i=[];if(e.hasZ&&e.hasM)for(let r=0;r<e.points.length;r++){const o=e.points[r];i.push([o[0]+t,o[1]+s,o[2]+a,o[3]])}else if(e.hasZ)for(let r=0;r<e.points.length;r++){const o=e.points[r];i.push([o[0]+t,o[1]+s,o[2]+a])}else if(e.hasM)for(let a=0;a<e.points.length;a++){const r=e.points[a];i.push([r[0]+t,r[1]+s,r[2]])}else for(let a=0;a<e.points.length;a++){const r=e.points[a];i.push([r[0]+t,r[1]+s])}return new l({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM,points:i})}if("polygon"===e.type){const i=new p({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM});for(let r=0;r<e.rings.length;r++){const o=e.rings[r],n=[];if(e.hasZ&&e.hasM)for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s,o[e][2]+a,o[e][3]]);else if(e.hasM)for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s,o[e][2]]);else if(e.hasZ)for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s,o[e][2]+a]);else for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s]);i.addRing(n)}return i}if("polyline"===e.type){const i=new f({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM});for(let r=0;r<e.paths.length;r++){const o=e.paths[r],n=[];if(e.hasZ&&e.hasM)for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s,o[e][2]+a,o[e][3]]);else if(e.hasZ)for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s,o[e][2]+a]);else if(e.hasM)for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s,o[e][2]]);else for(let e=0;e<o.length;e++)n.push([o[e][0]+t,o[e][1]+s]);i.addPath(n)}return i}return e.clone()}function x(e,t){m(t)&&(e.sourceLayer=t.findSublayerForFeature(e))}export{g as createFeatureServiceEdit,d as createPresetServiceEdit,R as generateGlobalId,j as translate};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{getOrCreateMapValue as e}from"../../../../core/MapUtils.js";import
|
|
5
|
+
import{getOrCreateMapValue as e}from"../../../../core/MapUtils.js";import t from"../../../../geometry/Extent.js";const n=100;function o(e){return"point"===e.type}function r(e){return"polygon"===e.type}function i(e){return"polyline"===e.type}function l(e){return!!e&&"radial"===e.type}function a(e){let n=null;for(const r of e)if(r.graphic.geometry){const e=r.graphic.geometry,i=o(e)?new t({spatialReference:e.spatialReference,xmin:e.x,xmax:e.x,ymax:e.y,ymin:e.y}):e.extent;n=null==n?i?.clone():n.union(i.extent)}return n}function c(t){const n=new Map;for(const o of t)e(n,o.id,(()=>({addFeatures:[],id:o.id,identifierFields:{globalIdField:o.layer.globalIdField,objectIdField:o.layer.objectIdField}}))).addFeatures?.push(o.graphic);return[...n.values()]}export{a as calculateExtent,c as groupEditsByLayer,o as isPoint,r as isPolygon,i as isPolyline,l as isRadial,n as maxDigitizingDisplayEdits};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as t}from"../../../chunks/tslib.es6.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as
|
|
5
|
+
import{_ as t}from"../../../chunks/tslib.es6.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as e}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{GroupTemplatePart as s}from"./parts/GroupTemplatePart.js";import{builderInputGeometryTypes as p}from"./parts/builders/builderUtils.js";let i=class extends o{constructor(t){super(t),this.type="group",this.createUtilityNetworkAssociations=!1,this.parts=[]}get allParts(){return[this.basePart,...this.parts]}get inputGeometryType(){return p[this.basePart.builderType]}};t([r({readOnly:!0})],i.prototype,"type",void 0),t([r()],i.prototype,"allParts",null),t([r({readOnly:!0,type:s})],i.prototype,"basePart",void 0),t([r({readOnly:!0})],i.prototype,"createUtilityNetworkAssociations",void 0),t([r()],i.prototype,"inputGeometryType",null),t([r({readOnly:!0,type:[s]})],i.prototype,"parts",void 0),i=t([e("esri.editing.sharedTemplates.templateDefinitions.GroupTemplateDefinition")],i);export{i as GroupTemplateDefinition};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as e}from"../../../chunks/tslib.es6.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{PresetTemplatePart as s}from"./parts/PresetTemplatePart.js";import p from"../../../geometry/Point.js";import
|
|
5
|
+
import{_ as e}from"../../../chunks/tslib.es6.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{PresetTemplatePart as s}from"./parts/PresetTemplatePart.js";import p from"../../../geometry/Point.js";import i from"../../../geometry/SpatialReference.js";let a=class extends o{constructor(e){super(e),this.type="preset",this.parts=[]}get allParts(){return this.parts}};e([t({readOnly:!0})],a.prototype,"type",void 0),e([t()],a.prototype,"allParts",null),e([t({readOnly:!0,type:p})],a.prototype,"origin",void 0),e([t({readOnly:!0,type:[s],json:{name:"features"}})],a.prototype,"parts",void 0),e([t({type:i})],a.prototype,"spatialReference",void 0),a=e([r("esri.editing.sharedTemplates.templateDefinitions.PresetTemplateDefinition")],a);export{a as PresetTemplateDefinition};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{JSONMap as
|
|
5
|
+
import{JSONMap as n}from"../../../../../core/jsonMap.js";const i=new n({esri_editing_transformation_bufferLineToPolygon:"buffer-line-to-polygon",esri_editing_transformation_bufferPointToPolygon:"buffer-point-to-polygon",esri_editing_transformation_bufferPolygonToPolygon:"buffer-polygon-to-polygon",esri_editing_transformation_connectionPoint:"connection-point",esri_editing_transformation_equallySpaced:"equally-spaced",esri_editing_transformation_offsetLine:"offset-line",esri_editing_transformation_offsetPrimaryLine:"offset-primary-line",esri_editing_transformation_pointAtAllVerticesOfLine:"point-at-all-vertices-of-line",esri_editing_transformation_pointAtBeginningOfLine:"point-at-beginning-of-line",esri_editing_transformation_pointAtBeginningOfRadial:"point-at-beginning-of-radial",esri_editing_transformation_pointAtEndOfLine:"point-at-end-of-line",esri_editing_transformation_pointAtInteriorVertices:"point-at-interior-vertices",esri_editing_transformation_pointAtIntersectionVerticesOfLine:"point-at-intersection-vertices-of-line",esri_editing_transformation_pointAtNotBeginningOfLine:"point-at-not-beginning-of-line",esri_editing_transformation_pointAtNotEndOfLine:"point-at-not-end-of-line",esri_editing_transformation_pointAtPolygonCentroid:"point-at-polygon-centroid",esri_editing_transformation_pointAtPolygonNotStart:"point-at-polygon-not-start",esri_editing_transformation_pointAtPolygonStart:"point-at-polygon-start",esri_editing_transformation_pointIdentity:"point-identity",esri_editing_transformation_pointPrimaryIdentity:"point-primary-identity",esri_editing_transformation_polygonBoundary:"polygon-boundary",esri_editing_transformation_polygonBoundaryTwoPoint:"polygon-boundary-two-point",esri_editing_transformation_polygonIdentity:"polygon-identity",esri_editing_transformation_polygonPrimaryIdentity:"polygon-primary-identity",esri_editing_transformation_polygonVertices:"polygon-vertices",esri_editing_transformation_radialLines:"radial-lines",esri_editing_transformation_twoPointLines:"two-point-lines"}),o={"buffer-line-to-polygon":"polyline","buffer-point-to-polygon":"point","buffer-polygon-to-polygon":"polygon","connection-point":"polyline","equally-spaced":"polyline","offset-line":"polyline","offset-primary-line":"polyline","point-at-all-vertices-of-line":"polyline","point-at-beginning-of-line":"polyline","point-at-beginning-of-radial":"polyline","point-at-end-of-line":"polyline","point-at-interior-vertices":"polyline","point-at-intersection-vertices-of-line":"polyline","point-at-not-beginning-of-line":"polyline","point-at-not-end-of-line":"polyline","point-at-polygon-centroid":"polygon","point-at-polygon-not-start":"polygon","point-at-polygon-start":"polygon","point-identity":"point","point-primary-identity":"point","polygon-boundary":"polygon","polygon-boundary-two-point":"polygon","polygon-identity":"polygon","polygon-primary-identity":"polygon","polygon-vertices":"polygon","radial-lines":"polyline","two-point-lines":"polyline"};export{o as builderInputGeometryTypes,i as builderTypesKebabDict};
|
package/editing/templateUtils.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{Z as e}from"../chunks/languageUtils.js";import{getOrCreateMapValue as
|
|
5
|
+
import{Z as e}from"../chunks/languageUtils.js";import t from"../core/Logger.js";import{getOrCreateMapValue as r}from"../core/MapUtils.js";import{throwIfAborted as n}from"../core/promiseUtils.js";import{addMaybe as i}from"../core/SetUtils.js";import{isFeatureTemplateDefinition as o,isGroupTemplateDefinition as s,isPresetTemplateDefinition as a}from"./sharedTemplates/templateDefinitions/templateDefinitionUtils.js";import{isSubtypeGroupLayer as l,isFeatureLayer as f}from"../layers/support/layerUtils.js";import{getServices as u}from"../undoredo/support/Services.js";const p=()=>t.getLogger("esri.editing.templateUtils");function c(e){return null!=e&&"prototype"in e}function m(e){return d(e)&&!("definition"in e)}function y(e){return d(e)&&"definition"in e}function d(e){return null!=e&&"templateId"in e}function g(e){return y(e)&&"feature"===e?.type&&(null==e.definition||o(e.definition))}function w(e){return y(e)&&"group"===e?.type&&(null==e.definition||s(e.definition))}function A(e){return y(e)&&"preset"===e?.type&&(null==e.definition||a(e.definition))}function h(e){return y(e)&&null!=e?.definition}const j=e=>{if(null==e||"object"!=typeof e)return[];return[..."templates"in e&&Array.isArray(e.templates)?e.templates:[],..."types"in e&&Array.isArray(e.types)?e.types.flatMap((e=>e.templates)):[]]};async function v(e,t,r){if(null==t)return e.map((e=>({layer:e,templates:j(e)})));const i=await M(e,t);n(r);const o=new Map,s=Array.from(i).map((e=>S({serviceInfo:e,out:o,signal:r,view:t}))),a=await Promise.allSettled(s);for(const n of a.filter((e=>"rejected"===e.status)))p().warn("Failed to fetch shared templates for service. Will use standard templates if available.",n.reason);return e.map((e=>({layer:e,templates:o.get(e)??j(e)})))}async function S({serviceInfo:e,out:t,signal:r}){const{featureService:i,layersAndTables:o}=e,s=await b({featureService:i,layers:o.toArray(),signal:r});n(r);for(const[n,a]of s.entries())if(0!==a.length)if(l(n)){const e=L(a),r=[],i=e.get(1/0)??r;for(const o of n.sublayers){const n=e.get(o.subtypeCode)??r;t.set(o,[...n,...i])}}else t.set(n,a)}async function b({featureService:e,layers:t,signal:n}){if(!e.capabilities?.editing.supportsSharedTemplates)return new Map;const i=new Map(t.map((e=>[e.layerId,e]))),o=await e.querySharedTemplates({query:{layers:Array.from(i.keys())},requestOptions:{signal:n}}),s=new Map;for(const a of o)for(const e of a.layerIds)i.has(e)&&r(s,i.get(e),(()=>[])).push(a);return s}async function M(e,t){const r=await u(t).load(),n=new Set;for(const o of e)i(n,U(r,o));return await Promise.all(Array.from(n).map((e=>e.featureService.load()))),n}function U(t,r){return e(r)&&r.parent?t.tablesAndLayersLookup.get(r.parent):f(r)?t.tablesAndLayersLookup.get(r):null}function L(e){const t=new Map;for(const n of e)r(t,n.subtypeCode??1/0,(()=>[])).push(n);return t}export{j as getAllStandardFeatureTemplatesForLayer,U as getServiceInfoForLayer,v as getTemplatesForLayers,h as isLoadedSharedTemplate,g as isSharedFeatureTemplate,w as isSharedGroupTemplate,A as isSharedPresetTemplate,y as isSharedTemplate,m as isSharedTemplateMetadata,d as isSharedTemplateOrMetadata,c as isStandardFeatureTemplate};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{t as e,l as t,G as n,b as r}from"../../chunks/Geometry.js";import{Envelope2D as o}from"../../chunks/Envelope2D.js";import{
|
|
5
|
+
import{t as e,l as t,G as n,b as r}from"../../chunks/Geometry.js";import{Envelope2D as o}from"../../chunks/Envelope2D.js";import{c as s,P as a,A as i,B as g}from"../../chunks/Envelope.js";import{S as m,j as u}from"../../chunks/QuadraticBezier.js";import{w as c}from"../../chunks/Point2D.js";import{getSpatialReference as l,fromPolyline as p,fromSpatialReference as d,toPolyline as h}from"./support/apiConverter.js";function f(t,n,r,a,i){if(t.isEmpty()||n.isEmpty())return null;if(8&a&&16&a)return null;2&a&&4&a&&e("");const g=new o,m=new o;t.queryEnvelope(g),n.queryEnvelope(m),g.mergeEnvelope2D(m);return P(t,n,s(r,g,!0).total(),a)}function P(e,o,s,i){t(e),t(o);let g,c=!1;const l=e.querySegmentIterator(),p=o.querySegmentIterator();let d=0;const h=new m,f=new a({vd:e.getDescription()}),P=new a({vd:e.getDescription()}),y=[],x=[];for(S(e,y,x);l.nextPath();){let t=!0,o=0;for(;2!==o;){if(0===o){l.nextSegment().getGeometryType()!==n.enumLine&&r(""),o++}else{l.resetToLastSegment();if(l.previousSegment().getGeometryType()!==n.enumLine&&r(""),c&&t){const n=l.getPathIndex();g.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),!0),t=!1}o++}let a=!1;if(d<x.length){const e=x[y[d]],t=l.getPathIndex();if(e.m_path===t){const t=1===o?l.getStartPointIndex():l.getEndPointIndex();e.m_pointIndex===t&&(a=!0,d++)}}if(1===o){if(8&i)continue}else if(16&i)continue;if(!a){1===o?l.previousSegment():l.nextSegment();const a=1===o?l.nextSegment():l.previousSegment(),m=a,d=m.calculateLength2D();p.resetToFirstPath();let y=!1,S=Number.NaN;for(;p.nextPath();){for(;p.hasNextSegment();){const e=p.nextSegment();e.getGeometryType()!==n.enumLine&&r("");const t=e,{bIntersect:a,t1:i,t2:g}=u(m,t);if(a){const e=t.calculateLength2D();if(g*e>=-s&&(1-g)*e>=-s)if(1===o){if(i*d<=-s)(Number.isNaN(S)||i>S)&&(S=i);else if(i*d<=s){S=Number.NaN,y=!0;break}}else if((1-i)*d<=-s)(Number.isNaN(S)||i<S)&&(S=i);else if((1-i)*d<=s){S=Number.NaN,y=!0;break}}}if(y)break}if(!Number.isNaN(S)){if(!c){g=e.createInstance();for(let t=0;t<l.getPathIndex();t++)g.addPath(e,t,!0)}if(1===o){a.queryCoord(S,f);const n=l.getPathIndex();if(2&i?e.getPointByVal(e.getPathStart(n),P):4&i&&P.setEmpty(),1&i||(h.create(a.getGeometryType()),a.copyTo(h.get()),h.get().setEnd(f),h.get().reverse(),g.addSegment(h.get(),!0),t=!1),g.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),t),1&i){const e=g.getPathStart(n);g.setPointByVal(e,f)}if(2&i||4&i){const e=g.getPathStart(n),t=f.getXY();P.setXY(t),g.setPointByVal(e,P)}c=!0,t=!1}else{const n=l.getPathIndex();if(t&&(g.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),!0),t=!1),2&i?e.getPointByVal(e.getPathEnd(n)-1,P):4&i&&P.setEmpty(),a.queryCoord(S,f),1&i){const e=g.getPathEnd(n);g.setPointByVal(e-1,f)}else h.create(a.getGeometryType()),a.copyTo(h.get()),h.get().setEnd(f),g.addSegment(h.get(),!1);if(2&i||4&i){const e=g.getPathEnd(n),t=f.getXY();P.setXY(t),g.setPointByVal(e-1,P)}c=!0}}}}}return c?g:null}function y(e,t){return{m_path:e,m_pointIndex:t}}function S(e,t,n){const r=[],o=[],s=e.querySegmentIterator();for(;s.nextPath();){s.resetToFirstSegment();const e=s.nextSegment().getStartXY(),t=s.getPathIndex(),n=s.getStartPointIndex();r.push(e),o.push(y(t,n)),s.resetToLastSegment();const a=s.previousSegment().getEndXY(),i=s.getPathIndex(),g=s.getEndPointIndex();r.push(a),o.push(y(i,g))}const a=new i(0);for(let i=0;i<r.length;i++)a.add(i);const m={userSort(e,t,n){n.sort(e,t,((e,t)=>r[e].compare(r[t])))},getValue:e=>r[e].y};(new g).sort(a,0,a.size(),m);for(let i=0;i<a.size()-1;i++){const e=r[a.read(i)];if(e.equals(r[a.read(i+1)])){do{const e=o[a.read(i)];n.push(e),i++}while(i<a.size()&&e.equals(r[a.read(i)]));i--}}c(t,n.length,0);for(let i=0;i<n.length;i++)t[i]=i;t.sort(((e,t)=>{const r=n[e],o=n[t];return r.m_path<o.m_path?-1:r.m_path>o.m_path?1:r.m_pointIndex<o.m_pointIndex?-1:1}))}class x{getOperatorType(){return 10007}supportsCurves(){return!1}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,r,o){return f(e,t,n,r)}}const E=new x;function I(e,t,n){let r=0;n&&(n.relocateEnds&&(r|=1),n.keepEndAttributes&&(r|=2),n.noEndAttributes&&(r|=4),n.noExtendAtFrom&&(r|=8),n.noExtendAtTo&&(r|=16));const o=l(e),s=E.execute(p(e),p(t),d(o),r,null);return s?h(s,o):null}const N=E.supportsCurves();export{I as execute,N as supportsCurves};
|