ngx-bimplus-components 0.0.239 → 0.0.240-packageUpdates-1.1
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.
|
@@ -1542,13 +1542,10 @@ var LayoutManagerService = class LayoutManagerService {
|
|
|
1542
1542
|
deltaY: 0
|
|
1543
1543
|
};
|
|
1544
1544
|
}
|
|
1545
|
-
if (!elementRect?.width || !elementRect?.height) {
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
deltaY: 0
|
|
1550
|
-
};
|
|
1551
|
-
}
|
|
1545
|
+
if (!elementRect?.width || !elementRect?.height) return {
|
|
1546
|
+
deltaX: 0,
|
|
1547
|
+
deltaY: 0
|
|
1548
|
+
};
|
|
1552
1549
|
let checkAll = true;
|
|
1553
1550
|
if (parentRect?.width < 2 || parentRect?.height < 2) checkAll = false;
|
|
1554
1551
|
if (checkAll) {
|
|
@@ -6524,7 +6521,7 @@ var FilterStructureFetcher = class {
|
|
|
6524
6521
|
static fetchObjectFilterStructureFromSelection(projectId, filter, selectionObject, api) {
|
|
6525
6522
|
const isTemporary = !filter.id;
|
|
6526
6523
|
let filterId = filter.id ? filter.id : "";
|
|
6527
|
-
let observeable
|
|
6524
|
+
let observeable;
|
|
6528
6525
|
if (!isTemporary) observeable = from(api.exportService.createExportSelection(projectId, JSON.stringify(selectionObject))).pipe(concatMap((selectionObj) => {
|
|
6529
6526
|
if (!selectionObj?.id) throw new Error("Failed to create selection object");
|
|
6530
6527
|
return from(api.objectFilters.getSelectionFilteredObjects(selectionObj.id, filterId, void 0, void 0));
|
|
@@ -10315,6 +10312,9 @@ var ObjectPreviewComponent = class ObjectPreviewComponent {
|
|
|
10315
10312
|
this.contentLoader.loadObject(this.objectId, this.revision, null).then(() => {
|
|
10316
10313
|
this.viewport?.setupProjectView();
|
|
10317
10314
|
this.isLoading = false;
|
|
10315
|
+
}).catch((error) => {
|
|
10316
|
+
console.error("Error loading object:", error);
|
|
10317
|
+
this.isLoading = false;
|
|
10318
10318
|
});
|
|
10319
10319
|
}
|
|
10320
10320
|
static {
|
|
@@ -11405,8 +11405,7 @@ var LinksToDocumentsComponent = class LinksToDocumentsComponent extends BimplusL
|
|
|
11405
11405
|
if (typeof callbackF !== "function" || !this.project || !this.api) return;
|
|
11406
11406
|
setTimeout(() => {
|
|
11407
11407
|
const isLocalhost = window.location.href.includes("localhost");
|
|
11408
|
-
let access_token =
|
|
11409
|
-
access_token = this.api?.getAccessToken();
|
|
11408
|
+
let access_token = this.api?.getAccessToken();
|
|
11410
11409
|
if (!access_token) {
|
|
11411
11410
|
access_token = window.localStorage.getItem("access_token");
|
|
11412
11411
|
if (!access_token) return;
|
|
@@ -12936,7 +12935,7 @@ var AutoResizeTextareaDirective = class AutoResizeTextareaDirective {
|
|
|
12936
12935
|
calculateLineHeight() {
|
|
12937
12936
|
const style = window.getComputedStyle(this.input, null);
|
|
12938
12937
|
const lineHeight = style.getPropertyValue("line-height");
|
|
12939
|
-
let newLineHeight
|
|
12938
|
+
let newLineHeight;
|
|
12940
12939
|
if (lineHeight === "normal") newLineHeight = (parseFloat(style.getPropertyValue("font-size")) || 16) * 1.14;
|
|
12941
12940
|
else newLineHeight = parseFloat(lineHeight);
|
|
12942
12941
|
this.avgLineHeight = Math.trunc(newLineHeight);
|