bruce-cesium 3.7.4 → 3.7.5

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.
@@ -1,6 +1,7 @@
1
1
  import { BruceApi, BruceEvent, Entity, IDictionary } from "bruce-models";
2
2
  import { EntityGlobe } from "./entity-globe";
3
3
  import { CesiumViewMonitor } from "../../viewer/cesium-view-monitor";
4
+ import * as Cesium from "cesium";
4
5
  /**
5
6
  * This is a batched entity getter.
6
7
  * It will scan for entity records in a view-area and emit them in batches.
@@ -24,8 +25,10 @@ export declare namespace EntityFilterGetter {
24
25
  private onScanUpdate;
25
26
  get OnScanUpdate(): BruceEvent<EntityGlobe.Cell[]>;
26
27
  private api;
28
+ private viewer;
27
29
  private viewPort;
28
30
  private viewPortChangeRemoval;
31
+ private viewerDateTimeChangeRemoval;
29
32
  private cells;
30
33
  private registeredItems;
31
34
  private getterLoopId;
@@ -38,7 +41,11 @@ export declare namespace EntityFilterGetter {
38
41
  private attrFilter;
39
42
  private viewRect;
40
43
  private viewCenter;
41
- constructor(api: BruceApi.Api, viewPort: CesiumViewMonitor.Monitor, typeId: string, batchSize?: number, attrFilter?: IDictionary<any>, viaCdn?: boolean);
44
+ private historicAttrKey;
45
+ private historicAttrDateTime;
46
+ private historicAttrDateTimeMin;
47
+ private historicAttrDateTimeMax;
48
+ constructor(api: BruceApi.Api, viewer: Cesium.Viewer, viewPort: CesiumViewMonitor.Monitor, typeId: string, batchSize?: number, attrFilter?: IDictionary<any>, historicAttrKey?: string, viaCdn?: boolean);
42
49
  /**
43
50
  * Returns id that represents the combined menu item parameters.
44
51
  * If integrity changes while a request is running, the request will not emit a response.
@@ -47,6 +54,13 @@ export declare namespace EntityFilterGetter {
47
54
  private getIntegrityId;
48
55
  private viewAreaSub;
49
56
  private viewAreaDispose;
57
+ /**
58
+ * Monitors the Cesium viewer and updates the historic data filter values.
59
+ * If there is no historic attr set, this will do nothing.
60
+ */
61
+ private viewerDateTimeSub;
62
+ private updateHistoricDateTime;
63
+ private viewerDateTimeDispose;
50
64
  GetMenuItems(): string[];
51
65
  IncludeMenuItem(menuItemId: string, layerIds: number[], minHeight: number, maxHeight: number): void;
52
66
  ExcludeMenuItem(menuItemId: string): void;
@@ -12,6 +12,7 @@ export declare namespace SharedGetters {
12
12
  viewer?: Cesium.Viewer;
13
13
  cdn?: boolean;
14
14
  tagIds?: (number | string)[];
15
+ historicAttrKey?: string;
15
16
  debugShowBounds?: boolean;
16
17
  }
17
18
  class Cache {
@@ -27,6 +27,8 @@ export declare namespace VisualsRegister {
27
27
  overrideShow?: boolean;
28
28
  cdn?: boolean;
29
29
  collection?: Cesium.EntityCollection;
30
+ historicAttrKey?: string;
31
+ historicDateTime?: string;
30
32
  }
31
33
  enum EVisualUpdateType {
32
34
  Add = "ADD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-cesium",
3
- "version": "3.7.4",
3
+ "version": "3.7.5",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-cesium.umd.js",
@@ -71,7 +71,7 @@
71
71
  "typescript": "^5.0.4"
72
72
  },
73
73
  "dependencies": {
74
- "bruce-models": "^3.7.6",
74
+ "bruce-models": "^3.8.9",
75
75
  "tslib": "^2.4.1"
76
76
  }
77
77
  }