@vectoriox/iox-builder 1.4.25 → 1.4.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-builder",
3
- "version": "1.4.25",
3
+ "version": "1.4.27",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -802,10 +802,14 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
802
802
  ngAfterViewInit(): void;
803
803
  ngOnDestroy(): void;
804
804
  /**
805
- * Set --preview-vh on .preview-scroll so that 100vh fills the visible canvas
806
- * frame at the current scale. Value = canvas frame height ÷ scale ÷ 100, so
807
- * calc(100 * var(--preview-vh)) equals the frame height in canvas-space pixels.
808
- * Falls back to 1vh in the live page (no --preview-vh defined there).
805
+ * Set --preview-vh / --preview-vw on .preview-scroll so that viewport-relative
806
+ * units (vh, vw) inside the canvas resolve to the simulated canvas dimensions
807
+ * rather than the real browser viewport.
808
+ *
809
+ * --preview-vh = canvas frame height (unscaled) / 100
810
+ * --preview-vw = canvas width from viewport state / 100
811
+ *
812
+ * Both fall back to their native unit in production (no variables defined).
809
813
  */
810
814
  private updatePreviewVh;
811
815
  private initLenis;
@@ -916,13 +920,16 @@ declare class StyleRegistryService {
916
920
  destroy(): void;
917
921
  private compile;
918
922
  /**
919
- * Rewrite bare `vh` values to `calc(N * var(--preview-vh, 1vh))` so they
920
- * resolve to the simulated viewport height in the builder canvas.
921
- * In production (no --preview-vh defined) the fallback `1vh` preserves the
922
- * original behaviour: `calc(50 * 1vh)` == `50vh`.
923
+ * Rewrite viewport-relative units so they resolve to the simulated canvas
924
+ * dimensions rather than the real browser viewport.
925
+ *
926
+ * --preview-vh / --preview-vw are set by BuilderComponent via ResizeObserver
927
+ * and viewport-state subscription. In production (no variables defined) the
928
+ * fallbacks `1vh` / `1vw` restore the original browser behaviour.
923
929
  */
924
930
  private rewriteVh;
925
931
  private toKebabCase;
932
+ private _flushPending;
926
933
  private flush;
927
934
  static ɵfac: i0.ɵɵFactoryDeclaration<StyleRegistryService, never>;
928
935
  static ɵprov: i0.ɵɵInjectableDeclaration<StyleRegistryService>;