bruce-cesium 0.0.6 → 0.0.7

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,4 +1,4 @@
1
- import { Cartesian2, Cartographic, Math as Math$1, Viewer, ArcGisMapServerImageryProvider, ScreenSpaceEventType, Color, HeightReference, Cartesian3, Entity, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, HeadingPitchRange, Matrix4, Cesium3DTileset, EllipsoidGeodesic } from 'cesium';
1
+ import { Viewer, ArcGisMapServerImageryProvider, ScreenSpaceEventType, Cartesian2, Cartographic, Math as Math$1, Color, HeightReference, Cartesian3, Entity, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, HeadingPitchRange, Matrix4, Cesium3DTileset, EllipsoidGeodesic } from 'cesium';
2
2
  import { BruceEvent, Cartes, Carto, Geometry, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, DelayQueue, Entity as Entity$1, EntityFilterGetter, BatchedDataGetter, ObjectUtils, Tileset, MenuItem, ProjectView, ProjectViewBookmark } from 'bruce-models';
3
3
 
4
4
  var TIME_LAG = 300;
@@ -1752,6 +1752,9 @@ var VisualsRegister;
1752
1752
  });
1753
1753
  Object.defineProperty(Register.prototype, "OnUpdate", {
1754
1754
  get: function () {
1755
+ if (!this.onUpdate) {
1756
+ this.onUpdate = new BruceEvent();
1757
+ }
1755
1758
  return this.onUpdate;
1756
1759
  },
1757
1760
  enumerable: false,
@@ -2734,6 +2737,9 @@ var MenuItemManager;
2734
2737
  });
2735
2738
  Object.defineProperty(Manager.prototype, "OnUpdate", {
2736
2739
  get: function () {
2740
+ if (!this.onUpdate) {
2741
+ this.onUpdate = new BruceEvent();
2742
+ }
2737
2743
  return this.onUpdate;
2738
2744
  },
2739
2745
  enumerable: false,