bruce-models 2.3.7 → 2.3.9

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.
Files changed (195) hide show
  1. package/dist/bruce-models.es5.js +8041 -8037
  2. package/dist/bruce-models.es5.js.map +1 -1
  3. package/dist/bruce-models.umd.js +7805 -7801
  4. package/dist/bruce-models.umd.js.map +1 -1
  5. package/dist/lib/account/account-invite.js +81 -81
  6. package/dist/lib/account/account-settings.js +2 -2
  7. package/dist/lib/account/account.js +169 -169
  8. package/dist/lib/account/account.js.map +1 -1
  9. package/dist/lib/ann-document/ann-document.js +94 -94
  10. package/dist/lib/api/abstract-api.js +269 -269
  11. package/dist/lib/api/api-getters.js +172 -172
  12. package/dist/lib/api/api.js +93 -93
  13. package/dist/lib/api/bruce-api.js +224 -224
  14. package/dist/lib/api/bruce-api.js.map +1 -1
  15. package/dist/lib/api/cam-api.js +88 -88
  16. package/dist/lib/api/global-api.js +82 -82
  17. package/dist/lib/api/guardian-api.js +82 -82
  18. package/dist/lib/api/idm-api.js +90 -90
  19. package/dist/lib/bruce-models.js +95 -91
  20. package/dist/lib/bruce-models.js.map +1 -1
  21. package/dist/lib/calculator/calculator.js +341 -341
  22. package/dist/lib/client-file/client-file.js +255 -255
  23. package/dist/lib/client-file/client-file.js.map +1 -1
  24. package/dist/lib/common/bounds.js +61 -61
  25. package/dist/lib/common/bruce-event.js +46 -46
  26. package/dist/lib/common/bruce-variable.js +60 -60
  27. package/dist/lib/common/cache.js +188 -188
  28. package/dist/lib/common/cache.js.map +1 -1
  29. package/dist/lib/common/camera.js +11 -11
  30. package/dist/lib/common/cartes.js +123 -123
  31. package/dist/lib/common/carto.js +60 -60
  32. package/dist/lib/common/color.js +86 -86
  33. package/dist/lib/common/delay-queue.js +56 -56
  34. package/dist/lib/common/dictionary.js +2 -2
  35. package/dist/lib/common/geometry.js +120 -120
  36. package/dist/lib/common/lru-cache.js +25 -25
  37. package/dist/lib/common/transform.js +2 -2
  38. package/dist/lib/common/utc.js +39 -39
  39. package/dist/lib/custom-form/custom-form-content.js +26 -26
  40. package/dist/lib/custom-form/custom-form.js +114 -114
  41. package/dist/lib/data-lab/data-lab.js +49 -49
  42. package/dist/lib/entity/entity-attachment-type.js +87 -87
  43. package/dist/lib/entity/entity-attachment-type.js.map +1 -1
  44. package/dist/lib/entity/entity-attachment.js +126 -126
  45. package/dist/lib/entity/entity-attachment.js.map +1 -1
  46. package/dist/lib/entity/entity-attribute.js +29 -29
  47. package/dist/lib/entity/entity-comment.js +86 -86
  48. package/dist/lib/entity/entity-comment.js.map +1 -1
  49. package/dist/lib/entity/entity-coords.js +153 -153
  50. package/dist/lib/entity/entity-coords.js.map +1 -1
  51. package/dist/lib/entity/entity-link.js +86 -86
  52. package/dist/lib/entity/entity-link.js.map +1 -1
  53. package/dist/lib/entity/entity-lod-category.js +108 -108
  54. package/dist/lib/entity/entity-lod.js +197 -197
  55. package/dist/lib/entity/entity-lod.js.map +1 -1
  56. package/dist/lib/entity/entity-relation-type.js +117 -117
  57. package/dist/lib/entity/entity-relation-type.js.map +1 -1
  58. package/dist/lib/entity/entity-relation.js +157 -157
  59. package/dist/lib/entity/entity-source.js +136 -136
  60. package/dist/lib/entity/entity-source.js.map +1 -1
  61. package/dist/lib/entity/entity-tag.js +157 -157
  62. package/dist/lib/entity/entity-type-visual-settings.js +13 -13
  63. package/dist/lib/entity/entity-type.js +122 -122
  64. package/dist/lib/entity/entity.js +341 -341
  65. package/dist/lib/entity/entity.js.map +1 -1
  66. package/dist/lib/entity/getters/batched-data-getter.js +84 -84
  67. package/dist/lib/entity/getters/batched-data-getter.js.map +1 -1
  68. package/dist/lib/entity/getters/entity-filter-getter.js +316 -316
  69. package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
  70. package/dist/lib/entity/getters/entity-globe.js +175 -175
  71. package/dist/lib/entity/getters/view-monitor.js +2 -2
  72. package/dist/lib/import/import-cad.js +53 -53
  73. package/dist/lib/import/import-cad.js.map +1 -1
  74. package/dist/lib/import/import-csv.js +23 -23
  75. package/dist/lib/import/import-json.js +23 -23
  76. package/dist/lib/import/import-kml.js +23 -23
  77. package/dist/lib/import/imported-file.js +130 -130
  78. package/dist/lib/internal/uploader.js +76 -76
  79. package/dist/lib/internal/uploader.js.map +1 -1
  80. package/dist/lib/markup/markup.js +185 -185
  81. package/dist/lib/plugin/plugin.js +91 -91
  82. package/dist/lib/program-key/program-key.js +120 -120
  83. package/dist/lib/program-key/program-key.js.map +1 -1
  84. package/dist/lib/project/menu-item.js +122 -122
  85. package/dist/lib/project/project-view-bookmark.js +159 -159
  86. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  87. package/dist/lib/project/project-view-legacy-tile.js +77 -77
  88. package/dist/lib/project/project-view-legacy-tile.js.map +1 -1
  89. package/dist/lib/project/project-view-tile.js +125 -125
  90. package/dist/lib/project/project-view.js +141 -141
  91. package/dist/lib/project/zoom-control.js +17 -17
  92. package/dist/lib/server/hosting-location.js +156 -156
  93. package/dist/lib/server/hosting-location.js.map +1 -1
  94. package/dist/lib/server/message-broker.js +142 -142
  95. package/dist/lib/server/message-broker.js.map +1 -1
  96. package/dist/lib/server/pending-action.js +83 -83
  97. package/dist/lib/server/task.js +63 -63
  98. package/dist/lib/style/style.js +129 -129
  99. package/dist/lib/style/style.js.map +1 -1
  100. package/dist/lib/tileset/tileset.js +431 -431
  101. package/dist/lib/tileset/tileset.js.map +1 -1
  102. package/dist/lib/user/permission.js +20 -20
  103. package/dist/lib/user/session.js +145 -142
  104. package/dist/lib/user/session.js.map +1 -1
  105. package/dist/lib/user/user-group.js +94 -94
  106. package/dist/lib/user/user.js +475 -474
  107. package/dist/lib/user/user.js.map +1 -1
  108. package/dist/lib/util/encrypt-utils.js +19 -19
  109. package/dist/lib/util/math-utils.js +40 -40
  110. package/dist/lib/util/object-utils.js +17 -17
  111. package/dist/lib/util/path-utils.js +61 -61
  112. package/dist/lib/util/url-utils.js +94 -94
  113. package/dist/lib/util/url-utils.js.map +1 -1
  114. package/dist/types/account/account-invite.d.ts +68 -68
  115. package/dist/types/account/account-settings.d.ts +24 -24
  116. package/dist/types/account/account.d.ts +84 -84
  117. package/dist/types/ann-document/ann-document.d.ts +50 -50
  118. package/dist/types/api/abstract-api.d.ts +36 -36
  119. package/dist/types/api/api-getters.d.ts +64 -64
  120. package/dist/types/api/api.d.ts +93 -93
  121. package/dist/types/api/bruce-api.d.ts +64 -64
  122. package/dist/types/api/cam-api.d.ts +26 -26
  123. package/dist/types/api/global-api.d.ts +25 -25
  124. package/dist/types/api/guardian-api.d.ts +25 -25
  125. package/dist/types/api/idm-api.d.ts +28 -28
  126. package/dist/types/bruce-models.d.ts +79 -79
  127. package/dist/types/calculator/calculator.d.ts +61 -61
  128. package/dist/types/client-file/client-file.d.ts +130 -130
  129. package/dist/types/common/bounds.d.ts +30 -30
  130. package/dist/types/common/bruce-event.d.ts +12 -12
  131. package/dist/types/common/bruce-variable.d.ts +21 -21
  132. package/dist/types/common/cache.d.ts +57 -57
  133. package/dist/types/common/camera.d.ts +6 -6
  134. package/dist/types/common/cartes.d.ts +51 -51
  135. package/dist/types/common/carto.d.ts +15 -15
  136. package/dist/types/common/color.d.ts +24 -24
  137. package/dist/types/common/delay-queue.d.ts +14 -14
  138. package/dist/types/common/dictionary.d.ts +3 -3
  139. package/dist/types/common/geometry.d.ts +44 -44
  140. package/dist/types/common/lru-cache.d.ts +7 -7
  141. package/dist/types/common/transform.d.ts +15 -15
  142. package/dist/types/common/utc.d.ts +29 -29
  143. package/dist/types/custom-form/custom-form-content.d.ts +60 -60
  144. package/dist/types/custom-form/custom-form.d.ts +49 -49
  145. package/dist/types/data-lab/data-lab.d.ts +28 -28
  146. package/dist/types/entity/entity-attachment-type.d.ts +39 -39
  147. package/dist/types/entity/entity-attachment.d.ts +61 -61
  148. package/dist/types/entity/entity-attribute.d.ts +39 -39
  149. package/dist/types/entity/entity-comment.d.ts +40 -40
  150. package/dist/types/entity/entity-coords.d.ts +66 -66
  151. package/dist/types/entity/entity-link.d.ts +36 -36
  152. package/dist/types/entity/entity-lod-category.d.ts +36 -36
  153. package/dist/types/entity/entity-lod.d.ts +99 -99
  154. package/dist/types/entity/entity-relation-type.d.ts +44 -44
  155. package/dist/types/entity/entity-relation.d.ts +59 -59
  156. package/dist/types/entity/entity-source.d.ts +45 -45
  157. package/dist/types/entity/entity-tag.d.ts +53 -53
  158. package/dist/types/entity/entity-type-visual-settings.d.ts +16 -16
  159. package/dist/types/entity/entity-type.d.ts +63 -63
  160. package/dist/types/entity/entity.d.ts +118 -118
  161. package/dist/types/entity/getters/batched-data-getter.d.ts +26 -26
  162. package/dist/types/entity/getters/entity-filter-getter.d.ts +61 -61
  163. package/dist/types/entity/getters/entity-globe.d.ts +21 -21
  164. package/dist/types/entity/getters/view-monitor.d.ts +13 -13
  165. package/dist/types/import/import-cad.d.ts +49 -49
  166. package/dist/types/import/import-csv.d.ts +31 -31
  167. package/dist/types/import/import-json.d.ts +26 -26
  168. package/dist/types/import/import-kml.d.ts +19 -19
  169. package/dist/types/import/imported-file.d.ts +47 -47
  170. package/dist/types/internal/uploader.d.ts +16 -16
  171. package/dist/types/markup/markup.d.ts +227 -227
  172. package/dist/types/plugin/plugin.d.ts +39 -39
  173. package/dist/types/program-key/program-key.d.ts +48 -48
  174. package/dist/types/project/menu-item.d.ts +169 -169
  175. package/dist/types/project/project-view-bookmark.d.ts +180 -179
  176. package/dist/types/project/project-view-legacy-tile.d.ts +48 -48
  177. package/dist/types/project/project-view-tile.d.ts +65 -65
  178. package/dist/types/project/project-view.d.ts +136 -136
  179. package/dist/types/project/zoom-control.d.ts +22 -22
  180. package/dist/types/server/hosting-location.d.ts +74 -74
  181. package/dist/types/server/message-broker.d.ts +86 -86
  182. package/dist/types/server/pending-action.d.ts +66 -66
  183. package/dist/types/server/task.d.ts +36 -36
  184. package/dist/types/style/style.d.ts +107 -107
  185. package/dist/types/tileset/tileset.d.ts +264 -264
  186. package/dist/types/user/permission.d.ts +15 -15
  187. package/dist/types/user/session.d.ts +72 -66
  188. package/dist/types/user/user-group.d.ts +58 -58
  189. package/dist/types/user/user.d.ts +189 -188
  190. package/dist/types/util/encrypt-utils.d.ts +3 -3
  191. package/dist/types/util/math-utils.d.ts +16 -16
  192. package/dist/types/util/object-utils.d.ts +7 -7
  193. package/dist/types/util/path-utils.d.ts +8 -8
  194. package/dist/types/util/url-utils.d.ts +26 -26
  195. package/package.json +79 -78
