bruce-models 3.3.4 → 3.3.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 +56 -33
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +56 -33
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/bruce-api.js +15 -0
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/markup/markup.js +8 -0
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/lib/plugin/plugin.js +32 -32
- package/dist/types/api/bruce-api.d.ts +6 -0
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/markup/markup.d.ts +7 -1
- package/package.json +78 -78
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1433,6 +1433,21 @@ var BruceApi;
|
|
|
1433
1433
|
}
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Creates a message broker instance and returns it.
|
|
1438
|
+
* If an instance is already created, it will return that one.
|
|
1439
|
+
* @warning This will await the loading promise to avoid using data that isn't ready.
|
|
1440
|
+
*/
|
|
1441
|
+
ConnectWebsocket() {
|
|
1442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1443
|
+
yield this.loadProm;
|
|
1444
|
+
if (this.messageBroker) {
|
|
1445
|
+
return this.messageBroker;
|
|
1446
|
+
}
|
|
1447
|
+
this.messageBroker = new MessageBroker.WebSocketBroker(this.baseUrl, this.env);
|
|
1448
|
+
return this.messageBroker;
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1436
1451
|
/**
|
|
1437
1452
|
* Warning: This method does not wait for init to finish loading.
|
|
1438
1453
|
* This means the url could be changed once fully initialized.
|
|
@@ -10076,6 +10091,14 @@ var Markup;
|
|
|
10076
10091
|
// Assumes existence of line that is used to anchor it.
|
|
10077
10092
|
EType["Callout"] = "callout";
|
|
10078
10093
|
})(EType = Div.EType || (Div.EType = {}));
|
|
10094
|
+
let EAnchorDivSide;
|
|
10095
|
+
(function (EAnchorDivSide) {
|
|
10096
|
+
// “absolute” is now deprecated and a legacy value for TopLeft
|
|
10097
|
+
EAnchorDivSide["TopLeft"] = "TopLeft";
|
|
10098
|
+
EAnchorDivSide["BottomLeft"] = "BottomLeft";
|
|
10099
|
+
EAnchorDivSide["BottomRight"] = "BottomRight";
|
|
10100
|
+
EAnchorDivSide["TopRight"] = "TopRight";
|
|
10101
|
+
})(EAnchorDivSide = Div.EAnchorDivSide || (Div.EAnchorDivSide = {}));
|
|
10079
10102
|
// Describes expected content of a row cell.
|
|
10080
10103
|
let EItemType;
|
|
10081
10104
|
(function (EItemType) {
|
|
@@ -10472,40 +10495,40 @@ var Plugin;
|
|
|
10472
10495
|
window[paramsId] = pluginParams ? pluginParams : {};
|
|
10473
10496
|
const disposeId = ObjectUtils.UId();
|
|
10474
10497
|
const elementId = ObjectUtils.UId();
|
|
10475
|
-
let script = `
|
|
10476
|
-
function run() {
|
|
10477
|
-
${fileContent}
|
|
10478
|
-
|
|
10479
|
-
const paramsId = "${paramsId}";
|
|
10480
|
-
const containerId = "${containerId}";
|
|
10481
|
-
let container;
|
|
10482
|
-
if (containerId) {
|
|
10483
|
-
container = document.getElementById("${containerId}");
|
|
10484
|
-
}
|
|
10485
|
-
|
|
10486
|
-
let pluginHTML = null;
|
|
10487
|
-
if (container) {
|
|
10488
|
-
pluginHTML = document.createElement("div");
|
|
10489
|
-
pluginHTML.id = "${elementId}";
|
|
10490
|
-
container.appendChild(pluginHTML);
|
|
10491
|
-
}
|
|
10492
|
-
|
|
10493
|
-
{TEMPLATE_CODE}
|
|
10494
|
-
const params = window["${paramsId}"];
|
|
10495
|
-
|
|
10496
|
-
window["${disposeId}"] = Run({
|
|
10497
|
-
element: pluginHTML,
|
|
10498
|
-
container: container,
|
|
10499
|
-
pluginParams: params
|
|
10500
|
-
});
|
|
10501
|
-
}
|
|
10502
|
-
run();
|
|
10498
|
+
let script = `
|
|
10499
|
+
function run() {
|
|
10500
|
+
${fileContent}
|
|
10501
|
+
|
|
10502
|
+
const paramsId = "${paramsId}";
|
|
10503
|
+
const containerId = "${containerId}";
|
|
10504
|
+
let container;
|
|
10505
|
+
if (containerId) {
|
|
10506
|
+
container = document.getElementById("${containerId}");
|
|
10507
|
+
}
|
|
10508
|
+
|
|
10509
|
+
let pluginHTML = null;
|
|
10510
|
+
if (container) {
|
|
10511
|
+
pluginHTML = document.createElement("div");
|
|
10512
|
+
pluginHTML.id = "${elementId}";
|
|
10513
|
+
container.appendChild(pluginHTML);
|
|
10514
|
+
}
|
|
10515
|
+
|
|
10516
|
+
{TEMPLATE_CODE}
|
|
10517
|
+
const params = window["${paramsId}"];
|
|
10518
|
+
|
|
10519
|
+
window["${disposeId}"] = Run({
|
|
10520
|
+
element: pluginHTML,
|
|
10521
|
+
container: container,
|
|
10522
|
+
pluginParams: params
|
|
10523
|
+
});
|
|
10524
|
+
}
|
|
10525
|
+
run();
|
|
10503
10526
|
`;
|
|
10504
10527
|
if (script.includes("var template")) {
|
|
10505
|
-
script = script.replace("{TEMPLATE_CODE}", `
|
|
10506
|
-
if (pluginHTML && template) {
|
|
10507
|
-
pluginHTML.innerHTML = template;
|
|
10508
|
-
}
|
|
10528
|
+
script = script.replace("{TEMPLATE_CODE}", `
|
|
10529
|
+
if (pluginHTML && template) {
|
|
10530
|
+
pluginHTML.innerHTML = template;
|
|
10531
|
+
}
|
|
10509
10532
|
`);
|
|
10510
10533
|
}
|
|
10511
10534
|
else {
|
|
@@ -10685,7 +10708,7 @@ var DataSource;
|
|
|
10685
10708
|
DataSource.GetList = GetList;
|
|
10686
10709
|
})(DataSource || (DataSource = {}));
|
|
10687
10710
|
|
|
10688
|
-
const VERSION = "3.3.
|
|
10711
|
+
const VERSION = "3.3.5";
|
|
10689
10712
|
|
|
10690
10713
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, 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, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
10691
10714
|
//# sourceMappingURL=bruce-models.es5.js.map
|