fabrikantencore 2.40.4 → 2.40.6
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.
|
@@ -19470,11 +19470,13 @@ class SVGService {
|
|
|
19470
19470
|
Schaal = "2";
|
|
19471
19471
|
Snede = "";
|
|
19472
19472
|
Snedes = new Array();
|
|
19473
|
+
MinHeight = 0;
|
|
19473
19474
|
MinDif = 100;
|
|
19474
19475
|
ShouldTriggerReload = false;
|
|
19475
19476
|
constructor(FabrikantenApiClient, sanitization) {
|
|
19476
19477
|
this.FabrikantenApiClient = FabrikantenApiClient;
|
|
19477
19478
|
this.sanitization = sanitization;
|
|
19479
|
+
this.SafeURL = this.sanitization.bypassSecurityTrustResourceUrl("");
|
|
19478
19480
|
}
|
|
19479
19481
|
ClearCache() {
|
|
19480
19482
|
this.FabrikantenSVGViewModel = null;
|
|
@@ -19525,6 +19527,9 @@ class SVGService {
|
|
|
19525
19527
|
if (((Math.abs(this.ViewerWidth - width) > this.MinDif) || (Math.abs(this.ViewerHeight - height) > this.MinDif)) && (width > 0) && (height > 0)) {
|
|
19526
19528
|
this.ViewerWidth = width;
|
|
19527
19529
|
this.ViewerHeight = height;
|
|
19530
|
+
if (this.ViewerHeight < this.MinHeight) {
|
|
19531
|
+
this.ViewerHeight = this.MinHeight;
|
|
19532
|
+
}
|
|
19528
19533
|
if (this.FabrikantenService?.FabrikantenViewModel?.sessionId != null) {
|
|
19529
19534
|
this.LoadFabrikantenSVGViewModel(this.FabrikantenService.FabrikantenViewModel.sessionId, ChangeDetectorRef);
|
|
19530
19535
|
}
|
|
@@ -21013,12 +21018,14 @@ class FabrikantenService {
|
|
|
21013
21018
|
if (!this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[0].has3D) {
|
|
21014
21019
|
this.SelectedTab = "2D";
|
|
21015
21020
|
this.SelectedTabIndex = 0;
|
|
21021
|
+
console.log("forced SelectedTab to '2D' and SelectedTabIndex to 0: this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[0].has3D: " + this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[0].has3D);
|
|
21016
21022
|
}
|
|
21017
21023
|
}
|
|
21018
21024
|
}
|
|
21019
21025
|
if (this.SelectedTab == "2D" && !this.Show2D()) {
|
|
21020
21026
|
this.SelectedTab = "Bestek";
|
|
21021
21027
|
this.SelectedTabIndex = 0;
|
|
21028
|
+
console.log("forced SelectedTab to 'Bestek' and SelectedTabIndex to 0: this.Show2D(): " + this.Show2D());
|
|
21022
21029
|
}
|
|
21023
21030
|
if (array != null && (array.length == 1 || this.FabrikantenSettingsViewModel.alwaysShowVariant)) {
|
|
21024
21031
|
if (this.SelectedTab == "Bestek" || this.ForceUpdateBestek) {
|