jmapcloud-ng-core-types 1.0.12 → 1.0.13

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/all-enums.ts CHANGED
@@ -282,3 +282,8 @@ export const ALL_SERVER_STATUS: JSERVER_STATUS[] = [JSERVER_STATUS.STARTING, JSE
282
282
  export const ALL_JORGANIZATION_EXTERNAL_API_KEY_TYPES: JORGANIZATION_EXTERNAL_API_KEY_TYPES[] = [
283
283
  JORGANIZATION_EXTERNAL_API_KEY_TYPES.MAPBOX_ACCESS_TOKEN
284
284
  ]
285
+
286
+ export const ALL_TERRAIN_ILLUMINATION_ANCHOR_TYPES: JTERRAIN_ILLUMINATION_ANCHOR_TYPES[] = [
287
+ JTERRAIN_ILLUMINATION_ANCHOR_TYPES.MAP,
288
+ JTERRAIN_ILLUMINATION_ANCHOR_TYPES.VIEWPORT
289
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,3 +1,9 @@
1
+ // ALL_TERRAIN_ILLUMINATION_ANCHOR_TYPES in all-enum.ts
2
+ declare const enum JTERRAIN_ILLUMINATION_ANCHOR_TYPES {
3
+ VIEWPORT = "VIEWPORT",
4
+ MAP = "MAP"
5
+ }
6
+
1
7
  declare interface JProjectLoadThumbnailsParams {
2
8
  width: number
3
9
  height: number
@@ -28,6 +34,8 @@ declare interface JProject {
28
34
  initialRotation: number
29
35
  colorSelection: string
30
36
  colorBackground: string
37
+ terrainRasterDataSourceId?: JId
38
+ terrain?: JTerrainSpecification
31
39
  initialExtent: JBounds | null
32
40
  minimumVisibleZoom: number
33
41
  maximumVisibleZoom: number
@@ -43,3 +51,14 @@ declare interface JProject {
43
51
  extensions: JProjectServerExtension[]
44
52
  usageStatisticsActive: boolean
45
53
  }
54
+
55
+ declare interface JTerrainSpecification {
56
+ terrainExaggeration?: number
57
+ hillshadeExaggeration?: number
58
+ hillshadeIlluminationDirection?: number
59
+ visible?: boolean
60
+ hillshadeIlluminationAnchor?: JTERRAIN_ILLUMINATION_ANCHOR_TYPES
61
+ hillshadeAccentColor?: string
62
+ hillshadeHighlightColor?: string
63
+ hillshadeShadowColor?: string
64
+ }