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,118 +1,118 @@
|
|
|
1
|
-
import { Api } from "../api/api";
|
|
2
|
-
import { BruceApi } from "../api/bruce-api";
|
|
3
|
-
import { Bounds } from "../common/bounds";
|
|
4
|
-
import { Geometry } from "../common/geometry";
|
|
5
|
-
import { Transform } from "../common/transform";
|
|
6
|
-
import { UTC } from "../common/utc";
|
|
7
|
-
import { EntityType } from "./entity-type";
|
|
8
|
-
import { IDictionary } from "../common/dictionary";
|
|
9
|
-
import { Carto } from "../bruce-models";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Describes the "Entity" concept within Bruce.
|
|
13
|
-
* An entity is a JSON blob containing both internal data and user-defined data.
|
|
14
|
-
* Entity records have many thinks linked to them through their UIDs such as links, files and relationships.
|
|
15
|
-
*/
|
|
16
|
-
export declare namespace Entity {
|
|
17
|
-
function GetCacheKey(entityId: string, entityTypeId?: string, expandLocation?: boolean): string;
|
|
18
|
-
interface IEntity extends _any {
|
|
19
|
-
Bruce: {
|
|
20
|
-
"CreatedBy.User.ID"?: string;
|
|
21
|
-
CreatedTime?: UTC.IUTC;
|
|
22
|
-
"EntityType.ID": string;
|
|
23
|
-
ID?: string;
|
|
24
|
-
"Layer.ID"?: number[];
|
|
25
|
-
};
|
|
26
|
-
location?: Carto.ICarto;
|
|
27
|
-
boundaries?: Bounds.IBounds;
|
|
28
|
-
transform?: Transform.ITransform;
|
|
29
|
-
position?: number[][];
|
|
30
|
-
geometry?: Geometry.IGeometry;
|
|
31
|
-
tilesetID?: string[];
|
|
32
|
-
worldPosition?: number[][];
|
|
33
|
-
}
|
|
34
|
-
function Get(params: {
|
|
35
|
-
api: BruceApi.Api;
|
|
36
|
-
entityId: string;
|
|
37
|
-
entityTypeId?: string;
|
|
38
|
-
expandLocation?: boolean;
|
|
39
|
-
req?: Api.IReqParams;
|
|
40
|
-
}): Promise<{
|
|
41
|
-
entity: IEntity;
|
|
42
|
-
}>;
|
|
43
|
-
function GetListByIds(params: {
|
|
44
|
-
api: BruceApi.Api;
|
|
45
|
-
entityIds: string[];
|
|
46
|
-
req?: Api.IReqParams;
|
|
47
|
-
}): Promise<{
|
|
48
|
-
entities: IEntity[];
|
|
49
|
-
}>;
|
|
50
|
-
function Delete(params: {
|
|
51
|
-
api: BruceApi.Api;
|
|
52
|
-
entityId: string;
|
|
53
|
-
req?: Api.IReqParams;
|
|
54
|
-
}): Promise<void>;
|
|
55
|
-
function DeleteList(params: {
|
|
56
|
-
api: BruceApi.Api;
|
|
57
|
-
entityIds: string[];
|
|
58
|
-
req?: Api.IReqParams;
|
|
59
|
-
}): Promise<void>;
|
|
60
|
-
function Update(params: {
|
|
61
|
-
api: BruceApi.Api;
|
|
62
|
-
entity: IEntity;
|
|
63
|
-
override: boolean;
|
|
64
|
-
req?: Api.IReqParams;
|
|
65
|
-
}): Promise<{
|
|
66
|
-
entity: IEntity;
|
|
67
|
-
}>;
|
|
68
|
-
function RemoveTag(params: {
|
|
69
|
-
entity: IEntity;
|
|
70
|
-
tagId: number;
|
|
71
|
-
}): void;
|
|
72
|
-
function AddTag(params: {
|
|
73
|
-
entity: IEntity;
|
|
74
|
-
tagId: number;
|
|
75
|
-
}): void;
|
|
76
|
-
function SetValue(params: {
|
|
77
|
-
entity: IEntity;
|
|
78
|
-
path: string[];
|
|
79
|
-
value: any;
|
|
80
|
-
}): void;
|
|
81
|
-
function GetValue(params: {
|
|
82
|
-
entity: IEntity;
|
|
83
|
-
path: string[];
|
|
84
|
-
}): any;
|
|
85
|
-
/**
|
|
86
|
-
* Calculates an entity's name based on attribute priority set in the type.
|
|
87
|
-
* @param params
|
|
88
|
-
* If true, will return the entity ID if no name can be calculated.
|
|
89
|
-
* Otherwise it returns null.
|
|
90
|
-
* @returns
|
|
91
|
-
*/
|
|
92
|
-
function CalculateName(params: {
|
|
93
|
-
entity: IEntity;
|
|
94
|
-
type: EntityType.IEntityType;
|
|
95
|
-
defaultToId?: boolean;
|
|
96
|
-
}): string;
|
|
97
|
-
interface IFilter {
|
|
98
|
-
orderBy?: any;
|
|
99
|
-
entityTypeId?: string;
|
|
100
|
-
layerIds?: number[];
|
|
101
|
-
bounds?: Bounds.IReqBounds;
|
|
102
|
-
pageSize?: number;
|
|
103
|
-
pageIndex?: number;
|
|
104
|
-
lodCategoryId?: string;
|
|
105
|
-
sortOrder?: Api.ESortOrder;
|
|
106
|
-
entityTypeConditions?: IDictionary<any>;
|
|
107
|
-
}
|
|
108
|
-
function GetList(params: {
|
|
109
|
-
api: BruceApi.Api;
|
|
110
|
-
filter: IFilter;
|
|
111
|
-
viaCdn?: boolean;
|
|
112
|
-
viaCdnCacheToken?: number | string;
|
|
113
|
-
req?: Api.IReqParams;
|
|
114
|
-
}): Promise<{
|
|
115
|
-
entities: IEntity[];
|
|
116
|
-
}>;
|
|
117
|
-
}
|
|
118
|
-
export {};
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { BruceApi } from "../api/bruce-api";
|
|
3
|
+
import { Bounds } from "../common/bounds";
|
|
4
|
+
import { Geometry } from "../common/geometry";
|
|
5
|
+
import { Transform } from "../common/transform";
|
|
6
|
+
import { UTC } from "../common/utc";
|
|
7
|
+
import { EntityType } from "./entity-type";
|
|
8
|
+
import { IDictionary } from "../common/dictionary";
|
|
9
|
+
import { Carto } from "../bruce-models";
|
|
10
|
+
type _any = any;
|
|
11
|
+
/**
|
|
12
|
+
* Describes the "Entity" concept within Bruce.
|
|
13
|
+
* An entity is a JSON blob containing both internal data and user-defined data.
|
|
14
|
+
* Entity records have many thinks linked to them through their UIDs such as links, files and relationships.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace Entity {
|
|
17
|
+
function GetCacheKey(entityId: string, entityTypeId?: string, expandLocation?: boolean): string;
|
|
18
|
+
interface IEntity extends _any {
|
|
19
|
+
Bruce: {
|
|
20
|
+
"CreatedBy.User.ID"?: string;
|
|
21
|
+
CreatedTime?: UTC.IUTC;
|
|
22
|
+
"EntityType.ID": string;
|
|
23
|
+
ID?: string;
|
|
24
|
+
"Layer.ID"?: number[];
|
|
25
|
+
};
|
|
26
|
+
location?: Carto.ICarto;
|
|
27
|
+
boundaries?: Bounds.IBounds;
|
|
28
|
+
transform?: Transform.ITransform;
|
|
29
|
+
position?: number[][];
|
|
30
|
+
geometry?: Geometry.IGeometry;
|
|
31
|
+
tilesetID?: string[];
|
|
32
|
+
worldPosition?: number[][];
|
|
33
|
+
}
|
|
34
|
+
function Get(params: {
|
|
35
|
+
api: BruceApi.Api;
|
|
36
|
+
entityId: string;
|
|
37
|
+
entityTypeId?: string;
|
|
38
|
+
expandLocation?: boolean;
|
|
39
|
+
req?: Api.IReqParams;
|
|
40
|
+
}): Promise<{
|
|
41
|
+
entity: IEntity;
|
|
42
|
+
}>;
|
|
43
|
+
function GetListByIds(params: {
|
|
44
|
+
api: BruceApi.Api;
|
|
45
|
+
entityIds: string[];
|
|
46
|
+
req?: Api.IReqParams;
|
|
47
|
+
}): Promise<{
|
|
48
|
+
entities: IEntity[];
|
|
49
|
+
}>;
|
|
50
|
+
function Delete(params: {
|
|
51
|
+
api: BruceApi.Api;
|
|
52
|
+
entityId: string;
|
|
53
|
+
req?: Api.IReqParams;
|
|
54
|
+
}): Promise<void>;
|
|
55
|
+
function DeleteList(params: {
|
|
56
|
+
api: BruceApi.Api;
|
|
57
|
+
entityIds: string[];
|
|
58
|
+
req?: Api.IReqParams;
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
function Update(params: {
|
|
61
|
+
api: BruceApi.Api;
|
|
62
|
+
entity: IEntity;
|
|
63
|
+
override: boolean;
|
|
64
|
+
req?: Api.IReqParams;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
entity: IEntity;
|
|
67
|
+
}>;
|
|
68
|
+
function RemoveTag(params: {
|
|
69
|
+
entity: IEntity;
|
|
70
|
+
tagId: number;
|
|
71
|
+
}): void;
|
|
72
|
+
function AddTag(params: {
|
|
73
|
+
entity: IEntity;
|
|
74
|
+
tagId: number;
|
|
75
|
+
}): void;
|
|
76
|
+
function SetValue(params: {
|
|
77
|
+
entity: IEntity;
|
|
78
|
+
path: string[];
|
|
79
|
+
value: any;
|
|
80
|
+
}): void;
|
|
81
|
+
function GetValue(params: {
|
|
82
|
+
entity: IEntity;
|
|
83
|
+
path: string[];
|
|
84
|
+
}): any;
|
|
85
|
+
/**
|
|
86
|
+
* Calculates an entity's name based on attribute priority set in the type.
|
|
87
|
+
* @param params
|
|
88
|
+
* If true, will return the entity ID if no name can be calculated.
|
|
89
|
+
* Otherwise it returns null.
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
function CalculateName(params: {
|
|
93
|
+
entity: IEntity;
|
|
94
|
+
type: EntityType.IEntityType;
|
|
95
|
+
defaultToId?: boolean;
|
|
96
|
+
}): string;
|
|
97
|
+
interface IFilter {
|
|
98
|
+
orderBy?: any;
|
|
99
|
+
entityTypeId?: string;
|
|
100
|
+
layerIds?: number[];
|
|
101
|
+
bounds?: Bounds.IReqBounds;
|
|
102
|
+
pageSize?: number;
|
|
103
|
+
pageIndex?: number;
|
|
104
|
+
lodCategoryId?: string;
|
|
105
|
+
sortOrder?: Api.ESortOrder;
|
|
106
|
+
entityTypeConditions?: IDictionary<any>;
|
|
107
|
+
}
|
|
108
|
+
function GetList(params: {
|
|
109
|
+
api: BruceApi.Api;
|
|
110
|
+
filter: IFilter;
|
|
111
|
+
viaCdn?: boolean;
|
|
112
|
+
viaCdnCacheToken?: number | string;
|
|
113
|
+
req?: Api.IReqParams;
|
|
114
|
+
}): Promise<{
|
|
115
|
+
entities: IEntity[];
|
|
116
|
+
}>;
|
|
117
|
+
}
|
|
118
|
+
export {};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { BruceEvent } from "../../common/bruce-event";
|
|
2
|
-
import { ViewMonitor } from "./view-monitor";
|
|
3
|
-
/**
|
|
4
|
-
* This is a batched "arbitrary data" getter.
|
|
5
|
-
* You feed it an array of data, then it will emit that data in batches when the view changes.
|
|
6
|
-
*/
|
|
7
|
-
export declare namespace BatchedDataGetter {
|
|
8
|
-
class Getter<T> {
|
|
9
|
-
private viewPort;
|
|
10
|
-
private viewPortRemoval;
|
|
11
|
-
private batchSize;
|
|
12
|
-
private viewRect;
|
|
13
|
-
private viewCenter;
|
|
14
|
-
private getterInterval;
|
|
15
|
-
private data;
|
|
16
|
-
private onUpdate;
|
|
17
|
-
get OnUpdate(): BruceEvent<T[]>;
|
|
18
|
-
constructor(data: T[], viewPort: ViewMonitor.IMonitor, batchSize: number);
|
|
19
|
-
Start(): void;
|
|
20
|
-
Dispose(): void;
|
|
21
|
-
private updateViewport;
|
|
22
|
-
private updateBounds;
|
|
23
|
-
private startGetterLoop;
|
|
24
|
-
private processBatch;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
import { BruceEvent } from "../../common/bruce-event";
|
|
2
|
+
import { ViewMonitor } from "./view-monitor";
|
|
3
|
+
/**
|
|
4
|
+
* This is a batched "arbitrary data" getter.
|
|
5
|
+
* You feed it an array of data, then it will emit that data in batches when the view changes.
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace BatchedDataGetter {
|
|
8
|
+
class Getter<T> {
|
|
9
|
+
private viewPort;
|
|
10
|
+
private viewPortRemoval;
|
|
11
|
+
private batchSize;
|
|
12
|
+
private viewRect;
|
|
13
|
+
private viewCenter;
|
|
14
|
+
private getterInterval;
|
|
15
|
+
private data;
|
|
16
|
+
private onUpdate;
|
|
17
|
+
get OnUpdate(): BruceEvent<T[]>;
|
|
18
|
+
constructor(data: T[], viewPort: ViewMonitor.IMonitor, batchSize: number);
|
|
19
|
+
Start(): void;
|
|
20
|
+
Dispose(): void;
|
|
21
|
+
private updateViewport;
|
|
22
|
+
private updateBounds;
|
|
23
|
+
private startGetterLoop;
|
|
24
|
+
private processBatch;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { BruceApi } from "../../api/bruce-api";
|
|
2
|
-
import { BruceEvent } from "../../common/bruce-event";
|
|
3
|
-
import { IDictionary } from "../../common/dictionary";
|
|
4
|
-
import { Entity } from "../entity";
|
|
5
|
-
import { EntityGlobe } from "./entity-globe";
|
|
6
|
-
import { ViewMonitor } from "./view-monitor";
|
|
7
|
-
/**
|
|
8
|
-
* This is a batched entity getter.
|
|
9
|
-
* It will scan for entity records in a view-area and emit them in batches.
|
|
10
|
-
* It will restart scanning if the camera moves.
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace EntityFilterGetter {
|
|
13
|
-
enum EStatus {
|
|
14
|
-
Scanning = "SCANNING",
|
|
15
|
-
Loading = "LOADING"
|
|
16
|
-
}
|
|
17
|
-
interface IStatusUpdate {
|
|
18
|
-
msg: EStatus;
|
|
19
|
-
revoking: boolean;
|
|
20
|
-
}
|
|
21
|
-
class Getter {
|
|
22
|
-
private onUpdate;
|
|
23
|
-
get OnUpdate(): BruceEvent<Entity.IEntity[]>;
|
|
24
|
-
LastStateUpdates: IDictionary<IStatusUpdate>;
|
|
25
|
-
private onStateUpdate;
|
|
26
|
-
get OnStateUpdate(): BruceEvent<IStatusUpdate>;
|
|
27
|
-
private onScanUpdate;
|
|
28
|
-
get OnScanUpdate(): BruceEvent<EntityGlobe.Cell[]>;
|
|
29
|
-
private api;
|
|
30
|
-
private viewPort;
|
|
31
|
-
private viewPortChangeRemoval;
|
|
32
|
-
private cells;
|
|
33
|
-
private registeredItems;
|
|
34
|
-
private getterLoopId;
|
|
35
|
-
private viaCdn;
|
|
36
|
-
private typeId;
|
|
37
|
-
private batchSize;
|
|
38
|
-
private tagIds;
|
|
39
|
-
private minHeight;
|
|
40
|
-
private maxHeight;
|
|
41
|
-
private attrFilter;
|
|
42
|
-
private viewRect;
|
|
43
|
-
private viewCenter;
|
|
44
|
-
constructor(api: BruceApi.Api, viewPort: ViewMonitor.IMonitor, typeId: string, batchSize?: number, attrFilter?: IDictionary<any>, viaCdn?: boolean);
|
|
45
|
-
/**
|
|
46
|
-
* Returns id that represents the combined menu item parameters.
|
|
47
|
-
* If integrity changes while a request is running, the request will not emit a response.
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
private getIntegrityId;
|
|
51
|
-
private viewAreaSub;
|
|
52
|
-
private viewAreaDispose;
|
|
53
|
-
GetMenuItems(): string[];
|
|
54
|
-
IncludeMenuItem(menuItemId: string, layerIds: number[], minHeight: number, maxHeight: number): void;
|
|
55
|
-
ExcludeMenuItem(menuItemId: string): void;
|
|
56
|
-
private updateBounds;
|
|
57
|
-
private updateState;
|
|
58
|
-
private postStatus;
|
|
59
|
-
private startGetterLoop;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
import { BruceApi } from "../../api/bruce-api";
|
|
2
|
+
import { BruceEvent } from "../../common/bruce-event";
|
|
3
|
+
import { IDictionary } from "../../common/dictionary";
|
|
4
|
+
import { Entity } from "../entity";
|
|
5
|
+
import { EntityGlobe } from "./entity-globe";
|
|
6
|
+
import { ViewMonitor } from "./view-monitor";
|
|
7
|
+
/**
|
|
8
|
+
* This is a batched entity getter.
|
|
9
|
+
* It will scan for entity records in a view-area and emit them in batches.
|
|
10
|
+
* It will restart scanning if the camera moves.
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace EntityFilterGetter {
|
|
13
|
+
enum EStatus {
|
|
14
|
+
Scanning = "SCANNING",
|
|
15
|
+
Loading = "LOADING"
|
|
16
|
+
}
|
|
17
|
+
interface IStatusUpdate {
|
|
18
|
+
msg: EStatus;
|
|
19
|
+
revoking: boolean;
|
|
20
|
+
}
|
|
21
|
+
class Getter {
|
|
22
|
+
private onUpdate;
|
|
23
|
+
get OnUpdate(): BruceEvent<Entity.IEntity[]>;
|
|
24
|
+
LastStateUpdates: IDictionary<IStatusUpdate>;
|
|
25
|
+
private onStateUpdate;
|
|
26
|
+
get OnStateUpdate(): BruceEvent<IStatusUpdate>;
|
|
27
|
+
private onScanUpdate;
|
|
28
|
+
get OnScanUpdate(): BruceEvent<EntityGlobe.Cell[]>;
|
|
29
|
+
private api;
|
|
30
|
+
private viewPort;
|
|
31
|
+
private viewPortChangeRemoval;
|
|
32
|
+
private cells;
|
|
33
|
+
private registeredItems;
|
|
34
|
+
private getterLoopId;
|
|
35
|
+
private viaCdn;
|
|
36
|
+
private typeId;
|
|
37
|
+
private batchSize;
|
|
38
|
+
private tagIds;
|
|
39
|
+
private minHeight;
|
|
40
|
+
private maxHeight;
|
|
41
|
+
private attrFilter;
|
|
42
|
+
private viewRect;
|
|
43
|
+
private viewCenter;
|
|
44
|
+
constructor(api: BruceApi.Api, viewPort: ViewMonitor.IMonitor, typeId: string, batchSize?: number, attrFilter?: IDictionary<any>, viaCdn?: boolean);
|
|
45
|
+
/**
|
|
46
|
+
* Returns id that represents the combined menu item parameters.
|
|
47
|
+
* If integrity changes while a request is running, the request will not emit a response.
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
private getIntegrityId;
|
|
51
|
+
private viewAreaSub;
|
|
52
|
+
private viewAreaDispose;
|
|
53
|
+
GetMenuItems(): string[];
|
|
54
|
+
IncludeMenuItem(menuItemId: string, layerIds: number[], minHeight: number, maxHeight: number): void;
|
|
55
|
+
ExcludeMenuItem(menuItemId: string): void;
|
|
56
|
+
private updateBounds;
|
|
57
|
+
private updateState;
|
|
58
|
+
private postStatus;
|
|
59
|
+
private startGetterLoop;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Bounds } from "../../common/bounds";
|
|
2
|
-
import { Carto } from "../../common/carto";
|
|
3
|
-
/**
|
|
4
|
-
* This is a helper for making entity requests based on a grid area.
|
|
5
|
-
* It will return grid cells based on given view-area then will remember when stuff-
|
|
6
|
-
* was fully-fetched for those cells to avoid making duplicate requests.
|
|
7
|
-
*/
|
|
8
|
-
export declare namespace EntityGlobe {
|
|
9
|
-
class Cell {
|
|
10
|
-
Fetched: boolean;
|
|
11
|
-
IsFetched: () => boolean;
|
|
12
|
-
FetchPageIndex: number;
|
|
13
|
-
Boundaries: Bounds.IBounds;
|
|
14
|
-
Fetching: boolean;
|
|
15
|
-
GetBounds(): Bounds.IReqBounds;
|
|
16
|
-
}
|
|
17
|
-
class Grid {
|
|
18
|
-
private cells;
|
|
19
|
-
GetCellsForView(cameraPos: Carto.ICarto, viewRect: Bounds.IReqBounds): Cell[];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
import { Bounds } from "../../common/bounds";
|
|
2
|
+
import { Carto } from "../../common/carto";
|
|
3
|
+
/**
|
|
4
|
+
* This is a helper for making entity requests based on a grid area.
|
|
5
|
+
* It will return grid cells based on given view-area then will remember when stuff-
|
|
6
|
+
* was fully-fetched for those cells to avoid making duplicate requests.
|
|
7
|
+
*/
|
|
8
|
+
export declare namespace EntityGlobe {
|
|
9
|
+
class Cell {
|
|
10
|
+
Fetched: boolean;
|
|
11
|
+
IsFetched: () => boolean;
|
|
12
|
+
FetchPageIndex: number;
|
|
13
|
+
Boundaries: Bounds.IBounds;
|
|
14
|
+
Fetching: boolean;
|
|
15
|
+
GetBounds(): Bounds.IReqBounds;
|
|
16
|
+
}
|
|
17
|
+
class Grid {
|
|
18
|
+
private cells;
|
|
19
|
+
GetCellsForView(cameraPos: Carto.ICarto, viewRect: Bounds.IReqBounds): Cell[];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Bounds, BruceEvent, Carto } from "../../bruce-models";
|
|
2
|
-
export declare namespace ViewMonitor {
|
|
3
|
-
interface IArea {
|
|
4
|
-
bounds: Bounds.IReqBounds;
|
|
5
|
-
target: Carto.ICarto;
|
|
6
|
-
}
|
|
7
|
-
interface IMonitor {
|
|
8
|
-
Updated(): BruceEvent<IArea>;
|
|
9
|
-
GetBounds(): Bounds.IReqBounds;
|
|
10
|
-
GetTarget(): Carto.ICarto;
|
|
11
|
-
DoUpdate(): void;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
import { Bounds, BruceEvent, Carto } from "../../bruce-models";
|
|
2
|
+
export declare namespace ViewMonitor {
|
|
3
|
+
interface IArea {
|
|
4
|
+
bounds: Bounds.IReqBounds;
|
|
5
|
+
target: Carto.ICarto;
|
|
6
|
+
}
|
|
7
|
+
interface IMonitor {
|
|
8
|
+
Updated(): BruceEvent<IArea>;
|
|
9
|
+
GetBounds(): Bounds.IReqBounds;
|
|
10
|
+
GetTarget(): Carto.ICarto;
|
|
11
|
+
DoUpdate(): void;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { Api } from "../api/api";
|
|
2
|
-
import { BruceApi } from "../api/bruce-api";
|
|
3
|
-
/**
|
|
4
|
-
* TODO: The analysis result is currently a mix of multiple layers of legacy.
|
|
5
|
-
* We will first decide what we want it to do and then describe just the needed portions of the existing implementation.
|
|
6
|
-
*/
|
|
7
|
-
export declare namespace ImportCad {
|
|
8
|
-
interface IAnalyzeParams {
|
|
9
|
-
"TempFile.ID": string;
|
|
10
|
-
"OriginalIFCFile.Name": string;
|
|
11
|
-
}
|
|
12
|
-
interface IAnalyzeRes {
|
|
13
|
-
PendingActionID: number;
|
|
14
|
-
}
|
|
15
|
-
interface IImportParams {
|
|
16
|
-
"BRZFilePath"?: string;
|
|
17
|
-
"TempFile.ID": string;
|
|
18
|
-
"OriginalIFCFile.Name": string;
|
|
19
|
-
"IFCSettings": {
|
|
20
|
-
"ClassificationRules": {
|
|
21
|
-
"NewIFCStandard.Name": string;
|
|
22
|
-
"IFCStandard": string;
|
|
23
|
-
"IsExtendingAllowed": boolean;
|
|
24
|
-
"AllowAddingNewEntityTypes": boolean;
|
|
25
|
-
"AllowAddingNewAttributes": boolean;
|
|
26
|
-
"EntityTypesDerivedFromAttribute": string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
interface IImportRes {
|
|
31
|
-
PendingActionID: number;
|
|
32
|
-
}
|
|
33
|
-
function Analyze(params: {
|
|
34
|
-
api: BruceApi.Api;
|
|
35
|
-
fileAnalyze: IAnalyzeParams;
|
|
36
|
-
req?: Api.IReqParams;
|
|
37
|
-
}): Promise<IAnalyzeRes>;
|
|
38
|
-
function ImportEntities(params: {
|
|
39
|
-
api: BruceApi.Api;
|
|
40
|
-
fileImport: IImportParams;
|
|
41
|
-
req?: Api.IReqParams;
|
|
42
|
-
}): Promise<IImportRes>;
|
|
43
|
-
/**
|
|
44
|
-
* Parses the completed pending action result from running "ImportEntities".
|
|
45
|
-
* This will return the root entity's id if any is present.
|
|
46
|
-
* @param paResult
|
|
47
|
-
*/
|
|
48
|
-
function ParseRootId(paResult: string | Object): string;
|
|
49
|
-
}
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { BruceApi } from "../api/bruce-api";
|
|
3
|
+
/**
|
|
4
|
+
* TODO: The analysis result is currently a mix of multiple layers of legacy.
|
|
5
|
+
* We will first decide what we want it to do and then describe just the needed portions of the existing implementation.
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace ImportCad {
|
|
8
|
+
interface IAnalyzeParams {
|
|
9
|
+
"TempFile.ID": string;
|
|
10
|
+
"OriginalIFCFile.Name": string;
|
|
11
|
+
}
|
|
12
|
+
interface IAnalyzeRes {
|
|
13
|
+
PendingActionID: number;
|
|
14
|
+
}
|
|
15
|
+
interface IImportParams {
|
|
16
|
+
"BRZFilePath"?: string;
|
|
17
|
+
"TempFile.ID": string;
|
|
18
|
+
"OriginalIFCFile.Name": string;
|
|
19
|
+
"IFCSettings": {
|
|
20
|
+
"ClassificationRules": {
|
|
21
|
+
"NewIFCStandard.Name": string;
|
|
22
|
+
"IFCStandard": string;
|
|
23
|
+
"IsExtendingAllowed": boolean;
|
|
24
|
+
"AllowAddingNewEntityTypes": boolean;
|
|
25
|
+
"AllowAddingNewAttributes": boolean;
|
|
26
|
+
"EntityTypesDerivedFromAttribute": string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
interface IImportRes {
|
|
31
|
+
PendingActionID: number;
|
|
32
|
+
}
|
|
33
|
+
function Analyze(params: {
|
|
34
|
+
api: BruceApi.Api;
|
|
35
|
+
fileAnalyze: IAnalyzeParams;
|
|
36
|
+
req?: Api.IReqParams;
|
|
37
|
+
}): Promise<IAnalyzeRes>;
|
|
38
|
+
function ImportEntities(params: {
|
|
39
|
+
api: BruceApi.Api;
|
|
40
|
+
fileImport: IImportParams;
|
|
41
|
+
req?: Api.IReqParams;
|
|
42
|
+
}): Promise<IImportRes>;
|
|
43
|
+
/**
|
|
44
|
+
* Parses the completed pending action result from running "ImportEntities".
|
|
45
|
+
* This will return the root entity's id if any is present.
|
|
46
|
+
* @param paResult
|
|
47
|
+
*/
|
|
48
|
+
function ParseRootId(paResult: string | Object): string;
|
|
49
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Api } from "../api/api";
|
|
2
|
-
import { BruceApi } from "../api/bruce-api";
|
|
3
|
-
export declare namespace ImportCsv {
|
|
4
|
-
interface IImportParams {
|
|
5
|
-
"TempFile.ID": string;
|
|
6
|
-
"CSVSettings": {
|
|
7
|
-
"IsTitleRow": boolean;
|
|
8
|
-
"Delimiter": string;
|
|
9
|
-
"IsRecordQuoted": boolean;
|
|
10
|
-
"Columns": string[];
|
|
11
|
-
};
|
|
12
|
-
"OriginalCSVFile.Name": string;
|
|
13
|
-
"ImportMode": string;
|
|
14
|
-
"EntityType.ID": string;
|
|
15
|
-
"TargetDataSchema": any;
|
|
16
|
-
"DataMapping": any;
|
|
17
|
-
"Layers": number[];
|
|
18
|
-
"SkipUnresolvedRows": boolean;
|
|
19
|
-
"DeleteNonupdatedEntities": boolean;
|
|
20
|
-
"Async": boolean;
|
|
21
|
-
"SkipFailedEntities": boolean;
|
|
22
|
-
}
|
|
23
|
-
interface IImportRes {
|
|
24
|
-
PendingActionID: number;
|
|
25
|
-
}
|
|
26
|
-
function ImportEntities(params: {
|
|
27
|
-
api: BruceApi.Api;
|
|
28
|
-
fileImport: IImportParams;
|
|
29
|
-
req?: Api.IReqParams;
|
|
30
|
-
}): Promise<IImportRes>;
|
|
31
|
-
}
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { BruceApi } from "../api/bruce-api";
|
|
3
|
+
export declare namespace ImportCsv {
|
|
4
|
+
interface IImportParams {
|
|
5
|
+
"TempFile.ID": string;
|
|
6
|
+
"CSVSettings": {
|
|
7
|
+
"IsTitleRow": boolean;
|
|
8
|
+
"Delimiter": string;
|
|
9
|
+
"IsRecordQuoted": boolean;
|
|
10
|
+
"Columns": string[];
|
|
11
|
+
};
|
|
12
|
+
"OriginalCSVFile.Name": string;
|
|
13
|
+
"ImportMode": string;
|
|
14
|
+
"EntityType.ID": string;
|
|
15
|
+
"TargetDataSchema": any;
|
|
16
|
+
"DataMapping": any;
|
|
17
|
+
"Layers": number[];
|
|
18
|
+
"SkipUnresolvedRows": boolean;
|
|
19
|
+
"DeleteNonupdatedEntities": boolean;
|
|
20
|
+
"Async": boolean;
|
|
21
|
+
"SkipFailedEntities": boolean;
|
|
22
|
+
}
|
|
23
|
+
interface IImportRes {
|
|
24
|
+
PendingActionID: number;
|
|
25
|
+
}
|
|
26
|
+
function ImportEntities(params: {
|
|
27
|
+
api: BruceApi.Api;
|
|
28
|
+
fileImport: IImportParams;
|
|
29
|
+
req?: Api.IReqParams;
|
|
30
|
+
}): Promise<IImportRes>;
|
|
31
|
+
}
|