jmapcloud-ng-types 0.0.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/.prettierrc ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "printWidth": 120,
3
+ "semi": false,
4
+ "quoteProps": "consistent",
5
+ "jsxBracketSameLine": true,
6
+ "trailingComma": "none",
7
+ "tabWidth": 2,
8
+ "arrowParens": "avoid",
9
+ "bracketSpacing": true
10
+ }
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # jmapcloud-ng-types
2
+ JMap Cloud NG
3
+
4
+ The latest version of JMap Cloud NG Javascript API documentation is available <a href="https://k2geospatial.github.io/jmapcloud-ng-types/latest/modules/jmap.html" target="_blank">here</a>.
5
+
6
+ Examples and user documentation is available <a href="https://doc.k2geospatial.com/jmap/doc/ng_dev/" target="_blank">here</a>.
7
+
package/all-enums.ts ADDED
@@ -0,0 +1,97 @@
1
+ export const ALL_APP_DRAW_TYPES: JAPP_DRAW_TYPES[] = [
2
+ JAPP_DRAW_TYPES.POINT,
3
+ JAPP_DRAW_TYPES.POLYGON,
4
+ JAPP_DRAW_TYPES.LINE_STRING,
5
+ JAPP_DRAW_TYPES.RECTANGLE,
6
+ JAPP_DRAW_TYPES.CIRCLE,
7
+ JAPP_DRAW_TYPES.TEXT
8
+ ]
9
+
10
+ export const ALL_APP_MEASUREMENT_SYSTEMS: JAPP_MEASUREMENT_SYSTEMS[] = [
11
+ JAPP_MEASUREMENT_SYSTEMS.GEODETIC,
12
+ JAPP_MEASUREMENT_SYSTEMS.PLANAR
13
+ ]
14
+
15
+ export const ALL_APP_DRAW_MODES: JAPP_DRAW_MODES[] = [
16
+ JAPP_DRAW_MODES.DRAW,
17
+ JAPP_DRAW_MODES.SELECT,
18
+ JAPP_DRAW_MODES.DELETE
19
+ ]
20
+
21
+ export const ALL_APP_GEOMETRY_WIZARD_STEPS: JAPP_GEOMETRY_WIZARD_STEPS[] = [
22
+ JAPP_GEOMETRY_WIZARD_STEPS.SELECT_LAYER,
23
+ JAPP_GEOMETRY_WIZARD_STEPS.DRAW
24
+ ]
25
+
26
+ export const ALL_APP_LAYER_DATE_FILTER_OPERATOR_TYPES: JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES[] = [
27
+ JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.BEFORE,
28
+ JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.AFTER,
29
+ JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.BETWEEN,
30
+ JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.LAST_PERIOD
31
+ ]
32
+
33
+ export const ALL_APP_LAYER_TEXT_FILTER_OPERATOR_TYPES: JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES[] = [
34
+ JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.CONTAINS,
35
+ JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.DOES_NOT_CONTAIN,
36
+ JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.EQUALS,
37
+ JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.DOES_NOT_EQUALS
38
+ ]
39
+
40
+ export const ALL_APP_LAYER_NUMBER_FILTER_OPERATOR_TYPES: JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES[] = [
41
+ JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.EQUALS,
42
+ JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.DOES_NOT_EQUALS,
43
+ JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.SMALLER_THAN,
44
+ JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.GREATER_THAN
45
+ ]
46
+
47
+ export const ALL_APP_LAYER_FILTER_DATE_PERIOD_TYPES: JAPP_LAYER_FILTER_DATE_PERIOD_TYPES[] = [
48
+ JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.DAY,
49
+ JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.WEEK,
50
+ JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.MONTH,
51
+ JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.YEAR
52
+ ]
53
+
54
+ export const ALL_APP_LAYER_EDITION_TABS: JAPP_LAYER_EDITION_TABS[] = [
55
+ JAPP_LAYER_EDITION_TABS.THEMATICS,
56
+ JAPP_LAYER_EDITION_TABS.DYNAMIC_FILTER,
57
+ JAPP_LAYER_EDITION_TABS.GENERAL
58
+ ]
59
+
60
+ export const ALL_APP_MESSAGE_SEVERITIES: JAPP_MESSAGE_SEVERITIES[] = [
61
+ JAPP_MESSAGE_SEVERITIES.SUCCESS,
62
+ JAPP_MESSAGE_SEVERITIES.INFO,
63
+ JAPP_MESSAGE_SEVERITIES.WARNING,
64
+ JAPP_MESSAGE_SEVERITIES.ERROR
65
+ ]
66
+
67
+ export const ALL_APP_PRINT_FILE_TYPES: JAPP_PRINT_FILE_TYPES[] = [
68
+ JAPP_PRINT_FILE_TYPES.PNG,
69
+ JAPP_PRINT_FILE_TYPES.JPEG,
70
+ JAPP_PRINT_FILE_TYPES.PDF
71
+ ]
72
+
73
+ export const ALL_APP_PRINT_PAPER_SIZES: JAPP_PRINT_PAPER_SIZES[] = [
74
+ JAPP_PRINT_PAPER_SIZES.LETTER,
75
+ JAPP_PRINT_PAPER_SIZES.LEGAL,
76
+ JAPP_PRINT_PAPER_SIZES.A3,
77
+ JAPP_PRINT_PAPER_SIZES.A4
78
+ ]
79
+
80
+ export const ALL_APP_PRINT_LEGEND_POSITION: JAPP_PRINT_LEGEND_POSITION[] = [
81
+ JAPP_PRINT_LEGEND_POSITION.TOP_RIGHT,
82
+ JAPP_PRINT_LEGEND_POSITION.TOP_LEFT
83
+ ]
84
+
85
+ export const ALL_APP_SELECTION_TYPES: JAPP_SELECTION_TYPES[] = [
86
+ JAPP_DRAW_TYPES.POINT,
87
+ JAPP_DRAW_TYPES.LINE_STRING,
88
+ JAPP_DRAW_TYPES.RECTANGLE,
89
+ JAPP_DRAW_TYPES.CIRCLE,
90
+ JAPP_DRAW_TYPES.POLYGON
91
+ ]
92
+
93
+ export const ALL_APP_MEASURE_TYPES: JAPP_MEASURE_TYPES[] = [
94
+ JAPP_DRAW_TYPES.POLYGON,
95
+ JAPP_DRAW_TYPES.LINE_STRING,
96
+ JAPP_DRAW_TYPES.CIRCLE
97
+ ]
package/index.ts ADDED
@@ -0,0 +1,434 @@
1
+ import { JEventModule } from "jmapcloud-ng-core-types"
2
+
3
+ export interface JAppState {
4
+ panel: JAppPanelState
5
+ measure: JAppMeasureState
6
+ form: JAppFormState
7
+ selection: JAppSelectionState
8
+ layer: JAppLayerState
9
+ ui: JAppUiState
10
+ query: JAppQueryState
11
+ print: JAppPrintState
12
+ project: JAppProjectState
13
+ annotation: JAppAnnotationState
14
+ message: JAppMessageState
15
+ user: JAppUserState
16
+ feature: JAppFeatureState
17
+ geometry: JAppGeometryState
18
+ }
19
+
20
+ export interface JAppGeometryState {
21
+ layerId: JId | undefined
22
+ featureId: JId | undefined // needed for update
23
+ hasChanged: boolean
24
+ feature: GeoJSON.Feature | undefined
25
+ isUpdate: boolean
26
+ wizardStep: JAPP_GEOMETRY_WIZARD_STEPS
27
+ draw: JAppDrawState
28
+ }
29
+
30
+ export interface JAppFeatureState {
31
+ layerId: JId | undefined
32
+ isLoading: boolean
33
+ hasLoadingError: boolean
34
+ features: GeoJSON.Feature[]
35
+ }
36
+
37
+ export interface JAppProjectState {
38
+ urlExist: boolean
39
+ showProjectList: boolean
40
+ }
41
+
42
+ export interface JAppQueryState {
43
+ activeQuery: JQuery | undefined
44
+ defaultValueById: { [id: string]: any } | undefined
45
+ displayInDialog: boolean
46
+ }
47
+
48
+ export interface JAppPanelState {
49
+ active: JAppPanel
50
+ all: JAppPanel[]
51
+ }
52
+
53
+ export interface JAppLayerState {
54
+ treeFilter: JAppLayerTreeFilterState
55
+ popupMenuLayerId: JId | undefined
56
+ editionActiveTab: JAPP_LAYER_EDITION_TABS
57
+ inEditionLayerId: JId | undefined
58
+ isDynamicFilterDialogOpened: boolean
59
+ inEditionDynamicFilterConditionId: number | undefined
60
+ }
61
+
62
+ export interface JAppUiState {
63
+ sidePanelVisible: boolean
64
+ mainPanelWidthInPixel: number
65
+ theme: { [key: string]: any }
66
+ }
67
+
68
+ export interface JAppFormState {
69
+ expandedSections: { [id: string]: boolean }
70
+ }
71
+
72
+ export interface JAppMeasureState {
73
+ measurementSystem: JAPP_MEASUREMENT_SYSTEMS
74
+ measures: JAppMeasure[]
75
+ isSelectionActive: boolean
76
+ isNewElement: boolean
77
+ draw: JAppDrawState
78
+ }
79
+
80
+ export interface JAppDrawState {
81
+ type: JAPP_DRAW_TYPES
82
+ mode: JAPP_DRAW_MODES
83
+ featuresSelected: JAppDrawFeature[]
84
+ isDeleting: boolean
85
+ isNewElement: boolean
86
+ isStyling: boolean
87
+ style: JAppDrawStyle
88
+ }
89
+
90
+ export interface JAppAnnotationState {
91
+ annotations: JAppAnnotation[]
92
+ draw: JAppDrawState
93
+ presetColors: string[]
94
+ }
95
+
96
+ export interface JAppPrintState {
97
+ paperFormat: JAppPaperFormat
98
+ fileType: JAPP_PRINT_FILE_TYPES
99
+ isOrientationPortrait: boolean
100
+ base64Image: string
101
+ pageTitle: string
102
+ pageSubTitle: string
103
+ isDateVisible: boolean
104
+ isNorthArrowVisible: boolean
105
+ isScaleVisible: boolean
106
+ isLegend: boolean
107
+ isHiResolution: boolean
108
+ legendTitle: string
109
+ legendSubTitle: string
110
+ legendPosition: JAPP_PRINT_LEGEND_POSITION
111
+ filterList: any[]
112
+ }
113
+
114
+ export interface JAppSelectionState {
115
+ displayedLayerId: JId
116
+ isNewElement: boolean
117
+ tableVisibility: boolean
118
+ isTabOpened: boolean
119
+ draw: JAppDrawState
120
+ }
121
+
122
+ export interface JAppMessageState {
123
+ messages: JAppMessage[]
124
+ overlayMessages: JAppOverlayMessage[]
125
+ confirmMessage: JAppConfirmMessage | undefined
126
+ }
127
+
128
+ export interface JAppUserState {
129
+ actions: JAppUserAction[]
130
+ }
131
+
132
+ export interface JApplicationService extends JApplicationMainService {
133
+ User: JApplicationUserService
134
+ Panel: JAppPanelService
135
+ Measure: JAppMeasureService
136
+ Selection: JAppSelectionService
137
+ Layer: JAppLayerService
138
+ Print: JAppPrintService
139
+ UI: JApplicationUIService
140
+ Query: JAppQueryService
141
+ Event: JAppEventService
142
+ Annotation: JAppAnnotationService
143
+ Extension: JAppExtensionService
144
+ Message: JAppMessageService
145
+ Project: JAppProjectService
146
+ Feature: JAppFeatureService
147
+ Geometry: JAppGeometryService
148
+ Form: JAppFormService
149
+ }
150
+
151
+ export interface JAppGeometryService {
152
+ openPanelForCreation(): void
153
+ openPanelForUpdate(params: JAppGeometryUpdateParams): void
154
+ selectLayer(layerId: JId): void
155
+ startCreationDrawing(): void
156
+ stopCreationDrawing(): void
157
+ finishCreate(): void
158
+ finishUpdate(): Promise<void>
159
+ closePanel(): void
160
+ }
161
+
162
+ export interface JAppFeatureService {
163
+ openEditMenuById(layerId: JId, featureId: JId): Promise<GeoJSON.Feature>
164
+ openEditMenuByIds(layerId: JId, featureIds: JId[]): Promise<GeoJSON.Feature[]>
165
+ closeEditMenu(): void
166
+ deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
167
+ }
168
+
169
+ export interface JAppProjectService {
170
+ activateById(projectId: JId): JProject
171
+ setSelectionPanelVisibility(isVisible: boolean): void
172
+ }
173
+
174
+ export interface JAppMessageService {
175
+ error(message: string, options?: JAppMessageOptions): void
176
+ warning(message: string, options?: JAppMessageOptions): void
177
+ info(message: string, options?: JAppMessageOptions): void
178
+ success(message: string, options?: JAppMessageOptions): void
179
+ confirmMessage(params: JAppConfirmMessage): void
180
+ display(message: string, options?: JAppMessageOptions): void
181
+ displayWaitingOverlay(message: string): string
182
+ closeWaitingOverlay(messageId?: string): void
183
+ }
184
+
185
+ export interface JAppAnnotationService {
186
+ getDrawMode(): JAPP_DRAW_MODES
187
+ setDrawMode(drawMode: JAPP_DRAW_MODES): void
188
+ getDrawType(): JAPP_DRAW_TYPES
189
+ setDrawType(drawType: JAPP_DRAW_TYPES): void
190
+ existsById(annotationId: string): boolean
191
+ getById(annotationId: string): JAppAnnotation
192
+ getAll(): JAppAnnotation[]
193
+ getSelectedIds(): string[]
194
+ deleteAll(): void
195
+ deleteByType(annotationType: JAPP_DRAW_TYPES): void
196
+ deleteByIds(annotationIds: string[]): void
197
+ deleteSelected(): void
198
+ getStyle(): JAppDrawStyle
199
+ updateStyle(style: JAppDrawStyle): void
200
+ setStyleByAnnotationIds(annotationIds: string[], style: JAppDrawStyle): void
201
+ setPresetColors(presetColors: string[]): void
202
+ getPresetColors(): string[]
203
+ addPresetColor(presetColor: string): void
204
+ deletePresetColor(presetColor: string): void
205
+ }
206
+
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
+ export interface JApplicationUserService {
218
+ addPopupMenuAction(action: JAppUserAction, index?: number): void
219
+ existsPopupMenuActionById(actionId: string): boolean
220
+ removePopupMenuActionById(actionId: string): void
221
+ }
222
+
223
+ export interface JApplicationMainService {
224
+ getVersion(): string
225
+ getApiVersion(): string
226
+ openDocumentation(): void
227
+ openUserManual(): void
228
+ }
229
+
230
+ export interface JApplicationUIService {
231
+ Container: {
232
+ getId(): string
233
+ getWidth(): number
234
+ getHeight(): number
235
+ getVisiblePolygonGeometry(): GeoJSON.Polygon
236
+ }
237
+ SidePanel: {
238
+ isVisible(): boolean
239
+ toggleVisibility(): void
240
+ setVisible(isVisible: boolean): void
241
+ getWidthOpenInRem(): string
242
+ getWidthOpenInPixel(): number
243
+ getMinimumWidthOpenInPixel(): number
244
+ setWidthOpenInPixel(width: number): void
245
+ getWidthCloseInRem(): string
246
+ getWidthCloseInPixel(): number
247
+ getMainPanelWidthInRem(): string
248
+ getMainPanelWidthInPixel(): number
249
+ getHeaderMinHeightInRem(): string
250
+ getHeaderMinHeightInPixel(): number
251
+ getTitleMinHeightInRem(): string
252
+ getTitleMinHeightInPixel(): number
253
+ }
254
+ Theme: {
255
+ setDark(isDark: boolean): void
256
+ isDark(): boolean
257
+ }
258
+ }
259
+
260
+ export interface JAppEventService {
261
+ Main: JAppAppEventModule
262
+ Layer: JAppLayerEventModule
263
+ UI: JAppUIEventModule
264
+ Extension: JAppExtensionEventModule
265
+ MapContext: JAppMapContextEventModule
266
+ }
267
+
268
+ export interface JAppSelectionService {
269
+ getDisplayedLayerId(): JId
270
+ setDisplayedLayerId(layerId: JId): void
271
+ activateSelectionType(selectionType: JAPP_SELECTION_TYPES): void
272
+ getActiveSelectionType(): JAPP_SELECTION_TYPES
273
+ getTableVisibility(): boolean
274
+ setTableVisibility(tableVisibility: boolean): void
275
+ isTableDisplayedInTab(): boolean
276
+ openTableInTab(): void
277
+ closeTableTab(): void
278
+ clearSelectionForLayer(layerId: JId): void
279
+ clearSelection(): void
280
+ selectFromFeature(feature: GeoJSON.Feature, selectionType?: JAPP_SELECTION_TYPES): void
281
+ exportAsExcelFile(): void
282
+ fitMapToDisplayLayerSelection(options?: JPanAndZoomOptions): void
283
+ }
284
+
285
+ export interface JAppMeasureService {
286
+ getAll(): JAppMeasure[]
287
+ existsById(measureId: string): boolean
288
+ getById(measureId: string): JAppMeasure
289
+ getAllLineMeasures(): JAppMeasure[]
290
+ getAllPolygonMeasures(): JAppMeasure[]
291
+ getAllCircleMeasures(): JAppMeasure[]
292
+ setAllMeasures(measures: JAppMeasure[]): void
293
+ activateMeasureType(measureType: JAPP_MEASURE_TYPES): void
294
+ getActiveMeasureType(): JAPP_MEASURE_TYPES
295
+ getSelectedIds(): string[]
296
+ setSelectionActive(isSelectionActive: boolean): void
297
+ deleteAll(): number
298
+ deleteSelected(): number
299
+ deleteMeasuresById(measureIds: string[]): number
300
+ deleteAllLines(): number
301
+ deleteAllPolygons(): number
302
+ deleteAllCircles(): number
303
+ setMeasurementSystem(measurementSystem: JAPP_MEASUREMENT_SYSTEMS): void
304
+ getMeasurementSystem(): JAPP_MEASUREMENT_SYSTEMS
305
+ }
306
+
307
+ export interface JAppExtensionService {
308
+ register(extension: JAppExtension): void
309
+ isRegistered(extensionId: string): boolean
310
+ getAllRegisteredIds(): string[]
311
+ }
312
+
313
+ export interface JAppPanelService {
314
+ getActive(): JAppPanel
315
+ getAll(): JAppPanel[]
316
+ existById(panelId: string): boolean
317
+ activateById(panelId?: string, params?: JAppPanelActivationParams): void
318
+ deactivateCurrent(params?: JAppPanelDeactivationParams): void
319
+ add(panel: JAppPanel): void
320
+ removeById(panelId: string): void
321
+ }
322
+
323
+ export interface JAppPrintService {
324
+ setScaleControlVisibility(isVisible: boolean): void
325
+ isScaleControlVisible(): boolean
326
+ setPageTitle(title: string): void
327
+ getPageTitle(): string
328
+ setPageSubTitle(subTitle: string): void
329
+ getPageSubTitle(): string
330
+ setDateVisibility(isVisible: boolean): void
331
+ isDateVisibile(): boolean
332
+ setNorthArrowVisibility(isVisible: boolean): void
333
+ isNorthArrowVisible(): boolean
334
+ getAllPaperFormats(): JAppPaperFormat[]
335
+ setPaperFormat(format: JAppPaperFormat | string): void
336
+ getPaperFormat(): JAppPaperFormat
337
+ setOrientation(isPortrait: boolean): void
338
+ isOrientationPortrait(): boolean
339
+ setFileType(fileType: JAPP_PRINT_FILE_TYPES): void
340
+ getFileType(): JAPP_PRINT_FILE_TYPES
341
+ setHiResolution(isHiResolution: boolean): void
342
+ getHiResolution():boolean
343
+ takeCapture(): void
344
+ }
345
+
346
+ export interface JAppLayerService {
347
+ Tree: JAppLayerTreeService
348
+ Edition: JAppLayerEditionService
349
+ }
350
+
351
+ export interface JAppDynamicFilterService {
352
+ openPanel(layerId: JId): void
353
+ closePanel(): void
354
+ openCreateDialog(layerId: JId): void
355
+ openUpdateDialog(layerId: JId, conditionId: number): void
356
+ closeDialog(): void
357
+ }
358
+
359
+ export interface JAppLayerEditionInfoService {
360
+ openPanel(layerId: JId): void
361
+ closePanel(): void
362
+ }
363
+
364
+ export interface JAppLayerEditionThematicService {
365
+ openPanel(layerId: JId): void
366
+ closePanel(): void
367
+ }
368
+
369
+ export interface JAppLayerEditionService {
370
+ DynamicFilter: JAppDynamicFilterService
371
+ Info: JAppLayerEditionInfoService
372
+ Thematic: JAppLayerEditionThematicService
373
+ openPanel(layerId: JId, tab: JAPP_LAYER_EDITION_TABS): void
374
+ closePanel(): void
375
+ }
376
+
377
+ export interface JAppLayerTreeService {
378
+ Filter: JAppLayerTreeFilterService
379
+ }
380
+
381
+ export interface JAppLayerTreeFilterService {
382
+ setName(nameFilter: string): void
383
+ isApplied(): boolean
384
+ isActive(): boolean
385
+ setActive(active: boolean): void
386
+ applyToMap(): void
387
+ existById(filterId: number): boolean
388
+ oneFilterExistForMetadataId(metadataId: JId): boolean
389
+ getAll(): JAppGetAllFiltersResult
390
+ getById(filterId: number): JAppAnyLayerFilter
391
+ add(filter: JAppAnyLayerFilter): JAppAnyLayerFilter
392
+ deleteById(filterId: number): JAppAnyLayerFilter
393
+ openAddFilterDialog(): void
394
+ closeAddFilterDialog(): void
395
+ }
396
+
397
+ export interface JAppFormService {
398
+ render(containerId: string, formParams: JFormParams): JFormMetaData
399
+ destroyByContainerId(containerId: string): void
400
+ }
401
+
402
+ export interface JAppAppEventModule extends JEventModule {
403
+ on: {
404
+ appReady(listenerId: string, fn: () => void): void
405
+ }
406
+ }
407
+
408
+ export interface JAppLayerEventModule extends JEventModule {
409
+ on: {
410
+ doubleClick(listenerId: string, fn: (params: JAppLayerEventParams) => void): void
411
+ }
412
+ }
413
+
414
+ export interface JAppExtensionEventModule extends JEventModule {
415
+ on: {
416
+ registration(listenerId: string, fn: (params: JAppExtensionEventParams) => void): void
417
+ }
418
+ }
419
+
420
+ export interface JAppUIEventModule extends JEventModule {
421
+ on: {
422
+ sidePanelVisibilityChanged(
423
+ listenerId: string,
424
+ fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void
425
+ ): void
426
+ sidePanelWidthChanged(listenerId: string, fn: (params: JAppUISidePanelWidthChangedEventParams) => void): void
427
+ }
428
+ }
429
+
430
+ export interface JAppMapContextEventModule extends JEventModule {
431
+ on: {
432
+ afterApply(listenerId: string, fn: (params: JMapContextAfterApplyEventParams) => void): void
433
+ }
434
+ }
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "jmapcloud-ng-types",
3
+ "version": "0.0.0",
4
+ "description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
5
+ "main": "src/app.ts",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "pub": "export NODE_ENV='production'; gulp publish --gulpfile build/gulpfile.js;",
9
+ "copy": "export NODE_ENV='production'; gulp copy --gulpfile build/gulpfile.js;",
10
+ "commit-doc": "export NODE_ENV='production'; gulp commit-doc --gulpfile build/gulpfile.js;",
11
+ "doc-test": "export DOC_DIR='./docs/latest'; gulp typedoc --gulpfile build/gulpfile.js;"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/k2geospatial/jmapcloud-ng-types.git"
16
+ },
17
+ "author": "K2 Geospatial",
18
+ "license": "ISC",
19
+ "bugs": {
20
+ "url": "https://github.com/k2geospatial/jmapcloud-ng-types/issues"
21
+ },
22
+ "homepage": "https://github.com/k2geospatial/jmapcloud-ng-types#readme",
23
+ "devDependencies": {
24
+ "gulp": "^4.0.2",
25
+ "gulp-typedoc": "^2.2.2",
26
+ "jmapcloud-ng-core-types": "0.0.4",
27
+ "typedoc": "^0.15.0"
28
+ }
29
+ }
@@ -0,0 +1,16 @@
1
+ declare interface JAppAnnotation {
2
+ id: string
3
+ type: JAPP_DRAW_TYPES
4
+ feature: any
5
+ }
6
+
7
+ declare interface JappTextMarkerProperties {
8
+ id: string
9
+ location: mapboxgl.LngLatLike
10
+ textSize: number
11
+ textColor: string
12
+ textRotation: number
13
+ label: string
14
+ zoomRef: number
15
+ shapeType: string
16
+ }