@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.
- package/dist/{docx-CM-oHSyZ.js → docx-wLLJuetI.js} +2490 -2077
- package/dist/docx.mjs +2 -2
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{find-cursor-CABDFafh.js → find-cursor-DBifiZop.js} +941 -923
- package/dist/{highlight-rect-DIReGC3z.js → highlight-rect-DTgfiJgA.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{pptx-WoReGPPJ.js → pptx-D3L4FQfI.js} +4 -4
- package/dist/pptx.mjs +2 -2
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/render-worker-host-B5esxBj-.js +27 -0
- package/dist/render-worker-host-BzhGwe0I.js +27 -0
- package/dist/render-worker-host-Cg60RAG_.js +27 -0
- package/dist/{segments-2VsQNClV.js → segments--0hIQLXB.js} +1 -1
- package/dist/types/docx.d.ts +18 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/{visible-index-YRawP6W8.js → visible-index-DSN5XPnm.js} +1 -1
- package/dist/{xlsx-CHfWgWy8.js → xlsx-BWEqRZ25.js} +343 -336
- package/dist/xlsx.mjs +2 -2
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/render-worker-host-BNYGV6vm.js +0 -27
- package/dist/render-worker-host-CJc3E4ej.js +0 -27
- package/dist/render-worker-host-DcfYux0W.js +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as e } from "./find-cursor-
|
|
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";
|
package/dist/types/docx.d.ts
CHANGED
|
@@ -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
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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-
|
|
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;
|