bruce-models 0.0.1
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/README.md +0 -0
- package/dist/lib/ann-document/ann-document.js +113 -0
- package/dist/lib/ann-document/ann-document.js.map +1 -0
- package/dist/lib/api/abstract-api.js +229 -0
- package/dist/lib/api/abstract-api.js.map +1 -0
- package/dist/lib/api/api.js +66 -0
- package/dist/lib/api/api.js.map +1 -0
- package/dist/lib/api/bruce-api.js +121 -0
- package/dist/lib/api/bruce-api.js.map +1 -0
- package/dist/lib/api/cam-api.js +120 -0
- package/dist/lib/api/cam-api.js.map +1 -0
- package/dist/lib/api/global-api.js +119 -0
- package/dist/lib/api/global-api.js.map +1 -0
- package/dist/lib/api/idm-api.js +120 -0
- package/dist/lib/api/idm-api.js.map +1 -0
- package/dist/lib/bruce-models.js +72 -0
- package/dist/lib/bruce-models.js.map +1 -0
- package/dist/lib/calculator/calculator.js +136 -0
- package/dist/lib/calculator/calculator.js.map +1 -0
- package/dist/lib/common/bounds.js +3 -0
- package/dist/lib/common/bounds.js.map +1 -0
- package/dist/lib/common/bruce-event.js +45 -0
- package/dist/lib/common/bruce-event.js.map +1 -0
- package/dist/lib/common/bruce-variable.js +42 -0
- package/dist/lib/common/bruce-variable.js.map +1 -0
- package/dist/lib/common/cache.js +74 -0
- package/dist/lib/common/cache.js.map +1 -0
- package/dist/lib/common/camera.js +12 -0
- package/dist/lib/common/camera.js.map +1 -0
- package/dist/lib/common/cartes.js +30 -0
- package/dist/lib/common/cartes.js.map +1 -0
- package/dist/lib/common/carto.js +20 -0
- package/dist/lib/common/carto.js.map +1 -0
- package/dist/lib/common/color.js +82 -0
- package/dist/lib/common/color.js.map +1 -0
- package/dist/lib/common/delay-queue.js +57 -0
- package/dist/lib/common/delay-queue.js.map +1 -0
- package/dist/lib/common/dictionary.js +3 -0
- package/dist/lib/common/dictionary.js.map +1 -0
- package/dist/lib/common/geometry.js +95 -0
- package/dist/lib/common/geometry.js.map +1 -0
- package/dist/lib/common/transform.js +3 -0
- package/dist/lib/common/transform.js.map +1 -0
- package/dist/lib/common/utc.js +37 -0
- package/dist/lib/common/utc.js.map +1 -0
- package/dist/lib/entity/entity-attachment-type.js +132 -0
- package/dist/lib/entity/entity-attachment-type.js.map +1 -0
- package/dist/lib/entity/entity-attachment.js +204 -0
- package/dist/lib/entity/entity-attachment.js.map +1 -0
- package/dist/lib/entity/entity-comment.js +129 -0
- package/dist/lib/entity/entity-comment.js.map +1 -0
- package/dist/lib/entity/entity-link.js +129 -0
- package/dist/lib/entity/entity-link.js.map +1 -0
- package/dist/lib/entity/entity-lod.js +121 -0
- package/dist/lib/entity/entity-lod.js.map +1 -0
- package/dist/lib/entity/entity-relation-type.js +147 -0
- package/dist/lib/entity/entity-relation-type.js.map +1 -0
- package/dist/lib/entity/entity-relation.js +153 -0
- package/dist/lib/entity/entity-relation.js.map +1 -0
- package/dist/lib/entity/entity-source.js +172 -0
- package/dist/lib/entity/entity-source.js.map +1 -0
- package/dist/lib/entity/entity-tag.js +223 -0
- package/dist/lib/entity/entity-tag.js.map +1 -0
- package/dist/lib/entity/entity-type.js +159 -0
- package/dist/lib/entity/entity-type.js.map +1 -0
- package/dist/lib/entity/entity.js +302 -0
- package/dist/lib/entity/entity.js.map +1 -0
- package/dist/lib/entity/getters/entity-filter-getter.js +339 -0
- package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -0
- package/dist/lib/entity/getters/entity-globe.js +131 -0
- package/dist/lib/entity/getters/entity-globe.js.map +1 -0
- package/dist/lib/entity/getters/view-monitor.js +3 -0
- package/dist/lib/entity/getters/view-monitor.js.map +1 -0
- package/dist/lib/file/client-file.js +144 -0
- package/dist/lib/file/client-file.js.map +1 -0
- package/dist/lib/markup/markup.js +38 -0
- package/dist/lib/markup/markup.js.map +1 -0
- package/dist/lib/program-key/program-key.js +149 -0
- package/dist/lib/program-key/program-key.js.map +1 -0
- package/dist/lib/project/menu-item-zoom-control.js +14 -0
- package/dist/lib/project/menu-item-zoom-control.js.map +1 -0
- package/dist/lib/project/menu-item.js +109 -0
- package/dist/lib/project/menu-item.js.map +1 -0
- package/dist/lib/project/project-view-bookmark.js +151 -0
- package/dist/lib/project/project-view-bookmark.js.map +1 -0
- package/dist/lib/project/project-view-tile-source.js +114 -0
- package/dist/lib/project/project-view-tile-source.js.map +1 -0
- package/dist/lib/project/project-view.js +147 -0
- package/dist/lib/project/project-view.js.map +1 -0
- package/dist/lib/server/pending-action.js +102 -0
- package/dist/lib/server/pending-action.js.map +1 -0
- package/dist/lib/style/style.js +140 -0
- package/dist/lib/style/style.js.map +1 -0
- package/dist/lib/tileset/tileset-cad.js +3 -0
- package/dist/lib/tileset/tileset-cad.js.map +1 -0
- package/dist/lib/tileset/tileset-entities-map-tiles.js +14 -0
- package/dist/lib/tileset/tileset-entities-map-tiles.js.map +1 -0
- package/dist/lib/tileset/tileset-entities.js +3 -0
- package/dist/lib/tileset/tileset-entities.js.map +1 -0
- package/dist/lib/tileset/tileset-ext-map-tiles.js +14 -0
- package/dist/lib/tileset/tileset-ext-map-tiles.js.map +1 -0
- package/dist/lib/tileset/tileset-ext-terrain-tiles.js +3 -0
- package/dist/lib/tileset/tileset-ext-terrain-tiles.js.map +1 -0
- package/dist/lib/tileset/tileset-map-tiles.js +3 -0
- package/dist/lib/tileset/tileset-map-tiles.js.map +1 -0
- package/dist/lib/tileset/tileset-pointcloud.js +3 -0
- package/dist/lib/tileset/tileset-pointcloud.js.map +1 -0
- package/dist/lib/tileset/tileset-terrain-tiles.js +3 -0
- package/dist/lib/tileset/tileset-terrain-tiles.js.map +1 -0
- package/dist/lib/tileset/tileset.js +388 -0
- package/dist/lib/tileset/tileset.js.map +1 -0
- package/dist/lib/ucs/ucs.js +131 -0
- package/dist/lib/ucs/ucs.js.map +1 -0
- package/dist/lib/user/permission.js +21 -0
- package/dist/lib/user/permission.js.map +1 -0
- package/dist/lib/user/session.js +140 -0
- package/dist/lib/user/session.js.map +1 -0
- package/dist/lib/user/user-group.js +136 -0
- package/dist/lib/user/user-group.js.map +1 -0
- package/dist/lib/user/user.js +239 -0
- package/dist/lib/user/user.js.map +1 -0
- package/dist/lib/util/encrypt-utils.js +21 -0
- package/dist/lib/util/encrypt-utils.js.map +1 -0
- package/dist/lib/util/math-utils.js +30 -0
- package/dist/lib/util/math-utils.js.map +1 -0
- package/dist/lib/util/object-utils.js +14 -0
- package/dist/lib/util/object-utils.js.map +1 -0
- package/dist/lib/util/path-utils.js +59 -0
- package/dist/lib/util/path-utils.js.map +1 -0
- package/dist/lib/util/url-utils.js +102 -0
- package/dist/lib/util/url-utils.js.map +1 -0
- package/dist/types/ann-document/ann-document.d.ts +19 -0
- package/dist/types/api/abstract-api.d.ts +16 -0
- package/dist/types/api/api.d.ts +66 -0
- package/dist/types/api/bruce-api.d.ts +14 -0
- package/dist/types/api/cam-api.d.ts +13 -0
- package/dist/types/api/global-api.d.ts +13 -0
- package/dist/types/api/idm-api.d.ts +13 -0
- package/dist/types/bruce-models.d.ts +59 -0
- package/dist/types/calculator/calculator.d.ts +38 -0
- package/dist/types/common/bounds.d.ts +17 -0
- package/dist/types/common/bruce-event.d.ts +8 -0
- package/dist/types/common/bruce-variable.d.ts +4 -0
- package/dist/types/common/cache.d.ts +13 -0
- package/dist/types/common/camera.d.ts +6 -0
- package/dist/types/common/cartes.d.ts +11 -0
- package/dist/types/common/carto.d.ts +8 -0
- package/dist/types/common/color.d.ts +19 -0
- package/dist/types/common/delay-queue.d.ts +10 -0
- package/dist/types/common/dictionary.d.ts +3 -0
- package/dist/types/common/geometry.d.ts +14 -0
- package/dist/types/common/transform.d.ts +8 -0
- package/dist/types/common/utc.d.ts +26 -0
- package/dist/types/entity/entity-attachment-type.d.ts +22 -0
- package/dist/types/entity/entity-attachment.d.ts +23 -0
- package/dist/types/entity/entity-comment.d.ts +18 -0
- package/dist/types/entity/entity-link.d.ts +14 -0
- package/dist/types/entity/entity-lod.d.ts +31 -0
- package/dist/types/entity/entity-relation-type.d.ts +18 -0
- package/dist/types/entity/entity-relation.d.ts +24 -0
- package/dist/types/entity/entity-source.d.ts +12 -0
- package/dist/types/entity/entity-tag.d.ts +18 -0
- package/dist/types/entity/entity-type.d.ts +48 -0
- package/dist/types/entity/entity.d.ts +51 -0
- package/dist/types/entity/getters/entity-filter-getter.d.ts +46 -0
- package/dist/types/entity/getters/entity-globe.d.ts +15 -0
- package/dist/types/entity/getters/view-monitor.d.ts +13 -0
- package/dist/types/file/client-file.d.ts +56 -0
- package/dist/types/markup/markup.d.ts +155 -0
- package/dist/types/program-key/program-key.d.ts +21 -0
- package/dist/types/project/menu-item-zoom-control.d.ts +18 -0
- package/dist/types/project/menu-item.d.ts +103 -0
- package/dist/types/project/project-view-bookmark.d.ts +41 -0
- package/dist/types/project/project-view-tile-source.d.ts +26 -0
- package/dist/types/project/project-view.d.ts +58 -0
- package/dist/types/server/pending-action.d.ts +33 -0
- package/dist/types/style/style.d.ts +32 -0
- package/dist/types/tileset/tileset-cad.d.ts +20 -0
- package/dist/types/tileset/tileset-entities-map-tiles.d.ts +18 -0
- package/dist/types/tileset/tileset-entities.d.ts +14 -0
- package/dist/types/tileset/tileset-ext-map-tiles.d.ts +17 -0
- package/dist/types/tileset/tileset-ext-terrain-tiles.d.ts +6 -0
- package/dist/types/tileset/tileset-map-tiles.d.ts +8 -0
- package/dist/types/tileset/tileset-pointcloud.d.ts +15 -0
- package/dist/types/tileset/tileset-terrain-tiles.d.ts +6 -0
- package/dist/types/tileset/tileset.d.ts +78 -0
- package/dist/types/ucs/ucs.d.ts +25 -0
- package/dist/types/user/permission.d.ts +15 -0
- package/dist/types/user/session.d.ts +26 -0
- package/dist/types/user/user-group.d.ts +16 -0
- package/dist/types/user/user.d.ts +40 -0
- package/dist/types/util/encrypt-utils.d.ts +3 -0
- package/dist/types/util/math-utils.d.ts +4 -0
- package/dist/types/util/object-utils.d.ts +3 -0
- package/dist/types/util/path-utils.d.ts +5 -0
- package/dist/types/util/url-utils.d.ts +20 -0
- package/package.json +75 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BruceApi } from "../bruce-models";
|
|
2
|
+
import { UTC } from "../common/utc";
|
|
3
|
+
export declare namespace ClientFile {
|
|
4
|
+
function GetCacheKey(fileId: string): string;
|
|
5
|
+
interface IClientFile {
|
|
6
|
+
UploadedTimeUTC: UTC.IUTC;
|
|
7
|
+
FileExt: string;
|
|
8
|
+
ID: string;
|
|
9
|
+
MIMEType: string;
|
|
10
|
+
OriginalFileName: string;
|
|
11
|
+
OriginalLength: number;
|
|
12
|
+
"UploadedByUser.ID": string;
|
|
13
|
+
Purpose: string;
|
|
14
|
+
}
|
|
15
|
+
function Get(api: BruceApi, fileId: string): Promise<IClientFile>;
|
|
16
|
+
function Delete(api: BruceApi, fileIds: string[]): Promise<void>;
|
|
17
|
+
function Upload(api: BruceApi, file: Blob, onProgress?: (e: ProgressEvent) => void): Promise<IClientFile>;
|
|
18
|
+
namespace Filter {
|
|
19
|
+
namespace V1 {
|
|
20
|
+
enum EColumn {
|
|
21
|
+
ID = "id",
|
|
22
|
+
Name = "name",
|
|
23
|
+
DateTime = "datetime",
|
|
24
|
+
MIMEType = "mimeType",
|
|
25
|
+
Size = "size",
|
|
26
|
+
User = "user",
|
|
27
|
+
Extension = "extension"
|
|
28
|
+
}
|
|
29
|
+
enum ESortOrder {
|
|
30
|
+
ASC = "asc",
|
|
31
|
+
DEC = "desc"
|
|
32
|
+
}
|
|
33
|
+
enum ERowOperator {
|
|
34
|
+
AND = "AND",
|
|
35
|
+
OR = "OR"
|
|
36
|
+
}
|
|
37
|
+
interface IRow {
|
|
38
|
+
column: EColumn;
|
|
39
|
+
value: any;
|
|
40
|
+
valueOperator: string;
|
|
41
|
+
includes: boolean;
|
|
42
|
+
rowOperator: ERowOperator;
|
|
43
|
+
rows?: IRow[];
|
|
44
|
+
}
|
|
45
|
+
interface IFilter {
|
|
46
|
+
PageSize?: number;
|
|
47
|
+
PageIndex?: number;
|
|
48
|
+
OrderBy?: EColumn;
|
|
49
|
+
SortOrder?: ESortOrder;
|
|
50
|
+
Purpose?: string;
|
|
51
|
+
FilterRows?: IRow[];
|
|
52
|
+
}
|
|
53
|
+
function GetList(api: BruceApi, filter: IFilter): Promise<IClientFile[]>;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Cartes, EntityAttachmentType } from "../bruce-models";
|
|
2
|
+
export declare namespace Markup {
|
|
3
|
+
interface IMarkup {
|
|
4
|
+
divs?: Element.Div.IDiv[];
|
|
5
|
+
vectors?: Element.Drawing.Drawing[];
|
|
6
|
+
cesiumObjects?: Element.Cesium.Cesium[];
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
defaultCameraPos?: any;
|
|
10
|
+
}
|
|
11
|
+
namespace Element {
|
|
12
|
+
namespace Div {
|
|
13
|
+
enum EType {
|
|
14
|
+
Default = "default",
|
|
15
|
+
Callout = "callout"
|
|
16
|
+
}
|
|
17
|
+
interface IDiv {
|
|
18
|
+
id: string;
|
|
19
|
+
type: EType;
|
|
20
|
+
contentRows: IRow[];
|
|
21
|
+
boxShadow?: IBoxShadow;
|
|
22
|
+
borderRadius?: number;
|
|
23
|
+
borderUsingPercent?: boolean;
|
|
24
|
+
borderColor?: string;
|
|
25
|
+
borderWidth?: number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
screenWidth: number;
|
|
31
|
+
screenHeight: number;
|
|
32
|
+
}
|
|
33
|
+
interface IBoxShadow {
|
|
34
|
+
horizontal: number;
|
|
35
|
+
vertical: number;
|
|
36
|
+
blur: number;
|
|
37
|
+
spread: number;
|
|
38
|
+
color: string;
|
|
39
|
+
}
|
|
40
|
+
interface IRow {
|
|
41
|
+
element?: HTMLElement;
|
|
42
|
+
items: IRowItem[];
|
|
43
|
+
height: number;
|
|
44
|
+
}
|
|
45
|
+
enum EItemType {
|
|
46
|
+
Default = "DEFAULT",
|
|
47
|
+
Embed = "EMBED"
|
|
48
|
+
}
|
|
49
|
+
interface IRowItem {
|
|
50
|
+
text: string;
|
|
51
|
+
embedRaw?: string;
|
|
52
|
+
action?: ItemAction.IItemAction;
|
|
53
|
+
bgImage?: IRowItemImage;
|
|
54
|
+
backgroundColor?: string;
|
|
55
|
+
fontColor?: string;
|
|
56
|
+
fontSize?: number;
|
|
57
|
+
textAlign?: string;
|
|
58
|
+
verticalAlign?: string;
|
|
59
|
+
padding?: number;
|
|
60
|
+
textShadow?: ITextShadow;
|
|
61
|
+
contentType: EItemType;
|
|
62
|
+
width: number;
|
|
63
|
+
}
|
|
64
|
+
interface IRowItemImage {
|
|
65
|
+
FileID?: string;
|
|
66
|
+
UseEntityDefault?: boolean;
|
|
67
|
+
}
|
|
68
|
+
interface ITextShadow {
|
|
69
|
+
horizontal: number;
|
|
70
|
+
vertical: number;
|
|
71
|
+
blur: number;
|
|
72
|
+
color: string;
|
|
73
|
+
}
|
|
74
|
+
namespace ItemAction {
|
|
75
|
+
interface IActionLinkParams {
|
|
76
|
+
URL?: string;
|
|
77
|
+
bookmarkID?: string;
|
|
78
|
+
openInNewTab?: boolean;
|
|
79
|
+
closeMarkupOnOpen?: boolean;
|
|
80
|
+
}
|
|
81
|
+
interface IActionInfoViewParams {
|
|
82
|
+
}
|
|
83
|
+
interface IActionRelationParams {
|
|
84
|
+
}
|
|
85
|
+
interface IActionGalleryParams {
|
|
86
|
+
documentType?: EntityAttachmentType.EType | string;
|
|
87
|
+
}
|
|
88
|
+
interface IItemAction {
|
|
89
|
+
type: ItemAction.EType;
|
|
90
|
+
params: IActionLinkParams | IActionInfoViewParams | IActionRelationParams | IActionGalleryParams;
|
|
91
|
+
}
|
|
92
|
+
enum EType {
|
|
93
|
+
None = "NONE",
|
|
94
|
+
OpenLink = "LINK",
|
|
95
|
+
OpenInfoView = "INFOVIEW",
|
|
96
|
+
OpenEntityGallery = "GALLERY",
|
|
97
|
+
ToggleRelationships = "RELATIONSHIPS",
|
|
98
|
+
Draggable = "DRAGABBLE",
|
|
99
|
+
Close = "CLOSE",
|
|
100
|
+
OpenBookmark = "BOOKMARK",
|
|
101
|
+
OpenMarkup = "MARKUP"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
namespace Drawing {
|
|
106
|
+
type Drawing = Line.ILine | Anchor.IAnchor | FreePaint.IPaint;
|
|
107
|
+
namespace Line {
|
|
108
|
+
interface ILine {
|
|
109
|
+
headSides?: number;
|
|
110
|
+
brushColor?: string;
|
|
111
|
+
brushHead?: string;
|
|
112
|
+
brushSize?: number;
|
|
113
|
+
path?: string;
|
|
114
|
+
pathType?: string;
|
|
115
|
+
screenHeight?: number;
|
|
116
|
+
screenWidth?: number;
|
|
117
|
+
transform?: string;
|
|
118
|
+
angled?: boolean;
|
|
119
|
+
snaps?: Anchor.IAnchor[];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
namespace Anchor {
|
|
123
|
+
interface IAnchor {
|
|
124
|
+
id?: string;
|
|
125
|
+
side?: number;
|
|
126
|
+
snapPosition?: number;
|
|
127
|
+
brushHead?: string;
|
|
128
|
+
fill?: string;
|
|
129
|
+
outlineFactor?: number;
|
|
130
|
+
cartesian?: Cartes.ICartes3;
|
|
131
|
+
screenPos?: Cartes.ICartes3;
|
|
132
|
+
positionFromEntity?: boolean;
|
|
133
|
+
stroke?: string;
|
|
134
|
+
size?: number;
|
|
135
|
+
head?: string;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
namespace FreePaint {
|
|
139
|
+
interface IPaint {
|
|
140
|
+
brushColor: string;
|
|
141
|
+
brushHead: string;
|
|
142
|
+
brushSize: string;
|
|
143
|
+
path: string;
|
|
144
|
+
pathType: string;
|
|
145
|
+
screenHeight: number;
|
|
146
|
+
screenWidth: number;
|
|
147
|
+
transform: string;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
namespace Cesium {
|
|
152
|
+
type Cesium = null;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
declare type Id = ProgramKey.EProgramId | string;
|
|
3
|
+
export declare namespace ProgramKey {
|
|
4
|
+
function GetCacheKey(programId: string): string;
|
|
5
|
+
function GetListCacheKey(): string;
|
|
6
|
+
enum EProgramId {
|
|
7
|
+
CesiumIon = "CesiumIon",
|
|
8
|
+
BingMaps = "BingMaps",
|
|
9
|
+
Mapbox = "Mapbox"
|
|
10
|
+
}
|
|
11
|
+
interface IKey {
|
|
12
|
+
ProgramId: Id;
|
|
13
|
+
Key: string;
|
|
14
|
+
IsAccessRestricted?: boolean;
|
|
15
|
+
}
|
|
16
|
+
function Get(api: BruceApi, programId: Id): Promise<IKey>;
|
|
17
|
+
function GetList(api: BruceApi): Promise<IKey[]>;
|
|
18
|
+
function Delete(api: BruceApi, programId: Id): Promise<void>;
|
|
19
|
+
function Update(api: BruceApi, data: IKey): Promise<IKey>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Style } from "../bruce-models";
|
|
2
|
+
export declare namespace MenuItemZoomControl {
|
|
3
|
+
enum EDisplayType {
|
|
4
|
+
Hidden = "hidden",
|
|
5
|
+
Point = "point",
|
|
6
|
+
Geometry = "geometry",
|
|
7
|
+
Model3D = "3d"
|
|
8
|
+
}
|
|
9
|
+
interface IItem {
|
|
10
|
+
MinZoom?: number;
|
|
11
|
+
MaxZoom?: number;
|
|
12
|
+
DisplayType?: EDisplayType;
|
|
13
|
+
StyleID?: number;
|
|
14
|
+
Style?: Style.IEntitySettings;
|
|
15
|
+
LODCategoryID?: string;
|
|
16
|
+
LODLevel?: number | string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Tileset } from "../tileset/tileset";
|
|
2
|
+
import { MenuItemZoomControl } from "./menu-item-zoom-control";
|
|
3
|
+
export declare namespace MenuItem {
|
|
4
|
+
enum EType {
|
|
5
|
+
None = "NONE",
|
|
6
|
+
BruceEntities = "BruceEntity",
|
|
7
|
+
BruceEntity = "SingleEntity",
|
|
8
|
+
Osm = "OSMBuildingsTileset",
|
|
9
|
+
CadTileset = "ModelTileset",
|
|
10
|
+
ArbTileset = "Cesium3DTileset",
|
|
11
|
+
Kml = "StaticKML",
|
|
12
|
+
EntitiesTileset = "EntitiesTileset",
|
|
13
|
+
EntitiesRaster = "RasterEntitiesTileset",
|
|
14
|
+
PointCloud = "PointCloudTileset"
|
|
15
|
+
}
|
|
16
|
+
interface ILegend {
|
|
17
|
+
model3d: boolean;
|
|
18
|
+
point: boolean;
|
|
19
|
+
polygon: boolean;
|
|
20
|
+
polylines: boolean;
|
|
21
|
+
tileset3d: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface IItem {
|
|
24
|
+
id: string;
|
|
25
|
+
Caption: string;
|
|
26
|
+
Children?: IItem[];
|
|
27
|
+
Type: EType;
|
|
28
|
+
hideChildren?: boolean;
|
|
29
|
+
legend?: ILegend;
|
|
30
|
+
authoringEnabled?: boolean;
|
|
31
|
+
LabelColor?: string;
|
|
32
|
+
renderPriority?: number;
|
|
33
|
+
}
|
|
34
|
+
function CreateFromEntityId(entityId: string, typeId: string, styleId?: number): IItem;
|
|
35
|
+
function CreateFromTypeId(typeId: string, styleId?: number): IItem;
|
|
36
|
+
function CreateFromTilesetId(tilesetId: string, type: Tileset.EType): IItem;
|
|
37
|
+
namespace Item {
|
|
38
|
+
interface ITileset {
|
|
39
|
+
TilesetURL?: string;
|
|
40
|
+
ClientAccountID?: string;
|
|
41
|
+
TilesetID?: string;
|
|
42
|
+
}
|
|
43
|
+
interface IBruceEntities extends IItem {
|
|
44
|
+
BruceEntity: {
|
|
45
|
+
"EntityType.ID": string;
|
|
46
|
+
};
|
|
47
|
+
CameraZoomSettings: MenuItemZoomControl.IItem[];
|
|
48
|
+
showAllLayers: boolean;
|
|
49
|
+
showAllLayersExcludeBelow: boolean;
|
|
50
|
+
tagIds: number[];
|
|
51
|
+
}
|
|
52
|
+
interface IBruceEntity extends IItem {
|
|
53
|
+
BruceEntity: {
|
|
54
|
+
"EntityType.ID": string;
|
|
55
|
+
EntityId: string;
|
|
56
|
+
};
|
|
57
|
+
CameraZoomSettings: MenuItemZoomControl.IItem[];
|
|
58
|
+
showAllLayers: boolean;
|
|
59
|
+
showAllLayersExcludeBelow: boolean;
|
|
60
|
+
tagIds: number[];
|
|
61
|
+
}
|
|
62
|
+
interface IArbTileset extends IItem {
|
|
63
|
+
FlyTo: boolean;
|
|
64
|
+
BruceEntity?: {
|
|
65
|
+
"EntityType.ID"?: string;
|
|
66
|
+
};
|
|
67
|
+
tileset: ITileset;
|
|
68
|
+
StyleMapping: any[];
|
|
69
|
+
styleId: number;
|
|
70
|
+
}
|
|
71
|
+
interface ICadTileset extends IItem {
|
|
72
|
+
FlyTo: boolean;
|
|
73
|
+
tileset: ITileset;
|
|
74
|
+
StyleMapping?: any[];
|
|
75
|
+
styleId?: number;
|
|
76
|
+
}
|
|
77
|
+
interface IPointcloud extends IItem {
|
|
78
|
+
FlyTo: boolean;
|
|
79
|
+
tileset: ITileset;
|
|
80
|
+
}
|
|
81
|
+
interface IEntitiesRaster extends IItem {
|
|
82
|
+
tileset: ITileset;
|
|
83
|
+
}
|
|
84
|
+
interface IOsm extends IItem {
|
|
85
|
+
BruceEntity?: {
|
|
86
|
+
"EntityType.ID"?: string;
|
|
87
|
+
SourceId: string;
|
|
88
|
+
};
|
|
89
|
+
ghostLoading: boolean;
|
|
90
|
+
}
|
|
91
|
+
interface IKml extends IItem {
|
|
92
|
+
KML: {
|
|
93
|
+
ClientFile: {
|
|
94
|
+
ID: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
interface IEntitiesTileset extends IItem {
|
|
99
|
+
FlyTo: boolean;
|
|
100
|
+
tileset: ITileset;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
import { Camera } from "../common/camera";
|
|
3
|
+
import { UTC } from "../common/utc";
|
|
4
|
+
import { Markup } from "../markup/markup";
|
|
5
|
+
export declare namespace ProjectViewBookmark {
|
|
6
|
+
function GetCacheKey(viewId: string, bookmarkId: string): string;
|
|
7
|
+
function GetListCacheKey(): string;
|
|
8
|
+
interface IBookmarkSettings {
|
|
9
|
+
selectedItemIds?: string[];
|
|
10
|
+
order?: number;
|
|
11
|
+
hiddenEntityIds?: string[];
|
|
12
|
+
drawnRelationEntityIDs?: string[];
|
|
13
|
+
imagery?: any[];
|
|
14
|
+
terrain?: string;
|
|
15
|
+
globeColor?: string;
|
|
16
|
+
shadows?: boolean;
|
|
17
|
+
groundOcclusion?: boolean;
|
|
18
|
+
ambientOcclusion?: boolean;
|
|
19
|
+
markup?: Markup.IMarkup;
|
|
20
|
+
cameraFrustum?: Camera.EFrustum;
|
|
21
|
+
displayTimeline?: boolean;
|
|
22
|
+
timelineSettings?: any;
|
|
23
|
+
}
|
|
24
|
+
interface IBookmark {
|
|
25
|
+
ID?: string;
|
|
26
|
+
Camera?: any;
|
|
27
|
+
"Created.ByUser.ID"?: string;
|
|
28
|
+
"Created.Date"?: UTC.IUTC;
|
|
29
|
+
Note?: string;
|
|
30
|
+
Settings?: IBookmarkSettings;
|
|
31
|
+
Title?: string;
|
|
32
|
+
"UI.View.ID"?: string;
|
|
33
|
+
DisplayOrder?: number;
|
|
34
|
+
"Screenshot.ClientFile.ID"?: string;
|
|
35
|
+
"UI.SlideGroup.ID"?: number;
|
|
36
|
+
}
|
|
37
|
+
function Get(api: BruceApi, viewId: string, bookmarkId: string): Promise<IBookmark>;
|
|
38
|
+
function Delete(api: BruceApi, viewId: string, bookmarkId: string): Promise<void>;
|
|
39
|
+
function GetList(api: BruceApi, viewId: string): Promise<IBookmark[]>;
|
|
40
|
+
function Update(api: BruceApi, viewId: string, data: IBookmark): Promise<IBookmark>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare namespace ProjectViewTileSource {
|
|
2
|
+
interface ISource {
|
|
3
|
+
IsEnabled?: boolean;
|
|
4
|
+
IsDefault?: boolean;
|
|
5
|
+
Name: string;
|
|
6
|
+
Tooltip?: string;
|
|
7
|
+
IconUrl?: string;
|
|
8
|
+
}
|
|
9
|
+
interface IMapSource extends ISource {
|
|
10
|
+
SourceUrl?: string;
|
|
11
|
+
IonAssetID?: number;
|
|
12
|
+
MapBoxID?: string;
|
|
13
|
+
MapBoxUsername?: string;
|
|
14
|
+
ProgramKey?: string;
|
|
15
|
+
FileExtension?: string;
|
|
16
|
+
Minimum?: number;
|
|
17
|
+
Maximum?: number;
|
|
18
|
+
Type?: string;
|
|
19
|
+
}
|
|
20
|
+
interface ITerrainSource extends ISource {
|
|
21
|
+
RequestWaterMask?: boolean;
|
|
22
|
+
RequestVertexNormals?: boolean;
|
|
23
|
+
}
|
|
24
|
+
function MergeMapTemplateData(items: IMapSource[], addIfMissing: boolean): Promise<IMapSource[]>;
|
|
25
|
+
function MergeTerrainTemplateData(items: ITerrainSource[], addIfMissing: boolean): Promise<IMapSource[]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
import { UTC } from "../common/utc";
|
|
3
|
+
import { MenuItem } from "./menu-item";
|
|
4
|
+
import { ProjectViewTileSource } from "./project-view-tile-source";
|
|
5
|
+
export declare namespace ProjectView {
|
|
6
|
+
function GetCacheKey(viewId: string): string;
|
|
7
|
+
function GetListCacheKey(): string;
|
|
8
|
+
interface IView {
|
|
9
|
+
ID: string;
|
|
10
|
+
Name: string;
|
|
11
|
+
Description: string;
|
|
12
|
+
Feature: string[];
|
|
13
|
+
"CreatedByUser.ID": string;
|
|
14
|
+
CreatedTime: UTC.IUTC;
|
|
15
|
+
Settings?: IViewSettings;
|
|
16
|
+
DefaultUISlideID: string;
|
|
17
|
+
CreatedByUIVersion: string;
|
|
18
|
+
}
|
|
19
|
+
interface IShadowSettings {
|
|
20
|
+
IsShadowEnabled: boolean;
|
|
21
|
+
IsShadowSoft: boolean;
|
|
22
|
+
ShadowSampleSize: number;
|
|
23
|
+
}
|
|
24
|
+
interface IViewSettings {
|
|
25
|
+
BookmarkTransitionSpeed: number;
|
|
26
|
+
Camera: any;
|
|
27
|
+
CameraFrustum: number;
|
|
28
|
+
CesiumMapSources: ProjectViewTileSource.IMapSource[];
|
|
29
|
+
CesiumTerrainSources: ProjectViewTileSource.ITerrainSource[];
|
|
30
|
+
ControlsSettings: any;
|
|
31
|
+
DefaultMapTiles: string;
|
|
32
|
+
DefaultTerrain: string;
|
|
33
|
+
DisplayTimeline: boolean;
|
|
34
|
+
GroundOcclusion: boolean;
|
|
35
|
+
Extensions: any;
|
|
36
|
+
GlobeColor: string;
|
|
37
|
+
SelectionHighlightColor?: string;
|
|
38
|
+
LayersMenu?: MenuItem.IItem[];
|
|
39
|
+
OASettings?: any;
|
|
40
|
+
LogoImage: any;
|
|
41
|
+
LegendImage: any;
|
|
42
|
+
IsRestricted: boolean;
|
|
43
|
+
IsLoginRequired: boolean;
|
|
44
|
+
TilesetBackfaceCulling: boolean;
|
|
45
|
+
TopPanelComponents?: string[];
|
|
46
|
+
LeftPanelComponents?: string[];
|
|
47
|
+
PostProcessFXAA?: boolean;
|
|
48
|
+
Shadows: boolean;
|
|
49
|
+
Shadow: {
|
|
50
|
+
StaticCamera: IShadowSettings;
|
|
51
|
+
MovingCamera: IShadowSettings;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function Get(api: BruceApi, viewId: string): Promise<IView>;
|
|
55
|
+
function GetList(api: BruceApi): Promise<IView[]>;
|
|
56
|
+
function Delete(api: BruceApi, viewId: string): Promise<void>;
|
|
57
|
+
function Update(api: BruceApi, data: IView): Promise<IView>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { BruceApi, UTC } from "../bruce-models";
|
|
3
|
+
export declare namespace PendingAction {
|
|
4
|
+
interface IAction {
|
|
5
|
+
ID: number;
|
|
6
|
+
"CreatedBy.Application": string;
|
|
7
|
+
"Created.Time": UTC.IUTC;
|
|
8
|
+
"CreatedByUser.ID": string;
|
|
9
|
+
Result: string;
|
|
10
|
+
Progress: number;
|
|
11
|
+
"Completed.Time": UTC.IUTC;
|
|
12
|
+
Description: string;
|
|
13
|
+
Status: EStatus;
|
|
14
|
+
lastUpdated: UTC.IUTC;
|
|
15
|
+
}
|
|
16
|
+
enum EStatus {
|
|
17
|
+
InProgress = "IN_PROGRESS",
|
|
18
|
+
Cancelled = "CANCELLED",
|
|
19
|
+
Complete = "COMPLETE",
|
|
20
|
+
Failed = "FAILED"
|
|
21
|
+
}
|
|
22
|
+
interface IMessage {
|
|
23
|
+
"PendingAction.ID": number;
|
|
24
|
+
ID: number;
|
|
25
|
+
"CreatedBy.Application": string;
|
|
26
|
+
"Created.Time": UTC.IUTC;
|
|
27
|
+
"Message.Type": string;
|
|
28
|
+
Message: string;
|
|
29
|
+
}
|
|
30
|
+
function Get(api: BruceApi, actionId: number): Promise<IAction>;
|
|
31
|
+
function GetRelevantList(api: BruceApi, stricter?: boolean): Promise<IAction[]>;
|
|
32
|
+
function GetMessages(api: BruceApi, actionId: number, order?: Api.ESortOrder, startIndex?: number, amount?: number): Promise<IMessage[]>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BruceApi } from "../bruce-models";
|
|
2
|
+
export declare namespace Style {
|
|
3
|
+
function GetCacheKey(id: number): string;
|
|
4
|
+
function GetListCacheKey(): string;
|
|
5
|
+
enum EType {
|
|
6
|
+
Entity = "ENTITY",
|
|
7
|
+
EntityRelationship = "ENTITY_RELATIONSHIP"
|
|
8
|
+
}
|
|
9
|
+
interface IEntitySettings {
|
|
10
|
+
pointStyle?: any;
|
|
11
|
+
polygonStyle?: any;
|
|
12
|
+
polylineStyle?: any;
|
|
13
|
+
modelStyle?: any;
|
|
14
|
+
}
|
|
15
|
+
interface IRelationSettings {
|
|
16
|
+
lineColor?: any;
|
|
17
|
+
lineWidth?: any;
|
|
18
|
+
heightDistanceRatio?: any;
|
|
19
|
+
duration?: any;
|
|
20
|
+
}
|
|
21
|
+
type Settings = IEntitySettings | IRelationSettings;
|
|
22
|
+
interface IStyle {
|
|
23
|
+
ID: number;
|
|
24
|
+
Name: string;
|
|
25
|
+
Settings: Settings;
|
|
26
|
+
Type: EType;
|
|
27
|
+
}
|
|
28
|
+
function GetList(api: BruceApi): Promise<IStyle[]>;
|
|
29
|
+
function Get(api: BruceApi, id: number): Promise<IStyle>;
|
|
30
|
+
function Update(api: BruceApi, data: IStyle): Promise<IStyle>;
|
|
31
|
+
function Delete(api: BruceApi, id: number): Promise<void>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Tileset } from "../bruce-models";
|
|
2
|
+
import { Carto } from "../common/carto";
|
|
3
|
+
export declare namespace TilesetCad {
|
|
4
|
+
interface ISettings {
|
|
5
|
+
rootEntityId: string;
|
|
6
|
+
entityTypeId: string;
|
|
7
|
+
styleId?: number;
|
|
8
|
+
lodKey?: string;
|
|
9
|
+
movePivot?: Tileset.EPivot;
|
|
10
|
+
ucsId?: number;
|
|
11
|
+
epsg?: number;
|
|
12
|
+
thumbFileId?: string;
|
|
13
|
+
location?: Carto.ICarto;
|
|
14
|
+
offset?: any;
|
|
15
|
+
transform?: Tileset.ITransform;
|
|
16
|
+
doubleSided?: boolean;
|
|
17
|
+
b3dmFileSize?: number;
|
|
18
|
+
maximumScreenSpaceError?: number;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Bounds } from "../common/bounds";
|
|
2
|
+
export declare namespace TilesetEntitiesMapTiles {
|
|
3
|
+
enum ETileSize {
|
|
4
|
+
IMG_256 = 256,
|
|
5
|
+
IMG_512 = 512,
|
|
6
|
+
IMG_1024 = 1024,
|
|
7
|
+
IMG_2048 = 2048
|
|
8
|
+
}
|
|
9
|
+
interface ISettings {
|
|
10
|
+
imageSize: ETileSize;
|
|
11
|
+
levelMin: number;
|
|
12
|
+
levelMax: number;
|
|
13
|
+
entityTypeId: string;
|
|
14
|
+
styleId: number;
|
|
15
|
+
filter: any;
|
|
16
|
+
boundaries: Bounds.IBounds;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Bounds } from "../bruce-models";
|
|
2
|
+
export declare namespace TilesetEntities {
|
|
3
|
+
interface ISettings {
|
|
4
|
+
zoomControl?: any[];
|
|
5
|
+
boundaries?: Bounds.IBounds;
|
|
6
|
+
filter?: any;
|
|
7
|
+
altitudeRefType?: string;
|
|
8
|
+
terrainSource?: string;
|
|
9
|
+
terrainUri?: string;
|
|
10
|
+
doubleSided?: boolean;
|
|
11
|
+
entityTypeId?: string;
|
|
12
|
+
styleId?: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare namespace TilesetExtMapTiles {
|
|
2
|
+
enum EType {
|
|
3
|
+
TileMapImagery = "TileMapImagery",
|
|
4
|
+
OpenStreetMapImagery = "OpenStreetMapImagery",
|
|
5
|
+
MapBoxImagery = "MapBoxImagery",
|
|
6
|
+
CesiumIon = "CesiumIon"
|
|
7
|
+
}
|
|
8
|
+
interface ISettings {
|
|
9
|
+
url?: string;
|
|
10
|
+
mapType?: EType;
|
|
11
|
+
sourceExt?: string;
|
|
12
|
+
ionId?: number;
|
|
13
|
+
mapBoxStyleId?: string;
|
|
14
|
+
mapBoxAccount?: string;
|
|
15
|
+
mapBoxKey?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Tileset } from "../bruce-models";
|
|
2
|
+
import { Carto } from "../common/carto";
|
|
3
|
+
export declare namespace TilesetPointcloud {
|
|
4
|
+
interface ISettings {
|
|
5
|
+
sourceFileIds: string[];
|
|
6
|
+
location: Carto.ICarto;
|
|
7
|
+
transform: Tileset.ITransform;
|
|
8
|
+
pntFileSize?: number;
|
|
9
|
+
epsg?: number;
|
|
10
|
+
attenuation?: boolean;
|
|
11
|
+
attenuationMax?: number;
|
|
12
|
+
movePivot?: Tileset.EPivot;
|
|
13
|
+
maximumScreenSpaceError?: number;
|
|
14
|
+
}
|
|
15
|
+
}
|