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.
- package/dist/bruce-models.es5.js +23 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +23 -0
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -0
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/common/lru-cache.js +26 -0
- package/dist/lib/common/lru-cache.js.map +1 -0
- package/dist/types/bruce-models.d.ts +1 -0
- package/dist/types/common/lru-cache.d.ts +7 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -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
|