@vectoriox/iox-builder 1.4.10 → 1.4.11
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/package.json
CHANGED
|
@@ -717,6 +717,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
717
717
|
private lenis?;
|
|
718
718
|
private lenisRafId?;
|
|
719
719
|
private canvasRo?;
|
|
720
|
+
private previewFrameRo?;
|
|
720
721
|
private canvasContentHeight;
|
|
721
722
|
handleToolbarModeChange(mode: BuilderMode): void;
|
|
722
723
|
handleToolbarDeviceChange(device: DeviceMode): void;
|
|
@@ -728,12 +729,6 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
728
729
|
get viewportWidth(): number;
|
|
729
730
|
/** Canvas viewport height in CSS pixels (driven by ViewportService). */
|
|
730
731
|
get viewportHeight(): number;
|
|
731
|
-
/** Visual (scaled) canvas height — used to cap .preview-scroll so the canvas
|
|
732
|
-
* frame shows exactly one device viewport, matching 100vh = device.height exactly. */
|
|
733
|
-
get viewportScaledHeight(): number;
|
|
734
|
-
/** CSS height for .preview-scroll: the lesser of the scaled viewport height
|
|
735
|
-
* and the available canvas area. Keeps the canvas frame viewport-sized. */
|
|
736
|
-
get previewScrollHeight(): string;
|
|
737
732
|
/** Visual (scaled) canvas width — used to size the scroll container so the
|
|
738
733
|
* scrollbar aligns with the right edge of the canvas, not the CMS shell. */
|
|
739
734
|
get viewportScaledWidth(): number;
|
|
@@ -757,10 +752,10 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
757
752
|
ngAfterViewInit(): void;
|
|
758
753
|
ngOnDestroy(): void;
|
|
759
754
|
/**
|
|
760
|
-
* Set --preview-vh on .preview-scroll so that
|
|
761
|
-
*
|
|
762
|
-
*
|
|
763
|
-
* Falls back to 1vh in
|
|
755
|
+
* Set --preview-vh on .preview-scroll so that 100vh fills the visible canvas
|
|
756
|
+
* frame at the current scale. Value = canvas frame height ÷ scale ÷ 100, so
|
|
757
|
+
* calc(100 * var(--preview-vh)) equals the frame height in canvas-space pixels.
|
|
758
|
+
* Falls back to 1vh in the live page (no --preview-vh defined there).
|
|
764
759
|
*/
|
|
765
760
|
private updatePreviewVh;
|
|
766
761
|
private initLenis;
|