bruce-models 2.3.6 → 2.3.8
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/dist/bruce-models.es5.js +8041 -8033
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +7805 -7797
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-invite.js +81 -81
- package/dist/lib/account/account-settings.js +2 -2
- package/dist/lib/account/account.js +169 -169
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/ann-document/ann-document.js +94 -94
- package/dist/lib/api/abstract-api.js +269 -269
- package/dist/lib/api/api-getters.js +172 -172
- package/dist/lib/api/api.js +93 -93
- package/dist/lib/api/bruce-api.js +224 -220
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/api/cam-api.js +88 -88
- package/dist/lib/api/global-api.js +82 -82
- package/dist/lib/api/guardian-api.js +82 -82
- package/dist/lib/api/idm-api.js +90 -90
- package/dist/lib/bruce-models.js +95 -91
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/calculator/calculator.js +341 -341
- package/dist/lib/client-file/client-file.js +255 -255
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/common/bounds.js +61 -61
- package/dist/lib/common/bruce-event.js +46 -46
- package/dist/lib/common/bruce-variable.js +60 -60
- package/dist/lib/common/cache.js +188 -188
- package/dist/lib/common/cache.js.map +1 -1
- package/dist/lib/common/camera.js +11 -11
- package/dist/lib/common/cartes.js +123 -123
- package/dist/lib/common/carto.js +60 -60
- package/dist/lib/common/color.js +86 -86
- package/dist/lib/common/delay-queue.js +56 -56
- package/dist/lib/common/dictionary.js +2 -2
- package/dist/lib/common/geometry.js +120 -120
- package/dist/lib/common/lru-cache.js +25 -25
- package/dist/lib/common/transform.js +2 -2
- package/dist/lib/common/utc.js +39 -39
- package/dist/lib/custom-form/custom-form-content.js +26 -26
- package/dist/lib/custom-form/custom-form.js +114 -114
- package/dist/lib/data-lab/data-lab.js +49 -49
- package/dist/lib/entity/entity-attachment-type.js +87 -87
- package/dist/lib/entity/entity-attachment-type.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +126 -126
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/lib/entity/entity-attribute.js +29 -29
- package/dist/lib/entity/entity-comment.js +86 -86
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-coords.js +153 -153
- package/dist/lib/entity/entity-coords.js.map +1 -1
- package/dist/lib/entity/entity-link.js +86 -86
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod-category.js +108 -108
- package/dist/lib/entity/entity-lod.js +197 -197
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +117 -117
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +157 -157
- package/dist/lib/entity/entity-source.js +136 -136
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +157 -157
- package/dist/lib/entity/entity-type-visual-settings.js +13 -13
- package/dist/lib/entity/entity-type.js +122 -122
- package/dist/lib/entity/entity.js +341 -341
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/entity/getters/batched-data-getter.js +84 -84
- package/dist/lib/entity/getters/batched-data-getter.js.map +1 -1
- package/dist/lib/entity/getters/entity-filter-getter.js +316 -316
- package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/entity/getters/entity-globe.js +175 -175
- package/dist/lib/entity/getters/view-monitor.js +2 -2
- package/dist/lib/import/import-cad.js +53 -53
- package/dist/lib/import/import-cad.js.map +1 -1
- package/dist/lib/import/import-csv.js +23 -23
- package/dist/lib/import/import-json.js +23 -23
- package/dist/lib/import/import-kml.js +23 -23
- package/dist/lib/import/imported-file.js +130 -130
- package/dist/lib/internal/uploader.js +76 -76
- package/dist/lib/internal/uploader.js.map +1 -1
- package/dist/lib/markup/markup.js +185 -185
- package/dist/lib/plugin/plugin.js +91 -91
- package/dist/lib/program-key/program-key.js +120 -120
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/menu-item.js +122 -122
- package/dist/lib/project/project-view-bookmark.js +159 -159
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/project/project-view-legacy-tile.js +77 -77
- package/dist/lib/project/project-view-legacy-tile.js.map +1 -1
- package/dist/lib/project/project-view-tile.js +125 -125
- package/dist/lib/project/project-view.js +141 -141
- package/dist/lib/project/zoom-control.js +17 -17
- package/dist/lib/server/hosting-location.js +156 -156
- package/dist/lib/server/hosting-location.js.map +1 -1
- package/dist/lib/server/message-broker.js +142 -142
- package/dist/lib/server/message-broker.js.map +1 -1
- package/dist/lib/server/pending-action.js +83 -83
- package/dist/lib/server/task.js +63 -63
- package/dist/lib/style/style.js +129 -129
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset.js +431 -431
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/user/permission.js +20 -20
- package/dist/lib/user/session.js +145 -142
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user-group.js +94 -94
- package/dist/lib/user/user.js +475 -474
- package/dist/lib/user/user.js.map +1 -1
- package/dist/lib/util/encrypt-utils.js +19 -19
- package/dist/lib/util/math-utils.js +40 -40
- package/dist/lib/util/object-utils.js +17 -17
- package/dist/lib/util/path-utils.js +61 -61
- package/dist/lib/util/url-utils.js +94 -94
- package/dist/lib/util/url-utils.js.map +1 -1
- package/dist/types/account/account-invite.d.ts +68 -68
- package/dist/types/account/account-settings.d.ts +24 -24
- package/dist/types/account/account.d.ts +84 -84
- package/dist/types/ann-document/ann-document.d.ts +50 -50
- package/dist/types/api/abstract-api.d.ts +36 -36
- package/dist/types/api/api-getters.d.ts +64 -64
- package/dist/types/api/api.d.ts +93 -93
- package/dist/types/api/bruce-api.d.ts +64 -63
- package/dist/types/api/cam-api.d.ts +26 -26
- package/dist/types/api/global-api.d.ts +25 -25
- package/dist/types/api/guardian-api.d.ts +25 -25
- package/dist/types/api/idm-api.d.ts +28 -28
- package/dist/types/bruce-models.d.ts +79 -79
- package/dist/types/calculator/calculator.d.ts +61 -61
- package/dist/types/client-file/client-file.d.ts +130 -130
- package/dist/types/common/bounds.d.ts +30 -30
- package/dist/types/common/bruce-event.d.ts +12 -12
- package/dist/types/common/bruce-variable.d.ts +21 -21
- package/dist/types/common/cache.d.ts +57 -57
- package/dist/types/common/camera.d.ts +6 -6
- package/dist/types/common/cartes.d.ts +51 -51
- package/dist/types/common/carto.d.ts +15 -15
- package/dist/types/common/color.d.ts +24 -24
- package/dist/types/common/delay-queue.d.ts +14 -14
- package/dist/types/common/dictionary.d.ts +3 -3
- package/dist/types/common/geometry.d.ts +44 -44
- package/dist/types/common/lru-cache.d.ts +7 -7
- package/dist/types/common/transform.d.ts +15 -15
- package/dist/types/common/utc.d.ts +29 -29
- package/dist/types/custom-form/custom-form-content.d.ts +60 -60
- package/dist/types/custom-form/custom-form.d.ts +49 -49
- package/dist/types/data-lab/data-lab.d.ts +28 -28
- package/dist/types/entity/entity-attachment-type.d.ts +39 -39
- package/dist/types/entity/entity-attachment.d.ts +61 -61
- package/dist/types/entity/entity-attribute.d.ts +39 -39
- package/dist/types/entity/entity-comment.d.ts +40 -40
- package/dist/types/entity/entity-coords.d.ts +66 -66
- package/dist/types/entity/entity-link.d.ts +36 -36
- package/dist/types/entity/entity-lod-category.d.ts +36 -36
- package/dist/types/entity/entity-lod.d.ts +99 -99
- package/dist/types/entity/entity-relation-type.d.ts +44 -44
- package/dist/types/entity/entity-relation.d.ts +59 -59
- package/dist/types/entity/entity-source.d.ts +45 -45
- package/dist/types/entity/entity-tag.d.ts +53 -53
- package/dist/types/entity/entity-type-visual-settings.d.ts +16 -16
- package/dist/types/entity/entity-type.d.ts +63 -63
- package/dist/types/entity/entity.d.ts +118 -118
- package/dist/types/entity/getters/batched-data-getter.d.ts +26 -26
- package/dist/types/entity/getters/entity-filter-getter.d.ts +61 -61
- package/dist/types/entity/getters/entity-globe.d.ts +21 -21
- package/dist/types/entity/getters/view-monitor.d.ts +13 -13
- package/dist/types/import/import-cad.d.ts +49 -49
- package/dist/types/import/import-csv.d.ts +31 -31
- package/dist/types/import/import-json.d.ts +26 -26
- package/dist/types/import/import-kml.d.ts +19 -19
- package/dist/types/import/imported-file.d.ts +47 -47
- package/dist/types/internal/uploader.d.ts +16 -16
- package/dist/types/markup/markup.d.ts +227 -227
- package/dist/types/plugin/plugin.d.ts +39 -39
- package/dist/types/program-key/program-key.d.ts +48 -48
- package/dist/types/project/menu-item.d.ts +169 -169
- package/dist/types/project/project-view-bookmark.d.ts +179 -179
- package/dist/types/project/project-view-legacy-tile.d.ts +48 -48
- package/dist/types/project/project-view-tile.d.ts +65 -65
- package/dist/types/project/project-view.d.ts +136 -136
- package/dist/types/project/zoom-control.d.ts +22 -22
- package/dist/types/server/hosting-location.d.ts +74 -74
- package/dist/types/server/message-broker.d.ts +86 -86
- package/dist/types/server/pending-action.d.ts +66 -66
- package/dist/types/server/task.d.ts +36 -36
- package/dist/types/style/style.d.ts +107 -107
- package/dist/types/tileset/tileset.d.ts +264 -264
- package/dist/types/user/permission.d.ts +15 -15
- package/dist/types/user/session.d.ts +72 -66
- package/dist/types/user/user-group.d.ts +58 -58
- package/dist/types/user/user.d.ts +189 -188
- package/dist/types/util/encrypt-utils.d.ts +3 -3
- package/dist/types/util/math-utils.d.ts +16 -16
- package/dist/types/util/object-utils.d.ts +7 -7
- package/dist/types/util/path-utils.d.ts +8 -8
- package/dist/types/util/url-utils.d.ts +26 -26
- package/package.json +79 -78
|
@@ -1,179 +1,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
|
-
}
|
|
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
|
+
}
|
|
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,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
|
+
}
|