@silurus/ooxml 0.72.1 → 0.72.2

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.
@@ -1,4 +1,4 @@
1
- import { V as e } from "./find-cursor-CABDFafh.js";
1
+ import { V as e } from "./find-cursor-DBifiZop.js";
2
2
  //#region packages/core/src/text/bidi/segments.ts
3
3
  function t(t, n) {
4
4
  return t === !0 ? "rtl" : t === !1 ? "ltr" : e().computeLevels(n, "auto").paragraphLevel === 1 ? "rtl" : "ltr";
@@ -1,3 +1,17 @@
1
+ /** Resolved formatting of the WordprocessingML anchor character that hosts a
2
+ * floating drawing. The drawing has zero inline advance, but these metrics still
3
+ * participate in the containing line's height and document-grid allocation. */
4
+ export declare interface AnchorHostMetrics {
5
+ /** Effective `<w:sz>` in points. */
6
+ fontSize: number;
7
+ /** Resolved ascii/hAnsi font face. */
8
+ fontFamily?: string | null;
9
+ /** Resolved East Asian font face, retained for Far East line metrics. */
10
+ fontFamilyEastAsia?: string | null;
11
+ bold?: boolean;
12
+ italic?: boolean;
13
+ }
14
+
1
15
  /**
2
16
  * Observe an element's size and invoke a render callback, coalescing bursts to
3
17
  * one call per animation frame and serializing overlapping async renders.
@@ -1115,6 +1129,8 @@ export declare interface DocRevision {
1115
1129
  export declare type DocRun = {
1116
1130
  type: 'text';
1117
1131
  } & DocxTextRun | {
1132
+ type: 'anchorHost';
1133
+ } & AnchorHostMetrics | {
1118
1134
  type: 'image';
1119
1135
  } & ImageRun | {
1120
1136
  type: 'chart';
@@ -1282,6 +1298,8 @@ export declare class DocxDocument {
1282
1298
  * shared FontFaceSet for the lifetime of the SPA (deduped + refcounted in core,
1283
1299
  * so a web font shared with another open document survives until both go). */
1284
1300
  private _googleFontFaces;
1301
+ /** Exact local faces used for version-adaptive Office line metrics. */
1302
+ private _localMetricFontFaces;
1285
1303
  /** One stable closure per instance: core's path-keyed SVG cache namespaces on
1286
1304
  * this identity, so two open documents never swap a shared zip path (e.g.
1287
1305
  * word/media/image1.svg). Reusing one reference also lets the SVG cache hit
@@ -1,3 +1,17 @@
1
+ /** Resolved formatting of the WordprocessingML anchor character that hosts a
2
+ * floating drawing. The drawing has zero inline advance, but these metrics still
3
+ * participate in the containing line's height and document-grid allocation. */
4
+ declare interface AnchorHostMetrics {
5
+ /** Effective `<w:sz>` in points. */
6
+ fontSize: number;
7
+ /** Resolved ascii/hAnsi font face. */
8
+ fontFamily?: string | null;
9
+ /** Resolved East Asian font face, retained for Far East line metrics. */
10
+ fontFamilyEastAsia?: string | null;
11
+ bold?: boolean;
12
+ italic?: boolean;
13
+ }
14
+
1
15
  declare interface ArrowEnd {
2
16
  /** OOXML type: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow" */
3
17
  type: string;
@@ -1566,6 +1580,8 @@ declare interface DocRevision {
1566
1580
  declare type DocRun = {
1567
1581
  type: 'text';
1568
1582
  } & DocxTextRun | {
1583
+ type: 'anchorHost';
1584
+ } & AnchorHostMetrics | {
1569
1585
  type: 'image';
1570
1586
  } & ImageRun | {
1571
1587
  type: 'chart';
@@ -1754,6 +1770,7 @@ export declare namespace docx {
1754
1770
  FieldRun,
1755
1771
  ImageRun,
1756
1772
  ChartRun,
1773
+ AnchorHostMetrics,
1757
1774
  ShapeRun,
1758
1775
  TextPath,
1759
1776
  ShapeText_2 as ShapeText,
@@ -1811,6 +1828,8 @@ declare class DocxDocument {
1811
1828
  * shared FontFaceSet for the lifetime of the SPA (deduped + refcounted in core,
1812
1829
  * so a web font shared with another open document survives until both go). */
1813
1830
  private _googleFontFaces;
1831
+ /** Exact local faces used for version-adaptive Office line metrics. */
1832
+ private _localMetricFontFaces;
1814
1833
  /** One stable closure per instance: core's path-keyed SVG cache namespaces on
1815
1834
  * this identity, so two open documents never swap a shared zip path (e.g.
1816
1835
  * word/media/image1.svg). Reusing one reference also lets the SVG cache hit
@@ -1,4 +1,4 @@
1
- import { Y as e, at as t, et as n, rt as r } from "./find-cursor-CABDFafh.js";
1
+ import { Y as e, at as t, et as n, rt as r } from "./find-cursor-DBifiZop.js";
2
2
  //#region packages/core/src/image/duotone-bitmap-by-path.ts
3
3
  function i(e, t) {
4
4
  return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;