bruce-cesium 6.6.0 → 6.6.2
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-cesium.es5.js +502 -75
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +500 -73
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/getters/entity-filter-getter.js +113 -3
- package/dist/lib/rendering/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/rendering/render-managers/common/shared-getters.js +4 -0
- package/dist/lib/rendering/render-managers/common/shared-getters.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-datalab-render-manager.js +383 -67
- package/dist/lib/rendering/render-managers/entities/entities-datalab-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/getters/entity-filter-getter.d.ts +10 -1
- package/dist/types/rendering/render-managers/common/shared-getters.d.ts +1 -0
- package/dist/types/rendering/render-managers/entities/entities-datalab-render-manager.d.ts +33 -4
- package/package.json +1 -1
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataLabRenderManager = void 0;
|
|
4
4
|
const bruce_models_1 = require("bruce-models");
|
|
5
|
+
const entity_filter_getter_1 = require("../../getters/entity-filter-getter");
|
|
5
6
|
const entity_render_engine_1 = require("../../entity-render-engine");
|
|
6
|
-
const
|
|
7
|
+
const visuals_register_1 = require("../../visuals-register");
|
|
8
|
+
const render_manager_1 = require("../render-manager");
|
|
9
|
+
const entity_rerender_maintain_state_1 = require("../common/entity-rerender-maintain-state");
|
|
10
|
+
const BATCH_SIZE = 500;
|
|
11
|
+
const CHECK_BATCH_SIZE = 250;
|
|
7
12
|
var DataLabRenderManager;
|
|
8
13
|
(function (DataLabRenderManager) {
|
|
9
14
|
class Manager {
|
|
@@ -12,7 +17,18 @@ var DataLabRenderManager;
|
|
|
12
17
|
}
|
|
13
18
|
constructor(params) {
|
|
14
19
|
this.getter = null;
|
|
20
|
+
this.getterSub = null;
|
|
15
21
|
this.disposed = false;
|
|
22
|
+
this.renderedEntities = {};
|
|
23
|
+
this.entityCheckQueue = null;
|
|
24
|
+
this.entityCheckQueueIds = [];
|
|
25
|
+
this.isRunningCheck = false;
|
|
26
|
+
this.viewMonitorRemoval = null;
|
|
27
|
+
this.renderQueue = [];
|
|
28
|
+
this.renderQueueInterval = null;
|
|
29
|
+
this.reRenderState = new entity_rerender_maintain_state_1.EntityReRenderMaintainState();
|
|
30
|
+
this.zoomControl = [];
|
|
31
|
+
this.queryLoadId = 0;
|
|
16
32
|
const { viewer, item, apiGetter, monitor, visualsRegister } = params;
|
|
17
33
|
this.viewer = viewer;
|
|
18
34
|
this.item = item;
|
|
@@ -20,13 +36,54 @@ var DataLabRenderManager;
|
|
|
20
36
|
this.monitor = monitor;
|
|
21
37
|
this.visualsManager = visualsRegister;
|
|
22
38
|
}
|
|
23
|
-
Init() {
|
|
39
|
+
Init(params) {
|
|
24
40
|
var _a;
|
|
25
41
|
if (this.disposed) {
|
|
26
42
|
throw new Error("This manager has already been disposed.");
|
|
27
43
|
}
|
|
28
|
-
if (
|
|
29
|
-
this.item
|
|
44
|
+
if (params === null || params === void 0 ? void 0 : params.item) {
|
|
45
|
+
this.item = params.item;
|
|
46
|
+
}
|
|
47
|
+
this.queryLoadId += 1;
|
|
48
|
+
const loadId = this.queryLoadId;
|
|
49
|
+
this.unsetGetter();
|
|
50
|
+
(_a = this.viewMonitorRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
51
|
+
this.viewMonitorRemoval = null;
|
|
52
|
+
clearInterval(this.renderQueueInterval);
|
|
53
|
+
this.renderQueueInterval = null;
|
|
54
|
+
this.renderQueue = [];
|
|
55
|
+
this.renderedEntities = {};
|
|
56
|
+
this.ensureSettings();
|
|
57
|
+
this.visualsManager.RemoveRegos({
|
|
58
|
+
menuItemId: this.item.id
|
|
59
|
+
});
|
|
60
|
+
this.setEntityCheckQueue();
|
|
61
|
+
(async () => {
|
|
62
|
+
var _a, _b, _c, _d;
|
|
63
|
+
try {
|
|
64
|
+
const { query } = await bruce_models_1.DataLab.Get({
|
|
65
|
+
api: this.apiGetter.getApi(),
|
|
66
|
+
queryId: this.item.DataLabQueryID,
|
|
67
|
+
req: {
|
|
68
|
+
noCache: true
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
if (this.disposed || loadId != this.queryLoadId) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const queryItems = (_d = (_b = (_a = query === null || query === void 0 ? void 0 : query.PrimarySelectionCriteria) === null || _a === void 0 ? void 0 : _a.Items) !== null && _b !== void 0 ? _b : (_c = query === null || query === void 0 ? void 0 : query[bruce_models_1.DataLab.EReqKey.Primary]) === null || _c === void 0 ? void 0 : _c.Items) !== null && _d !== void 0 ? _d : [];
|
|
75
|
+
this.setGetter(queryItems);
|
|
76
|
+
}
|
|
77
|
+
catch (e) {
|
|
78
|
+
console.error("Failed to initialise DataLab render manager:", e);
|
|
79
|
+
}
|
|
80
|
+
})();
|
|
81
|
+
}
|
|
82
|
+
ensureSettings() {
|
|
83
|
+
var _a;
|
|
84
|
+
this.zoomControl = this.item.CameraZoomSettings;
|
|
85
|
+
if (!((_a = this.zoomControl) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
86
|
+
this.zoomControl = [
|
|
30
87
|
{
|
|
31
88
|
MinZoom: 0,
|
|
32
89
|
MaxZoom: 200000,
|
|
@@ -36,17 +93,74 @@ var DataLabRenderManager;
|
|
|
36
93
|
StyleID: 0
|
|
37
94
|
}
|
|
38
95
|
];
|
|
96
|
+
this.item.CameraZoomSettings = this.zoomControl;
|
|
39
97
|
}
|
|
40
98
|
this.renderPriority = this.item.renderPriority;
|
|
41
99
|
if (this.renderPriority == null) {
|
|
42
100
|
this.renderPriority = 3;
|
|
43
101
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this.
|
|
47
|
-
|
|
102
|
+
}
|
|
103
|
+
setGetter(queryItems) {
|
|
104
|
+
this.unsetGetter();
|
|
105
|
+
this.getter = new entity_filter_getter_1.EntityFilterGetter.Getter({
|
|
106
|
+
api: this.apiGetter.getApi(),
|
|
107
|
+
attrFilter: {},
|
|
108
|
+
batchSize: BATCH_SIZE,
|
|
109
|
+
typeIds: null,
|
|
110
|
+
viewPort: this.monitor,
|
|
111
|
+
viewer: this.viewer,
|
|
112
|
+
dataLab: {
|
|
113
|
+
queryItems: queryItems !== null && queryItems !== void 0 ? queryItems : []
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
const minMax = render_manager_1.RenderManager.GetZoomMinMax({
|
|
117
|
+
zoomControl: this.zoomControl
|
|
118
|
+
});
|
|
119
|
+
this.getter.IncludeMenuItem(this.item.id, null, [], minMax[0], minMax[1]);
|
|
120
|
+
this.getterSub = this.getter.OnUpdate.Subscribe((data) => {
|
|
121
|
+
var _a;
|
|
122
|
+
if (!((_a = data === null || data === void 0 ? void 0 : data.entities) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
this.distributeForRender(data.entities);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
unsetGetter() {
|
|
129
|
+
var _a, _b, _c;
|
|
130
|
+
(_a = this.getter) === null || _a === void 0 ? void 0 : _a.ExcludeMenuItem(this.item.id);
|
|
131
|
+
(_b = this.getterSub) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
132
|
+
this.getterSub = null;
|
|
133
|
+
(_c = this.getter) === null || _c === void 0 ? void 0 : _c.Dispose();
|
|
134
|
+
this.getter = null;
|
|
135
|
+
}
|
|
136
|
+
setEntityCheckQueue() {
|
|
137
|
+
var _a, _b;
|
|
138
|
+
(_a = this.entityCheckQueue) === null || _a === void 0 ? void 0 : _a.Dispose();
|
|
139
|
+
this.entityCheckQueue = null;
|
|
140
|
+
const displayItems = this.zoomControl ? this.zoomControl.filter(x => x.DisplayType != bruce_models_1.ZoomControl.EDisplayType.Hidden) : [];
|
|
141
|
+
const shouldCheck = displayItems.length > 1;
|
|
142
|
+
this.entityCheckQueue = new bruce_models_1.DelayQueue(() => {
|
|
143
|
+
this.doEntityCheck(Object.keys(this.renderedEntities));
|
|
144
|
+
}, shouldCheck ? 3000 : 30000);
|
|
145
|
+
(_b = this.viewMonitorRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
146
|
+
this.viewMonitorRemoval = this.monitor.Updated().Subscribe(() => {
|
|
147
|
+
var _a;
|
|
148
|
+
(_a = this.entityCheckQueue) === null || _a === void 0 ? void 0 : _a.Call();
|
|
48
149
|
});
|
|
49
|
-
|
|
150
|
+
}
|
|
151
|
+
preventCurrentCheckApiRefresh(entityIds) {
|
|
152
|
+
var _a;
|
|
153
|
+
this.reRenderState.markSkipForCurrentRun(entityIds, this.isRunningCheck);
|
|
154
|
+
if ((_a = this.entityCheckQueueIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
155
|
+
const lookup = {};
|
|
156
|
+
for (let i = 0; i < entityIds.length; i++) {
|
|
157
|
+
const id = entityIds[i];
|
|
158
|
+
if (id) {
|
|
159
|
+
lookup[id] = true;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
this.entityCheckQueueIds = this.entityCheckQueueIds.filter(id => !lookup[id]);
|
|
163
|
+
}
|
|
50
164
|
}
|
|
51
165
|
Dispose() {
|
|
52
166
|
if (this.disposed) {
|
|
@@ -55,87 +169,289 @@ var DataLabRenderManager;
|
|
|
55
169
|
this.doDispose();
|
|
56
170
|
}
|
|
57
171
|
doDispose() {
|
|
58
|
-
var _a;
|
|
172
|
+
var _a, _b;
|
|
59
173
|
this.disposed = true;
|
|
60
|
-
|
|
174
|
+
this.queryLoadId += 1;
|
|
175
|
+
this.unsetGetter();
|
|
176
|
+
(_a = this.entityCheckQueue) === null || _a === void 0 ? void 0 : _a.Dispose();
|
|
177
|
+
this.entityCheckQueue = null;
|
|
178
|
+
(_b = this.viewMonitorRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
179
|
+
this.viewMonitorRemoval = null;
|
|
180
|
+
clearInterval(this.renderQueueInterval);
|
|
181
|
+
this.renderQueueInterval = null;
|
|
182
|
+
this.renderQueue = [];
|
|
183
|
+
this.entityCheckQueueIds = [];
|
|
61
184
|
this.visualsManager.RemoveRegos({
|
|
62
185
|
menuItemId: this.item.id
|
|
63
186
|
});
|
|
64
187
|
}
|
|
65
|
-
async
|
|
66
|
-
|
|
67
|
-
if (this.disposed
|
|
188
|
+
async ReRender(params) {
|
|
189
|
+
let { entityIds, force, entities, maintain } = params;
|
|
190
|
+
if (this.disposed) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
if (entities && !entityIds) {
|
|
194
|
+
entityIds = entities.map(x => { var _a; return (_a = x.Bruce) === null || _a === void 0 ? void 0 : _a.ID; });
|
|
195
|
+
}
|
|
196
|
+
if (entityIds == null) {
|
|
197
|
+
entityIds = Object.keys(this.renderedEntities);
|
|
198
|
+
}
|
|
199
|
+
entityIds = entityIds.filter((x, index) => !!x && entityIds.indexOf(x) === index);
|
|
200
|
+
if (!entityIds.length) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (entities === null || entities === void 0 ? void 0 : entities.length) {
|
|
204
|
+
entities = [].concat(entities).filter(x => { var _a; return entityIds.includes((_a = x.Bruce) === null || _a === void 0 ? void 0 : _a.ID); });
|
|
205
|
+
if (force) {
|
|
206
|
+
this.reRenderState.bumpApiRevisions(entityIds);
|
|
207
|
+
this.preventCurrentCheckApiRefresh(entityIds);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (maintain === true && (entities === null || entities === void 0 ? void 0 : entities.length)) {
|
|
211
|
+
this.reRenderState.setMaintainedEntities(entities);
|
|
212
|
+
}
|
|
213
|
+
else if (maintain !== true) {
|
|
214
|
+
this.reRenderState.clearMaintainedEntities(entityIds);
|
|
215
|
+
}
|
|
216
|
+
this.visualsManager.MarkStale({
|
|
217
|
+
entityIds: entityIds,
|
|
218
|
+
menuItemIds: [this.item.id]
|
|
219
|
+
});
|
|
220
|
+
if (entities === null || entities === void 0 ? void 0 : entities.length) {
|
|
221
|
+
if (force) {
|
|
222
|
+
await this.renderDataLabEntities(entities, true);
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
this.distributeForRender(entities);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
await this.doEntityCheck(entityIds, force);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
UpdateSettings(params) {
|
|
233
|
+
const { zoomControl, queueRerender } = params;
|
|
234
|
+
if (this.disposed) {
|
|
68
235
|
return;
|
|
69
236
|
}
|
|
237
|
+
if (zoomControl === null || zoomControl === void 0 ? void 0 : zoomControl.length) {
|
|
238
|
+
this.zoomControl = zoomControl;
|
|
239
|
+
this.item.CameraZoomSettings = zoomControl;
|
|
240
|
+
this.setEntityCheckQueue();
|
|
241
|
+
}
|
|
242
|
+
if (queueRerender != false) {
|
|
243
|
+
const entityIds = Object.keys(this.renderedEntities);
|
|
244
|
+
this.visualsManager.MarkStale({
|
|
245
|
+
entityIds,
|
|
246
|
+
menuItemIds: [this.item.id]
|
|
247
|
+
});
|
|
248
|
+
this.doEntityCheck(entityIds);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
async doEntityCheck(ids, force = false) {
|
|
252
|
+
var _a, _b, _c, _d;
|
|
253
|
+
if (this.isRunningCheck) {
|
|
254
|
+
this.entityCheckQueueIds = this.entityCheckQueueIds.concat(ids);
|
|
255
|
+
(_a = this.entityCheckQueue) === null || _a === void 0 ? void 0 : _a.Call();
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
ids = ids.concat(this.entityCheckQueueIds);
|
|
259
|
+
this.entityCheckQueueIds = [];
|
|
260
|
+
ids = ids.filter((id, index) => {
|
|
261
|
+
return id && ids.indexOf(id) === index;
|
|
262
|
+
});
|
|
263
|
+
if (!ids.length) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
this.isRunningCheck = true;
|
|
267
|
+
const runId = this.reRenderState.startCheckRun();
|
|
268
|
+
const api = this.apiGetter.getApi();
|
|
70
269
|
try {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
270
|
+
if (this.disposed) {
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
const maintained = this.reRenderState.getMaintainedEntities(ids);
|
|
274
|
+
const maintainedLookup = {};
|
|
275
|
+
for (let i = 0; i < maintained.length; i++) {
|
|
276
|
+
const id = (_c = (_b = maintained[i]) === null || _b === void 0 ? void 0 : _b.Bruce) === null || _c === void 0 ? void 0 : _c.ID;
|
|
277
|
+
if (id) {
|
|
278
|
+
maintainedLookup[id] = true;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (maintained.length) {
|
|
282
|
+
if (force) {
|
|
283
|
+
await this.renderDataLabEntities(maintained, true);
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
this.distributeForRender(maintained);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
let apiIds = ids.filter((id) => {
|
|
290
|
+
return !maintainedLookup[id] && !this.reRenderState.shouldSkipInRun(id, runId);
|
|
291
|
+
});
|
|
292
|
+
const checkBatch = async () => {
|
|
293
|
+
apiIds = this.reRenderState.filterNonSkippedIds(apiIds, runId);
|
|
294
|
+
const entityIds = apiIds.splice(0, CHECK_BATCH_SIZE);
|
|
295
|
+
if (!entityIds.length) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
const revisions = this.reRenderState.captureApiRevisions(entityIds);
|
|
299
|
+
const { entities } = await bruce_models_1.Entity.GetListByIds({
|
|
300
|
+
api,
|
|
301
|
+
entityIds,
|
|
302
|
+
expandSources: true,
|
|
303
|
+
expandLocation: true,
|
|
304
|
+
migrated: true,
|
|
305
|
+
maxSearchTimeSec: 60 * 2
|
|
306
|
+
});
|
|
307
|
+
if (this.disposed) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
const resolved = this.reRenderState.filterCurrentApiEntities({
|
|
311
|
+
entities,
|
|
312
|
+
revisions,
|
|
313
|
+
runId
|
|
314
|
+
});
|
|
315
|
+
if (resolved.length) {
|
|
316
|
+
if (force) {
|
|
317
|
+
await this.renderDataLabEntities(resolved, true);
|
|
77
318
|
}
|
|
78
|
-
|
|
79
|
-
|
|
319
|
+
else {
|
|
320
|
+
this.distributeForRender(resolved);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
while (apiIds.length > 0) {
|
|
325
|
+
await checkBatch();
|
|
326
|
+
}
|
|
80
327
|
}
|
|
81
|
-
catch (
|
|
82
|
-
console.error(
|
|
328
|
+
catch (e) {
|
|
329
|
+
console.error(e);
|
|
330
|
+
}
|
|
331
|
+
finally {
|
|
332
|
+
this.isRunningCheck = false;
|
|
333
|
+
if (this.entityCheckQueueIds.length) {
|
|
334
|
+
(_d = this.entityCheckQueue) === null || _d === void 0 ? void 0 : _d.Call(true);
|
|
335
|
+
}
|
|
83
336
|
}
|
|
84
337
|
}
|
|
85
|
-
|
|
86
|
-
if (this.disposed ||
|
|
338
|
+
distributeForRender(entities) {
|
|
339
|
+
if (this.disposed || !(entities === null || entities === void 0 ? void 0 : entities.length)) {
|
|
87
340
|
return;
|
|
88
341
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
342
|
+
this.renderQueue = this.renderQueue.concat(entities);
|
|
343
|
+
if (!this.renderQueueInterval && this.renderQueue.length) {
|
|
344
|
+
this.renderQueueInterval = setInterval(() => {
|
|
345
|
+
const batch = this.deduplicateEntities(this.renderQueue.splice(0, BATCH_SIZE));
|
|
346
|
+
this.renderDataLabEntities(batch);
|
|
347
|
+
if (this.renderQueue.length <= 0) {
|
|
348
|
+
clearInterval(this.renderQueueInterval);
|
|
349
|
+
this.renderQueueInterval = null;
|
|
350
|
+
}
|
|
351
|
+
}, 50);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
deduplicateEntities(entities) {
|
|
355
|
+
var _a;
|
|
356
|
+
const entityMap = new Map();
|
|
97
357
|
for (let i = 0; i < entities.length; i++) {
|
|
98
358
|
const entity = entities[i];
|
|
99
|
-
const id = entity.Bruce.ID;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
359
|
+
const id = (_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a.ID;
|
|
360
|
+
if (id) {
|
|
361
|
+
entityMap.set(id, entity);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return Array.from(entityMap.values());
|
|
365
|
+
}
|
|
366
|
+
async renderDataLabEntities(entities, force = false) {
|
|
367
|
+
var _a, _b, _c;
|
|
368
|
+
if (this.disposed || this.viewer.isDestroyed() || !(entities === null || entities === void 0 ? void 0 : entities.length)) {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
try {
|
|
372
|
+
const { updated, entities: cEntities } = await entity_render_engine_1.EntityRenderEngine.Render({
|
|
373
|
+
viewer: this.viewer,
|
|
374
|
+
apiGetter: this.apiGetter,
|
|
375
|
+
entities,
|
|
376
|
+
menuItemId: this.item.id,
|
|
377
|
+
visualRegister: this.visualsManager,
|
|
378
|
+
zoomControl: this.zoomControl,
|
|
379
|
+
force
|
|
380
|
+
});
|
|
381
|
+
if (this.disposed) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
for (let i = 0; i < entities.length; i++) {
|
|
385
|
+
const entity = entities[i];
|
|
386
|
+
const id = entity.Bruce.ID;
|
|
387
|
+
const cEntity = cEntities.get(id);
|
|
388
|
+
this.renderedEntities[id] = !!cEntity;
|
|
389
|
+
if (cEntity) {
|
|
390
|
+
const rego = this.visualsManager.GetRego({
|
|
391
|
+
entityId: id,
|
|
392
|
+
menuItemId: this.item.id
|
|
393
|
+
});
|
|
394
|
+
const canEdit = !((_a = entity.Bruce.Outline) === null || _a === void 0 ? void 0 : _a.find(x => x.Baseline && !x.Editable));
|
|
395
|
+
const visual = rego === null || rego === void 0 ? void 0 : rego.visual;
|
|
396
|
+
if (!visual || visual != cEntity) {
|
|
397
|
+
this.visualsManager.AddRego({
|
|
398
|
+
rego: {
|
|
399
|
+
canEdit,
|
|
400
|
+
entityId: id,
|
|
401
|
+
schema: entity.Bruce.Schema,
|
|
402
|
+
menuItemId: this.item.id,
|
|
403
|
+
menuItemType: this.item.Type,
|
|
404
|
+
visual: cEntity,
|
|
405
|
+
priority: this.renderPriority,
|
|
406
|
+
entityTypeId: entity.Bruce["EntityType.ID"],
|
|
407
|
+
accountId: this.apiGetter.accountId,
|
|
408
|
+
tagIds: entity.Bruce["Layer.ID"] ? [].concat(entity.Bruce["Layer.ID"]) : [],
|
|
409
|
+
name: cEntity.name,
|
|
410
|
+
cdn: this.item.cdnEnabled,
|
|
411
|
+
outline: entity.Bruce.Outline
|
|
412
|
+
},
|
|
413
|
+
requestRender: false
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
else if (updated.get(id) && rego) {
|
|
417
|
+
rego.name = cEntity.name;
|
|
418
|
+
rego.visual = cEntity;
|
|
419
|
+
rego.entityTypeId = entity.Bruce["EntityType.ID"];
|
|
420
|
+
rego.tagIds = entity.Bruce["Layer.ID"] ? [].concat(entity.Bruce["Layer.ID"]) : [];
|
|
421
|
+
rego.outline = (_b = entity.Bruce) === null || _b === void 0 ? void 0 : _b.Outline;
|
|
422
|
+
rego.cdn = this.item.cdnEnabled;
|
|
423
|
+
rego.schema = (_c = entity.Bruce) === null || _c === void 0 ? void 0 : _c.Schema;
|
|
424
|
+
rego.canEdit = canEdit;
|
|
425
|
+
if (rego.stale) {
|
|
426
|
+
this.visualsManager.RefreshMark({
|
|
427
|
+
rego
|
|
428
|
+
});
|
|
429
|
+
this.visualsManager.ForceUpdate({
|
|
430
|
+
entityIds: [id],
|
|
431
|
+
refreshColors: true,
|
|
432
|
+
requestRender: false
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
this.visualsManager.OnUpdate.Trigger({
|
|
436
|
+
type: visuals_register_1.VisualsRegister.EVisualUpdateType.Update,
|
|
110
437
|
entityId: id,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
438
|
+
rego: rego
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
else {
|
|
443
|
+
this.visualsManager.RemoveRegos({
|
|
444
|
+
entityId: id,
|
|
445
|
+
menuItemId: this.item.id,
|
|
119
446
|
requestRender: false
|
|
120
447
|
});
|
|
121
448
|
}
|
|
122
449
|
}
|
|
123
|
-
|
|
124
|
-
this.visualsManager.RemoveRegos({
|
|
125
|
-
entityId: id,
|
|
126
|
-
menuItemId: this.item.id,
|
|
127
|
-
requestRender: false
|
|
128
|
-
});
|
|
129
|
-
}
|
|
450
|
+
this.viewer.scene.requestRender();
|
|
130
451
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
async ReRender() {
|
|
134
|
-
if (this.disposed) {
|
|
135
|
-
return;
|
|
452
|
+
catch (e) {
|
|
453
|
+
console.error("Failed to render DataLab entities:", e);
|
|
136
454
|
}
|
|
137
|
-
// Re-perform the query and render again
|
|
138
|
-
await this.onGetterUpdate(this.item.DataLabQueryID);
|
|
139
455
|
}
|
|
140
456
|
}
|
|
141
457
|
DataLabRenderManager.Manager = Manager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities-datalab-render-manager.js","sourceRoot":"","sources":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AAE,EAAE;wBACZ,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;qBAC3B,CAAC,CAAC;oBACH,IAAI,CAAC,IAAI,EAAE;wBACP,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;4BACxB,IAAI,EAAE;gCACF,OAAO,EAAE,IAAI;gCACb,QAAQ,EAAE,EAAE;gCACZ,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;gCACxB,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;gCAC5B,MAAM,EAAE,OAAO;gCACf,QAAQ,EAAE,IAAI,CAAC,cAAc;gCAC7B,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC;gCAC3C,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;gCACnC,IAAI,EAAE,OAAO,CAAC,IAAI;6BACrB;4BACD,aAAa,EAAE,KAAK;yBACvB,CAAC,CAAC;qBACN;iBACJ;qBAAM;oBACH,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;wBAC5B,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;wBACxB,aAAa,EAAE,KAAK;qBACvB,CAAC,CAAC;iBACN;aACJ;YAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QACtC,CAAC;QAEM,KAAK,CAAC,QAAQ;YACjB,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,OAAO;aACV;YAED,wCAAwC;YACxC,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACxD,CAAC;KACJ;IA/JY,4BAAO,UA+JnB,CAAA;AACL,CAAC,EAjKgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAiKpC"}
|
|
1
|
+
{"version":3,"file":"entities-datalab-render-manager.js","sourceRoot":"","sources":["../../../../../src/rendering/render-managers/entities/entities-datalab-render-manager.ts"],"names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;wBACD,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;4BAC5B,QAAQ,EAAE,EAAE;4BACZ,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;4BACxB,aAAa,EAAE,KAAK;yBACvB,CAAC,CAAC;qBACN;iBACJ;gBAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;aACrC;YACD,OAAO,CAAC,EAAE;gBACN,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,CAAC,CAAC,CAAC;aAC1D;QACL,CAAC;KACJ;IA9eY,4BAAO,UA8enB,CAAA;AACL,CAAC,EAhfgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAgfpC"}
|
|
@@ -60,7 +60,7 @@ export * from "./widgets/widget-info-view";
|
|
|
60
60
|
export * from "./widgets/widget-left-panel";
|
|
61
61
|
export * from "./widgets/widget-nav-compass";
|
|
62
62
|
export * from "./widgets/widget-view-bar";
|
|
63
|
-
export declare const VERSION = "6.6.
|
|
63
|
+
export declare const VERSION = "6.6.2";
|
|
64
64
|
/**
|
|
65
65
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
66
66
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BruceApi, BruceEvent, Entity, EntitySource, IDictionary } from "bruce-models";
|
|
1
|
+
import { BruceApi, BruceEvent, DataLab, Entity, EntitySource, IDictionary } from "bruce-models";
|
|
2
2
|
import { EntityGlobe } from "./entity-globe";
|
|
3
3
|
import { CesiumViewMonitor } from "../../viewer/cesium-view-monitor";
|
|
4
4
|
import * as Cesium from "cesium";
|
|
@@ -21,6 +21,10 @@ export declare namespace EntityFilterGetter {
|
|
|
21
21
|
sources?: EntitySource.ISource[];
|
|
22
22
|
entityTypeSources?: any[];
|
|
23
23
|
}
|
|
24
|
+
interface IDataLabSettings {
|
|
25
|
+
queryItems: DataLab.ICriterion[];
|
|
26
|
+
query?: Partial<DataLab.IQuery>;
|
|
27
|
+
}
|
|
24
28
|
class Getter {
|
|
25
29
|
private onUpdate;
|
|
26
30
|
get OnUpdate(): BruceEvent<IUpdate>;
|
|
@@ -49,6 +53,7 @@ export declare namespace EntityFilterGetter {
|
|
|
49
53
|
private minHeight;
|
|
50
54
|
private maxHeight;
|
|
51
55
|
private attrFilter;
|
|
56
|
+
private dataLab;
|
|
52
57
|
private viewRect;
|
|
53
58
|
private viewCenter;
|
|
54
59
|
private scenario;
|
|
@@ -72,6 +77,7 @@ export declare namespace EntityFilterGetter {
|
|
|
72
77
|
historicInterpolation?: boolean;
|
|
73
78
|
viaCdn?: boolean;
|
|
74
79
|
scenario?: number | string;
|
|
80
|
+
dataLab?: IDataLabSettings;
|
|
75
81
|
});
|
|
76
82
|
/**
|
|
77
83
|
* Returns id that represents the combined menu item parameters.
|
|
@@ -91,9 +97,12 @@ export declare namespace EntityFilterGetter {
|
|
|
91
97
|
GetMenuItems(): string[];
|
|
92
98
|
IncludeMenuItem(menuItemId: string, typeId: string, layerIds: number[], minHeight: number, maxHeight: number): void;
|
|
93
99
|
ExcludeMenuItem(menuItemId: string): void;
|
|
100
|
+
Dispose(): void;
|
|
94
101
|
private updateBounds;
|
|
95
102
|
private updateState;
|
|
96
103
|
private postStatus;
|
|
104
|
+
private createDataLabQuery;
|
|
105
|
+
private getDataLabResponse;
|
|
97
106
|
private startGetterLoop;
|
|
98
107
|
/**
|
|
99
108
|
* Gets the historic state of found Entities for the current date times and emits them.
|