@@ -1,179 +1,180 @@
1
- import { Api } from "../api/api";
2
- import { BruceApi } from "../api/bruce-api";
3
- import { IDictionary } from "../bruce-models";
4
- import { Camera } from "../common/camera";
5
- import { UTC } from "../common/utc";
6
- import { Markup } from "../markup/markup";
7
- import { ProjectViewTile } from "./project-view-tile";
8
- /**
9
- * Describe the "Project View Bookmark" concept within Bruce.
10
- * This is referred to as "slides" in older code.
11
- *
12
- * A bookmark is a snapshot of what should be displayed and how in a particular project view.
13
- */
14
- export declare namespace ProjectViewBookmark {
15
- function GetCacheKey(viewId: string, bookmarkId: string): string;
16
- function GetListCacheKey(viewId: string): string;
17
- const DEFAULT_DATA_VERSION = 1;
18
- interface IBaseBookmark {
19
- ID?: string;
20
- Title?: string;
21
- Note?: string;
22
- "Screenshot.ClientFile.ID"?: string;
23
- "UI.View.ID"?: string;
24
- "Created.ByUser.ID"?: string;
25
- "Created.Date"?: UTC.IUTC;
26
- "UI.SlideGroup.ID"?: number;
27
- DataVersion: number;
28
- DisplayOrder?: number;
29
- Settings?: IBaseSettings;
30
- }
31
- /**
32
- * These are the base settings expected in any bookmark data-version.
33
- * The only exception is data-version = 1 which is our deprecated legacy format.
34
- */
35
- interface IBaseSettings {
36
- menuItemIds?: string[];
37
- }
38
- type Bookmark = LegacyNavigator.IBookmark | Navigator.IBookmark | IBaseBookmark;
39
- namespace LegacyNavigator {
40
- const DATA_VERSION = 1;
41
- interface IBookmark extends IBaseBookmark {
42
- Camera?: ICamera;
43
- Settings?: ISettings;
44
- }
45
- interface IBookmarkImagery {
46
- title: string;
47
- contrast: number;
48
- hue: number;
49
- saturation: number;
50
- gamma: number;
51
- brightness: number;
52
- alpha: number;
53
- }
54
- interface ISettings extends IBaseSettings {
55
- selectedItemIds?: string[];
56
- order?: number;
57
- hiddenEntityIds?: string[];
58
- drawnRelationEntityIDs?: string[];
59
- imagery?: IBookmarkImagery[];
60
- terrain?: string;
61
- globeColor?: string;
62
- shadows?: boolean;
63
- groundOcclusion?: boolean;
64
- ambientOcclusion?: boolean;
65
- markup?: Markup.IMarkup;
66
- cameraFrustum?: Camera.EFrustum;
67
- displayTimeline?: boolean;
68
- timelineSettings?: any;
69
- }
70
- /**
71
- * Lat,lon is in degrees.
72
- * Altitude is meters relative to ground.
73
- * Heading, pitch, roll are in radians.
74
- */
75
- interface ICamera {
76
- position: {
77
- latitude: number;
78
- longitude: number;
79
- height: number;
80
- };
81
- heading: number;
82
- pitch: number;
83
- roll: number;
84
- }
85
- }
86
- namespace Navigator {
87
- const DATA_VERSION = 2;
88
- interface IBookmark extends IBaseBookmark {
89
- Camera?: ICamera;
90
- Settings?: ISettings;
91
- }
92
- interface ISettings extends IBaseSettings {
93
- groundOcclusion?: boolean;
94
- imagery?: ProjectViewTile.IBookmarkImagery[];
95
- terrain?: ProjectViewTile.IBookmarkTerrain;
96
- globeColor?: string;
97
- globeAlpha?: number;
98
- globeHidden?: boolean;
99
- markup?: Markup.IMarkup;
100
- shadows?: IShadows;
101
- ambientOcclusion?: IAmbientOcclusion;
102
- lighting?: ILighting;
103
- quality?: IQuality;
104
- dateTime?: string;
105
- entityOpacityMap?: IDictionary<number>;
106
- selectedEntityIds?: string[];
107
- hiddenEntityIds?: string[];
108
- isolatedEntityIds?: string[];
109
- hillShades?: boolean;
110
- renderedEntityRelations?: string[];
111
- }
112
- interface IShadows {
113
- enabled: boolean;
114
- soften: boolean;
115
- pixelSize: number;
116
- darkness: number;
117
- }
118
- interface IAmbientOcclusion {
119
- enabled: boolean;
120
- intensity: number;
121
- lengthCap: number;
122
- bias: number;
123
- blurStepSize: number;
124
- stepSize: number;
125
- }
126
- interface ILighting {
127
- color: string;
128
- intensity: number;
129
- }
130
- interface IQuality {
131
- fxaa: boolean;
132
- }
133
- interface ICamera {
134
- altitude: number;
135
- latitude: number;
136
- longitude: number;
137
- heading: number;
138
- pitch: number;
139
- roll: number;
140
- transition?: number;
141
- cameraFrustum?: Camera.EFrustum;
142
- }
143
- }
144
- function Get(params: {
145
- api: BruceApi.Api;
146
- viewId: string;
147
- bookmarkId: string;
148
- req?: Api.IReqParams;
149
- }): Promise<{
150
- bookmark: Bookmark;
151
- }>;
152
- function Delete(params: {
153
- api: BruceApi.Api;
154
- viewId: string;
155
- bookmarkId: string;
156
- req?: Api.IReqParams;
157
- }): Promise<void>;
158
- function GetList(params: {
159
- api: BruceApi.Api;
160
- viewId: string;
161
- req?: Api.IReqParams;
162
- }): Promise<{
163
- bookmarks: Bookmark[];
164
- }>;
165
- function Update(params: {
166
- api: BruceApi.Api;
167
- viewId: string;
168
- bookmark: Bookmark;
169
- req?: Api.IReqParams;
170
- }): Promise<{
171
- bookmark: Bookmark;
172
- }>;
173
- function SetOrder(params: {
174
- api: BruceApi.Api;
175
- viewId: string;
176
- bookmarkIds: string[];
177
- req?: Api.IReqParams;
178
- }): Promise<void>;
179
- }
1
+ import { Api } from "../api/api";
2
+ import { BruceApi } from "../api/bruce-api";
3
+ import { IDictionary } from "../bruce-models";
4
+ import { Camera } from "../common/camera";
5
+ import { UTC } from "../common/utc";
6
+ import { Markup } from "../markup/markup";
7
+ import { ProjectViewTile } from "./project-view-tile";
8
+ /**
9
+ * Describe the "Project View Bookmark" concept within Bruce.
10
+ * This is referred to as "slides" in older code.
11
+ *
12
+ * A bookmark is a snapshot of what should be displayed and how in a particular project view.
13
+ */
14
+ export declare namespace ProjectViewBookmark {
15
+ function GetCacheKey(viewId: string, bookmarkId: string): string;
16
+ function GetListCacheKey(viewId: string): string;
17
+ const DEFAULT_DATA_VERSION = 1;
18
+ interface IBaseBookmark {
19
+ ID?: string;
20
+ Title?: string;
21
+ Note?: string;
22
+ "Screenshot.ClientFile.ID"?: string;
23
+ "UI.View.ID"?: string;
24
+ "Created.ByUser.ID"?: string;
25
+ "Created.Date"?: UTC.IUTC;
26
+ "UI.SlideGroup.ID"?: number;
27
+ DataVersion: number;
28
+ DisplayOrder?: number;
29
+ Settings?: IBaseSettings;
30
+ }
31
+ /**
32
+ * These are the base settings expected in any bookmark data-version.
33
+ * The only exception is data-version = 1 which is our deprecated legacy format.
34
+ */
35
+ interface IBaseSettings {
36
+ menuItemIds?: string[];
37
+ }
38
+ type Bookmark = LegacyNavigator.IBookmark | Navigator.IBookmark | IBaseBookmark;
39
+ namespace LegacyNavigator {
40
+ const DATA_VERSION = 1;
41
+ interface IBookmark extends IBaseBookmark {
42
+ Camera?: ICamera;
43
+ Settings?: ISettings;
44
+ }
45
+ interface IBookmarkImagery {
46
+ title: string;
47
+ contrast: number;
48
+ hue: number;
49
+ saturation: number;
50
+ gamma: number;
51
+ brightness: number;
52
+ alpha: number;
53
+ }
54
+ interface ISettings extends IBaseSettings {
55
+ selectedItemIds?: string[];
56
+ order?: number;
57
+ hiddenEntityIds?: string[];
58
+ drawnRelationEntityIDs?: string[];
59
+ imagery?: IBookmarkImagery[];
60
+ terrain?: string;
61
+ globeColor?: string;
62
+ shadows?: boolean;
63
+ groundOcclusion?: boolean;
64
+ ambientOcclusion?: boolean;
65
+ markup?: Markup.IMarkup;
66
+ cameraFrustum?: Camera.EFrustum;
67
+ displayTimeline?: boolean;
68
+ timelineSettings?: any;
69
+ }
70
+ /**
71
+ * Lat,lon is in degrees.
72
+ * Altitude is meters relative to ground.
73
+ * Heading, pitch, roll are in radians.
74
+ */
75
+ interface ICamera {
76
+ position: {
77
+ latitude: number;
78
+ longitude: number;
79
+ height: number;
80
+ };
81
+ heading: number;
82
+ pitch: number;
83
+ roll: number;
84
+ }
85
+ }
86
+ namespace Navigator {
87
+ const DATA_VERSION = 2;
88
+ interface IBookmark extends IBaseBookmark {
89
+ Camera?: ICamera;
90
+ Settings?: ISettings;
91
+ }
92
+ interface ISettings extends IBaseSettings {
93
+ groundOcclusion?: boolean;
94
+ imagery?: ProjectViewTile.IBookmarkImagery[];
95
+ terrain?: ProjectViewTile.IBookmarkTerrain;
96
+ globeColor?: string;
97
+ globeAlpha?: number;
98
+ globeHidden?: boolean;
99
+ markup?: Markup.IMarkup;
100
+ shadows?: IShadows;
101
+ ambientOcclusion?: IAmbientOcclusion;
102
+ lighting?: ILighting;
103
+ quality?: IQuality;
104
+ dateTime?: string;
105
+ entityOpacityMap?: IDictionary<number>;
106
+ selectedEntityIds?: string[];
107
+ hiddenEntityIds?: string[];
108
+ isolatedEntityIds?: string[];
109
+ hillShades?: boolean;
110
+ renderedEntityRelations?: string[];
111
+ liveEntityIds?: string[];
112
+ }
113
+ interface IShadows {
114
+ enabled: boolean;
115
+ soften: boolean;
116
+ pixelSize: number;
117
+ darkness: number;
118
+ }
119
+ interface IAmbientOcclusion {
120
+ enabled: boolean;
121
+ intensity: number;
122
+ lengthCap: number;
123
+ bias: number;
124
+ blurStepSize: number;
125
+ stepSize: number;
126
+ }
127
+ interface ILighting {
128
+ color: string;
129
+ intensity: number;
130
+ }
131
+ interface IQuality {
132
+ fxaa: boolean;
133
+ }
134
+ interface ICamera {
135
+ altitude: number;
136
+ latitude: number;
137
+ longitude: number;
138
+ heading: number;
139
+ pitch: number;
140
+ roll: number;
141
+ transition?: number;
142
+ cameraFrustum?: Camera.EFrustum;
143
+ }
144
+ }
145
+ function Get(params: {
146
+ api: BruceApi.Api;
147
+ viewId: string;
148
+ bookmarkId: string;
149
+ req?: Api.IReqParams;
150
+ }): Promise<{
151
+ bookmark: Bookmark;
152
+ }>;
153
+ function Delete(params: {
154
+ api: BruceApi.Api;
155
+ viewId: string;
156
+ bookmarkId: string;
157
+ req?: Api.IReqParams;
158
+ }): Promise<void>;
159
+ function GetList(params: {
160
+ api: BruceApi.Api;
161
+ viewId: string;
162
+ req?: Api.IReqParams;
163
+ }): Promise<{
164
+ bookmarks: Bookmark[];
165
+ }>;
166
+ function Update(params: {
167
+ api: BruceApi.Api;
168
+ viewId: string;
169
+ bookmark: Bookmark;
170
+ req?: Api.IReqParams;
171
+ }): Promise<{
172
+ bookmark: Bookmark;
173
+ }>;
174
+ function SetOrder(params: {
175
+ api: BruceApi.Api;
176
+ viewId: string;
177
+ bookmarkIds: string[];
178
+ req?: Api.IReqParams;
179
+ }): Promise<void>;
180
+ }
@@ -1,48 +1,48 @@
1
- import { BruceApi } from "../api/bruce-api";
2
- import { Api } from "../api/api";
3
- /**
4
- * Describes a terrain or map source that are found in project view records.
5
- * This is a concept we want to trash as we're moving towards storing tileset ids instead.
6
- * This will help at least understand and manage this dying concept.
7
- */
8
- export declare namespace ProjectViewLegacyTile {
9
- interface ISource {
10
- SourceUrl?: string;
11
- IsEnabled?: boolean;
12
- IsDefault?: boolean;
13
- Name: string;
14
- Tooltip?: string;
15
- IconUrl?: string;
16
- }
17
- interface IMapSource extends ISource {
18
- SourceUrl?: string;
19
- IonAssetID?: number;
20
- MapBoxID?: string;
21
- MapBoxUsername?: string;
22
- ProgramKey?: string;
23
- FileExtension?: string;
24
- Minimum?: number;
25
- Maximum?: number;
26
- Type?: string;
27
- }
28
- interface ITerrainSource extends ISource {
29
- RequestWaterMask?: boolean;
30
- RequestVertexNormals?: boolean;
31
- }
32
- function MergeMapTemplateData(params: {
33
- getter: BruceApi.IGetter;
34
- sources: IMapSource[];
35
- addIfMissing: boolean;
36
- req?: Api.IReqParams;
37
- }): Promise<{
38
- sources: IMapSource[];
39
- }>;
40
- function MergeTerrainTemplateData(params: {
41
- getter: BruceApi.IGetter;
42
- sources: ITerrainSource[];
43
- addIfMissing: boolean;
44
- req?: Api.IReqParams;
45
- }): Promise<{
46
- sources: ITerrainSource[];
47
- }>;
48
- }
1
+ import { BruceApi } from "../api/bruce-api";
2
+ import { Api } from "../api/api";
3
+ /**
4
+ * Describes a terrain or map source that are found in project view records.
5
+ * This is a concept we want to trash as we're moving towards storing tileset ids instead.
6
+ * This will help at least understand and manage this dying concept.
7
+ */
8
+ export declare namespace ProjectViewLegacyTile {
9
+ interface ISource {
10
+ SourceUrl?: string;
11
+ IsEnabled?: boolean;
12
+ IsDefault?: boolean;
13
+ Name: string;
14
+ Tooltip?: string;
15
+ IconUrl?: string;
16
+ }
17
+ interface IMapSource extends ISource {
18
+ SourceUrl?: string;
19
+ IonAssetID?: number;
20
+ MapBoxID?: string;
21
+ MapBoxUsername?: string;
22
+ ProgramKey?: string;
23
+ FileExtension?: string;
24
+ Minimum?: number;
25
+ Maximum?: number;
26
+ Type?: string;
27
+ }
28
+ interface ITerrainSource extends ISource {
29
+ RequestWaterMask?: boolean;
30
+ RequestVertexNormals?: boolean;
31
+ }
32
+ function MergeMapTemplateData(params: {
33
+ getter: BruceApi.IGetter;
34
+ sources: IMapSource[];
35
+ addIfMissing: boolean;
36
+ req?: Api.IReqParams;
37
+ }): Promise<{
38
+ sources: IMapSource[];
39
+ }>;
40
+ function MergeTerrainTemplateData(params: {
41
+ getter: BruceApi.IGetter;
42
+ sources: ITerrainSource[];
43
+ addIfMissing: boolean;
44
+ req?: Api.IReqParams;
45
+ }): Promise<{
46
+ sources: ITerrainSource[];
47
+ }>;
48
+ }
@@ -1,65 +1,65 @@
1
- export declare namespace ProjectViewTile {
2
- type MapTileId = string | EDefaultImagery;
3
- type TerrainTileId = string | EDefaultTerrain;
4
- interface ITileMeta {
5
- accountId?: string;
6
- tilesetId: string;
7
- }
8
- interface IViewTerrain extends ITileMeta {
9
- tilesetId: TerrainTileId;
10
- }
11
- interface IViewImagery extends ITileMeta {
12
- tilesetId: MapTileId;
13
- }
14
- interface IBookmarkImagery extends IViewImagery {
15
- alpha?: number;
16
- brightness?: number;
17
- saturation?: number;
18
- contrast?: number;
19
- gamma?: number;
20
- hue?: number;
21
- }
22
- interface IBookmarkTerrain extends IViewTerrain {
23
- }
24
- enum EDefaultImagery {
25
- BingMapsAerial = "bingmapsaerial",
26
- BingMapsAerialWithLabels = "bingmapsaerialwithlabels",
27
- BingMapsRoads = "bingmapsroads",
28
- MapboxSatellite = "mapboxsatellite",
29
- MapBoxStreets = "mapboxstreets",
30
- MapBoxStreetsClassic = "mapboxstreetsclassic",
31
- EsriWorldImagery = "esriworldimagery",
32
- EsriWorldStreetMap = "esriworldstreetmap",
33
- EsriNationalGeographic = "esrinationalgeographic",
34
- OpenStreetMap = "openstreetmap",
35
- LINZ = "linz",
36
- StamenWaterColor = "stamenwatercolor",
37
- StamenToner = "stamentoner",
38
- Grid = "grid"
39
- }
40
- interface IDefaultImagery {
41
- id: EDefaultImagery;
42
- name: string;
43
- iconUrl?: string;
44
- }
45
- /**
46
- * Prepared array for UI.
47
- * TODO: Im not happy with icon urls sitting in the code. I'd prefer we ship these icons in the library as files.
48
- */
49
- const DefaultImagery: IDefaultImagery[];
50
- enum EDefaultTerrain {
51
- CesiumWorldTerrain = "cesiumworldterrain",
52
- FlatTerrain = "flatterrain",
53
- LINZ = "linz"
54
- }
55
- interface IDefaultTerrain {
56
- id: EDefaultTerrain;
57
- name: string;
58
- iconUrl?: string;
59
- }
60
- /**
61
- * Prepared array for UI.
62
- * TODO: Im not happy with icon urls sitting in the code. I'd prefer we ship these icons in the library as files.
63
- */
64
- const DefaultTerrains: IDefaultTerrain[];
65
- }
1
+ export declare namespace ProjectViewTile {
2
+ type MapTileId = string | EDefaultImagery;
3
+ type TerrainTileId = string | EDefaultTerrain;
4
+ interface ITileMeta {
5
+ accountId?: string;
6
+ tilesetId: string;
7
+ }
8
+ interface IViewTerrain extends ITileMeta {
9
+ tilesetId: TerrainTileId;
10
+ }
11
+ interface IViewImagery extends ITileMeta {
12
+ tilesetId: MapTileId;
13
+ }
14
+ interface IBookmarkImagery extends IViewImagery {
15
+ alpha?: number;
16
+ brightness?: number;
17
+ saturation?: number;
18
+ contrast?: number;
19
+ gamma?: number;
20
+ hue?: number;
21
+ }
22
+ interface IBookmarkTerrain extends IViewTerrain {
23
+ }
24
+ enum EDefaultImagery {
25
+ BingMapsAerial = "bingmapsaerial",
26
+ BingMapsAerialWithLabels = "bingmapsaerialwithlabels",
27
+ BingMapsRoads = "bingmapsroads",
28
+ MapboxSatellite = "mapboxsatellite",
29
+ MapBoxStreets = "mapboxstreets",
30
+ MapBoxStreetsClassic = "mapboxstreetsclassic",
31
+ EsriWorldImagery = "esriworldimagery",
32
+ EsriWorldStreetMap = "esriworldstreetmap",
33
+ EsriNationalGeographic = "esrinationalgeographic",
34
+ OpenStreetMap = "openstreetmap",
35
+ LINZ = "linz",
36
+ StamenWaterColor = "stamenwatercolor",
37
+ StamenToner = "stamentoner",
38
+ Grid = "grid"
39
+ }
40
+ interface IDefaultImagery {
41
+ id: EDefaultImagery;
42
+ name: string;
43
+ iconUrl?: string;
44
+ }
45
+ /**
46
+ * Prepared array for UI.
47
+ * TODO: Im not happy with icon urls sitting in the code. I'd prefer we ship these icons in the library as files.
48
+ */
49
+ const DefaultImagery: IDefaultImagery[];
50
+ enum EDefaultTerrain {
51
+ CesiumWorldTerrain = "cesiumworldterrain",
52
+ FlatTerrain = "flatterrain",
53
+ LINZ = "linz"
54
+ }
55
+ interface IDefaultTerrain {
56
+ id: EDefaultTerrain;
57
+ name: string;
58
+ iconUrl?: string;
59
+ }
60
+ /**
61
+ * Prepared array for UI.
62
+ * TODO: Im not happy with icon urls sitting in the code. I'd prefer we ship these icons in the library as files.
63
+ */
64
+ const DefaultTerrains: IDefaultTerrain[];
65
+ }