@silurus/ooxml 0.59.3 → 0.60.1

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.
@@ -525,6 +525,24 @@ export declare interface ImageRun {
525
525
  distRight?: number;
526
526
  /** wrapText attribute: "bothSides" | "left" | "right" | "largest". */
527
527
  wrapSide?: string;
528
+ /**
529
+ * ECMA-376 §20.4.2.3 `wp:anchor/@allowOverlap` — whether this floating object
530
+ * may overlap other floats. Spec default is true (the attribute is optional);
531
+ * absent/undefined is treated as true. `false` mandates the renderer
532
+ * reposition the object to prevent any overlap.
533
+ */
534
+ allowOverlap?: boolean;
535
+ }
536
+
537
+ /** DrawingML line-end (arrow head). ECMA-376 §20.1.8.3 CT_LineEndProperties.
538
+ * Maps 1:1 to core's `ArrowEnd`. */
539
+ export declare interface LineEnd {
540
+ /** "triangle" | "stealth" | "diamond" | "oval" | "arrow" (never "none"). */
541
+ type: string;
542
+ /** Width step: "sm" | "med" | "lg". */
543
+ w: string;
544
+ /** Length step: "sm" | "med" | "lg". */
545
+ len: string;
528
546
  }
529
547
 
530
548
  export declare interface LineSpacing {
@@ -916,6 +934,12 @@ export declare interface ShapeRun {
916
934
  fill: ShapeFill | null;
917
935
  stroke: string | null;
918
936
  strokeWidth?: number;
937
+ /** `<a:ln><a:prstDash val>` — ECMA-376 §20.1.8.48. Absent = solid. */
938
+ strokeDash?: string | null;
939
+ /** `<a:ln><a:headEnd>` line-start decoration (ECMA-376 §20.1.8.3). */
940
+ headEnd?: LineEnd | null;
941
+ /** `<a:ln><a:tailEnd>` line-end decoration (ECMA-376 §20.1.8.3). */
942
+ tailEnd?: LineEnd | null;
919
943
  rotation?: number;
920
944
  wrapMode?: string | null;
921
945
  /** Text rendered INSIDE the shape's bounding box (`<wps:txbx><w:txbxContent>`). */
@@ -1100,6 +1100,7 @@ export declare namespace docx {
1100
1100
  BorderSpec,
1101
1101
  PathCmd_3 as PathCmd,
1102
1102
  GradientStop_2 as GradientStop,
1103
+ LineEnd,
1103
1104
  DocxTextRunInfo
1104
1105
  }
1105
1106
  }
@@ -1549,6 +1550,13 @@ declare interface ImageRun {
1549
1550
  distRight?: number;
1550
1551
  /** wrapText attribute: "bothSides" | "left" | "right" | "largest". */
1551
1552
  wrapSide?: string;
1553
+ /**
1554
+ * ECMA-376 §20.4.2.3 `wp:anchor/@allowOverlap` — whether this floating object
1555
+ * may overlap other floats. Spec default is true (the attribute is optional);
1556
+ * absent/undefined is treated as true. `false` mandates the renderer
1557
+ * reposition the object to prevent any overlap.
1558
+ */
1559
+ allowOverlap?: boolean;
1552
1560
  }
1553
1561
 
1554
1562
  declare interface LegendManualLayout {
@@ -1589,6 +1597,17 @@ declare interface LineBreak {
1589
1597
  type: 'break';
1590
1598
  }
1591
1599
 
1600
+ /** DrawingML line-end (arrow head). ECMA-376 §20.1.8.3 CT_LineEndProperties.
1601
+ * Maps 1:1 to core's `ArrowEnd`. */
1602
+ declare interface LineEnd {
1603
+ /** "triangle" | "stealth" | "diamond" | "oval" | "arrow" (never "none"). */
1604
+ type: string;
1605
+ /** Width step: "sm" | "med" | "lg". */
1606
+ w: string;
1607
+ /** Length step: "sm" | "med" | "lg". */
1608
+ len: string;
1609
+ }
1610
+
1592
1611
  declare interface LineSpacing {
1593
1612
  value: number;
1594
1613
  rule: 'auto' | 'exact' | 'atLeast';
@@ -2862,6 +2881,12 @@ declare interface ShapeRun {
2862
2881
  fill: ShapeFill | null;
2863
2882
  stroke: string | null;
2864
2883
  strokeWidth?: number;
2884
+ /** `<a:ln><a:prstDash val>` — ECMA-376 §20.1.8.48. Absent = solid. */
2885
+ strokeDash?: string | null;
2886
+ /** `<a:ln><a:headEnd>` line-start decoration (ECMA-376 §20.1.8.3). */
2887
+ headEnd?: LineEnd | null;
2888
+ /** `<a:ln><a:tailEnd>` line-end decoration (ECMA-376 §20.1.8.3). */
2889
+ tailEnd?: LineEnd | null;
2865
2890
  rotation?: number;
2866
2891
  wrapMode?: string | null;
2867
2892
  /** Text rendered INSIDE the shape's bounding box (`<wps:txbx><w:txbxContent>`). */