fabrikantencore 2.40.6 → 2.40.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.
|
@@ -19467,6 +19467,8 @@ class SVGService {
|
|
|
19467
19467
|
FabrikantenService;
|
|
19468
19468
|
ViewerWidth = 101;
|
|
19469
19469
|
ViewerHeight = 101;
|
|
19470
|
+
LoadedViewerWidth = 0;
|
|
19471
|
+
LoadedViewerHeight = 0;
|
|
19470
19472
|
Schaal = "2";
|
|
19471
19473
|
Snede = "";
|
|
19472
19474
|
Snedes = new Array();
|
|
@@ -19499,6 +19501,8 @@ class SVGService {
|
|
|
19499
19501
|
this.FabrikantenSVGViewModel = model;
|
|
19500
19502
|
this.SafeURL = this.sanitization.bypassSecurityTrustResourceUrl(this.FabrikantenSVGViewModel.svg + "");
|
|
19501
19503
|
this.SafeURLLoaded = true;
|
|
19504
|
+
this.LoadedViewerWidth = request.width;
|
|
19505
|
+
this.LoadedViewerHeight = request.height;
|
|
19502
19506
|
this.CollectSnedes();
|
|
19503
19507
|
this.LoadingSignal.set(false);
|
|
19504
19508
|
ChangeDetectorRef.detectChanges();
|
|
@@ -19530,7 +19534,8 @@ class SVGService {
|
|
|
19530
19534
|
if (this.ViewerHeight < this.MinHeight) {
|
|
19531
19535
|
this.ViewerHeight = this.MinHeight;
|
|
19532
19536
|
}
|
|
19533
|
-
if (this.FabrikantenService?.FabrikantenViewModel?.sessionId != null
|
|
19537
|
+
if (this.FabrikantenService?.FabrikantenViewModel?.sessionId != null &&
|
|
19538
|
+
!this.IsLoadedSizesSame()) {
|
|
19534
19539
|
this.LoadFabrikantenSVGViewModel(this.FabrikantenService.FabrikantenViewModel.sessionId, ChangeDetectorRef);
|
|
19535
19540
|
}
|
|
19536
19541
|
}
|
|
@@ -19541,6 +19546,12 @@ class SVGService {
|
|
|
19541
19546
|
}
|
|
19542
19547
|
return false;
|
|
19543
19548
|
}
|
|
19549
|
+
IsLoadedSizesSame() {
|
|
19550
|
+
if (this.LoadedViewerWidth != this.ViewerWidth || this.LoadedViewerHeight != this.ViewerHeight) {
|
|
19551
|
+
return false;
|
|
19552
|
+
}
|
|
19553
|
+
return true;
|
|
19554
|
+
}
|
|
19544
19555
|
CollectSnedes() {
|
|
19545
19556
|
if (this.FabrikantenSVGViewModel?.snedes != null) {
|
|
19546
19557
|
this.Snedes = this.FabrikantenSVGViewModel.snedes.split("|");
|