bruce-models 2.0.6 → 2.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.
@@ -5920,6 +5920,28 @@ var UTC;
5920
5920
  UTC.FromDate = FromDate;
5921
5921
  })(UTC || (UTC = {}));
5922
5922
 
5923
+ class LRUCache {
5924
+ constructor(capacity) {
5925
+ this.capacity = capacity;
5926
+ this.cache = new Map();
5927
+ }
5928
+ Get(key) {
5929
+ const value = this.cache.get(key);
5930
+ if (value) {
5931
+ this.cache.delete(key);
5932
+ this.cache.set(key, value);
5933
+ }
5934
+ return value;
5935
+ }
5936
+ Set(key, value) {
5937
+ if (this.cache.size >= this.capacity) {
5938
+ const leastRecentlyUsedKey = this.cache.keys().next().value;
5939
+ this.cache.delete(leastRecentlyUsedKey);
5940
+ }
5941
+ this.cache.set(key, value);
5942
+ }
5943
+ }
5944
+
5923
5945
  /**
5924
5946
  * Describes the "Entity Attachment Type" concept within Bruce.
5925
5947
  * It is a record that describes the purpose of an attachment.
@@ -10797,5 +10819,5 @@ var Plugin;
10797
10819
  Plugin.GetLoadUrl = GetLoadUrl;
10798
10820
  })(Plugin || (Plugin = {}));
10799
10821
 
10800
- export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin };
10822
+ export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin };
10801
10823
  //# sourceMappingURL=bruce-models.es5.js.map