bruce-models 3.1.7 → 3.1.9
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 +36 -35
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +36 -35
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/abstract-api.js +2 -2
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/plugin/plugin.js +32 -32
- package/dist/lib/tileset/tileset.js +1 -0
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/tileset/tileset.d.ts +2 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -227,7 +227,7 @@ class CacheControl {
|
|
|
227
227
|
function parseResult(data) {
|
|
228
228
|
var _a, _b;
|
|
229
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
-
if (data.status
|
|
230
|
+
if (data.status >= 400 || data.status < 200) {
|
|
231
231
|
const error = yield data.json();
|
|
232
232
|
throw (error);
|
|
233
233
|
}
|
|
@@ -410,7 +410,7 @@ class AbstractApi {
|
|
|
410
410
|
}
|
|
411
411
|
xhr.onreadystatechange = (e) => {
|
|
412
412
|
if (xhr.readyState == 4) {
|
|
413
|
-
if (xhr.status >= 400) {
|
|
413
|
+
if (xhr.status >= 400 || xhr.status < 200) {
|
|
414
414
|
rej(e);
|
|
415
415
|
}
|
|
416
416
|
else {
|
|
@@ -6057,6 +6057,7 @@ var Tileset;
|
|
|
6057
6057
|
EExternalMapType["OpenStreetMapImagery"] = "OpenStreetMapImagery";
|
|
6058
6058
|
EExternalMapType["MapBoxImagery"] = "MapBoxImagery";
|
|
6059
6059
|
EExternalMapType["CesiumIon"] = "CesiumIon";
|
|
6060
|
+
EExternalMapType["CustomTemplate"] = "Static";
|
|
6060
6061
|
})(EExternalMapType = Settings.EExternalMapType || (Settings.EExternalMapType = {}));
|
|
6061
6062
|
})(Settings = Tileset.Settings || (Tileset.Settings = {}));
|
|
6062
6063
|
})(Tileset || (Tileset = {}));
|
|
@@ -8463,40 +8464,40 @@ var Plugin;
|
|
|
8463
8464
|
window[paramsId] = pluginParams ? pluginParams : {};
|
|
8464
8465
|
const disposeId = ObjectUtils.UId();
|
|
8465
8466
|
const elementId = ObjectUtils.UId();
|
|
8466
|
-
let script = `
|
|
8467
|
-
function run() {
|
|
8468
|
-
${fileContent}
|
|
8469
|
-
|
|
8470
|
-
const paramsId = "${paramsId}";
|
|
8471
|
-
const containerId = "${containerId}";
|
|
8472
|
-
let container;
|
|
8473
|
-
if (containerId) {
|
|
8474
|
-
container = document.getElementById("${containerId}");
|
|
8475
|
-
}
|
|
8476
|
-
|
|
8477
|
-
let pluginHTML = null;
|
|
8478
|
-
if (container) {
|
|
8479
|
-
pluginHTML = document.createElement("div");
|
|
8480
|
-
pluginHTML.id = "${elementId}";
|
|
8481
|
-
container.appendChild(pluginHTML);
|
|
8482
|
-
}
|
|
8483
|
-
|
|
8484
|
-
{TEMPLATE_CODE}
|
|
8485
|
-
const params = window["${paramsId}"];
|
|
8486
|
-
|
|
8487
|
-
window["${disposeId}"] = Run({
|
|
8488
|
-
element: pluginHTML,
|
|
8489
|
-
container: container,
|
|
8490
|
-
pluginParams: params
|
|
8491
|
-
});
|
|
8492
|
-
}
|
|
8493
|
-
run();
|
|
8467
|
+
let script = `
|
|
8468
|
+
function run() {
|
|
8469
|
+
${fileContent}
|
|
8470
|
+
|
|
8471
|
+
const paramsId = "${paramsId}";
|
|
8472
|
+
const containerId = "${containerId}";
|
|
8473
|
+
let container;
|
|
8474
|
+
if (containerId) {
|
|
8475
|
+
container = document.getElementById("${containerId}");
|
|
8476
|
+
}
|
|
8477
|
+
|
|
8478
|
+
let pluginHTML = null;
|
|
8479
|
+
if (container) {
|
|
8480
|
+
pluginHTML = document.createElement("div");
|
|
8481
|
+
pluginHTML.id = "${elementId}";
|
|
8482
|
+
container.appendChild(pluginHTML);
|
|
8483
|
+
}
|
|
8484
|
+
|
|
8485
|
+
{TEMPLATE_CODE}
|
|
8486
|
+
const params = window["${paramsId}"];
|
|
8487
|
+
|
|
8488
|
+
window["${disposeId}"] = Run({
|
|
8489
|
+
element: pluginHTML,
|
|
8490
|
+
container: container,
|
|
8491
|
+
pluginParams: params
|
|
8492
|
+
});
|
|
8493
|
+
}
|
|
8494
|
+
run();
|
|
8494
8495
|
`;
|
|
8495
8496
|
if (script.includes("var template")) {
|
|
8496
|
-
script = script.replace("{TEMPLATE_CODE}", `
|
|
8497
|
-
if (pluginHTML && template) {
|
|
8498
|
-
pluginHTML.innerHTML = template;
|
|
8499
|
-
}
|
|
8497
|
+
script = script.replace("{TEMPLATE_CODE}", `
|
|
8498
|
+
if (pluginHTML && template) {
|
|
8499
|
+
pluginHTML.innerHTML = template;
|
|
8500
|
+
}
|
|
8500
8501
|
`);
|
|
8501
8502
|
}
|
|
8502
8503
|
else {
|
|
@@ -8635,7 +8636,7 @@ var DataSource;
|
|
|
8635
8636
|
DataSource.GetList = GetList;
|
|
8636
8637
|
})(DataSource || (DataSource = {}));
|
|
8637
8638
|
|
|
8638
|
-
const VERSION = "3.1.
|
|
8639
|
+
const VERSION = "3.1.9";
|
|
8639
8640
|
|
|
8640
8641
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, 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 };
|
|
8641
8642
|
//# sourceMappingURL=bruce-models.es5.js.map
|