@vectoriox/iox-builder 1.7.11 → 1.7.13

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.7.11",
3
+ "version": "1.7.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -843,8 +843,14 @@ declare class MoveableCanvasService {
843
843
  /** Called after a geometry commit (resize) so the host can emit LAYOUT_CHANGED (undo/save). */
844
844
  onLayoutChanged: (() => void) | null;
845
845
  constructor(dragEngine: DragEngineService, styleRegistry: StyleRegistryService);
846
- /** Wire the Moveable control box into `container`; `scaleGetter` returns the live canvas zoom. */
847
- init(container: HTMLElement, scaleGetter: () => number): void;
846
+ /** Preview device viewport size (CSS px) — reference for vw/vh unit conversion on resize. */
847
+ private viewportGetter;
848
+ /** Wire the Moveable control box into `container`; `scaleGetter` returns the live canvas zoom;
849
+ * `viewportGetter` returns the previewed device viewport size (for vw/vh resize conversion). */
850
+ init(container: HTMLElement, scaleGetter: () => number, viewportGetter?: () => {
851
+ width: number;
852
+ height: number;
853
+ }): void;
848
854
  /** Point Moveable at the selected element (skips inline-edit + preview-clone targets). */
849
855
  select(element: HTMLElement | null, node: ComponentNode | null): void;
850
856
  /** Recompute the control-box position (call on scroll/zoom/layout changes). */
@@ -857,6 +863,11 @@ declare class MoveableCanvasService {
857
863
  private destroyMoveable;
858
864
  private commitDrag;
859
865
  private commitResize;
866
+ /** The node's currently-configured value for a style trait (e.g. '100%', '120px'). */
867
+ private currentStyleValue;
868
+ /** Convert a pixel measurement into the unit the user configured, so resizing from the canvas
869
+ * preserves %, vw/vh, em/rem etc. instead of always writing px. */
870
+ private toConfiguredUnit;
860
871
  /** Write geometry changes into the node's styleTraits (the serialized source of truth) and the
861
872
  * central stylesheet, so the style panel, save (self-describing), and SSR engine all agree. */
862
873
  private applyStyle;