@arcgis/core 6.0.0-next.44 → 6.0.0-next.46
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/Basemap.d.ts +2 -1
- package/Camera.d.ts +2 -1
- package/Graphic.d.ts +2 -1
- package/Ground.d.ts +2 -1
- package/Map.d.ts +2 -1
- package/PopupTemplate.d.ts +2 -1
- package/WebDocument2D.d.ts +2 -1
- package/WebScene.d.ts +2 -1
- package/analysis/Analysis.d.ts +2 -1
- package/analysis/DimensionSimpleStyle.d.ts +2 -1
- package/analysis/LengthDimension.d.ts +2 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +2 -1
- package/analysis/LineOfSightAnalysisTarget.d.ts +2 -1
- package/analysis/SlicePlane.d.ts +2 -1
- package/analysis/Viewshed.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +2 -1
- package/arcgisGlobal.d.ts +1 -3
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d64054cd6865d3a1af78.js → 0ac38ca04285cd5ef1a0.js} +3 -3
- package/assets/esri/core/workers/chunks/{c420ab79d85e5dbddb0b.js → 3e67d50a2b2f8f837831.js} +1 -1
- package/assets/esri/core/workers/chunks/{0caaa03659f4f4e8df03.js → b3c0c9c91bcdbbb8e719.js} +1 -1
- package/basemapGallery/PortalBasemapsSource.d.ts +2 -1
- package/basemapGallery/support/BasemapItem.d.ts +2 -1
- package/chunks/AtmosphereCompositing.glsl.js +24 -6
- package/chunks/ChapmanAtmosphere.glsl.js +32 -25
- package/chunks/EmissionComposite.glsl.js +1 -1
- package/{portal/schemas → chunks}/definitions.js +1 -1
- package/chunks/webScene.js +2 -0
- package/config.js +1 -1
- package/core/Clonable.d.ts +2 -1
- package/core/Evented.d.ts +2 -1
- package/core/Identifiable.d.ts +2 -1
- package/core/JSONSupport.d.ts +2 -1
- package/core/Loadable.d.ts +2 -1
- package/core/MultiOriginJSONSupport.d.ts +2 -1
- package/core/Promise.d.ts +2 -1
- package/core/ReadOnlyMultiOriginJSONSupport.d.ts +2 -1
- package/editing/sharedTemplates/SharedTemplate.d.ts +2 -1
- package/effects/FocusArea.d.ts +2 -1
- package/effects/FocusAreaOutline.d.ts +2 -1
- package/effects/FocusAreas.d.ts +2 -1
- package/form/FormTemplate.d.ts +2 -1
- package/form/elements/UtilityNetworkAssociationsElement.d.ts +2 -1
- package/form/elements/inputs/attachments/Input.d.ts +2 -1
- package/geometry/Mesh.d.ts +2 -1
- package/geometry/operators/support/GeographicTransformation.d.ts +2 -1
- package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -1
- package/geometry/support/MeshComponent.d.ts +2 -1
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +2 -1
- package/geometry/support/MeshLocalVertexSpace.d.ts +2 -1
- package/geometry/support/MeshMaterial.d.ts +2 -1
- package/geometry/support/MeshTexture.d.ts +2 -1
- package/geometry/support/MeshTextureTransform.d.ts +2 -1
- package/geometry/support/MeshTransform.d.ts +2 -1
- package/geometry/support/MeshVertexAttributes.d.ts +2 -1
- package/interfaces.d.ts +0 -82
- package/kernel.js +1 -1
- package/layerList/Item.d.ts +2 -1
- package/layerList/ItemPanel.d.ts +2 -1
- package/layerList/TableItem.d.ts +2 -1
- package/layerList/TableItemPanel.d.ts +2 -1
- package/layers/AnnotationFeatureLayer.d.ts +2 -1
- package/layers/BaseDynamicLayer.d.ts +2 -1
- package/layers/BaseElevationLayer.d.ts +2 -1
- package/layers/BaseTileLayer.d.ts +2 -1
- package/layers/BingMapsLayer.d.ts +2 -1
- package/layers/BuildingSceneLayer.d.ts +2 -1
- package/layers/CSVLayer.d.ts +2 -1
- package/layers/CatalogLayer.d.ts +2 -1
- package/layers/DimensionFeatureLayer.d.ts +2 -1
- package/layers/DimensionLayer.d.ts +2 -1
- package/layers/ElevationLayer.d.ts +2 -1
- package/layers/FeatureLayer.d.ts +2 -1
- package/layers/GaussianSplatLayer.d.ts +2 -1
- package/layers/GeoJSONLayer.d.ts +2 -1
- package/layers/GeoRSSLayer.d.ts +2 -1
- package/layers/GeospatialPDFLayer.d.ts +2 -1
- package/layers/GraphicsLayer.d.ts +2 -1
- package/layers/GroupLayer.d.ts +2 -1
- package/layers/ImageryLayer.d.ts +2 -1
- package/layers/ImageryTileLayer.d.ts +2 -1
- package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -1
- package/layers/IntegratedMeshLayer.d.ts +2 -1
- package/layers/KMLLayer.d.ts +2 -1
- package/layers/KnowledgeGraphLayer.d.ts +2 -1
- package/layers/Layer.d.ts +2 -1
- package/layers/LineOfSightLayer.d.ts +2 -1
- package/layers/LinkChartLayer.d.ts +2 -1
- package/layers/MapImageLayer.d.ts +2 -1
- package/layers/MapNotesLayer.d.ts +2 -1
- package/layers/MediaLayer.d.ts +2 -1
- package/layers/OGCFeatureLayer.d.ts +2 -1
- package/layers/ParquetLayer.d.ts +2 -1
- package/layers/PointCloudLayer.d.ts +2 -1
- package/layers/RouteLayer.d.ts +2 -1
- package/layers/SceneLayer.d.ts +2 -1
- package/layers/SketchLayer.d.ts +2 -1
- package/layers/StreamLayer.d.ts +2 -1
- package/layers/SubtypeGroupLayer.d.ts +2 -1
- package/layers/TileLayer.d.ts +2 -1
- package/layers/UnknownLayer.d.ts +2 -1
- package/layers/UnsupportedLayer.d.ts +2 -1
- package/layers/VectorTileLayer.d.ts +2 -1
- package/layers/VideoLayer.d.ts +2 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/ViewshedLayer.d.ts +2 -1
- package/layers/VoxelLayer.d.ts +2 -1
- package/layers/WCSLayer.d.ts +2 -1
- package/layers/WFSLayer.d.ts +3 -2
- package/layers/WMSLayer.d.ts +2 -1
- package/layers/WMTSLayer.d.ts +2 -1
- package/layers/WebTileLayer.d.ts +2 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +2 -1
- package/layers/buildingSublayers/BuildingSublayer.d.ts +2 -1
- package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -1
- package/layers/mixins/APIKeyMixin.d.ts +2 -1
- package/layers/mixins/ArcGISCachedService.d.ts +2 -1
- package/layers/mixins/ArcGISImageService.d.ts +2 -1
- package/layers/mixins/ArcGISMapService.d.ts +2 -1
- package/layers/mixins/BlendLayer.d.ts +2 -1
- package/layers/mixins/CustomParametersMixin.d.ts +2 -1
- package/layers/mixins/DataSeriesLayer.d.ts +2 -1
- package/layers/mixins/DisplayFilteredLayer.d.ts +2 -1
- package/layers/mixins/EditBusLayer.d.ts +2 -1
- package/layers/mixins/FeatureEffectLayer.d.ts +2 -1
- package/layers/mixins/FeatureLayerBase.d.ts +2 -1
- package/layers/mixins/FeatureReductionLayer.d.ts +2 -1
- package/layers/mixins/OperationalLayer.d.ts +2 -1
- package/layers/mixins/OrderedLayer.d.ts +2 -1
- package/layers/mixins/PortalLayer.d.ts +2 -1
- package/layers/mixins/PublishableLayer.d.ts +2 -1
- package/layers/mixins/RasterPresetRendererMixin.d.ts +2 -1
- package/layers/mixins/RefreshableLayer.d.ts +2 -1
- package/layers/mixins/ReloadableLayer.d.ts +2 -1
- package/layers/mixins/ScaleRangeLayer.d.ts +2 -1
- package/layers/mixins/SceneService.d.ts +2 -1
- package/layers/mixins/SublayersOwner.d.ts +2 -1
- package/layers/mixins/TemporalLayer.d.ts +2 -1
- package/layers/mixins/TiledImagery.d.ts +2 -1
- package/layers/mixins/TrackableLayer.d.ts +2 -1
- package/layers/orientedImagery/core/ElevationSourceDefinitions.d.ts +2 -1
- package/layers/support/AnnotationFeatureSublayer.d.ts +2 -1
- package/layers/support/BuildingFilterMode.d.ts +2 -1
- package/layers/support/BuildingSummaryStatistics.d.ts +2 -1
- package/layers/support/ControlPointsGeoreference.d.ts +2 -1
- package/layers/support/DisplayFilter.d.ts +2 -1
- package/layers/support/DisplayFilterInfo.d.ts +2 -1
- package/layers/support/EditFieldsInfo.d.ts +2 -1
- package/layers/support/ExpressionInfo.d.ts +2 -1
- package/layers/support/FeatureReductionBinning.d.ts +2 -1
- package/layers/support/FeatureReductionCluster.d.ts +2 -1
- package/layers/support/FeatureTemplate.d.ts +2 -1
- package/layers/support/FeatureType.d.ts +2 -1
- package/layers/support/FieldConfiguration.d.ts +2 -1
- package/layers/support/FieldFormat.d.ts +2 -1
- package/layers/support/GeometryEncodingLocation.d.ts +2 -1
- package/layers/support/GeometryEncodingWkb.d.ts +2 -1
- package/layers/support/GeometryFieldsInfo.d.ts +2 -1
- package/layers/support/KMLSublayer.d.ts +2 -1
- package/layers/support/LocalMediaElementSource.d.ts +2 -1
- package/layers/support/MediaElementBase.d.ts +2 -1
- package/layers/support/ParquetFilesData.d.ts +2 -1
- package/layers/support/ParquetPortalItemData.d.ts +2 -1
- package/layers/support/PlaybackInfo.d.ts +2 -1
- package/layers/support/PortalItemData.d.ts +2 -1
- package/layers/support/Relationship.d.ts +2 -1
- package/layers/support/SceneModifications.d.ts +2 -1
- package/layers/support/Sublayer.d.ts +2 -1
- package/layers/support/Subtype.d.ts +2 -1
- package/layers/support/SubtypeSublayer.d.ts +2 -1
- package/layers/support/SymbolLayerDrawing.d.ts +2 -1
- package/layers/support/TelemetryData.d.ts +2 -1
- package/layers/support/TelemetryDisplay.d.ts +2 -1
- package/layers/support/TimeInfo.d.ts +2 -1
- package/layers/support/TimeSeriesCalculationMethod.d.ts +2 -1
- package/layers/support/TimeSeriesFieldTimeMapping.d.ts +2 -1
- package/layers/support/TimeSeriesInfo.d.ts +2 -1
- package/layers/support/TrackInfo.d.ts +2 -1
- package/layers/support/TrackPartInfo.d.ts +2 -1
- package/layers/support/VideoTimeExtent.d.ts +2 -1
- package/layers/support/WMSSublayer.d.ts +2 -1
- package/layers/support/schemaValidator.js +1 -1
- package/layers/voxel/VoxelColorStop.d.ts +2 -1
- package/layers/voxel/VoxelDynamicSection.d.ts +2 -1
- package/layers/voxel/VoxelIsosurface.d.ts +2 -1
- package/layers/voxel/VoxelOpacityStop.d.ts +2 -1
- package/layers/voxel/VoxelRangeFilter.d.ts +2 -1
- package/layers/voxel/VoxelSlice.d.ts +2 -1
- package/layers/voxel/VoxelTransferFunctionStyle.d.ts +2 -1
- package/layers/voxel/VoxelUniqueValue.d.ts +2 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +2 -1
- package/linkChart/LayoutSettings.d.ts +2 -1
- package/linkChart/LinkChartProperties.d.ts +2 -1
- package/linkChart/NonspatialDataDisplay.d.ts +2 -1
- package/linkChart/OrganicLayoutSettings.d.ts +2 -1
- package/linkChart/RootedLayoutSettings.d.ts +2 -1
- package/networks/Network.d.ts +2 -1
- package/networks/support/Circuit.d.ts +2 -1
- package/networks/support/CircuitSection.d.ts +2 -1
- package/networks/support/NamedTraceConfiguration.d.ts +2 -1
- package/networks/support/Subcircuit.d.ts +2 -1
- package/networks/support/TraceConfiguration.d.ts +2 -1
- package/networks/support/UNTraceConfiguration.d.ts +2 -1
- package/package.json +5 -5
- package/parcelFabric/ParcelFabric.d.ts +2 -1
- package/popup/FeatureModel.d.ts +2 -1
- package/popup/FeaturesModel.d.ts +2 -1
- package/popup/FieldInfo.d.ts +2 -1
- package/popup/content/AttachmentsContent.d.ts +2 -1
- package/popup/content/RelationshipContent.d.ts +2 -1
- package/popup/content/UtilityNetworkAssociationsContent.d.ts +2 -1
- package/popup/support/AttachmentsOrderByInfo.d.ts +2 -1
- package/popup/support/FieldInfoFormat.d.ts +2 -1
- package/popup/support/UtilityNetworkAssociationType.d.ts +2 -1
- package/portal/Portal.d.ts +2 -1
- package/portal/PortalItem.d.ts +2 -1
- package/renderers/ClassBreaksRenderer.d.ts +2 -1
- package/renderers/DictionaryRenderer.d.ts +2 -1
- package/renderers/DotDensityRenderer.d.ts +2 -1
- package/renderers/FlowRenderer.d.ts +8 -6
- package/renderers/PieChartRenderer.d.ts +2 -1
- package/renderers/SimpleRenderer.d.ts +2 -1
- package/renderers/UniqueValueRenderer.d.ts +2 -1
- package/renderers/VectorFieldRenderer.d.ts +2 -1
- package/renderers/mixins/VisualVariablesMixin.d.ts +2 -1
- package/renderers/support/HeatmapLegendOptions.d.ts +2 -1
- package/renderers/support/OthersCategory.d.ts +2 -1
- package/renderers/support/RasterPresetRenderer.d.ts +2 -1
- package/renderers/support/RendererLegendOptions.d.ts +2 -1
- package/renderers/support/UniqueValue.d.ts +2 -1
- package/renderers/support/UniqueValueClass.d.ts +2 -1
- package/renderers/support/UniqueValueGroup.d.ts +2 -1
- package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +2 -1
- package/rest/featureService/FeatureService.d.ts +2 -1
- package/rest/layerSources/DynamicDataLayer.d.ts +2 -1
- package/rest/layerSources/DynamicWorkspaceLayer.d.ts +2 -1
- package/rest/networks/support/TraceLocation.d.ts +2 -1
- package/rest/print.js +1 -1
- package/rest/support/AttributeBinsFeatureSet.d.ts +2 -1
- package/rest/support/AttributeBinsGrouping.d.ts +2 -1
- package/rest/support/AttributeBinsQuery.d.ts +2 -1
- package/rest/support/AutoIntervalBinParameters.d.ts +2 -1
- package/rest/support/BinParametersBase.d.ts +2 -1
- package/rest/support/CameraInfo.d.ts +2 -1
- package/rest/support/CameraInfoMixin.d.ts +2 -1
- package/rest/support/ClosestFacilityParameters.d.ts +2 -1
- package/rest/support/DataLayer.d.ts +2 -1
- package/rest/support/DateBinTimeInterval.d.ts +2 -1
- package/rest/support/DirectionLine.d.ts +2 -1
- package/rest/support/DirectionPoint.d.ts +2 -1
- package/rest/support/FindImagesParameters.d.ts +2 -1
- package/rest/support/FixedIntervalBinParameters.d.ts +2 -1
- package/rest/support/ImageBoundaryParameters.d.ts +2 -1
- package/rest/support/ImageGPSInfoParameters.d.ts +2 -1
- package/rest/support/ImageInspectionInfo.d.ts +2 -1
- package/rest/support/ImageToMapMultirayParameters.d.ts +2 -1
- package/rest/support/ImageToMapParameters.d.ts +2 -1
- package/rest/support/ImageUrlParameters.d.ts +2 -1
- package/rest/support/ImageVolumeParameters.d.ts +2 -1
- package/rest/support/LastMileDeliveryParameters.d.ts +2 -1
- package/rest/support/LocateSettingBase.d.ts +2 -1
- package/rest/support/LocateSettingSource.d.ts +2 -1
- package/rest/support/LocateSettings.d.ts +2 -1
- package/rest/support/LocateSettingsOverrides.d.ts +2 -1
- package/rest/support/MapToImageParameters.d.ts +2 -1
- package/rest/support/NetworkUrl.d.ts +2 -1
- package/rest/support/NormalizationBinParametersMixin.d.ts +2 -1
- package/rest/support/OutDistance.d.ts +2 -1
- package/rest/support/PointBarrier.d.ts +2 -1
- package/rest/support/PolygonBarrier.d.ts +2 -1
- package/rest/support/PolylineBarrier.d.ts +2 -1
- package/rest/support/RouteInfo.d.ts +2 -1
- package/rest/support/RouteParameters.d.ts +2 -1
- package/rest/support/ServiceAreaParameters.d.ts +2 -1
- package/rest/support/Stop.d.ts +2 -1
- package/rest/support/TravelMode.d.ts +2 -1
- package/support/LayersMixin.d.ts +2 -1
- package/support/TablesMixin.d.ts +2 -1
- package/support/actions/ActionBase.d.ts +2 -1
- package/symbols/LineStyleMarker3D.d.ts +2 -1
- package/symbols/patterns/LinePattern3D.d.ts +2 -1
- package/symbols/patterns/Pattern3D.d.ts +2 -1
- package/symbols/support/ElevationInfo.d.ts +2 -1
- package/symbols/support/OccludedVisibility.d.ts +2 -1
- package/symbols/support/Symbol3DEmissive.d.ts +2 -1
- package/symbols/support/Symbol3DMaterial.d.ts +2 -1
- package/symbols/support/Symbol3DTextBackground.d.ts +2 -1
- package/tables/elements/AttributeTableAttachmentElement.d.ts +2 -1
- package/tables/elements/AttributeTableFieldElement.d.ts +2 -1
- package/tables/elements/AttributeTableGroupElement.d.ts +2 -1
- package/tables/elements/AttributeTableRelationshipElement.d.ts +2 -1
- package/tables/support/FieldOrder.d.ts +2 -1
- package/time/TimeInterval.d.ts +2 -1
- package/versionManagement/VersionManagementService.d.ts +2 -1
- package/versionManagement/VersioningState.d.ts +2 -1
- package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
- package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/DragManipulation.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/RotateManipulation.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/utils.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +2 -1
- package/views/3d/environment/VirtualLighting.d.ts +2 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +3 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +14 -13
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +14 -4
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +2 -0
- package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionFader.js +2 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/IndexLayout.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
- package/views/BreakpointsOwner.d.ts +2 -1
- package/views/DOMContainer.d.ts +2 -1
- package/views/PopupView.d.ts +2 -1
- package/views/SceneView.d.ts +2 -1
- package/views/Theme.d.ts +2 -1
- package/views/VideoView.d.ts +2 -1
- package/views/View.d.ts +2 -1
- package/views/View2D.d.ts +2 -1
- package/views/Viewport2DMixin.d.ts +2 -1
- package/views/analysis/AnalysisView.d.ts +2 -1
- package/views/draw/DrawAction.d.ts +2 -1
- package/views/interactive/GraphicManipulator.d.ts +4 -0
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/options/SnappingOptions.d.ts +2 -1
- package/views/layers/FeatureLikeLayerView.d.ts +0 -32
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/layers/GraphicsLayerView.d.ts +0 -32
- package/views/layers/GraphicsLayerView.js +1 -1
- package/views/layers/ImageryLayerView.d.ts +1 -62
- package/views/layers/LayerView.d.ts +2 -1
- package/views/layers/LayerView.js +1 -1
- package/views/layers/PointCloudLayerView.d.ts +2 -1
- package/views/ui/UI.d.ts +1 -12
- package/views/webgl/Program.js +2 -2
- package/webdoc/GeotriggersInfo.d.ts +2 -1
- package/webdoc/IPSInfo.d.ts +2 -1
- package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +2 -1
- package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureFilter.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +2 -1
- package/webdoc/geotriggersInfo/Geotrigger.d.ts +2 -1
- package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +2 -1
- package/webdoc/ips/AppleIPSProperties.d.ts +2 -1
- package/webdoc/ips/Configuration.d.ts +2 -1
- package/webdoc/ips/GNSSProperties.d.ts +2 -1
- package/webdoc/ips/PathSnappingProperties.d.ts +2 -1
- package/webdoc/ips/PositioningService.d.ts +2 -1
- package/webdoc/ips/SmoothingProperties.d.ts +2 -1
- package/webdoc/support/SlideThumbnail.d.ts +2 -1
- package/webmap/Bookmark.d.ts +2 -1
- package/webmap/InitialViewProperties.d.ts +2 -1
- package/webscene/Glow.d.ts +2 -1
- package/webscene/InitialViewProperties.d.ts +2 -1
- package/webscene/Presentation.d.ts +2 -1
- package/webscene/Slide.d.ts +2 -1
- package/webscene/SlideLegendInfo.d.ts +2 -1
- package/webscene/spec-certification/spec.js +1 -1
- package/webscene/support/Description.d.ts +2 -1
- package/webscene/support/FeatureReference.d.ts +2 -1
- package/webscene/support/FeatureReferenceId.d.ts +2 -1
- package/webscene/support/LayerReference.d.ts +2 -1
- package/webscene/support/SlideElements.d.ts +2 -1
- package/webscene/support/SlideEnvironment.d.ts +2 -1
- package/webscene/support/SlideGround.d.ts +2 -1
- package/webscene/support/SlidePopupInfo.d.ts +2 -1
- package/webscene/support/SlideVisibleLayer.d.ts +2 -1
- package/webscene/support/Title.d.ts +2 -1
- package/webscene/support/schemaValidator.js +1 -1
- package/webscene/version.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +2 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -1
- package/widgets/BasemapLayerList.d.ts +2 -1
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +2 -1
- package/widgets/Bookmarks.d.ts +2 -1
- package/widgets/CatalogLayerList.d.ts +2 -1
- package/widgets/Compass/CompassViewModel.d.ts +2 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -1
- package/widgets/Directions/DirectionsViewModel.d.ts +2 -1
- package/widgets/Feature/FeatureViewModel.d.ts +2 -1
- package/widgets/FeatureForm/FeatureFormViewModel.d.ts +2 -1
- package/widgets/FeatureForm/UtilityNetworkAssociationInput.d.ts +2 -1
- package/widgets/FeatureTable/support/ColumnTemplate.d.ts +2 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +2 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.d.ts +2 -1
- package/widgets/FeatureTable/support/FieldColumnTemplate.d.ts +2 -1
- package/widgets/FeatureTable/support/TableTemplate.d.ts +2 -1
- package/widgets/FeatureTemplates/TemplateItemGroup.d.ts +2 -1
- package/widgets/Features/FeaturesViewModel.d.ts +2 -1
- package/widgets/FloorFilter/FloorFilterViewModel.d.ts +2 -1
- package/widgets/Home/HomeViewModel.d.ts +2 -1
- package/widgets/LayerList/ListItem.d.ts +2 -1
- package/widgets/LayerList/ListItemPanel.d.ts +2 -1
- package/widgets/LayerList.d.ts +2 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +2 -1
- package/widgets/Print/PrintViewModel.d.ts +2 -1
- package/widgets/Search/SearchSource.d.ts +2 -1
- package/widgets/Search/SearchViewModel.d.ts +2 -1
- package/widgets/TableList/ListItem.d.ts +2 -1
- package/widgets/TableList/ListItemPanel.d.ts +2 -1
- package/widgets/TableList.d.ts +2 -1
- package/widgets/Widget.d.ts +2 -1
- package/widgets/support/GeolocationPositioning.d.ts +2 -1
- package/widgets/support/GoTo.d.ts +2 -1
- package/widgets/types.d.ts +0 -21
- package/assets/esri/widgets/Attribution/t9n/messages.ar.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.bg.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.bs.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ca.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.cs.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.da.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.de.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.el.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.en.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.es.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.et.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.fi.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.fr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.he.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.hr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.hu.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.id.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.it.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ja.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ko.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.lt.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.lv.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.nl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.no.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pt-BR.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pt-PT.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ro.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ru.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sk.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sv.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.th.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.tr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.uk.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.vi.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-CN.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-HK.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-TW.json +0 -1
- package/chunks/CloudsComposition.glsl.js +0 -3
- package/popup/content.d.ts +0 -192
- package/popup/content.js +0 -2
- package/portal/schemas/buildingSceneLayerItem.js +0 -2
- package/portal/schemas/gaussianSplatLayerItem.js +0 -2
- package/portal/schemas/integratedMesh3DTilesLayerItem.js +0 -2
- package/portal/schemas/integratedMeshLayerItem.js +0 -2
- package/portal/schemas/pointCloudLayerItem.js +0 -2
- package/portal/schemas/sceneLayerItem.js +0 -2
- package/portal/schemas/webScene.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsCompositionTechnique.js +0 -2
- package/widgets/Attribution/AttributionViewModel.d.ts +0 -41
- package/widgets/Attribution/AttributionViewModel.js +0 -2
- package/widgets/Attribution.d.ts +0 -105
- package/widgets/Attribution.js +0 -2
|
@@ -41,4 +41,5 @@ export default class MapToImageParameters extends MapToImageParametersSuperclass
|
|
|
41
41
|
*/
|
|
42
42
|
accessor visibleOnly: boolean;
|
|
43
43
|
}
|
|
44
|
-
declare const MapToImageParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
44
|
+
declare const MapToImageParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
45
|
+
export {};
|
|
@@ -18,4 +18,5 @@ export default class NetworkUrl extends NetworkUrlSuperclass {
|
|
|
18
18
|
/** A url to any ArcGIS Server feature, map, or geoprocessing service that returns a JSON feature set. */
|
|
19
19
|
accessor url: string | null | undefined;
|
|
20
20
|
}
|
|
21
|
-
declare const NetworkUrlSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
21
|
+
declare const NetworkUrlSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
22
|
+
export {};
|
|
@@ -74,4 +74,5 @@ export default class OutDistance extends OutDistanceSuperclass {
|
|
|
74
74
|
*/
|
|
75
75
|
accessor returnDistance: boolean | null | undefined;
|
|
76
76
|
}
|
|
77
|
-
declare const OutDistanceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
77
|
+
declare const OutDistanceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
78
|
+
export {};
|
|
@@ -76,4 +76,5 @@ export default class PointBarrier extends PointBarrierSuperclass {
|
|
|
76
76
|
*/
|
|
77
77
|
toGraphic(): Graphic;
|
|
78
78
|
}
|
|
79
|
-
declare const PointBarrierSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
79
|
+
declare const PointBarrierSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
80
|
+
export {};
|
|
@@ -65,4 +65,5 @@ export default class PolygonBarrier extends PolygonBarrierSuperclass {
|
|
|
65
65
|
*/
|
|
66
66
|
toGraphic(): Graphic;
|
|
67
67
|
}
|
|
68
|
-
declare const PolygonBarrierSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
68
|
+
declare const PolygonBarrierSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
69
|
+
export {};
|
|
@@ -79,4 +79,5 @@ export default class PolylineBarrier extends PolylineBarrierSuperclass {
|
|
|
79
79
|
*/
|
|
80
80
|
toGraphic(): Graphic;
|
|
81
81
|
}
|
|
82
|
-
declare const PolylineBarrierSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
82
|
+
declare const PolylineBarrierSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
83
|
+
export {};
|
|
@@ -115,4 +115,5 @@ export default class RouteInfo extends RouteInfoSuperclass {
|
|
|
115
115
|
*/
|
|
116
116
|
toGraphic(): Graphic;
|
|
117
117
|
}
|
|
118
|
-
declare const RouteInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
118
|
+
declare const RouteInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
119
|
+
export {};
|
|
@@ -639,4 +639,5 @@ export default class RouteParameters extends RouteParametersSuperclass {
|
|
|
639
639
|
*/
|
|
640
640
|
accessor useTimeWindows: boolean | null | undefined;
|
|
641
641
|
}
|
|
642
|
-
declare const RouteParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
642
|
+
declare const RouteParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
643
|
+
export {};
|
|
@@ -523,4 +523,5 @@ export default class ServiceAreaParameters extends ServiceAreaParametersSupercla
|
|
|
523
523
|
*/
|
|
524
524
|
accessor useHierarchy: boolean | null | undefined;
|
|
525
525
|
}
|
|
526
|
-
declare const ServiceAreaParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
526
|
+
declare const ServiceAreaParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
527
|
+
export {};
|
package/rest/support/Stop.d.ts
CHANGED
|
@@ -153,4 +153,5 @@ export default class TravelMode extends TravelModeSuperclass {
|
|
|
153
153
|
/** Indicates how the U-turns at junctions that could occur during network traversal are handled by the solver. */
|
|
154
154
|
uturnAtJunctions: UTurnRestriction;
|
|
155
155
|
}
|
|
156
|
-
declare const TravelModeSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
156
|
+
declare const TravelModeSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
157
|
+
export {};
|
package/support/LayersMixin.d.ts
CHANGED
package/support/TablesMixin.d.ts
CHANGED
|
@@ -96,4 +96,5 @@ export default abstract class ActionBase extends ActionBaseSuperclass {
|
|
|
96
96
|
*/
|
|
97
97
|
abstract clone(): this;
|
|
98
98
|
}
|
|
99
|
-
declare const ActionBaseSuperclass: typeof Accessor & typeof IdentifiableMixin
|
|
99
|
+
declare const ActionBaseSuperclass: typeof Accessor & typeof IdentifiableMixin
|
|
100
|
+
export {};
|
|
@@ -78,4 +78,5 @@ export default class LineStyleMarker3D extends LineStyleMarker3DSuperclass {
|
|
|
78
78
|
/** The type of marker applied to a line. */
|
|
79
79
|
get type(): "style";
|
|
80
80
|
}
|
|
81
|
-
declare const LineStyleMarker3DSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
81
|
+
declare const LineStyleMarker3DSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
82
|
+
export {};
|
|
@@ -16,4 +16,5 @@ export default abstract class LinePattern3D extends LinePattern3DSuperclass {
|
|
|
16
16
|
/** The LinePattern3D type. */
|
|
17
17
|
get type(): "style" | "template";
|
|
18
18
|
}
|
|
19
|
-
declare const LinePattern3DSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
19
|
+
declare const LinePattern3DSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
20
|
+
export {};
|
|
@@ -11,4 +11,5 @@ import type { JSONSupport } from "../../core/JSONSupport.js";
|
|
|
11
11
|
* @since 4.17
|
|
12
12
|
*/
|
|
13
13
|
export default abstract class Pattern3D extends Pattern3DSuperclass {}
|
|
14
|
-
declare const Pattern3DSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
14
|
+
declare const Pattern3DSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
15
|
+
export {};
|
|
@@ -73,4 +73,5 @@ export default class ElevationInfo<Modes extends ElevationInfoMode = ElevationIn
|
|
|
73
73
|
/** The unit for `featureExpressionInfo` and `offset` values. */
|
|
74
74
|
accessor unit: ElevationUnit | null | undefined;
|
|
75
75
|
}
|
|
76
|
-
declare const ElevationInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
76
|
+
declare const ElevationInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
77
|
+
export {};
|
|
@@ -27,4 +27,5 @@ export default class OccludedVisibility extends OccludedVisibilitySuperclass {
|
|
|
27
27
|
*/
|
|
28
28
|
accessor mode: OccludedVisibilityMode;
|
|
29
29
|
}
|
|
30
|
-
declare const OccludedVisibilitySuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
30
|
+
declare const OccludedVisibilitySuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
31
|
+
export {};
|
|
@@ -107,4 +107,5 @@ export class Symbol3DEmissive extends Symbol3DEmissiveSuperclass {
|
|
|
107
107
|
*/
|
|
108
108
|
accessor strength: number;
|
|
109
109
|
}
|
|
110
|
-
declare const Symbol3DEmissiveSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
110
|
+
declare const Symbol3DEmissiveSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
111
|
+
export {};
|
|
@@ -43,4 +43,5 @@ export default class Symbol3DMaterial extends Symbol3DMaterialSuperclass {
|
|
|
43
43
|
get emissive(): Symbol3DEmissive | null | undefined;
|
|
44
44
|
set emissive(value: Symbol3DEmissiveProperties | null | undefined);
|
|
45
45
|
}
|
|
46
|
-
declare const Symbol3DMaterialSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
46
|
+
declare const Symbol3DMaterialSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
47
|
+
export {};
|
|
@@ -24,4 +24,5 @@ export default class Symbol3DTextBackground extends Symbol3DTextBackgroundSuperc
|
|
|
24
24
|
get color(): Color | null | undefined;
|
|
25
25
|
set color(value: ColorLike | null | undefined);
|
|
26
26
|
}
|
|
27
|
-
declare const Symbol3DTextBackgroundSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
27
|
+
declare const Symbol3DTextBackgroundSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
28
|
+
export {};
|
|
@@ -32,4 +32,5 @@ export default class AttributeTableAttachmentElement extends AttributeTableAttac
|
|
|
32
32
|
*/
|
|
33
33
|
clone(): this;
|
|
34
34
|
}
|
|
35
|
-
declare const AttributeTableAttachmentElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
35
|
+
declare const AttributeTableAttachmentElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
36
|
+
export {};
|
|
@@ -33,4 +33,5 @@ export default class AttributeTableFieldElement extends AttributeTableFieldEleme
|
|
|
33
33
|
*/
|
|
34
34
|
clone(): this;
|
|
35
35
|
}
|
|
36
|
-
declare const AttributeTableFieldElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
36
|
+
declare const AttributeTableFieldElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
37
|
+
export {};
|
|
@@ -37,4 +37,5 @@ export default class AttributeTableGroupElement extends AttributeTableGroupEleme
|
|
|
37
37
|
*/
|
|
38
38
|
clone(): this;
|
|
39
39
|
}
|
|
40
|
-
declare const AttributeTableGroupElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
40
|
+
declare const AttributeTableGroupElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
41
|
+
export {};
|
|
@@ -24,4 +24,5 @@ export default class AttributeTableRelationshipElement extends AttributeTableRel
|
|
|
24
24
|
*/
|
|
25
25
|
clone(): this;
|
|
26
26
|
}
|
|
27
|
-
declare const AttributeTableRelationshipElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
27
|
+
declare const AttributeTableRelationshipElementSuperclass: typeof AttributeTableElement & typeof ClonableMixin
|
|
28
|
+
export {};
|
|
@@ -24,4 +24,5 @@ export default class AttributeTableFieldOrder extends AttributeTableFieldOrderSu
|
|
|
24
24
|
*/
|
|
25
25
|
accessor order: "asc" | "desc" | null | undefined;
|
|
26
26
|
}
|
|
27
|
-
declare const AttributeTableFieldOrderSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
27
|
+
declare const AttributeTableFieldOrderSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
28
|
+
export {};
|
package/time/TimeInterval.d.ts
CHANGED
|
@@ -59,4 +59,5 @@ export default class TimeInterval extends TimeIntervalSuperclass {
|
|
|
59
59
|
*/
|
|
60
60
|
toMilliseconds(): number;
|
|
61
61
|
}
|
|
62
|
-
declare const TimeIntervalSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
62
|
+
declare const TimeIntervalSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
63
|
+
export {};
|
|
@@ -490,4 +490,5 @@ export default class VersionManagementService extends VersionManagementServiceSu
|
|
|
490
490
|
*/
|
|
491
491
|
undo(versionIdentifier: VersionIdentifier): void;
|
|
492
492
|
}
|
|
493
|
-
declare const VersionManagementServiceSuperclass: typeof Loadable & typeof JSONSupportMixin
|
|
493
|
+
declare const VersionManagementServiceSuperclass: typeof Loadable & typeof JSONSupportMixin
|
|
494
|
+
export {};
|
|
@@ -187,4 +187,5 @@ export default class VersioningState extends VersioningStateSuperclass {
|
|
|
187
187
|
*/
|
|
188
188
|
undo(): Promise<ServiceResult>;
|
|
189
189
|
}
|
|
190
|
-
declare const VersioningStateSuperclass: typeof Loadable & typeof JSONSupportMixin
|
|
190
|
+
declare const VersioningStateSuperclass: typeof Loadable & typeof JSONSupportMixin
|
|
191
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{identity as e,translate as t,scaleByVec2 as n}from"../../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{fromValues as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f32.js";import{createVFMeshData as a,createVFScalarData as o}from"../../../../layers/raster/functions/vectorFieldUtils.js";import{DisplayObject as s}from"../DisplayObject.js";import{Mesh as c}from"../webgl/meshing/Mesh.js";import{
|
|
2
|
+
import{identity as e,translate as t,scaleByVec2 as n}from"../../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{fromValues as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f32.js";import{createVFMeshData as a,createVFScalarData as o}from"../../../../layers/raster/functions/vectorFieldUtils.js";import{DisplayObject as s}from"../DisplayObject.js";import{Mesh as c}from"../webgl/meshing/Mesh.js";import{DataType as l,PrimitiveType as u}from"../../../webgl/enums.js";import{VertexElementDescriptor as d}from"../../../webgl/VertexElementDescriptor.js";class f extends s{constructor(e=null){super(),this._source=null,this._symbolizerParameters=null,this._meshesInvalidated=!0,this.coordScale=[1,1],this.height=null,this.key=null,this.offset=null,this.stencilRef=0,this.resolution=null,this.pixelRatio=1,this.x=0,this.y=0,this.rotation=0,this.rawPixelData=null,this.meshes=null,this.width=null,this.source=e}destroy(){super.destroy(),this.meshes!=null&&(this.meshes.magdir?.destroy(),this.meshes.scalar?.destroy(),this.meshes=null)}get symbolizerParameters(){return this._symbolizerParameters}set symbolizerParameters(e){JSON.stringify(this._symbolizerParameters)!==JSON.stringify(e)&&(this._symbolizerParameters=e,this.invalidateMeshes())}get source(){return this._source}set source(e){this._source=e,this.invalidateMeshes()}invalidateMeshes(){!this._meshesInvalidated&&this.meshes!=null&&(this.meshes.magdir?.destroy(),this.meshes.scalar?.destroy(),this.meshes=null,this._meshesInvalidated=!0,this.requestRender())}updateVectorFieldMesh(e){if(this._meshesInvalidated){if(this._meshesInvalidated=!1,this.source!=null&&this.meshes==null){let{style:t}=this.symbolizerParameters;switch(t){case`beaufort_ft`:case`beaufort_km`:case`beaufort_kn`:case`beaufort_m`:case`beaufort_mi`:case`classified_arrow`:case`ocean_current_kn`:case`ocean_current_m`:case`single_arrow`:{let t=a(this.source,this.symbolizerParameters),n=this._createVectorFieldMesh(e,t);this.meshes={magdir:n}}break;case`simple_scalar`:{let t=o(this.source,this.symbolizerParameters),n=this._createVectorFieldMesh(e,t);this.meshes={scalar:n}}break;case`wind_speed`:{let t=a(this.source,this.symbolizerParameters),n=this._createVectorFieldMesh(e,t),r=o(this.source,this.symbolizerParameters),i=this._createVectorFieldMesh(e,r);this.meshes={scalar:i,magdir:n}}}}this.ready(),this.requestRender()}}_createTransforms(){return{displayViewScreenMat3:r(),localToScreenMat3:r()}}setTransform(r){let a=e(this.transforms.localToScreenMat3),[o,s]=r.toScreenNoRotation([0,0],[this.x,this.y]),c=this.resolution/this.pixelRatio/r.resolution,l=c*this.width,u=c*this.height;t(a,a,i(o,s)),n(a,a,i(l,u))}onAttach(){this.invalidateMeshes()}onDetach(){this.invalidateMeshes()}_createVectorFieldMesh(e,t){let{vertexData:n,indexData:r}=t,i={vertex:{geometry:{data:n,layout:[new d(`position`,2,l.FLOAT,0,24),new d(`offset`,2,l.FLOAT,8,24),new d(`vv`,2,l.FLOAT,16,24)]}},index:{indices:{data:r}},groups:[{index:`indices`,primitive:u.TRIANGLES}],parts:[{group:0,start:0,count:r.length}]};return new c(e.context,i)}}export{f as RasterVFDisplayObject};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"../../../../../../../core/RandomLCG.js";import{tileSize as t}from"../../../definitions.js";import{SimpleMesh as n}from"../../../meshing/SimpleMesh.js";import{
|
|
2
|
+
import e from"../../../../../../../core/RandomLCG.js";import{tileSize as t}from"../../../definitions.js";import{SimpleMesh as n}from"../../../meshing/SimpleMesh.js";import{DataType as r,SizedDepthStencilFormat as i,PrimitiveType as a,PixelType as o}from"../../../../../../webgl/enums.js";import{DisposableFramebufferObject as s}from"../../../../../../webgl/FramebufferObject.js";import{Renderbuffer as c}from"../../../../../../webgl/Renderbuffer.js";import{RenderbufferDescriptor as l}from"../../../../../../webgl/RenderbufferDescriptor.js";import{Texture as u}from"../../../../../../webgl/Texture.js";import{TextureDescriptor as d}from"../../../../../../webgl/TextureDescriptor.js";const f={pos:{count:2,type:r.UNSIGNED_SHORT}};class p{constructor(){this._dotTextureSize=0,this._dotTextures=null,this._dotMesh=null}destroy(){this._disposeTextures(),this._dotFBO?.dispose(),this._dotMesh?.destroy()}getFBO(e){if(this._dotFBO==null){let n=t,r=t,a=new d(n,r);a.samplingMode=9728,a.wrapMode=33071;let o=new c(e,new l(i.DEPTH24_STENCIL8,n,r));this._dotFBO=new s(e,a,o)}return this._dotFBO}getDotDensityMesh(e){if(this._dotMesh==null){let r=t,i=r*r,o=new Int16Array(i*2);for(let e=0;e<r;e++)for(let t=0;t<r;t++)o[2*(t+e*r)]=t,o[2*(t+e*r)+1]=e;this._dotMesh=n.create(e,{primitive:a.POINTS,vertex:o,count:i,layout:f})}return this._dotMesh}getDotDensityTextures(t,n,r){if((this._dotTextureSize!==n||this._seed!==r)&&(this._disposeTextures(),this._dotTextureSize=n,this._seed=r),this._dotTextures===null){let i=new e(r);this._dotTextures=[this._allocDotDensityTexture(t,n,i),this._allocDotDensityTexture(t,n,i)]}return this._dotTextures}_disposeTextures(){if(this._dotTextures){for(let e=0;e<this._dotTextures.length;e++)this._dotTextures[e].dispose();this._dotTextures=null}}_allocDotDensityTexture(e,t,n){let r=new Float32Array(t*t*4);for(let e=0;e<r.length;e++)r[e]=n.getFloat();let i=new d(t);return i.dataType=o.FLOAT,i.samplingMode=9728,new u(e,i,r)}}export{p as DotDensityResources};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../../Color.js";import n from"../../../../Graphic.js";import{destroyMaybe as r}from"../../../../core/maybe.js";import{watch as i}from"../../../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{project as s,initializeProjection as c}from"../../../../geometry/projectionUtils.js";import{isValid as l}from"../../../../geometry/support/spatialReferenceUtils.js";import u from"../../../../layers/GraphicsLayer.js";import d from"../../../../symbols/CIMSymbol.js";import{applyCIMSymbolColor as f}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as p}from"./manipulations/DragManipulation.js";import{InteractiveToolBase as m}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as h,mediaKeys as g}from"../../../interactive/keybindings.js";import{EditGeometryOperations as _}from"../../../interactive/editGeometry/EditGeometryOperations.js";const v=new t(`#009af2`);let y=class extends m{constructor(e){super(e),this._isOpacityToggled=!1,this._factor=1,this._initialControlPoints=null,this._graphicsLayer=new u({internal:!0,listMode:`hide`,visible:!1,effect:`drop-shadow(0px, 0px, 3px)`,title:`ControlPointsTransformationTool layer`}),this._undoStack=[],this._redoStack=[],this._sharedUndoStack=[],this._sharedRedoStack=[],this._highlightHandle=null,this.activeHandle=0,this.editSourcePoints=!1,this.type=`reshape`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._controlPointManipulations.forEach(e=>e.destroy()),this._controlPointEditGeometryOperations.forEach(e=>e.destroy()),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=r(this._graphicsLayer),this._georeference=null,this._controlPointGraphics=null,this._controlPointManipulations=null,this._graphicsLayer=null,this._controlPointEditGeometryOperations=null,this._undoStack=null,this._redoStack=null,this._initialControlPoints=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _hasValidSpatialReference(){return l(this.view.spatialReference)}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){let e=this._undoStack[this._undoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canUndo}canRedo(){let e=this._redoStack[this._redoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canRedo}undo(){if(this._undoStack.length>0){let e=this._undoStack.pop();this._controlPointEditGeometryOperations[e].undo(),this.updateGraphics(),this._redoStack.push(e)}}redo(){if(this._redoStack.length>0){let e=this._redoStack.pop();this._controlPointEditGeometryOperations[e].redo(),this.updateGraphics(),this._undoStack.push(e)}}refresh(){let{mediaElement:e}=this;if(e.georeference==null)return;let t=e.georeference;t.type===`control-points`&&t.coords!=null&&(this._georeference=t,this._georeference.controlPoints.forEach(({mapPoint:e},t)=>{let n=this._controlPointEditGeometryOperations[t],r=n.data.parts[0].vertices[0];n.setVertexPosition(r,n.data.coordinateHelper.pointToVector(e))}),this.updateGraphics())}reset(){this._georeference.controlPoints=this._initialControlPoints,this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){let e=this._georeference,t=e.controlPoints,n=t[0].mapPoint.spatialReference,r=this._hasValidSpatialReference;this._georeference.controlPoints=this._controlPointEditGeometryOperations.map((i,a)=>{let o=i.data.geometry;return this._controlPointGraphics[a].geometry=o,{mapPoint:s(o,n),sourcePoint:r&&!this.editSourcePoints?t[a].sourcePoint:e.toSource(o)}})}updateActiveHandle(e){if(this.activeHandle===e)return;let t=this._controlPointGraphics[this.activeHandle].symbol.clone();f(t,this.view.effectiveTheme.accentColor),this._controlPointGraphics[this.activeHandle].symbol=t;let n=this._controlPointGraphics[e].symbol.clone();f(n,v),this._controlPointGraphics[e].symbol=n,this.activeHandle=e,this.view.surface===document.activeElement&&this.highlightActiveHandle()}async highlightActiveHandle(){this.removeHighlightActiveHandle();let e=await this.view.whenLayerView(this._graphicsLayer);this._highlightHandle=e.highlight(this._controlPointGraphics[this.activeHandle])}removeHighlightActiveHandle(){this._highlightHandle&&this._highlightHandle.remove()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}async _initialize(){let{view:e,mediaElement:t}=this;if(t.georeference==null)return;let r=t.georeference;if(r.type!==`control-points`||r.coords==null)return;this._georeference=r,this._initialControlPoints=this._georeference.controlPoints,e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._controlPointEditGeometryOperations=this._georeference.controlPoints.map(({mapPoint:t})=>_.fromGeometry(s(t,e.spatialReference),2)),this._controlPointGraphics=this._controlPointEditGeometryOperations.map((e,t)=>new n({symbol:new d({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,colorLocked:!0,anchorPoint:{x:0,y:-15.75},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:9,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:84.3,ymax:84.3},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[83.2,32.5],[84.3,40.7],[83.8,48.9],[81.7,56.9],[78.1,64.3],[73,70.9],[66.9,76.4],[59.7,80.5],[51.9,83.2],[43.7,84.3],[35.4,83.8],[27.4,81.7],[20,78],[13.4,73],[7.9,66.8],[3.8,59.7],[1.1,51.9],[0,43.7],[.5,35.4],[2.6,27.4],[6.3,20],[11.3,13.4],[17.5,7.9],[24.7,3.8],[32.5,1.1],[39.8,.1],[47.1,.3],[54.3,1.8],[61.1,4.5],[67.4,8.4],[72.9,13.3],[77.4,19.1],[80.9,25.5],[83.2,32.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:[255,255,255,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[84.3,0],[84.3,84.3],[0,84.3],[0,0]]]}},rotation:0},{type:`CIMVectorMarker`,enable:!0,anchorPoint:{x:0,y:-11.25},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:22.5,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:197.7,ymax:294.7},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[98.9,0],[119.4,23.2],[139.4,49.3],[156.8,75.2],[171.2,100.8],[182.4,125.3],[190.6,148.8],[195.7,171.4],[197.7,192.9],[197.7,195.8],[197.7,200.3],[197.6,202.5],[197.5,204.8],[197.3,207.1],[197,209.4],[196.7,211.7],[196.4,214.1],[196,216.4],[195.5,218.7],[195,221.1],[194.4,223.4],[193.7,225.8],[193,228.1],[192.2,230.5],[191.4,232.8],[190.5,235.1],[189.5,237.5],[188.5,239.7],[187.4,242],[186.2,244.3],[185,246.5],[183.7,248.7],[182.4,250.9],[181,253.1],[179.5,255.2],[178,257.3],[176.4,259.4],[174.7,261.4],[173.1,263.3],[171.3,265.3],[169.5,267.2],[167.7,269],[165.8,270.8],[163.9,272.5],[161.9,274.2],[159.9,275.8],[157.8,277.4],[155.7,278.9],[153.6,280.4],[151.4,281.7],[149.2,283.1],[147,284.4],[144.8,285.6],[142.5,286.7],[140.3,287.8],[138,288.8],[135.7,289.8],[133.4,290.7],[131,291.5],[128.7,292.3],[126.4,293],[124,293.6],[121.7,294.2],[119.4,294.7],[117,295.2],[114.7,295.6],[112.4,296],[110.1,296.3],[107.8,296.5],[105.5,296.7],[103.3,296.8],[101.1,296.9],[98.8,296.9],[83.1,295.7],[67.8,292],[53.3,285.9],[39.9,277.5],[28.1,267.2],[18,255.1],[10,241.5],[4.2,226.9],[.9,211.5],[0,195.8],[.1,192.9],[2.1,171.4],[7.2,148.8],[15.4,125.3],[26.6,100.8],[41,75.2],[58.4,49.3],[78.4,23.2],[98.9,0]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t===this.activeHandle?v.toArray():this.view.effectiveTheme.accentColor.toArray()}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[197.7,0],[197.7,294.7],[0,294.7],[0,0]]]}},rotation:0}],haloSize:1,scaleX:1,angleAlignment:`Display`,angle:0}}}),geometry:e.data.geometry})),this._graphicsLayer.graphics.addMany([...this._controlPointGraphics]),this._controlPointManipulations=this._controlPointGraphics.map(t=>new p({tool:this,view:e,graphic:t})),this.addHandles([...this._controlPointManipulations.map((e,t)=>e.createDragPipeline(this._getInfo.bind(this,t),(e,n)=>{e.action===`start`&&(this._undoStack.push(t),this._redoStack=[],this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0),this.updateGraphics()})),i(()=>this.view.scale,()=>this.active?this.updateGraphics():null)]),this._controlPointManipulations.forEach((e,t)=>{e.forEachManipulator(e=>{this.addHandles([e.events.on([`click`,`grab-changed`],e=>this.updateActiveHandle(t))])})});let a=new h;a.add(g.toggleOpacity,()=>{e.activeTool===this&&(t.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),a.addToggle(g.factorModifier,t=>{e.activeTool===this&&(this._factor=t.type===`key-down`?10:1)}),a.add(g.moveUp,()=>{e.activeTool===this&&this._move(0,this._factor)}),a.add(g.moveDown,()=>{e.activeTool===this&&this._move(0,-this._factor)}),a.add(g.moveLeft,()=>{e.activeTool===this&&this._move(-this._factor,0)}),a.add(g.moveRight,()=>{e.activeTool===this&&this._move(this._factor,0)}),this.addHandles([a.register(e)])}async _loadProjectionEngine(){let e=this._georeference.controlPoints[0].mapPoint;return c(e.spatialReference,this.view.spatialReference)}_getInfo(e){return{editGeometryOperations:this._controlPointEditGeometryOperations[e],constraints:this._hasValidSpatialReference?null:{xmin:0,ymin:0,xmax:this._georeference.width,ymax:this._georeference.height}}}_move(e,t){let n=this._controlPointEditGeometryOperations[this.activeHandle].move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}};e([a()],y.prototype,`_hasValidSpatialReference`,null),e([a()],y.prototype,`activeHandle`,void 0),e([a()],y.prototype,`editSourcePoints`,void 0),e([a({constructOnly:!0,nonNullable:!0})],y.prototype,`mediaElement`,void 0),e([a({readOnly:!0})],y.prototype,`type`,void 0),e([a({constructOnly:!0})],y.prototype,`view`,void 0),y=e([o(`esri.views.2d.interactive.editingTools.ControlPointsTransformTool`)],y);export{y as ControlPointsTransformTool};
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../../Color.js";import n from"../../../../Graphic.js";import{destroyMaybe as r}from"../../../../core/maybe.js";import{watch as i}from"../../../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{project as s,initializeProjection as c}from"../../../../geometry/projectionUtils.js";import{isValid as l}from"../../../../geometry/support/spatialReferenceUtils.js";import u from"../../../../layers/GraphicsLayer.js";import d from"../../../../symbols/CIMSymbol.js";import{applyCIMSymbolColor as f}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as p}from"./manipulations/DragManipulation.js";import{InteractiveToolBase as m}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as h,mediaKeys as g}from"../../../interactive/keybindings.js";import{EditGeometryOperations as _}from"../../../interactive/editGeometry/EditGeometryOperations.js";const v=new t(`#009af2`);let y=class extends m{constructor(e){super(e),this._isOpacityToggled=!1,this._factor=1,this._initialControlPoints=null,this._graphicsLayer=new u({internal:!0,listMode:`hide`,visible:!1,effect:`drop-shadow(0px, 0px, 3px)`,title:`ControlPointsTransformationTool layer`}),this._undoStack=[],this._redoStack=[],this._sharedUndoStack=[],this._sharedRedoStack=[],this._highlightHandle=null,this.activeHandle=0,this.editSourcePoints=!1,this.type=`reshape`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._controlPointManipulations.forEach(e=>e.destroy()),this._controlPointEditGeometryOperations.forEach(e=>e.destroy()),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=r(this._graphicsLayer),this._georeference=null,this._controlPointGraphics=null,this._controlPointManipulations=null,this._graphicsLayer=null,this._controlPointEditGeometryOperations=null,this._undoStack=null,this._redoStack=null,this._initialControlPoints=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _hasValidSpatialReference(){return l(this.view.spatialReference)}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){let e=this._undoStack[this._undoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canUndo}canRedo(){let e=this._redoStack[this._redoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canRedo}undo(){if(this._undoStack.length>0){let e=this._undoStack.pop();this._controlPointEditGeometryOperations[e].undo(),this.updateGraphics(),this._redoStack.push(e)}}redo(){if(this._redoStack.length>0){let e=this._redoStack.pop();this._controlPointEditGeometryOperations[e].redo(),this.updateGraphics(),this._undoStack.push(e)}}refresh(){let{mediaElement:e}=this;if(e.georeference==null)return;let t=e.georeference;t.type===`control-points`&&t.coords!=null&&(this._georeference=t,this._georeference.controlPoints.forEach(({mapPoint:e},t)=>{let n=this._controlPointEditGeometryOperations[t],r=n.data.parts[0].vertices[0];n.setVertexPosition(r,n.data.coordinateHelper.pointToVector(e)),this._controlPointGraphics[t].geometry=n.data.geometry}))}reset(){this._georeference.controlPoints=this._initialControlPoints,this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){let e=this._georeference,t=e.controlPoints,n=t[0].mapPoint.spatialReference,r=this._hasValidSpatialReference;this._georeference.controlPoints=this._controlPointEditGeometryOperations.map((i,a)=>{let o=i.data.geometry;return this._controlPointGraphics[a].geometry=o,{mapPoint:s(o,n),sourcePoint:r&&!this.editSourcePoints?t[a].sourcePoint:e.toSource(o)}})}updateActiveHandle(e){if(this.activeHandle===e)return;let t=this._controlPointGraphics[this.activeHandle].symbol.clone();f(t,this.view.effectiveTheme.accentColor),this._controlPointGraphics[this.activeHandle].symbol=t;let n=this._controlPointGraphics[e].symbol.clone();f(n,v),this._controlPointGraphics[e].symbol=n,this.activeHandle=e,this.view.surface===document.activeElement&&this.highlightActiveHandle()}async highlightActiveHandle(){this.removeHighlightActiveHandle();let e=await this.view.whenLayerView(this._graphicsLayer);this._highlightHandle=e.highlight(this._controlPointGraphics[this.activeHandle])}removeHighlightActiveHandle(){this._highlightHandle&&this._highlightHandle.remove()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}async _initialize(){let{view:e,mediaElement:t}=this;if(t.georeference==null)return;let r=t.georeference;if(r.type!==`control-points`||r.coords==null)return;this._georeference=r,this._initialControlPoints=this._georeference.controlPoints,e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._controlPointEditGeometryOperations=this._georeference.controlPoints.map(({mapPoint:t})=>_.fromGeometry(s(t,e.spatialReference),2)),this._controlPointGraphics=this._controlPointEditGeometryOperations.map((e,t)=>new n({symbol:new d({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,colorLocked:!0,anchorPoint:{x:0,y:-15.75},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:9,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:84.3,ymax:84.3},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[83.2,32.5],[84.3,40.7],[83.8,48.9],[81.7,56.9],[78.1,64.3],[73,70.9],[66.9,76.4],[59.7,80.5],[51.9,83.2],[43.7,84.3],[35.4,83.8],[27.4,81.7],[20,78],[13.4,73],[7.9,66.8],[3.8,59.7],[1.1,51.9],[0,43.7],[.5,35.4],[2.6,27.4],[6.3,20],[11.3,13.4],[17.5,7.9],[24.7,3.8],[32.5,1.1],[39.8,.1],[47.1,.3],[54.3,1.8],[61.1,4.5],[67.4,8.4],[72.9,13.3],[77.4,19.1],[80.9,25.5],[83.2,32.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:[255,255,255,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[84.3,0],[84.3,84.3],[0,84.3],[0,0]]]}},rotation:0},{type:`CIMVectorMarker`,enable:!0,anchorPoint:{x:0,y:-11.25},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:22.5,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:197.7,ymax:294.7},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[98.9,0],[119.4,23.2],[139.4,49.3],[156.8,75.2],[171.2,100.8],[182.4,125.3],[190.6,148.8],[195.7,171.4],[197.7,192.9],[197.7,195.8],[197.7,200.3],[197.6,202.5],[197.5,204.8],[197.3,207.1],[197,209.4],[196.7,211.7],[196.4,214.1],[196,216.4],[195.5,218.7],[195,221.1],[194.4,223.4],[193.7,225.8],[193,228.1],[192.2,230.5],[191.4,232.8],[190.5,235.1],[189.5,237.5],[188.5,239.7],[187.4,242],[186.2,244.3],[185,246.5],[183.7,248.7],[182.4,250.9],[181,253.1],[179.5,255.2],[178,257.3],[176.4,259.4],[174.7,261.4],[173.1,263.3],[171.3,265.3],[169.5,267.2],[167.7,269],[165.8,270.8],[163.9,272.5],[161.9,274.2],[159.9,275.8],[157.8,277.4],[155.7,278.9],[153.6,280.4],[151.4,281.7],[149.2,283.1],[147,284.4],[144.8,285.6],[142.5,286.7],[140.3,287.8],[138,288.8],[135.7,289.8],[133.4,290.7],[131,291.5],[128.7,292.3],[126.4,293],[124,293.6],[121.7,294.2],[119.4,294.7],[117,295.2],[114.7,295.6],[112.4,296],[110.1,296.3],[107.8,296.5],[105.5,296.7],[103.3,296.8],[101.1,296.9],[98.8,296.9],[83.1,295.7],[67.8,292],[53.3,285.9],[39.9,277.5],[28.1,267.2],[18,255.1],[10,241.5],[4.2,226.9],[.9,211.5],[0,195.8],[.1,192.9],[2.1,171.4],[7.2,148.8],[15.4,125.3],[26.6,100.8],[41,75.2],[58.4,49.3],[78.4,23.2],[98.9,0]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t===this.activeHandle?v.toArray():this.view.effectiveTheme.accentColor.toArray()}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[197.7,0],[197.7,294.7],[0,294.7],[0,0]]]}},rotation:0}],haloSize:1,scaleX:1,angleAlignment:`Display`,angle:0}}}),geometry:e.data.geometry})),this._graphicsLayer.graphics.addMany([...this._controlPointGraphics]),this._controlPointManipulations=this._controlPointGraphics.map(t=>new p({tool:this,view:e,graphic:t})),this.addHandles([...this._controlPointManipulations.map((e,t)=>e.createDragPipeline(this._getInfo.bind(this,t),(e,n)=>{e.action===`start`&&(this._undoStack.push(t),this._redoStack=[],this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0),this.updateGraphics()})),i(()=>this.view.scale,()=>this.active?this.updateGraphics():null)]),this._controlPointManipulations.forEach((e,t)=>{e.forEachManipulator(e=>{this.addHandles([e.events.on([`click`,`grab-changed`],e=>this.updateActiveHandle(t))])})});let a=new h;a.add(g.toggleOpacity,()=>{e.activeTool===this&&(t.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),a.addToggle(g.factorModifier,t=>{e.activeTool===this&&(this._factor=t.type===`key-down`?10:1)}),a.add(g.moveUp,()=>{e.activeTool===this&&this._move(0,this._factor)}),a.add(g.moveDown,()=>{e.activeTool===this&&this._move(0,-this._factor)}),a.add(g.moveLeft,()=>{e.activeTool===this&&this._move(-this._factor,0)}),a.add(g.moveRight,()=>{e.activeTool===this&&this._move(this._factor,0)}),this.addHandles([a.register(e)])}async _loadProjectionEngine(){let e=this._georeference.controlPoints[0].mapPoint;return c(e.spatialReference,this.view.spatialReference)}_getInfo(e){return{editGeometryOperations:this._controlPointEditGeometryOperations[e],constraints:this._hasValidSpatialReference?null:{xmin:0,ymin:0,xmax:this._georeference.width,ymax:this._georeference.height}}}_move(e,t){let n=this._controlPointEditGeometryOperations[this.activeHandle].move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}};e([a()],y.prototype,`_hasValidSpatialReference`,null),e([a()],y.prototype,`activeHandle`,void 0),e([a()],y.prototype,`editSourcePoints`,void 0),e([a({constructOnly:!0,nonNullable:!0})],y.prototype,`mediaElement`,void 0),e([a({readOnly:!0})],y.prototype,`type`,void 0),e([a({constructOnly:!0})],y.prototype,`view`,void 0),y=e([o(`esri.views.2d.interactive.editingTools.ControlPointsTransformTool`)],y);export{y as ControlPointsTransformTool};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../../Graphic.js";import{getContrast as n}from"../../../../core/colorUtils.js";import{destroyMaybe as r}from"../../../../core/maybe.js";import{watch as i}from"../../../../core/reactiveUtils.js";import{getMetersPerUnitForSR as a}from"../../../../core/units.js";import{property as o,subclass as s}from"../../../../core/accessorSupport/decorators.js";import{subtract as c,normalize as l}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as u,UNIT_X as d}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as f,length as p,normalize as m,add as h,lerp as g,subtract as _}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as v}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import y from"../../../../geometry/Point.js";import b from"../../../../geometry/Polygon.js";import{project as x,initializeProjection as S}from"../../../../geometry/projectionUtils.js";import{create as C,copy as w}from"../../../../geometry/support/boundedPlane.js";import{equals as T}from"../../../../geometry/support/spatialReferenceUtils.js";import E from"../../../../layers/GraphicsLayer.js";import D from"../../../../symbols/SimpleFillSymbol.js";import O from"../../../../symbols/SimpleMarkerSymbol.js";import{DragManipulation as k}from"./manipulations/DragManipulation.js";import{RotateManipulation as A}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as j}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as M,SnapRotation as N}from"./manipulations/utils.js";import{InteractiveToolBase as P}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as F,mediaKeys as I}from"../../../interactive/keybindings.js";import{EditGeometry as L}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as R}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as z}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as B}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as V}from"../../../support/screenUtils.js";const H=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]];let U=class extends P{constructor(e){super(e),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._planeCache=C(),this._displayPlaneCache=C(),this._mainAxisCache=u(),this._rotationHandleCache=v(),this._cornerA=v(),this._cornerB=v(),this._cornerC=v(),this._cornerD=v(),this._avgAB=v(),this._avgBC=v(),this._avgCD=v(),this._avgDA=v(),this._preserveAspectRatio=new M,this._snapRotation=new N,this._graphicsLayer=new E({internal:!0,listMode:`hide`,visible:!1,title:`TransformTool layer`}),this._sharedUndoStack=[],this._sharedRedoStack=[],this._isOpacityToggled=!1,this._factor=1,this.preserveAspectRatio=null,this.snapRotation=null,this.type=`transform`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._dragManipulation.destroy(),this._rotateManipulation.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=r(this._graphicsLayer),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _plane(){let e=this._graphic.geometry;if(e==null)return null;let t=this._editGeometryOperations.data,n=t.parts[0].segments[0],r=c(this._mainAxisCache,n.leftVertex.pos,n.rightVertex.pos);l(r,r);let i=80*this.view.resolution,o=this.view.spatialReference;return T(o,e.spatialReference)&&(i*=a(o)/a(e.spatialReference)),z(r,t,i,this._planeCache)}get _displayPlane(){let e=this._plane;if(!e)return null;let t=this._displayPlaneCache;w(e,t);let n=10*this.view.resolution;return f(t.basis1,t.basis1,1+n/p(t.basis1)),f(t.basis2,t.basis2,1+n/p(t.basis2)),t}get _backgroundGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new b({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _rotateGraphicGeometry(){let e=this._plane;if(!e)return null;let t=this._rotationHandleCache;return m(t,e.basis1),f(t,t,30*this.view.resolution),h(t,t,e.origin),h(t,t,e.basis1),new y({x:t[0],y:t[1],spatialReference:this.view.spatialReference})}get _scaleGraphicGeometries(){let e=this._displayPlane;if(!e)return[];let t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);let{_cornerA:n,_cornerB:r,_cornerC:i,_cornerD:a}=this,o=g(this._avgAB,n,r,.5),s=g(this._avgBC,r,i,.5),c=g(this._avgCD,i,a,.5),l=g(this._avgDA,a,n,.5);return[new y({x:n[0],y:n[1],spatialReference:t}),new y({x:r[0],y:r[1],spatialReference:t}),new y({x:i[0],y:i[1],spatialReference:t}),new y({x:a[0],y:a[1],spatialReference:t}),new y({x:o[0],y:o[1],spatialReference:t}),new y({x:s[0],y:s[1],spatialReference:t}),new y({x:c[0],y:c[1],spatialReference:t}),new y({x:l[0],y:l[1],spatialReference:t})]}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){let{view:e,target:t}=this,n=`georeference`in t?t.georeference.coords:t.geometry,r=this._editGeometryOperations,i=r.data.parts[0].vertices,a=L.fromGeometry(x(n,e.spatialReference),2).parts[0].vertices;i.forEach((e,t)=>{r.setVertexPosition(e,a[t].pos)}),this.updateGraphics()}reset(){let{target:e}=this;if(`georeference`in e){let t=e.georeference;t.type===`control-points`&&(t.controlPoints=this._initialControlPoints)}else e.geometry=this._initialGeometry;this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){let e=this._editGeometryOperations.data.geometry;if(`georeference`in this.target){let t=this.target.georeference;t.coords=e}this._graphic.geometry=e,this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry,this._scaleGraphicGeometries.forEach((e,t)=>{this._scaleGraphics[t].geometry=e})}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}async _initialize(){let{view:e,target:r}=this;if(`georeference`in r){let e=r.georeference;this._graphic=new t({geometry:e.coords}),this._initialControlPoints=e.type===`control-points`?e.controlPoints:null}else this._graphic=r,this._initialGeometry=r.geometry;e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=R.fromGeometry(x(this._graphic.geometry,e.spatialReference),2),this._backgroundGraphic=new t({symbol:new D({color:`transparent`,outline:{type:`simple-line`,color:e.effectiveTheme.accentColor,width:2}}),geometry:this._backgroundGraphicGeometry}),this._rotateGraphic=new t({symbol:new O({color:n(e.effectiveTheme.accentColor),outline:{type:`simple-line`,color:e.effectiveTheme.accentColor,width:1}}),geometry:this._rotateGraphicGeometry}),this._scaleGraphics=this._scaleGraphicGeometries.map(r=>new t({symbol:new O({size:6,style:`square`,color:n(e.effectiveTheme.accentColor),outline:{type:`simple-line`,color:e.effectiveTheme.accentColor,width:1}}),geometry:r})),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,this._rotateGraphic,...this._scaleGraphics]),this._dragManipulation=new k({tool:this,view:e,graphic:this._graphic}),this._rotateManipulation=new A({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation}),this._scaleManipulations=this._scaleGraphics.map((t,n)=>new j({tool:this,view:e,graphic:t,direction:H[n],preserveAspectRatio:this._preserveAspectRatio})),this.addHandles([this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this))),i(()=>this.view.scale,()=>this.active?this.updateGraphics():null),e.on(`click`,async t=>{if(e.activeTool!=null&&e.activeTool!==this)return;let n=V(t),i=[];e.map.allLayers.forEach(e=>{(e.type===`vector-tile`||e.type===`imagery`)&&i.push(e)});let a=await this.view.hitTest(n,{exclude:i}),o=a.results;if(o.length===0)e.activeTool=null;else{let t=B(a.results),n=`georeference`in r,i=o.map(e=>e.type===`media`?e.element:null).filter(Boolean),s=new Set([...this._graphicsLayer.graphics,n?null:r].filter(Boolean));n&&i.includes(r)||t!=null&&s.has(t.graphic)?e.activeTool??=this:e.activeTool=null}})]);let a=e=>{this.addHandles(e.events.on(`grab-changed`,e=>{`georeference`in r&&(e.action===`start`?r.opacity*=.5:e.action===`end`&&(r.opacity*=2))}))};this._dragManipulation.forEachManipulator(a),this._rotateManipulation.forEachManipulator(a),this._scaleManipulations.forEach(e=>e.forEachManipulator(a));let o=new F;o.addToggle(I.preserveAspectRatio,()=>{this.preserveAspectRatio??(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),o.addToggle(I.rotateIncrements,()=>{this.snapRotation??(this._snapRotation.enabled=!this._snapRotation.enabled)}),o.add(I.toggleOpacity,()=>{`georeference`in r&&(r.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),o.addToggle(I.factorModifier,e=>this._factor=e.type===`key-down`?10:1),o.add(I.scaleUp,()=>this._scale(this._factor)),o.add(I.scaleDown,()=>this._scale(-this._factor)),o.add(I.moveUp,()=>this._move(0,this._factor)),o.add(I.moveDown,()=>this._move(0,-this._factor)),o.add(I.moveLeft,()=>this._move(-this._factor,0)),o.add(I.moveRight,()=>this._move(this._factor,0)),this.addHandles([e.on(`key-down`,t=>{e.activeTool===this&&o.dispatch(e.inputManager,t)}),e.on(`key-up`,t=>{e.activeTool===this&&o.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){let e=this._graphic.geometry;return S(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){let{basis1:t,basis2:n,origin:r}=e,i=this._cornerA;h(i,r,t),h(i,i,n);let a=this._cornerB;h(a,r,t),_(a,a,n);let o=this._cornerC;_(o,r,t),_(o,o,n);let s=this._cornerD;_(s,r,t),h(s,s,n)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane}}_updateGraphics(e,t){e.action===`start`&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){let t=this._editGeometryOperations,n=t.data.geometry.extent?.width,r=(n+e*this.view.resolution)/n,i=t.scale(this._plane.origin,d,r,r,0,1);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){let n=this._editGeometryOperations.move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}};e([o()],U.prototype,`_plane`,null),e([o()],U.prototype,`_backgroundGraphicGeometry`,null),e([o()],U.prototype,`_rotateGraphicGeometry`,null),e([o()],U.prototype,`_scaleGraphicGeometries`,null),e([o()],U.prototype,`preserveAspectRatio`,void 0),e([o()],U.prototype,`snapRotation`,void 0),e([o({constructOnly:!0,nonNullable:!0})],U.prototype,`target`,void 0),e([o({readOnly:!0})],U.prototype,`type`,void 0),e([o({constructOnly:!0})],U.prototype,`view`,void 0),U=e([s(`esri.views.2d.interactive.editingTools.TransformTool`)],U);export{U as TransformTool};
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../../Graphic.js";import{getContrast as n}from"../../../../core/colorUtils.js";import{rad2deg as r}from"../../../../core/mathUtils.js";import{destroyMaybe as i}from"../../../../core/maybe.js";import{watch as a,initial as o,sync as s}from"../../../../core/reactiveUtils.js";import{px2pt as c}from"../../../../core/screenUtils.js";import{getMetersPerUnitForSR as l}from"../../../../core/units.js";import{property as u,subclass as d}from"../../../../core/accessorSupport/decorators.js";import{subtract as ee,normalize as f}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as p,fromValues as m,UNIT_X as h}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as g,length as _,dot as v,squaredLength as y,set as b,copy as x,normalize as te,lerp as S,add as C,subtract as w}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as T,fromValues as E}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import D from"../../../../geometry/Point.js";import O from"../../../../geometry/Polygon.js";import k from"../../../../geometry/Polyline.js";import{project as A,initializeProjection as j}from"../../../../geometry/projectionUtils.js";import{create as M,copy as N}from"../../../../geometry/support/boundedPlane.js";import{equals as P}from"../../../../geometry/support/spatialReferenceUtils.js";import F from"../../../../layers/GraphicsLayer.js";import I from"../../../../symbols/CIMSymbol.js";import L from"../../../../symbols/SimpleFillSymbol.js";import R from"../../../../symbols/SimpleLineSymbol.js";import z from"../../../../symbols/SimpleMarkerSymbol.js";import{getCIMSymbolRotation as B,applyCIMSymbolRotation as V}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as H}from"./manipulations/DragManipulation.js";import{RotateManipulation as U}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as W}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as G,SnapRotation as K,onGrabChangedHandle as q}from"./manipulations/utils.js";import{InteractiveToolBase as J}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as Y,mediaKeys as X}from"../../../interactive/keybindings.js";import{EditGeometry as Z}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as Q}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as ne}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as re}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as ie}from"../../../support/screenUtils.js";const ae=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]];let $=class extends J{constructor(e){super(e),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._planeCache=M(),this._displayPlaneCache=M(),this._mainAxisCache=p(),this._rotationHandleCache=T(),this._cornerA=T(),this._cornerB=T(),this._cornerC=T(),this._cornerD=T(),this._avgAB=T(),this._avgBC=T(),this._avgCD=T(),this._avgDA=T(),this._preserveAspectRatio=new G,this._snapRotation=new K,this._graphicsLayer=new F({internal:!0,listMode:`hide`,visible:!1,title:`TransformTool layer`}),this._targetGeometryChanged=!1,this._sharedUndoStack=[],this._sharedRedoStack=[],this._isOpacityToggled=!1,this._factor=1,this.preserveAspectRatio=null,this.scaleFromAnchor=!1,this.snapRotation=null,this.type=`transform`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._dragManipulation.destroy(),this._anchorManipulation.destroy(),this._rotateManipulation.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=i(this._graphicsLayer),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._anchorVertex=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _backgroundGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new O({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _displayPlane(){let e=this._plane;if(!e)return null;let t=this._displayPlaneCache;N(e,t);let n=10*this.view.resolution;return g(t.basis1,t.basis1,1+n/_(t.basis1)),g(t.basis2,t.basis2,1+n/_(t.basis2)),t}get _plane(){let e=this._graphic.geometry;if(e==null)return null;let t=this._editGeometryOperations.data,n=t.parts[0].segments[0],r=ee(this._mainAxisCache,n.leftVertex.pos,n.rightVertex.pos);f(r,r);let i=80*this.view.resolution,a=this.view.spatialReference;return P(a,e.spatialReference)&&(i*=l(a)/l(e.spatialReference)),ne(r,t,i,this._planeCache)}get _rotateConnectorGeometry(){let e=this._rotateGraphicGeometry;if(!e)return null;let t=this._rotationHandleDirection,n=20*this.view.resolution,r=12*this.view.resolution;return new k({spatialReference:this.view.spatialReference,paths:[[[e.x-t[0]*n,e.y-t[1]*n],[e.x-t[0]*r,e.y-t[1]*r]]]})}get _rotateGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this._rotationHandleDirection,n=1/Math.max(Math.abs(v(t,e.basis1))/y(e.basis1),Math.abs(v(t,e.basis2))/y(e.basis2))+20*this.view.resolution;return new D({x:e.origin[0]+t[0]*n,y:e.origin[1]+t[1]*n,spatialReference:this.view.spatialReference})}get _rotationHandleDirection(){let e=this._plane,t=this.anchor,n=b(this._rotationHandleCache,e.origin[0]-t.x,e.origin[1]-t.y,0);return _(n)<=this.view.resolution*1e-6&&x(n,e.basis1),te(n,n)}get _scaleGraphicGeometries(){let e=this._displayPlane;if(!e)return[];let t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);let{_cornerA:n,_cornerB:r,_cornerC:i,_cornerD:a}=this,o=S(this._avgAB,n,r,.5),s=S(this._avgBC,r,i,.5),c=S(this._avgCD,i,a,.5),l=S(this._avgDA,a,n,.5);return[new D({x:n[0],y:n[1],spatialReference:t}),new D({x:r[0],y:r[1],spatialReference:t}),new D({x:i[0],y:i[1],spatialReference:t}),new D({x:a[0],y:a[1],spatialReference:t}),new D({x:o[0],y:o[1],spatialReference:t}),new D({x:s[0],y:s[1],spatialReference:t}),new D({x:c[0],y:c[1],spatialReference:t}),new D({x:l[0],y:l[1],spatialReference:t})]}get anchor(){return this._anchorGraphic.geometry}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){let{view:e,target:t}=this,n=`georeference`in t?t.georeference.coords:t.geometry,r=this._editGeometryOperations,i=r.data.parts[0].vertices,a=Z.fromGeometry(A(n,e.spatialReference),2).parts[0].vertices;i.forEach((e,t)=>{r.setVertexPosition(e,a[t].pos)}),this._targetGeometryChanged=!1,`georeference`in t&&(this._graphic.geometry=r.data.geometry),this.updateGraphics()}reset(){let{target:e}=this;if(`georeference`in e){let t=e.georeference;t.type===`control-points`&&(t.controlPoints=this._initialControlPoints)}else e.geometry=this._initialGeometry;this.refresh(),this.resetAnchor(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}resetAnchor(){let e=this._plane.origin,t=this._anchorVertex.pos;if(e[0]===t[0]&&e[1]===t[1])return;let n=this._editGeometryOperations.moveVertices([this._anchorVertex],e[0]-t[0],e[1]-t[1],0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}updateGraphics(){if(this._targetGeometryChanged){let e=this._editGeometryOperations.data.geometry;if(`georeference`in this.target){let t=this.target.georeference;t.coords=e}this._graphic.geometry=e,this._targetGeometryChanged=!1}let e=this._anchorVertex.pos;this._anchorGraphic.geometry=new D({x:e[0],y:e[1],spatialReference:this.view.spatialReference}),this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateConnectorGraphic.geometry=this._rotateConnectorGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry,this._scaleGraphicGeometries.forEach((e,t)=>{this._scaleGraphics[t].geometry=e}),this._updateSymbolAngles()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}async _initialize(){let{view:e,target:r}=this;if(`georeference`in r){let e=r.georeference;this._graphic=new t({geometry:e.coords}),this._initialControlPoints=e.type===`control-points`?e.controlPoints:null}else this._graphic=r,this._initialGeometry=r.geometry;e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=Q.fromGeometry(A(this._graphic.geometry,e.spatialReference),2);let i=this._plane.origin,c=Z.fromGeometry(new D({x:i[0],y:i[1],z:0,spatialReference:e.spatialReference}),2);this._anchorVertex=c.parts[0].vertices[0],this.addHandles(this._editGeometryOperations.on(`vertex-update`,({vertices:e})=>{e.some(e=>e!==this._anchorVertex)&&(this._targetGeometryChanged=!0)})),this._backgroundGraphic=new t({geometry:this._backgroundGraphicGeometry}),this._anchorGraphic=new t({geometry:c.geometry}),this._rotateConnectorGraphic=new t({geometry:this._rotateConnectorGeometry}),this._rotateGraphic=new t({geometry:this._rotateGraphicGeometry}),this._scaleGraphics=this._scaleGraphicGeometries.map(e=>new t({geometry:e})),this.addHandles(a(()=>e.effectiveTheme.accentColor,e=>{let t=new R({color:e,width:1});this._backgroundGraphic.symbol=new L({color:`transparent`,outline:{type:`simple-line`,color:e,width:2}}),this._rotateConnectorGraphic.symbol=t,this._rotateGraphic.symbol=se(e),this._anchorGraphic.symbol=oe(e),this._scaleGraphics.forEach(r=>{r.symbol=new z({size:6,style:`square`,color:n(e),outline:t})}),this._updateSymbolAngles()},o)),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,this._rotateConnectorGraphic,this._rotateGraphic,...this._scaleGraphics,this._anchorGraphic]),this._anchorManipulation=new H({tool:this,view:e,graphic:this._anchorGraphic}),this._anchorManipulation.forEachManipulator(e=>{e.cursor=`grab`,this.addHandles([e.events.on(`grab-changed`,t=>q(t,e)),e.events.on(`immediate-double-click`,e=>{e.stopPropagation(),this.resetAnchor()})])}),this._dragManipulation=new H({tool:this,view:e,graphic:this._graphic}),this._rotateManipulation=new U({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation}),this._scaleManipulations=this._scaleGraphics.map((t,n)=>new W({tool:this,view:e,graphic:t,direction:ae[n],preserveAspectRatio:this._preserveAspectRatio})),this.addHandles([this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),this._anchorManipulation.createDragPipeline(()=>({editGeometryOperations:this._editGeometryOperations,vertices:[this._anchorVertex]}),this._updateGraphics.bind(this)),this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this))),a(()=>this.view.scale,()=>this.active?this.updateGraphics():null),a(()=>e.rotation,()=>this._updateSymbolAngles(),s),e.on(`click`,async t=>{if(e.activeTool!=null&&e.activeTool!==this)return;let n=ie(t),i=[];e.map.allLayers.forEach(e=>{(e.type===`vector-tile`||e.type===`imagery`)&&i.push(e)});let a=await this.view.hitTest(n,{exclude:i}),o=a.results;if(o.length===0)e.activeTool=null;else{let t=re(a.results),n=`georeference`in r,i=o.map(e=>e.type===`media`?e.element:null).filter(Boolean),s=new Set([...this._graphicsLayer.graphics,n?null:r].filter(Boolean));n&&i.includes(r)||t!=null&&s.has(t.graphic)?e.activeTool??=this:e.activeTool=null}})]);let l=e=>{this.addHandles(e.events.on(`grab-changed`,e=>{`georeference`in r&&(e.action===`start`?r.opacity*=.5:e.action===`end`&&(r.opacity*=2))}))};this._dragManipulation.forEachManipulator(l),this._rotateManipulation.forEachManipulator(l),this._scaleManipulations.forEach(e=>e.forEachManipulator(l));let u=new Y;u.addToggle(X.preserveAspectRatio,()=>{this.preserveAspectRatio??(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),u.addToggle(X.rotateIncrements,()=>{this.snapRotation??(this._snapRotation.enabled=!this._snapRotation.enabled)}),u.add(X.toggleOpacity,()=>{`georeference`in r&&(r.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),u.addToggle(X.factorModifier,e=>this._factor=e.type===`key-down`?10:1),u.add(X.scaleUp,()=>this._scale(this._factor)),u.add(X.scaleDown,()=>this._scale(-this._factor)),u.add(X.moveUp,()=>this._move(0,this._factor)),u.add(X.moveDown,()=>this._move(0,-this._factor)),u.add(X.moveLeft,()=>this._move(-this._factor,0)),u.add(X.moveRight,()=>this._move(this._factor,0)),this.addHandles([e.on(`key-down`,t=>{e.activeTool===this&&u.dispatch(e.inputManager,t)}),e.on(`key-up`,t=>{e.activeTool===this&&u.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){let e=this._graphic.geometry;return j(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){let{basis1:t,basis2:n,origin:r}=e,i=this._cornerA;C(i,r,t),C(i,i,n);let a=this._cornerB;C(a,r,t),w(a,a,n);let o=this._cornerC;w(o,r,t),w(o,o,n);let s=this._cornerD;w(s,r,t),C(s,s,n)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane,origin:E(this._anchorVertex.pos[0],this._anchorVertex.pos[1],0),vertices:[...this._editGeometryOperations.data.allVerticesUnordered,this._anchorVertex],scaleFromAnchor:this.scaleFromAnchor}}_updateGraphics(e,t){e.action===`start`&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){let t=this._editGeometryOperations,n=t.data.geometry.extent?.width,r=(n+e*this.view.resolution)/n,i=t.scaleVertices([...t.data.allVerticesUnordered,this._anchorVertex],m(this._anchorVertex.pos[0],this._anchorVertex.pos[1]),h,r,r,0,1);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){let n=this._editGeometryOperations,r=n.moveVertices([...n.data.allVerticesUnordered,this._anchorVertex],e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:r}),this._sharedRedoStack.length=0,this.updateGraphics()}_updateSymbolAngles(){let e=this._plane;if(!e)return;let t=this._rotationHandleDirection,n=r(Math.atan2(t[1],t[0]))+90,i=this._rotateGraphic.symbol;if(i?.type===`cim`&&B(i)!==n){let e=i.clone();V(e,n),this._rotateGraphic.symbol=e}let a=r(Math.atan2(e.basis1[1],e.basis1[0]))+90;this._scaleGraphics.forEach(e=>{let t=e.symbol;t?.type===`simple-marker`&&(t.angle=this.view.rotation-a)})}};e([u()],$.prototype,`_backgroundGraphicGeometry`,null),e([u()],$.prototype,`_plane`,null),e([u()],$.prototype,`_rotateConnectorGeometry`,null),e([u()],$.prototype,`_rotateGraphicGeometry`,null),e([u()],$.prototype,`_scaleGraphicGeometries`,null),e([u()],$.prototype,`anchor`,null),e([u()],$.prototype,`preserveAspectRatio`,void 0),e([u()],$.prototype,`scaleFromAnchor`,void 0),e([u()],$.prototype,`snapRotation`,void 0),e([u({constructOnly:!0,nonNullable:!0})],$.prototype,`target`,void 0),e([u({readOnly:!0})],$.prototype,`type`,void 0),e([u({constructOnly:!0})],$.prototype,`view`,void 0),$=e([d(`esri.views.2d.interactive.editingTools.TransformTool`)],$);function oe(e){let t=Array.from({length:33},(e,t)=>{let n=t*Math.PI/16;return[5*Math.cos(n),5*Math.sin(n)]});return new I({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:c(18),anchorPoint:{x:0,y:0},frame:{xmin:-9,ymin:-9,xmax:9,ymax:9},respectFrame:!0,scaleSymbolsProportionally:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{paths:[[[-8,0],[8,0]],[[0,-8],[0,8]],t]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:1.5,color:e.toArray()},{type:`CIMSolidStroke`,enable:!0,width:3,color:n(e).toArray()}]}}]}]}}})}function se(e){let t=n(e).toArray(),r=Array.from({length:48},(e,t)=>{let n=-t*Math.PI/24;return[12*Math.cos(n),12*Math.sin(n)]});r.push(r[0]);let i=Array.from({length:25},(e,t)=>{let n=(t/24*1.5+.75)*Math.PI;return[6.5*Math.cos(n),6.5*Math.sin(n)]});return new I({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,angleAlignment:`Map`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:c(24),anchorPoint:{x:0,y:0},frame:{xmin:-12,ymin:-12,xmax:12,ymax:12},scaleSymbolsProportionally:!0,respectFrame:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[r]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:e.toArray()}]}},{type:`CIMMarkerGraphic`,geometry:{paths:[i]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:2,capStyle:`Round`,color:t}]}},{type:`CIMMarkerGraphic`,geometry:{rings:[[[1.5,7.5],[7.5,7.5],[1.5,1.5],[1.5,7.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t}]}}]}]}}})}export{$ as TransformTool};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{Manipulation as e}from"./Manipulation.js";import{createManipulatorDragEventPipeline as t,screenToMap as n}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as r}from"../../../../interactive/GraphicManipulator.js";import{getSymbolInfo as i}from"../../../../interactive/support/utils.js";class a extends e{constructor(e){super(),this._view=e.view,this._tool=e.tool,this._graphic=e.graphic,this._manipulator=this._createManipulator(),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._manipulator=null,this._graphic=null}forEachManipulator(e){e(this._manipulator,0)}createDragPipeline(e,r){let a=null,o=null,s=
|
|
2
|
+
import{Manipulation as e}from"./Manipulation.js";import{createManipulatorDragEventPipeline as t,screenToMap as n}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as r}from"../../../../interactive/GraphicManipulator.js";import{getSymbolInfo as i}from"../../../../interactive/support/utils.js";class a extends e{constructor(e){super(),this._view=e.view,this._tool=e.tool,this._graphic=e.graphic,this._manipulator=this._createManipulator(),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._manipulator=null,this._graphic=null}forEachManipulator(e){e(this._manipulator,0)}createDragPipeline(e,r){let a=null,o=null,s=null,c=0,l=0,u=0,{offsetX:d,offsetY:f,size:p}=i(this._graphic.symbol);return t(this._manipulator,(t,i)=>{i.next(t=>{if(t.action===`start`){let t=e();a=t.editGeometryOperations,o=t.vertices??a.data.allVerticesUnordered,s=t.constraints}return t}).next(n(this._view)).next(e=>{let{x:t,y:n,z:i}=e.mapEnd;if(s&&(t+d<s.xmin||n+f-p<s.ymin||t+d>s.xmax||n+f-p>s.ymax))return e;(e.action===`start`||c===0&&l===0&&u===0)&&(c=e.mapStart.x,l=e.mapStart.y,u=e.mapStart.z);let m=t-c,h=n-l,g=i-u;c=t,l=n,u=i;let _=e.action===`start`?0:1;return r(e,a.moveVertices(o,m,h,g,_)),e})})}_createManipulator(){let e=this._view,t=this._graphic;return new r({view:e,graphic:t,selectable:!0,cursor:`move`})}}export{a as DragManipulation};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"../../../../../core/Handles.js";import{copy as t}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as
|
|
2
|
+
import e from"../../../../../core/Handles.js";import{copy as t,rotateZ as n}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as r,clone as i}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as a,copy as o}from"../../../../../geometry/support/boundedPlane.js";import{Manipulation as s}from"./Manipulation.js";import{onGrabChangedHandle as c}from"./utils.js";import{getRotationAngle as l}from"../../../../draw/support/drawUtils.js";import{createManipulatorDragEventPipeline as u,screenToMap as d}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as f}from"../../../../interactive/GraphicManipulator.js";import{apply as p}from"../../../../interactive/editGeometry/support/editPlaneUtils.js";class m extends s{constructor(t){super(),this._handles=new e,this._originCache=r(),this._planeStart=a(),this._view=t.view,this._tool=t.tool,this._graphic=t.graphic,this._snapRotation=t.snapRotation,this._manipulator=this._createManipulator(),this._handles.add([this._manipulator.events.on(`grab-changed`,e=>c(e,this._manipulator))]),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._handles.destroy(),this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._manipulator=null,this._snapRotation=null,this._graphic=null,this._handles=null,this._originCache=null,this._planeStart=null}forEachManipulator(e){e(this._manipulator,2)}createDragPipeline(e,r){let a=null,s=null,c=null,f=this._originCache,m=this._planeStart;return u(this._manipulator,(u,h)=>{h.next(n=>{if(n.action===`start`){u.cursor=`grabbing`;let n=e();a=n.plane,s=n.editGeometryOperations,c=n.vertices,t(f,n.origin),o(a,m)}return n}).next(d(this._view)).next(e=>({...e,rotateAngle:l(e.mapStart,e.mapEnd,{x:f[0],y:f[1]},!0)})).next(this._snapRotation.createDragEventPipelineStep(),this._snapRotation.next).next(e=>{let t=e.action===`start`?0:1,l=s.rotateVertices(c,i(f),e.rotateAngle,t,1);return o(m,a),n(a.origin,a.origin,f,e.rotateAngle),p(l,a),r(e,l),e}).next(e=>(e.action===`end`&&(u.cursor=`grab`),e))})}_createManipulator(){let e=this._view,t=this._graphic;return new f({view:e,graphic:t,selectable:!0,cursor:`grab`})}}export{m as RotateManipulation};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"../../../../../core/Handles.js";import{set as t,normalize as n}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{copy as
|
|
2
|
+
import e from"../../../../../core/Handles.js";import{set as t,normalize as n}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r,clone as i}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{copy as a,scaleAndAdd as o,subtract as s,length as c,dot as l}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as u,clone as d}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as f,copy as p}from"../../../../../geometry/support/boundedPlane.js";import{getClosestDenormalizedXToReference as m}from"../../../../../geometry/support/normalizeUtils.js";import{getInfo as h}from"../../../../../geometry/support/spatialReferenceUtils.js";import{Manipulation as g}from"./Manipulation.js";import{onGrabChangedHandle as _}from"./utils.js";import{createManipulatorDragEventPipeline as v,screenToMap as y}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as b}from"../../../../interactive/GraphicManipulator.js";import{apply as x}from"../../../../interactive/editGeometry/support/editPlaneUtils.js";const S=1e-6;function C(e){let t=c(e.basis1),n=c(e.basis2);return .3*Math.min(t,n)}class w extends g{constructor(t){super(),this._handles=new e,this._planeStart=f(),this._displayPlaneStart=f(),this._originCache=u(),this._axisCache=r(),this._renderStartCache=u(),this._renderEndCache=u(),this._resizeOriginCache=u(),this._view=t.view,this._tool=t.tool,this._graphic=t.graphic,this._direction=t.direction,this._preserveAspectRatio=t.preserveAspectRatio,this._manipulator=this._createManipulator(),this._handles.add([this._manipulator.events.on(`grab-changed`,e=>_(e,this._manipulator))]),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._handles.destroy(),this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._graphic=null,this._manipulator=null,this._direction=null,this._handles=null,this._planeStart=null,this._displayPlaneStart=null,this._originCache=null,this._axisCache=null,this._renderStartCache=null,this._renderEndCache=null,this._resizeOriginCache=null,this._preserveAspectRatio=null}forEachManipulator(e){e(this._manipulator,1)}createDragPipeline(e,r){let u=null,f=null,g=null,_=null,b=!1,w=0,T=null,E=null,D=0,O=this._planeStart,k=this._displayPlaneStart,A=this._direction;return v(this._manipulator,(v,j)=>{j.next(t=>{if(t.action===`start`){v.cursor=`grabbing`;let t=e();u=t.plane,f=t.displayPlane,g=t.editGeometryOperations,_=t.vertices,b=t.scaleFromAnchor,a(this._originCache,t.origin),w=10*this._view.resolution,p(u,O),p(f,k);let n=h(g.data.spatialReference);T=n?n.valid[1]-n.valid[0]-30*this._view.resolution:null}return t}).next(y(this._view)).next(e=>{if(e.action===`start`){let t=k.origin[0]+A[0]*k.basis1[0]+A[1]*k.basis2[0],n=g.data.spatialReference;D=m(e.mapStart.x,t,n)-e.mapStart.x}let t=a(this._renderStartCache,[e.mapStart.x+D,e.mapStart.y,0]),n=a(this._renderEndCache,[e.mapEnd.x+D,e.mapEnd.y,0]),r=a(this._resizeOriginCache,b?this._originCache:k.origin);b||(o(r,r,k.basis1,-A[0]),o(r,r,k.basis2,-A[1])),s(n,n,r),s(t,t,r);let i=A[0]!==0&&A[1]!==0,u=C(k),d=C(f)/u,p=[A[0],A[1]],h=(e,a)=>{let o=A[e];if(o===0)return 1;if(b){let i=c(a),s=((O.origin[0]-r[0])*a[0]+(O.origin[1]-r[1])*a[1])/i+o*Math.max(i-w,0);if(Math.abs(s)<S)return p[e]=0,1;let l=1+((n[0]-t[0])*a[0]+(n[1]-t[1])*a[1])/i/s,u=l<0?-1:1;u<0&&(l+=2*o*w/s);let d=i<w*1.5?1:S;return u*Math.max(u*l,d)}let s=c(a),u=.5*o*l(a,n)/s,f=u<0?-1:1;if(i){let e=s-.5*o*l(a,t)/s;u+=e*f*d}let m=s<w*1.5?1:S;return s=Math.max(s-w,S),f>0&&(u-=10*this._view.resolution),f*Math.max(u/s*f,m)},_=h(0,k.basis1),v=h(1,k.basis2);return{...e,direction:p,factor1:_,factor2:v}}).next(this._preserveAspectRatio.createDragEventPipelineStep(),this._preserveAspectRatio.next).next(e=>{let s=this._originCache;b||(a(s,O.origin),o(s,s,O.basis1,-A[0]),o(s,s,O.basis2,-A[1]));let c=t(this._axisCache,O.basis1[0],O.basis1[1]);n(c,c);let l=e.action===`start`?0:1,f=g.scaleVertices(_,d(s),i(c),e.factor1,e.factor2,l,1);return T&&T<g.data.geometry.extent.width&&E?g.updateVertices(_,E):(p(O,u),x(f,u),E=f.operation,r(e,f)),e}).next(e=>(e.action===`end`&&(v.cursor=`grab`),e))})}_createManipulator(){return new b({view:this._view,graphic:this._graphic,selectable:!0,cursor:`grab`})}}export{w as ScaleManipulation,C as calculateDiagonalResizeHandleScale};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{rad2deg as e,deg2rad as t}from"../../../../../core/mathUtils.js";import{EventPipeline as n}from"../../../../interactive/dragEventPipeline.js";function r(e,t){t.cursor=e.action===`start`?`grabbing`:`grab`}class i{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustScaleFactors(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustScaleFactors(e),e)}_adjustScaleFactors(e){let t=e.direction[0]!==0&&e.direction[1]!==0?Math.max(Math.abs(e.factor1),Math.abs(e.factor2)):e.direction[0]===0?Math.abs(e.factor2):Math.abs(e.factor1);e.factor1=e.factor1<0?-t:t,e.factor2=e.factor2<0?-t:t}}class a{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustRotateAngle(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustRotateAngle(e),e)}_adjustRotateAngle(n){let r=e(n.rotateAngle);n.rotateAngle=t(Math.round(r/5)*5)}}export{i as PreserveAspectRatio,a as SnapRotation,r as onGrabChangedHandle};
|
|
2
|
+
import{rad2deg as e,deg2rad as t}from"../../../../../core/mathUtils.js";import{EventPipeline as n}from"../../../../interactive/dragEventPipeline.js";function r(e,t){t.cursor=e.action===`start`?`grabbing`:`grab`}class i{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustScaleFactors(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,this.next=new n,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustScaleFactors(e),e)}_adjustScaleFactors(e){let t=e.direction[0]!==0&&e.direction[1]!==0?Math.max(Math.abs(e.factor1),Math.abs(e.factor2)):e.direction[0]===0?Math.abs(e.factor2):Math.abs(e.factor1);e.factor1=e.factor1<0?-t:t,e.factor2=e.factor2<0?-t:t}}class a{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustRotateAngle(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,this.next=new n,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustRotateAngle(e),e)}_adjustRotateAngle(n){let r=e(n.rotateAngle);n.rotateAngle=t(Math.round(r/5)*5)}}export{i as PreserveAspectRatio,a as SnapRotation,r as onGrabChangedHandle};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../core/Collection.js";import{referenceSetter as n}from"../../../core/collectionUtils.js";import
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../core/Collection.js";import{referenceSetter as n}from"../../../core/collectionUtils.js";import r from"../../../core/Error.js";import"../../../core/has.js";import{watch as i,syncAndInitial as a,sync as o}from"../../../core/reactiveUtils.js";import{property as s,subclass as c}from"../../../core/accessorSupport/decorators.js";import{isInEffectiveScaleRange as l}from"../../../geometry/support/scaleUtils.js";import{isLinkChartView as u}from"../../../linkChart/guards.js";import{Container as d}from"../engine/Container.js";import{ClipMesh as f}from"../engine/webgl/ClipMesh.js";import{maxHighlightGroups as p}from"../engine/webgl/definitions.js";import{HighlightRegistry as m}from"./support/HighlightRegistry.js";import{createOrReuseHighlightGradient as h}from"./support/util.js";import g from"../../layers/support/ClipRect.js";import _ from"../../layers/support/GeometryClipArea.js";import v from"../../layers/support/Path.js";import y from"../../support/HighlightOptions.js";const b=t.ofType({key:`type`,base:null,typeMap:{rect:g,path:v,geometry:_}}),x=new(t.ofType(y)),S=g=>{let _=g,v=class extends _{constructor(){super(...arguments),this._clipUpdateId=0,this._highlightRegistry=new m,this.attached=!1,this.clips=new b,this.highlights=null,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1,this._visibleAtCurrentScale=!0}initialize(){let e=this.view?.spatialReferenceLocked??!0;this.view?.spatialReference&&e&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new r(`layerview:spatial-reference-incompatible`,`The spatial reference of this layer does not meet the requirements of the view`,{layer:this.layer}))):(this.container||=new d,this.container.fadeTransitionEnabled=!0,this.container.visible=!1,this.container.endTransitions(),this.addHandles([i(()=>this.suspended,e=>{this.container&&(this.container.visible=!e)},a),i(()=>this.updateSuspended,e=>{this.view&&!e&&this.updateRequested&&this.view.requestUpdate()},a),i(()=>this.layer?.opacity??1,e=>{this.container&&(this.container.opacity=e)},a),i(()=>this.layer&&`blendMode`in this.layer?this.layer.blendMode:`normal`,e=>{this.container&&(this.container.blendMode=e)},a),i(()=>this.layer&&`effect`in this.layer?this.layer.effect:null,e=>{this.container&&(this.container.effect=e)},a),i(()=>this._effectiveHighlightOptions.items.map(e=>({name:e.name,options:{fillColor:e.color,haloColor:e.haloColor,fillOpacity:e.fillOpacity,haloOpacity:e.haloOpacity,haloWidth:e.haloWidth,haloBlur:e.haloBlur}})),()=>{this.container.highlightGradient=h(this.container.highlightGradient,this._effectiveHighlightOptions.items)},a),i(()=>this._getHighlightFilterGroups(),()=>this._onHighlightChange(),o),i(()=>this.clips.map(e=>e.version),async()=>{let e=++this._clipUpdateId;if(this.container&&this.view?.spatialReference){let t=this.view.featuresTilingScheme,n=await this._updatingHandles.addPromise(Promise.all(this.clips.items.map(e=>f.create(e,t))));if(this.destroyed||e!==this._clipUpdateId){for(let e of n)e?.destroy();return}for(let e of this.container.clips)e.destroy();this.container.clips=n.filter(e=>!!e)}},a),i(()=>({scale:this.view?.scale,scaleRange:this.layer&&`effectiveScaleRange`in this.layer?this.layer.effectiveScaleRange:null}),({scale:e,scaleRange:t})=>{let n=l(t,e);n!==this._visibleAtCurrentScale&&(this._visibleAtCurrentScale=n)},a),i(()=>this.layer?.effectiveVisible,async e=>{this.container.requestDeclutter()})],`constructor`),this.view?.whenLayerView?this.view.whenLayerView(this.layer).then(e=>{e===this&&this.processAttach()},()=>{}):this.when().then(()=>{this.processAttach()},()=>{}))}destroy(){this.processDetach(),this.updateRequested=!1;for(let e of this.container?.clips??[])e.destroy()}get hasHighlight(){return this._highlightRegistry.size>0}get _effectiveHighlightOptions(){if(!this.view)return x;if(!this.highlights)return this.view.highlights;let e=this.view.highlights.clone();for(let t of this.highlights){let n=e.find(e=>e.name===t.name);n&&n.assignFrom(t)}return e}get highlightIds(){return this._highlightRegistry.highlightIds}get scheduler(){return this.view.scheduler}get spatialReferenceSupported(){let e=this.view?.spatialReference;return e==null||this.supportsSpatialReference(e)}get updating(){return this.spatialReferenceSupported?this.attached?this.suspended?!1:this.updateRequested||this.isUpdating()||this._updatingHandles?.updating||this.container.transitioning:!0:!1}get visibleAtCurrentScale(){return this._visibleAtCurrentScale}processAttach(){this.isResolved()&&!this.attached&&!this.destroyed&&this.spatialReferenceSupported&&(this.attach(),this.attached=!0,this.requestUpdate())}processDetach(){this.attached&&(this.attached=!1,this.removeHandles(`attach`),this.detach(),this.updateRequested=!1)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.updateSuspended||this.view.requestUpdate())}processUpdate(e){this.isFulfilled()&&!this.isResolved()?this.updateRequested=!1:(this._set(`updateParameters`,e),this.updateRequested&&!this.updateSuspended&&(this.updateRequested=!1,this.update(e)))}hitTest(e,t,n){return Promise.resolve(null)}supportsSpatialReference(e){return!0}canResume(){if(!this.spatialReferenceSupported)return!1;switch(this.layer?.type){case`link-chart`:case`knowledge-graph-sublayer`:case`graphics`:break;default:if(u(this.view)&&!this.view.inGeographicLayout)return!1}return super.canResume()?this.visibleAtCurrentScale:!1}getSuspendInfo(){let e=super.getSuspendInfo(),t=!this.spatialReferenceSupported;return t&&(e.spatialReferenceNotSupported=t),e}addAttachHandles(e){this.addHandles(e,`attach`)}_addHighlightFilter(e,t){return this._highlightRegistry.register(t,e)}_removeHighlight(e){this._highlightRegistry.unregister(e)}_onHighlightChange(){}_getHighlightFilterGroups(){let e=[];for(let{name:t,filters:n}of this._highlightRegistry.highlightGroups){let r=this._effectiveHighlightOptions.findIndex(e=>e.name===t);r<0||r>=p||e.push({order:r,filters:n})}return e}};return e([s()],v.prototype,`attached`,void 0),e([s({type:b,set(e){let t=n(e,this._get(`clips`),b);this._set(`clips`,t)}})],v.prototype,`clips`,void 0),e([s()],v.prototype,`container`,void 0),e([s({type:t.ofType(y)})],v.prototype,`highlights`,void 0),e([s()],v.prototype,`_effectiveHighlightOptions`,null),e([s()],v.prototype,`moving`,void 0),e([s({readOnly:!0})],v.prototype,`spatialReferenceSupported`,null),e([s({readOnly:!0})],v.prototype,`updateParameters`,void 0),e([s()],v.prototype,`updateRequested`,void 0),e([s()],v.prototype,`updating`,null),e([s()],v.prototype,`view`,void 0),e([s()],v.prototype,`_visibleAtCurrentScale`,void 0),e([s({readOnly:!0})],v.prototype,`visibleAtCurrentScale`,null),v=e([c(`esri.views.2d.layers.LayerView2D`)],v),v};export{S as LayerView2D};
|
|
@@ -96,4 +96,5 @@ export default class SunLighting extends SunLightingSuperclass {
|
|
|
96
96
|
/** Indicates that the light source is simulated position of the sun. */
|
|
97
97
|
get type(): "sun";
|
|
98
98
|
}
|
|
99
|
-
declare const SunLightingSuperclass: typeof WebSceneSunLighting & typeof EventedMixin
|
|
99
|
+
declare const SunLightingSuperclass: typeof WebSceneSunLighting & typeof EventedMixin
|
|
100
|
+
export {};
|
|
@@ -77,4 +77,5 @@ export default class VirtualLighting extends VirtualLightingSuperclass {
|
|
|
77
77
|
*/
|
|
78
78
|
get type(): "virtual";
|
|
79
79
|
}
|
|
80
|
-
declare const VirtualLightingSuperclass: typeof WebSceneVirtualLighting & typeof EventedMixin
|
|
80
|
+
declare const VirtualLightingSuperclass: typeof WebSceneVirtualLighting & typeof EventedMixin
|
|
81
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../core/Collection.js";import{destroyHandle as n,makeHandle as r}from"../../../core/handleUtils.js";import{watch as i,syncAndInitial as a,initial as o}from"../../../core/reactiveUtils.js";import{property as s,subclass as c}from"../../../core/accessorSupport/decorators.js";import{DynamicLayerView3DMixin as l}from"./DynamicLayerView3D.js";import u from"./ImagerySubView3D.js";import{LayerView3D as d}from"./LayerView3D.js";import{ImageHighlightHelper3D as f}from"./support/ImageHighlightHelper3D.js";import p from"../support/flow/FlowSubViewExtent3D.js";import m from"../../layers/ImageryLayerView.js";import{RefreshableLayerView as h}from"../../layers/RefreshableLayerView.js";import{isPixelHighlightTarget as g}from"../../layers/support/highlightUtils.js";let _=class extends l(h(d(m))){constructor(){super(...arguments),this.type=`imagery-3d`}get
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../core/Collection.js";import{destroyHandle as n,makeHandle as r}from"../../../core/handleUtils.js";import{watch as i,syncAndInitial as a,initial as o}from"../../../core/reactiveUtils.js";import{property as s,subclass as c}from"../../../core/accessorSupport/decorators.js";import{DynamicLayerView3DMixin as l}from"./DynamicLayerView3D.js";import u from"./ImagerySubView3D.js";import{LayerView3D as d}from"./LayerView3D.js";import{ImageHighlightHelper3D as f}from"./support/ImageHighlightHelper3D.js";import p from"../support/flow/FlowSubViewExtent3D.js";import m from"../../layers/ImageryLayerView.js";import{RefreshableLayerView as h}from"../../layers/RefreshableLayerView.js";import{isPixelHighlightTarget as g}from"../../layers/support/highlightUtils.js";let _=class extends l(h(d(m))){constructor(){super(...arguments),this.type=`imagery-3d`}get pixelData(){return null}initialize(){let e=()=>this._updatingHandles.addPromise(this.refreshDebounced());this._updatingHandles.add(()=>this.layer?.exportImageServiceParameters?.version,e),this._updatingHandles.add(()=>this.layer?.renderer,e),this._updatingHandles.add(()=>this.timeExtent,e),this._highlightHelper=new f({view:this.view,layer:this.layer,updatingHandles:this._updatingHandles}),this.addHandles([n(this._highlightHelper),i(()=>this.suspended,e=>this._highlightHelper.suspended=e,a)])}_initSubView(){this.addHandles([i(()=>this.layer.renderer,e=>this._recreateSubView(e),o)])}_recreateSubView(e){let t=e?.type===`flow`,n=this.subView?.type===`flow`,r=this.subView;r&&t===n||(this.subView=t?new p({layerView:this}):new u({layerView:this}),r?.destroy())}getFetchOptions(){return{timeExtent:this.timeExtent}}highlight(e,n){if(typeof e==`number`||typeof e==`string`||g(e))return r();if(Array.isArray(e)||t.isCollection(e)){let t=e.at(0);if(t==null||typeof t==`number`||typeof t==`string`)return r()}return this._highlightHelper.highlight(e,n)}isUpdating(){return super.isUpdating()||this._highlightHelper.updating}};e([s()],_.prototype,`pixelData`,null),_=e([c(`esri.views.3d.layers.ImageryLayerView3D`)],_);const v=_;export{v as default};
|