@conterra/ct-mapapps-typings 4.20.1 → 4.20.2-RC-1
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/agssearch/api.d.ts +2 -2
- package/agssearch/package.json +1 -1
- package/apprt/Bundle.d.ts +1 -1
- package/apprt/EnvironmentRuleMatcher.d.ts +2 -1
- package/apprt/api/index.d.ts +1 -0
- package/apprt/api/internal.d.ts +2 -2
- package/apprt/launch/BundleController.d.ts +4 -2
- package/apprt/launch/Launcher.d.ts +23 -3
- package/apprt/launch/layer-min.d.ts +1 -1
- package/apprt/launch/layer.d.ts +1 -1
- package/apprt/package.json +1 -1
- package/apprt/semverrange.d.ts +2 -1
- package/apprt/support/ServiceRegistrations.d.ts +3 -2
- package/apprt/tracker/BundleTracker.d.ts +2 -1
- package/apprt/tracker/ServiceTracker.d.ts +3 -2
- package/apprt-binding/Binding.d.ts +2 -1
- package/apprt-binding/Transformers.d.ts +2 -1
- package/apprt-binding/package.json +1 -1
- package/apprt-core/AsyncTask.d.ts +2 -1
- package/apprt-core/Cancel.d.ts +2 -1
- package/apprt-core/CancelablePromise.d.ts +2 -1
- package/apprt-core/Events.d.ts +34 -27
- package/apprt-core/Exception.d.ts +2 -1
- package/apprt-core/InjectedReference.d.ts +2 -1
- package/apprt-core/Locale.d.ts +0 -1
- package/apprt-core/Logger.d.ts +2 -1
- package/apprt-core/Mutable.d.ts +2 -1
- package/apprt-core/Observers.d.ts +2 -1
- package/apprt-core/Promise.d.ts +2 -1
- package/apprt-core/PropertyPath.d.ts +2 -1
- package/apprt-core/TaskExecutor.d.ts +2 -1
- package/apprt-core/TreeWalker.d.ts +2 -1
- package/apprt-core/Types.d.ts +3 -2
- package/apprt-core/clone.d.ts +2 -1
- package/apprt-core/comparators.d.ts +2 -4
- package/apprt-core/config.d.ts +9 -8
- package/apprt-core/freeze.d.ts +2 -1
- package/apprt-core/join.d.ts +2 -1
- package/apprt-core/load-css.d.ts +2 -1
- package/apprt-core/load-js.d.ts +3 -2
- package/apprt-core/package.json +1 -1
- package/apprt-core/parallel.d.ts +2 -1
- package/apprt-core/promise-utils.d.ts +2 -1
- package/apprt-core/string-replace.d.ts +2 -1
- package/apprt-dom/index.d.ts +2 -1
- package/apprt-dom/package.json +1 -1
- package/apprt-fetch/index.d.ts +3 -2
- package/apprt-fetch/package.json +1 -1
- package/apprt-streams/Stream.d.ts +1 -1
- package/apprt-streams/package.json +1 -1
- package/apprt-tokens/package.json +1 -1
- package/apprt-vue/package.json +1 -1
- package/apprt-vuetify/RegisterVuetify.d.ts +1 -1
- package/apprt-vuetify/components/copyText.d.ts +8 -0
- package/apprt-vuetify/package.json +1 -1
- package/coordinateconversion/api.d.ts +182 -0
- package/coordinateconversion/package.json +5 -0
- package/coordinatetransformer/api/CoordinateTransformer.d.ts +6 -4
- package/coordinatetransformer/api/ProjectionStore.d.ts +4 -2
- package/coordinatetransformer/api/TransformationProvider.d.ts +6 -4
- package/coordinatetransformer/api/TransformerStrategy.d.ts +4 -2
- package/coordinatetransformer/api/index.d.ts +6 -4
- package/coordinatetransformer/package.json +1 -1
- package/ct/async.d.ts +1 -1
- package/ct/mapping/geometry.d.ts +6 -6
- package/ct/package.json +1 -1
- package/ct/tools/Tool.d.ts +300 -2
- package/dataform/package.json +1 -1
- package/dataview/package.json +1 -1
- package/domains-system/package.json +1 -1
- package/editing/api.d.ts +5 -15
- package/editing/package.json +1 -1
- package/esri-widgets/EsriDijit.d.ts +2 -1
- package/esri-widgets/package.json +1 -1
- package/geojson/api.d.ts +6 -6
- package/geojson/package.json +1 -1
- package/geometryservice/api.d.ts +15 -15
- package/geometryservice/package.json +1 -1
- package/graphics/GraphicsBuilder.d.ts +1 -1
- package/graphics/package.json +1 -1
- package/highlights/api.d.ts +4 -4
- package/highlights/package.json +1 -1
- package/integration-map/package.json +1 -1
- package/managementlayout/package.json +1 -1
- package/map-actions/api.d.ts +2 -2
- package/map-actions/package.json +1 -1
- package/map-basemaps-api/BasemapItem.d.ts +2 -9
- package/map-basemaps-api/BasemapsModel.d.ts +1 -1
- package/map-basemaps-api/api.d.ts +1 -1
- package/map-basemaps-api/package.json +1 -1
- package/map-config-api/api.d.ts +38 -38
- package/map-config-api/package.json +1 -1
- package/map-init/api.d.ts +1 -1
- package/map-init/package.json +1 -1
- package/map-widget/Constraints.d.ts +16 -11
- package/map-widget/LayerObserver.d.ts +7 -6
- package/map-widget/LayerTraverser.d.ts +7 -6
- package/map-widget/MapWidgetFactory.d.ts +17 -11
- package/map-widget/MapWidgetModel.d.ts +16 -11
- package/map-widget/Navigation.d.ts +9 -2
- package/map-widget/ViewReadyWatcher.d.ts +18 -12
- package/map-widget/__internal__/{DTPbI1Aa.d.ts → ChgqPGgf.d.ts} +54 -10
- package/map-widget/api/BaseTypes.d.ts +6 -0
- package/map-widget/api/Constraints.d.ts +16 -11
- package/map-widget/api/MapWidget.d.ts +16 -11
- package/map-widget/api/MapWidgetFactory.d.ts +19 -14
- package/map-widget/api/MapWidgetModel.d.ts +16 -11
- package/map-widget/api/MapWidgetRegistration.d.ts +17 -12
- package/map-widget/api/Navigation.d.ts +15 -2
- package/map-widget/api/SrsChangeService.d.ts +16 -11
- package/map-widget/api/VisibilityState.d.ts +109 -0
- package/map-widget/api/index.d.ts +17 -12
- package/map-widget/package.json +1 -1
- package/mapdraw-api/api.d.ts +3 -3
- package/mapdraw-api/package.json +1 -1
- package/mapnavigation/package.json +1 -1
- package/maptips/api.d.ts +2 -2
- package/maptips/package.json +1 -1
- package/measurement-2d/api.d.ts +3 -2
- package/measurement-2d/package.json +1 -1
- package/measurement-3d/api.d.ts +1 -1
- package/measurement-3d/package.json +1 -1
- package/package.json +6 -6
- package/parametermanager/package.json +1 -1
- package/popups/Action.d.ts +7 -7
- package/popups/BaseAction.d.ts +10 -9
- package/popups/ContentUpdateProxy.d.ts +5 -4
- package/popups/api.d.ts +6 -5
- package/popups/package.json +1 -1
- package/portal-security/api.d.ts +1 -1
- package/portal-security/package.json +1 -1
- package/result-api/__internal__/{Bnw4PH_u.d.ts → BGEg3fBn.d.ts} +38 -5
- package/result-api/api/actions.d.ts +3 -2
- package/result-api/api/formatting.d.ts +3 -2
- package/result-api/api/index.d.ts +3 -2
- package/result-api/api/model.d.ts +3 -2
- package/result-api/api/service.d.ts +9 -2
- package/result-api/api/ui.d.ts +3 -2
- package/result-api/package.json +1 -1
- package/search-api/api.d.ts +16 -2
- package/search-api/package.json +1 -1
- package/search-ui/api.d.ts +2 -1
- package/search-ui/package.json +1 -1
- package/selection-services/DrawingSpatialInputAction.d.ts +3 -2
- package/selection-services/SearchSource.d.ts +5 -4
- package/selection-services/SpatialInputAction.d.ts +3 -2
- package/selection-services/TolerancePointDrawingInputAction.d.ts +1 -1
- package/selection-services/api/index.d.ts +1 -1
- package/selection-services/package.json +1 -1
- package/store-api/ComplexQuery.d.ts +3 -2
- package/store-api/InMemoryStore.d.ts +6 -5
- package/store-api/QueryExecution.d.ts +2 -1
- package/store-api/QueryExecutions.d.ts +3 -2
- package/store-api/QueryResults.d.ts +1 -3
- package/store-api/SpatialQuery.d.ts +3 -2
- package/store-api/api/ComplexQueryLang.d.ts +1 -1
- package/store-api/api/Store.d.ts +2 -10
- package/store-api/api/index.d.ts +1 -1
- package/store-api/package.json +1 -1
- package/store-api/rest/BaseRestStore.d.ts +3 -2
- package/store-api/rest/BaseWriteableRestStore.d.ts +1 -1
- package/store-api/rest/ComplexQueryToSQL.d.ts +1 -1
- package/store-api/rest/ComplexQueryToSolrQL.d.ts +3 -2
- package/store-api/rest/RQLStore.d.ts +1 -1
- package/store-api/rest/SQLStore.d.ts +1 -1
- package/store-api/utils.d.ts +2 -6
- package/system/api/internal.d.ts +1 -1
- package/system/package.json +1 -1
- package/system/user/Authentication.d.ts +3 -2
- package/system/user/Authorization.d.ts +2 -1
- package/system/user/User.d.ts +2 -1
- package/templatelayout/package.json +1 -1
- package/test-utils/package.json +1 -1
- package/test-utils/waitFor.d.ts +2 -1
- package/theme-tester/package.json +1 -1
- package/toc/api/Action.d.ts +4 -4
- package/toc/api/Item.d.ts +5 -5
- package/toc/api/StateChecker.d.ts +4 -4
- package/toc/api/index.d.ts +4 -4
- package/toc/package.json +1 -1
- package/toolrules/package.json +1 -1
- package/vuetify-component-overview/package.json +1 -1
- package/windowmanager/package.json +1 -1
- package/wizard/package.json +1 -1
- package/apprt-core/Observable.d.ts +0 -55
- package/apprt-request/api.d.ts +0 -340
- package/apprt-request/main.d.ts +0 -6
- package/apprt-request/package.json +0 -5
- package/apprt-request/request.d.ts +0 -8
- package/apprt-vue/directives/clipboard.d.ts +0 -15
- package/ct/api/omnisearch/ResultHandler.d.ts +0 -3
- package/ct/api/omnisearch/Store.d.ts +0 -3
- package/ct/request.d.ts +0 -17
- package/ct/ui/controls/mobile/DropDownMenu.d.ts +0 -3
- package/omnisearch/ActionsHandler.d.ts +0 -9
- package/omnisearch/DrawHandler.d.ts +0 -9
- package/omnisearch/DropDownMenu.d.ts +0 -3
- package/omnisearch/OmniSearchFactory.d.ts +0 -3
- package/omnisearch/OmniSearchModel.d.ts +0 -3
- package/omnisearch/RadioButton.d.ts +0 -3
- package/omnisearch/ResultCommand.d.ts +0 -9
- package/omnisearch/SearchUI.d.ts +0 -3
- package/omnisearch/SettingsWidget.d.ts +0 -3
- package/omnisearch/ZoomHandler.d.ts +0 -8
- package/omnisearch/package.json +0 -5
- package/resultcenter/ActionController.d.ts +0 -3
- package/resultcenter/BaseCommand.d.ts +0 -3
- package/resultcenter/DataModel.d.ts +0 -3
- package/resultcenter/DataModelBroadcaster.d.ts +0 -3
- package/resultcenter/DataModelMapController.d.ts +0 -25
- package/resultcenter/DataViewController.d.ts +0 -3
- package/resultcenter/DataViewStore.d.ts +0 -3
- package/resultcenter/ExportResultsCommand.d.ts +0 -12
- package/resultcenter/FeatureMapVisualizer.d.ts +0 -35
- package/resultcenter/GraphicResolverFactory.d.ts +0 -15
- package/resultcenter/OpenPopupService.d.ts +0 -5
- package/resultcenter/PostfixAttributeTableLookupStrategy.d.ts +0 -3
- package/resultcenter/RemoveResultsCommand.d.ts +0 -6
- package/resultcenter/RestrictQueriesToView.d.ts +0 -3
- package/resultcenter/ResultcenterToolRuleProcessor.d.ts +0 -3
- package/resultcenter/SearchStoreHandler.d.ts +0 -8
- package/resultcenter/SelectAllResultsCommand.d.ts +0 -11
- package/resultcenter/StoreEventReceiver.d.ts +0 -3
- package/resultcenter/StoreRegistration.d.ts +0 -3
- package/resultcenter/TriggerShowResultCenter.d.ts +0 -3
- package/resultcenter/VisualizationLayerResolver.d.ts +0 -13
- package/resultcenter/package.json +0 -5
- package/selection-resultcenter/CachingStore.d.ts +0 -229
- package/selection-resultcenter/MemoryStore.d.ts +0 -10
- package/selection-resultcenter/package.json +0 -5
package/apprt-fetch/package.json
CHANGED
|
@@ -304,7 +304,7 @@ declare abstract class Stream<T> implements Iterable<T> {
|
|
|
304
304
|
* const result = Stream.from(items).take(1).toArray(); // [1]
|
|
305
305
|
* ```
|
|
306
306
|
*
|
|
307
|
-
* @count the number of elements to include in the returned stream
|
|
307
|
+
* @param count the number of elements to include in the returned stream
|
|
308
308
|
*/
|
|
309
309
|
take(count: number): Stream<T>;
|
|
310
310
|
/**
|
package/apprt-vue/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import Point from '@arcgis/core/geometry/Point';
|
|
2
|
+
import SpatialReference from '@arcgis/core/geometry/SpatialReference';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Parsing succeeded and returned a valid value.
|
|
6
|
+
*/
|
|
7
|
+
interface ParseSuccess<T> {
|
|
8
|
+
kind: "success";
|
|
9
|
+
value: T;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Parsing resulted in an error.
|
|
13
|
+
*/
|
|
14
|
+
interface ParseError {
|
|
15
|
+
kind: "error";
|
|
16
|
+
/**
|
|
17
|
+
* Human readable error message.
|
|
18
|
+
* This message may be presented to the user.
|
|
19
|
+
*/
|
|
20
|
+
message?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The result of parsing inputs.
|
|
24
|
+
*/
|
|
25
|
+
type ParseResult<T> = ParseSuccess<T> | ParseError;
|
|
26
|
+
/**
|
|
27
|
+
* Implements a format for coordinate conversions.
|
|
28
|
+
*
|
|
29
|
+
* You can extend the builtin set of formats by providing a service with `"coordinateconversion.SegmentedFormat"`.
|
|
30
|
+
*/
|
|
31
|
+
interface SegmentedFormat {
|
|
32
|
+
/**
|
|
33
|
+
* Unique id of this format.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Human readable label of this format.
|
|
38
|
+
*/
|
|
39
|
+
readonly label: string;
|
|
40
|
+
/**
|
|
41
|
+
* Input segments required by the format, for example `x` and `y` coordinates.
|
|
42
|
+
* The coordinate conversion widget shows one input field for each segment.
|
|
43
|
+
*/
|
|
44
|
+
readonly segments: CoordinateSegment[];
|
|
45
|
+
/**
|
|
46
|
+
* When specified, points will be projected to this spatial reference before being passed to {@link pointToSegments}.
|
|
47
|
+
*
|
|
48
|
+
* If this is not specified, you will receive the point in the current spatial reference of the view, and
|
|
49
|
+
* you will have to perform any necessary projections yourself.
|
|
50
|
+
*/
|
|
51
|
+
readonly spatialReference?: SpatialReference;
|
|
52
|
+
/**
|
|
53
|
+
* Renders a point to _segment_ values.
|
|
54
|
+
* The returned record is indexed by segment ids and contains a string for each segment.
|
|
55
|
+
*
|
|
56
|
+
* The output of this function should be compatible with {@link segmentsToPoint}.
|
|
57
|
+
*
|
|
58
|
+
* Example:
|
|
59
|
+
*
|
|
60
|
+
* ```js
|
|
61
|
+
* const point = ...;
|
|
62
|
+
* const segments = format.pointToSegments(point);
|
|
63
|
+
* // segments == { x: "...", y: "..." }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
pointToSegments(point: Point): Promise<Record<string, string>>;
|
|
67
|
+
/**
|
|
68
|
+
* Formats a set of _segment_ values to a human readable string.
|
|
69
|
+
* This combines the segment values to a final display string, including separating characters (like ',' or ' ')
|
|
70
|
+
* and units (like '°' and '"').
|
|
71
|
+
*
|
|
72
|
+
* The `segments` parameter can be assumed to contain valid strings: either
|
|
73
|
+
* - user input validated by {@link CoordinateSegment.validate} or
|
|
74
|
+
* - segment values generated by {@link pointToSegments}.
|
|
75
|
+
*
|
|
76
|
+
* The value returned here should be compatible with {@link stringToSegments}.
|
|
77
|
+
*
|
|
78
|
+
* Example:
|
|
79
|
+
*
|
|
80
|
+
* ```js
|
|
81
|
+
* const segments = { x: "1", y: "2" }
|
|
82
|
+
* const output = format.segmentsToString(segments);
|
|
83
|
+
* // output == "1°, 2°"
|
|
84
|
+
* ``
|
|
85
|
+
*/
|
|
86
|
+
segmentsToString(segments: Record<string, string>): string;
|
|
87
|
+
/**
|
|
88
|
+
* Splits a human readable coordinates string (like returned by {@link segmentsToString}) into its input segment.
|
|
89
|
+
*
|
|
90
|
+
* For example:
|
|
91
|
+
*
|
|
92
|
+
* ```js
|
|
93
|
+
* const input = "123.4 567.8";
|
|
94
|
+
* const segments = format.stringToSegments(input).value; // assumes success
|
|
95
|
+
* // segments == { x: "123.4", y: "567.8" };
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
stringToSegments(input: string): ParseResult<Record<string, string>>;
|
|
99
|
+
/**
|
|
100
|
+
* Parses a set of (validated) segment values into a `Point`.
|
|
101
|
+
* This can be used, for example, to place a marker on the map.
|
|
102
|
+
*
|
|
103
|
+
* Example:
|
|
104
|
+
*
|
|
105
|
+
* ```js
|
|
106
|
+
* const segments = { x: "1", y: "2" }
|
|
107
|
+
* const point = await format.segmentsToPoint(segments).value; // assumes success
|
|
108
|
+
* // point == { x: 1234, y: 5678, spatialReference: { ... }}
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
segmentsToPoint(segments: Record<string, string>): Promise<ParseResult<Point>>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A coordinate segment within a {@link SegmentedFormat}.
|
|
115
|
+
*/
|
|
116
|
+
interface CoordinateSegment {
|
|
117
|
+
/**
|
|
118
|
+
* Id of this segment.
|
|
119
|
+
*
|
|
120
|
+
* This should be unique within the context of its format.
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Human readable label for this coordinate segment (e.g. "Latitude").
|
|
125
|
+
*/
|
|
126
|
+
label: string;
|
|
127
|
+
/**
|
|
128
|
+
* Example for this segment, like '51° 57' 40"N'
|
|
129
|
+
*/
|
|
130
|
+
example?: string;
|
|
131
|
+
/**
|
|
132
|
+
* A prefix value that will be shown as part of the input field for this coordinate segment.
|
|
133
|
+
*
|
|
134
|
+
* This is a display-only field for strings that do not need to be typed by the user (such as "°").
|
|
135
|
+
*/
|
|
136
|
+
prefix?: string;
|
|
137
|
+
/**
|
|
138
|
+
* A suffix value that will be shown as part of the input field for this coordinate segment.
|
|
139
|
+
*
|
|
140
|
+
* This is a display-only field for strings that do not need to be typed by the user (such as "°").
|
|
141
|
+
*/
|
|
142
|
+
suffix?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Validates an input string for this coordinate segment.
|
|
145
|
+
* `input` is the (trimmed) text typed by the user.
|
|
146
|
+
*
|
|
147
|
+
* This function should return `true` if the input is valid,
|
|
148
|
+
* or an error message otherwise.
|
|
149
|
+
*
|
|
150
|
+
* `validate()` usually only performs text based validation (e.g. regular expressions).
|
|
151
|
+
* Parsing the actual input string (using {@link SegmentedFormat.segmentsToPoint}) can return additional errors.
|
|
152
|
+
*
|
|
153
|
+
* Only valid inputs will be passed to {@link SegmentedFormat.segmentsToPoint}.
|
|
154
|
+
*/
|
|
155
|
+
validate(input: string): true | false | ParseError;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A model that provides access to the current state of the coordinate conversion widget.
|
|
159
|
+
* Properties and methods are designed to be used together with the Reactivity API.
|
|
160
|
+
*
|
|
161
|
+
* It is available as service `coordinateconversion.Model`.
|
|
162
|
+
*/
|
|
163
|
+
interface CoordinateConversionModel {
|
|
164
|
+
/**
|
|
165
|
+
* True if the widget is currently active.
|
|
166
|
+
*/
|
|
167
|
+
readonly active: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* The current marker location, if any.
|
|
170
|
+
* This value represents explicit location inputs and also locations from mouse movements.
|
|
171
|
+
*/
|
|
172
|
+
readonly currentLocation: Point | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* The current marker location, if any.
|
|
175
|
+
*
|
|
176
|
+
* This value represents explicit location inputs only, i.e. if the user clicked on the map (not just moving the mouse)
|
|
177
|
+
* or confirmed the input form.
|
|
178
|
+
*/
|
|
179
|
+
readonly confirmedLocation: Point | undefined;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type { CoordinateConversionModel, CoordinateSegment, ParseError, ParseResult, ParseSuccess, SegmentedFormat };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Geometry } from '@arcgis/core/geometry';
|
|
2
|
+
import SpatialReference from '@arcgis/core/geometry/SpatialReference';
|
|
3
|
+
import Extent from '@arcgis/core/geometry/Extent';
|
|
4
|
+
import BaseGeometry from '@arcgis/core/geometry/Geometry';
|
|
3
5
|
|
|
4
6
|
/** Helper type to represent an item or an array of items. */
|
|
5
7
|
type Items<T> = T | T[];
|
|
@@ -19,7 +21,7 @@ interface Coordinates {
|
|
|
19
21
|
* const wgs84String = "EPSG:4326";
|
|
20
22
|
* const wgs84Wkid = 4326;
|
|
21
23
|
*
|
|
22
|
-
* import SpatialReference from "
|
|
24
|
+
* import SpatialReference from "@arcgis/core/geometry/SpatialReference";
|
|
23
25
|
* const wgs84 = new SpatialReference({wkid:4326});
|
|
24
26
|
* ```
|
|
25
27
|
*/
|
|
@@ -82,7 +84,7 @@ type CoordinateModificationCallback = (input: Readonly<Coordinates>) => Coordina
|
|
|
82
84
|
* ```ts
|
|
83
85
|
* import { InjectedReference } from "apprt-core/InjectedReference";
|
|
84
86
|
* import { CoordinateTransformer } from "coordinatetransformer/CoordinateTransformer";
|
|
85
|
-
* import { Geometry } from "
|
|
87
|
+
* import { Geometry } from "@arcgis/core/geometry";
|
|
86
88
|
*
|
|
87
89
|
* export default class MyComponent {
|
|
88
90
|
* private coordinateTransformer: InjectedReference<CoordinateTransformer>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Store } from 'store-api/api';
|
|
2
2
|
import { Projection } from './CoordinateTransformer.js';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
3
|
+
import '@arcgis/core/geometry';
|
|
4
|
+
import '@arcgis/core/geometry/SpatialReference';
|
|
5
|
+
import '@arcgis/core/geometry/Extent';
|
|
6
|
+
import '@arcgis/core/geometry/Geometry';
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Store which provides access to the available projections via the store interface.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import GeographicTransformation from '
|
|
3
|
-
import GeographicTransformationStep from '
|
|
1
|
+
import SpatialReference from '@arcgis/core/geometry/SpatialReference';
|
|
2
|
+
import GeographicTransformation from '@arcgis/core/geometry/operators/support/GeographicTransformation';
|
|
3
|
+
import GeographicTransformationStep from '@arcgis/core/geometry/operators/support/GeographicTransformationStep';
|
|
4
4
|
import { Items } from './CoordinateTransformer.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@arcgis/core/geometry';
|
|
6
|
+
import '@arcgis/core/geometry/Extent';
|
|
7
|
+
import '@arcgis/core/geometry/Geometry';
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* A transformation provider supplies custom transformations between spatial reference systems.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { Geometry
|
|
1
|
+
import { Geometry } from '@arcgis/core/geometry';
|
|
2
|
+
import SpatialReference from '@arcgis/core/geometry/SpatialReference';
|
|
2
3
|
import { Items } from './CoordinateTransformer.js';
|
|
3
|
-
import '
|
|
4
|
+
import '@arcgis/core/geometry/Extent';
|
|
5
|
+
import '@arcgis/core/geometry/Geometry';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* A transformer strategy is an interface used by the CoordinateTransformer
|
|
@@ -2,8 +2,10 @@ export { CoordinateModificationCallback, CoordinateTransformer, Coordinates, Ite
|
|
|
2
2
|
export { TransformationProvider } from './TransformationProvider.js';
|
|
3
3
|
export { TransformerStrategy } from './TransformerStrategy.js';
|
|
4
4
|
export { ProjectionStore } from './ProjectionStore.js';
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
5
|
+
import '@arcgis/core/geometry';
|
|
6
|
+
import '@arcgis/core/geometry/SpatialReference';
|
|
7
|
+
import '@arcgis/core/geometry/Extent';
|
|
8
|
+
import '@arcgis/core/geometry/Geometry';
|
|
9
|
+
import '@arcgis/core/geometry/operators/support/GeographicTransformation';
|
|
10
|
+
import '@arcgis/core/geometry/operators/support/GeographicTransformationStep';
|
|
9
11
|
import 'store-api/api';
|
package/ct/async.d.ts
CHANGED
package/ct/mapping/geometry.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import SpatialReference from '
|
|
2
|
-
import Point from '
|
|
3
|
-
import Extent from '
|
|
4
|
-
import TimeExtent from '
|
|
1
|
+
import SpatialReference from '@arcgis/core/geometry/SpatialReference';
|
|
2
|
+
import Point from '@arcgis/core/geometry/Point';
|
|
3
|
+
import Extent from '@arcgis/core/geometry/Extent';
|
|
4
|
+
import TimeExtent from '@arcgis/core/time/TimeExtent';
|
|
5
5
|
|
|
6
6
|
declare namespace exports {
|
|
7
7
|
export { createSpatialReference };
|
|
@@ -111,7 +111,7 @@ declare function equalSpatialReference(a: any, b: any): boolean;
|
|
|
111
111
|
* var point = ctgeometry.createPoint(e);
|
|
112
112
|
*
|
|
113
113
|
*/
|
|
114
|
-
declare function createPoint(
|
|
114
|
+
declare function createPoint(_params: any, ...args: any[]): Point;
|
|
115
115
|
/**
|
|
116
116
|
* Function to create an instance of {.Extent} by some alternative arguments.
|
|
117
117
|
* @param [params] an init object or an argument list, see the sample.
|
|
@@ -256,7 +256,7 @@ declare function equalTimeExtent(a: any, b: any): boolean;
|
|
|
256
256
|
*/
|
|
257
257
|
declare function correctAspectRatio(extentIn: any, extentReference: any): Extent;
|
|
258
258
|
/**
|
|
259
|
-
* Checks geometry equality, coordinate equality checked by
|
|
259
|
+
* Checks geometry equality, coordinate equality checked by @arcgis/core/geometry/mathUtils._equals, which uses an epsilon of
|
|
260
260
|
* 1e-8 for number compare.
|
|
261
261
|
*/
|
|
262
262
|
declare function equal(gA: any, gB: any, eps: any): any;
|
package/ct/package.json
CHANGED