@silurus/ooxml 0.36.0 → 0.37.0

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/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./xlsx-B_G9RPNS.cjs`),t=require(`./pptx-gWByFXpk.cjs`),n=require(`./docx-BV9DuQ9z.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return e.t}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./xlsx-CU5kEVSN.cjs`),t=require(`./pptx-gWByFXpk.cjs`),n=require(`./docx-BV9DuQ9z.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return e.t}});
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./xlsx-g-Drk5UM.js";
1
+ import { t as e } from "./xlsx-DF_d5tXa.js";
2
2
  import { t } from "./pptx-CzgfHii0.js";
3
3
  import { t as n } from "./docx-DIFtUzAi.js";
4
4
  export { n as docx, t as pptx, e as xlsx };
@@ -957,6 +957,15 @@ declare interface ImageAnchor {
957
957
  toColOff: number;
958
958
  toRow: number;
959
959
  toRowOff: number;
960
+ /** `twoCellAnchor@editAs` (ECMA-376 §20.5.2.33). `"oneCell"` instructs the
961
+ * renderer to use `nativeExtCx`/`nativeExtCy` as the size and ignore the
962
+ * `to` anchor (Excel's "Move but don't size with cells"). Absent ⇒ default
963
+ * `"twoCell"`. */
964
+ editAs?: string;
965
+ /** `<xdr:pic><xdr:spPr><a:xfrm><a:ext cx cy>` in EMU — the picture's saved
966
+ * size. Authoritative when `editAs === "oneCell"`. 0 = unavailable. */
967
+ nativeExtCx: number;
968
+ nativeExtCy: number;
960
969
  /** Data URL (data:image/png;base64,...) */
961
970
  dataUrl: string;
962
971
  }
@@ -1726,6 +1735,15 @@ declare interface ShapeAnchor {
1726
1735
  toColOff: number;
1727
1736
  toRow: number;
1728
1737
  toRowOff: number;
1738
+ /** `twoCellAnchor@editAs` (ECMA-376 §20.5.2.33). With `"oneCell"` the
1739
+ * renderer uses `nativeExtCx`/`nativeExtCy` as the on-sheet size, since
1740
+ * Excel preserves the group's saved EMU extent regardless of cell
1741
+ * resizing ("Move but don't size with cells"). Absent ⇒ default `"twoCell"`. */
1742
+ editAs?: string;
1743
+ /** Saved EMU extent of the top-level grpSp (or the stand-alone sp/pic).
1744
+ * Authoritative when `editAs === "oneCell"`. 0 = unavailable. */
1745
+ nativeExtCx: number;
1746
+ nativeExtCy: number;
1729
1747
  shapes: ShapeInfo[];
1730
1748
  }
1731
1749
 
@@ -401,6 +401,15 @@ declare interface ImageAnchor {
401
401
  toColOff: number;
402
402
  toRow: number;
403
403
  toRowOff: number;
404
+ /** `twoCellAnchor@editAs` (ECMA-376 §20.5.2.33). `"oneCell"` instructs the
405
+ * renderer to use `nativeExtCx`/`nativeExtCy` as the size and ignore the
406
+ * `to` anchor (Excel's "Move but don't size with cells"). Absent ⇒ default
407
+ * `"twoCell"`. */
408
+ editAs?: string;
409
+ /** `<xdr:pic><xdr:spPr><a:xfrm><a:ext cx cy>` in EMU — the picture's saved
410
+ * size. Authoritative when `editAs === "oneCell"`. 0 = unavailable. */
411
+ nativeExtCx: number;
412
+ nativeExtCy: number;
404
413
  /** Data URL (data:image/png;base64,...) */
405
414
  dataUrl: string;
406
415
  }
@@ -605,6 +614,15 @@ declare interface ShapeAnchor {
605
614
  toColOff: number;
606
615
  toRow: number;
607
616
  toRowOff: number;
617
+ /** `twoCellAnchor@editAs` (ECMA-376 §20.5.2.33). With `"oneCell"` the
618
+ * renderer uses `nativeExtCx`/`nativeExtCy` as the on-sheet size, since
619
+ * Excel preserves the group's saved EMU extent regardless of cell
620
+ * resizing ("Move but don't size with cells"). Absent ⇒ default `"twoCell"`. */
621
+ editAs?: string;
622
+ /** Saved EMU extent of the top-level grpSp (or the stand-alone sp/pic).
623
+ * Authoritative when `editAs === "oneCell"`. 0 = unavailable. */
624
+ nativeExtCx: number;
625
+ nativeExtCy: number;
608
626
  shapes: ShapeInfo[];
609
627
  }
610
628