jmapcloud-ng-types 1.0.1001 → 1.1.0
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/index.ts +43 -22
- package/package.json +7 -6
- package/public/app.d.ts +583 -592
- package/public/extension.d.ts +19 -13
- package/public/form.d.ts +15 -23
- package/public/panel.d.ts +6 -2
- package/public/print.d.ts +8 -1
- package/public/startup-options.d.ts +75 -26
- package/public/user.d.ts +4 -1
package/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface JAppState {
|
|
|
7
7
|
selection: JAppSelectionState
|
|
8
8
|
layer: JAppLayerState
|
|
9
9
|
ui: JAppUiState
|
|
10
|
-
|
|
10
|
+
map: JAppMapState
|
|
11
11
|
print: JAppPrintState
|
|
12
12
|
project: JAppProjectState
|
|
13
13
|
annotation: JAppAnnotationState
|
|
@@ -15,6 +15,12 @@ export interface JAppState {
|
|
|
15
15
|
user: JAppUserState
|
|
16
16
|
feature: JAppFeatureState
|
|
17
17
|
geometry: JAppGeometryState
|
|
18
|
+
table: JAppTableState
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface JAppTableState {
|
|
22
|
+
displayTable: boolean
|
|
23
|
+
activeTableDataSourceId: JId | undefined
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
export interface JAppGeometryState {
|
|
@@ -25,6 +31,9 @@ export interface JAppGeometryState {
|
|
|
25
31
|
isUpdate: boolean
|
|
26
32
|
wizardStep: JAPP_GEOMETRY_WIZARD_STEPS
|
|
27
33
|
draw: JAppDrawState
|
|
34
|
+
lastSnap: JAppSnap
|
|
35
|
+
snap: JAppSnap
|
|
36
|
+
isAttributesEditing: boolean
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
export interface JAppFeatureState {
|
|
@@ -39,12 +48,6 @@ export interface JAppProjectState {
|
|
|
39
48
|
showProjectList: boolean
|
|
40
49
|
}
|
|
41
50
|
|
|
42
|
-
export interface JAppQueryState {
|
|
43
|
-
activeQuery: JQuery | undefined
|
|
44
|
-
defaultValueById: { [id: string]: any } | undefined
|
|
45
|
-
displayInDialog: boolean
|
|
46
|
-
}
|
|
47
|
-
|
|
48
51
|
export interface JAppPanelState {
|
|
49
52
|
active: JAppPanel
|
|
50
53
|
all: JAppPanel[]
|
|
@@ -65,8 +68,13 @@ export interface JAppUiState {
|
|
|
65
68
|
theme: { [key: string]: any }
|
|
66
69
|
}
|
|
67
70
|
|
|
71
|
+
export interface JAppMapState {
|
|
72
|
+
simpleSearchControlVisible: boolean
|
|
73
|
+
geocodingControlVisible: boolean
|
|
74
|
+
}
|
|
75
|
+
|
|
68
76
|
export interface JAppFormState {
|
|
69
|
-
|
|
77
|
+
dialogParams: JFormDialogParams | null
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
export interface JAppMeasureState {
|
|
@@ -75,6 +83,8 @@ export interface JAppMeasureState {
|
|
|
75
83
|
isSelectionActive: boolean
|
|
76
84
|
isNewElement: boolean
|
|
77
85
|
draw: JAppDrawState
|
|
86
|
+
lastSnap: JAppSnap
|
|
87
|
+
snap: JAppSnap
|
|
78
88
|
}
|
|
79
89
|
|
|
80
90
|
export interface JAppDrawState {
|
|
@@ -91,6 +101,13 @@ export interface JAppAnnotationState {
|
|
|
91
101
|
annotations: JAppAnnotation[]
|
|
92
102
|
draw: JAppDrawState
|
|
93
103
|
presetColors: string[]
|
|
104
|
+
lastSnap: JAppSnap
|
|
105
|
+
snap: JAppSnap
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface JAppSnap {
|
|
109
|
+
layerId: JId | undefined
|
|
110
|
+
isEnabled: boolean
|
|
94
111
|
}
|
|
95
112
|
|
|
96
113
|
export interface JAppPrintState {
|
|
@@ -137,7 +154,6 @@ export interface JApplicationService extends JApplicationMainService {
|
|
|
137
154
|
Layer: JAppLayerService
|
|
138
155
|
Print: JAppPrintService
|
|
139
156
|
UI: JApplicationUIService
|
|
140
|
-
Query: JAppQueryService
|
|
141
157
|
Event: JAppEventService
|
|
142
158
|
Annotation: JAppAnnotationService
|
|
143
159
|
Extension: JAppExtensionService
|
|
@@ -157,6 +173,8 @@ export interface JAppGeometryService {
|
|
|
157
173
|
finishCreate(): void
|
|
158
174
|
finishUpdate(): Promise<void>
|
|
159
175
|
closePanel(): void
|
|
176
|
+
setSnapEnabled(isEnabled: boolean): void
|
|
177
|
+
setSnapLayerId(LayerId: JId): void
|
|
160
178
|
}
|
|
161
179
|
|
|
162
180
|
export interface JAppFeatureService {
|
|
@@ -187,6 +205,8 @@ export interface JAppAnnotationService {
|
|
|
187
205
|
setDrawMode(drawMode: JAPP_DRAW_MODES): void
|
|
188
206
|
getDrawType(): JAPP_DRAW_TYPES
|
|
189
207
|
setDrawType(drawType: JAPP_DRAW_TYPES): void
|
|
208
|
+
setSnapEnabled(isEnabled: boolean): void
|
|
209
|
+
setSnapLayerId(LayerId: JId): void
|
|
190
210
|
existsById(annotationId: string): boolean
|
|
191
211
|
getById(annotationId: string): JAppAnnotation
|
|
192
212
|
getAll(): JAppAnnotation[]
|
|
@@ -204,16 +224,6 @@ export interface JAppAnnotationService {
|
|
|
204
224
|
deletePresetColor(presetColor: string): void
|
|
205
225
|
}
|
|
206
226
|
|
|
207
|
-
export interface JAppQueryService {
|
|
208
|
-
activateQuery(groupId: JId, queryId: string): void
|
|
209
|
-
deactivateQuery(): void
|
|
210
|
-
setDefaultData(values: any): void
|
|
211
|
-
getDefaultData(): { [id: string]: any }
|
|
212
|
-
clearDefaultData(): void
|
|
213
|
-
displayInDialog(isVisibleInDialog: boolean): void
|
|
214
|
-
processQuery(values: any): Promise<GeoJSON.Feature[]>
|
|
215
|
-
}
|
|
216
|
-
|
|
217
227
|
export interface JApplicationUserService {
|
|
218
228
|
addPopupMenuAction(action: JAppUserAction, index?: number): void
|
|
219
229
|
existsPopupMenuActionById(actionId: string): boolean
|
|
@@ -255,6 +265,12 @@ export interface JApplicationUIService {
|
|
|
255
265
|
setDark(isDark: boolean): void
|
|
256
266
|
isDark(): boolean
|
|
257
267
|
}
|
|
268
|
+
Map: {
|
|
269
|
+
isGeocodingControlVisible(): boolean
|
|
270
|
+
setGeocodingControlVisibility(isVisible: boolean): void
|
|
271
|
+
isSimpleSearchControlVisible(): boolean
|
|
272
|
+
setSimpleSearchControlVisibility(isVisible: boolean): void
|
|
273
|
+
}
|
|
258
274
|
}
|
|
259
275
|
|
|
260
276
|
export interface JAppEventService {
|
|
@@ -302,6 +318,8 @@ export interface JAppMeasureService {
|
|
|
302
318
|
deleteAllCircles(): number
|
|
303
319
|
setMeasurementSystem(measurementSystem: JAPP_MEASUREMENT_SYSTEMS): void
|
|
304
320
|
getMeasurementSystem(): JAPP_MEASUREMENT_SYSTEMS
|
|
321
|
+
setSnapEnabled(isEnabled: boolean): void
|
|
322
|
+
setSnapLayerId(LayerId: JId): void
|
|
305
323
|
}
|
|
306
324
|
|
|
307
325
|
export interface JAppExtensionService {
|
|
@@ -340,7 +358,11 @@ export interface JAppPrintService {
|
|
|
340
358
|
getFileType(): JAPP_PRINT_FILE_TYPES
|
|
341
359
|
setHiResolution(isHiResolution: boolean): void
|
|
342
360
|
getHiResolution(): boolean
|
|
343
|
-
takeCapture(
|
|
361
|
+
takeCapture(
|
|
362
|
+
returnAsScreenCaptureResult?: boolean,
|
|
363
|
+
customRatioWidth?: number,
|
|
364
|
+
customRatioHeight?: number
|
|
365
|
+
): Promise<void | JAppPrintCaptureResult>
|
|
344
366
|
}
|
|
345
367
|
|
|
346
368
|
export interface JAppLayerService {
|
|
@@ -395,8 +417,7 @@ export interface JAppLayerTreeFilterService {
|
|
|
395
417
|
}
|
|
396
418
|
|
|
397
419
|
export interface JAppFormService {
|
|
398
|
-
|
|
399
|
-
destroyByContainerId(containerId: string): void
|
|
420
|
+
openForm(params: JFormDialogParams): void
|
|
400
421
|
}
|
|
401
422
|
|
|
402
423
|
export interface JAppAppEventModule extends JEventModule {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-ng-types",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
|
|
5
5
|
"main": "src/app.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/k2geospatial/jmapcloud-ng-types#readme",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/react": "18.2
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
25
|
+
"@types/react": "^18.3.2",
|
|
26
|
+
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
27
|
+
"jmapcloud-ng-core-types": "../ng-core-types",
|
|
28
|
+
"maplibre-gl": "^4.7.1",
|
|
29
|
+
"react": "^18.3.1",
|
|
30
|
+
"typedoc": "^0.25.13"
|
|
30
31
|
}
|
|
31
32
|
}
|