ooxml-core 1.41.0 → 1.43.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/README.md +4 -0
- package/dist/{PptxHandler-3AGIITR7.mjs → PptxHandler-3VAVJDFB.mjs} +2 -2
- package/dist/PptxHandler-V23RDNEX.cjs +14 -0
- package/dist/PptxHandler-WB3KL2WH.mjs +5 -0
- package/dist/{PresentationBuilder-JNID4B4Z.mjs → PresentationBuilder-7LJMTRJ6.mjs} +2 -2
- package/dist/{PresentationBuilder-MZBKYOYD.cjs → PresentationBuilder-KHL6GONR.cjs} +6 -6
- package/dist/{PresentationBuilder-5DPKFUXP.mjs → PresentationBuilder-PY2GB4IG.mjs} +3 -3
- package/dist/automation/index.cjs +79 -91
- package/dist/automation/index.mjs +79 -91
- package/dist/chart/index.cjs +12 -9
- package/dist/chart/index.mjs +12 -9
- package/dist/{chunk-ZYCBJKAE.mjs → chunk-243ZYX2B.mjs} +1 -1
- package/dist/{chunk-LRBWCRQ3.cjs → chunk-3J6VIKLP.cjs} +3 -3
- package/dist/{chunk-DD7COXWR.mjs → chunk-4LEVL6ZW.mjs} +30 -13
- package/dist/chunk-CODMW5KF.cjs +110 -0
- package/dist/{chunk-HTELXT2N.mjs → chunk-HLYOHD2Z.mjs} +30 -12
- package/dist/{chunk-P3WAKBVS.mjs → chunk-IPV3J3I5.mjs} +82 -90
- package/dist/{chunk-6LGRRQ3K.mjs → chunk-JHYU7HGG.mjs} +1 -1
- package/dist/{chunk-JXR6YWBW.mjs → chunk-KCDLTVUI.mjs} +125 -126
- package/dist/chunk-O3YGBYGZ.mjs +104 -0
- package/dist/{chunk-75KBNUKS.cjs → chunk-QZPOPUI5.cjs} +82 -89
- package/dist/{chunk-3BIFRTU4.cjs → chunk-RNZQ2OU4.cjs} +1294 -1276
- package/dist/{chunk-UE23HF2N.mjs → chunk-VKFKEVHK.mjs} +1 -1
- package/dist/{chunk-KKVD3R6O.mjs → chunk-WEAWSXUX.mjs} +4 -4
- package/dist/diagram/index.cjs +499 -370
- package/dist/diagram/index.d.ts +1 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +495 -371
- package/dist/docx/embedded.cjs +67 -89
- package/dist/docx/embedded.mjs +67 -89
- package/dist/docx/index.cjs +125 -110
- package/dist/docx/index.mjs +125 -110
- package/dist/docx/layout/index.cjs +257 -110
- package/dist/docx/layout/index.d.ts +1 -0
- package/dist/docx/layout/index.d.ts.map +1 -1
- package/dist/docx/layout/index.mjs +257 -111
- package/dist/docx/layout/webfont-runs.d.ts +5 -0
- package/dist/docx/layout/webfont-runs.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +67 -89
- package/dist/docx/load/index.mjs +67 -89
- package/dist/docx/shape-svg.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +79 -98
- package/dist/docx/ui/index.mjs +79 -98
- package/dist/drawingml/dash-pattern.d.ts +61 -0
- package/dist/drawingml/dash-pattern.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +249 -43
- package/dist/drawingml/index.d.ts +3 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +241 -44
- package/dist/drawingml/rect-path-gradient.d.ts +5 -0
- package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
- package/dist/drawingml/shape-path-gradient.d.ts +57 -0
- package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
- package/dist/geometry/index.cjs +68 -90
- package/dist/geometry/index.mjs +68 -90
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +2 -2
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -1
- package/dist/index.cjs +2937 -493
- package/dist/index.mjs +2937 -493
- package/dist/pptx/automation/index.cjs +366 -197
- package/dist/pptx/automation/index.d.ts +11 -17
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +156 -71
- package/dist/pptx/chunks/{elements-6BMEOo7i.d.ts → elements-PBugbKtv.d.ts} +3 -873
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts → index-Bj-hur0D.d.ts} +4 -4
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts.map → index-Bj-hur0D.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DvN0TkJJ.d.ts → index-CCJiD-Bm.d.ts} +14 -10
- package/dist/pptx/chunks/index-CCJiD-Bm.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-Dija_Wth.d.ts → index-CGNb1TV9.d.ts} +22 -4
- package/dist/pptx/chunks/index-CGNb1TV9.d.ts.map +1 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-DorONr3h.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
- package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +180 -102
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +69 -91
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +8 -37
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +225 -135
- package/dist/pptx/index.d.ts +6 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/teams/index.cjs +136 -91
- package/dist/teams/index.mjs +136 -91
- package/dist/text/css-font-family.d.ts.map +1 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
- package/dist/text/index.cjs +2252 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +2231 -1
- package/dist/text/metric-font-family.d.ts.map +1 -1
- package/dist/text/webfonts/font-weight-names.d.ts +66 -0
- package/dist/text/webfonts/font-weight-names.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-catalogue.d.ts +14 -0
- package/dist/text/webfonts/google-fonts-catalogue.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-lookup.d.ts +7 -0
- package/dist/text/webfonts/google-fonts-lookup.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-request.d.ts +57 -0
- package/dist/text/webfonts/google-fonts-request.d.ts.map +1 -0
- package/dist/text/webfonts/index.d.ts +12 -0
- package/dist/text/webfonts/index.d.ts.map +1 -0
- package/dist/text/webfonts/metric-clones.d.ts +17 -0
- package/dist/text/webfonts/metric-clones.d.ts.map +1 -0
- package/dist/text/webfonts/webfont-faces.d.ts +24 -0
- package/dist/text/webfonts/webfont-faces.d.ts.map +1 -0
- package/dist/visio/index.cjs +64 -0
- package/dist/visio/index.d.ts +1 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +64 -1
- package/dist/visio/ui/index.cjs +8 -0
- package/dist/visio/ui/index.mjs +8 -0
- package/dist/visio/webfont-runs.d.ts +27 -0
- package/dist/visio/webfont-runs.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +67 -89
- package/dist/xlsx/collab/index.mjs +67 -89
- package/dist/xlsx/index.cjs +2253 -118
- package/dist/xlsx/index.mjs +2249 -119
- package/dist/xlsx/layout/font-stack.d.ts +8 -0
- package/dist/xlsx/layout/font-stack.d.ts.map +1 -0
- package/dist/xlsx/layout/index.d.ts +3 -1
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-view.d.ts.map +1 -1
- package/dist/xlsx/layout/style-view.d.ts +2 -0
- package/dist/xlsx/layout/style-view.d.ts.map +1 -1
- package/dist/xlsx/layout/webfont-runs.d.ts +11 -0
- package/dist/xlsx/layout/webfont-runs.d.ts.map +1 -0
- package/dist/xlsx/load/index.cjs +67 -89
- package/dist/xlsx/load/index.mjs +67 -89
- package/dist/xlsx/ui/commands/util.d.ts.map +1 -1
- package/dist/xlsx/ui/context.d.ts +5 -0
- package/dist/xlsx/ui/context.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/cell-paint.d.ts +3 -2
- package/dist/xlsx/ui/grid/cell-paint.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +2093 -102
- package/dist/xlsx/ui/index.mjs +2093 -103
- package/package.json +1 -1
- package/dist/PptxHandler-EL4E4SPH.mjs +0 -5
- package/dist/PptxHandler-OIZ3R3DJ.cjs +0 -14
- package/dist/chunk-3IT6ZD7K.mjs +0 -213
- package/dist/chunk-FRUB573B.cjs +0 -219
- package/dist/pptx/chunks/elements-6BMEOo7i.d.ts.map +0 -1
- package/dist/pptx/chunks/index-Dija_Wth.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-DorONr3h.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric-font-family.d.ts","sourceRoot":"","sources":["../../text/metric-font-family.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"metric-font-family.d.ts","sourceRoot":"","sources":["../../text/metric-font-family.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAkB5F,CAAC;AAEF,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMrD"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** A typeface name split into its family and the weight it names. */
|
|
2
|
+
export interface FontWeightName {
|
|
3
|
+
/** The name without its trailing weight/style tokens. */
|
|
4
|
+
family: string;
|
|
5
|
+
/** CSS weight the trailing tokens name (400 when only a style is named). */
|
|
6
|
+
weight: number;
|
|
7
|
+
/** The name ends in "Italic" or "Oblique". */
|
|
8
|
+
italic: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Split trailing weight (and style) tokens off a typeface name, or `null`
|
|
12
|
+
* when the name ends in neither. Handles both run-together and spaced or
|
|
13
|
+
* hyphenated spellings ("SemiBold", "Semi Bold", "Semi-Bold").
|
|
14
|
+
*/
|
|
15
|
+
export declare function parseFontWeightName(name: string): FontWeightName | null;
|
|
16
|
+
/** The Google Fonts family serving a typeface, and the weight it selects. */
|
|
17
|
+
export interface GoogleFontsFace {
|
|
18
|
+
/** Canonical catalogue spelling of the family to request. */
|
|
19
|
+
family: string;
|
|
20
|
+
/**
|
|
21
|
+
* Weight the typeface name selects within `family`, or `undefined` when the
|
|
22
|
+
* name is the catalogue family itself.
|
|
23
|
+
*/
|
|
24
|
+
weight?: number;
|
|
25
|
+
/** The typeface name selects the italic faces of `family` ("Lato Light Italic"). */
|
|
26
|
+
italic?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Which Google Fonts family serves `typeface`, if any: the family itself when
|
|
30
|
+
* the catalogue lists the full name, otherwise its base family plus the
|
|
31
|
+
* weight the trailing tokens name ("DM Sans Light" is "DM Sans" at 300).
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveGoogleFontsFace(typeface: string): GoogleFontsFace | null;
|
|
34
|
+
/**
|
|
35
|
+
* CSS `font-weight` for text in `fontFamily` (a typeface name or a resolved
|
|
36
|
+
* CSS `font-family` list, whose first entry is used).
|
|
37
|
+
*
|
|
38
|
+
* Bold text is 700. Regular text is 400, except for a weight variant of a
|
|
39
|
+
* Google Fonts family, which renders at the weight its name implies ("DM Sans
|
|
40
|
+
* Light" is 300). Bold text in such a family is at least 700, so "Black" stays
|
|
41
|
+
* 900. Every place that renders or measures text calls this, so the canvas
|
|
42
|
+
* measurement and the painted text agree.
|
|
43
|
+
*/
|
|
44
|
+
export declare function resolveFontWeight(fontFamily: string | undefined, bold: boolean | undefined): number;
|
|
45
|
+
/**
|
|
46
|
+
* The weight as a canvas/CSS font-shorthand fragment: the `bold` keyword (or
|
|
47
|
+
* none) for the usual 700/400, a number otherwise. Kept as keywords so the
|
|
48
|
+
* common case serialises exactly as before.
|
|
49
|
+
*/
|
|
50
|
+
export declare function fontWeightShorthand(fontFamily: string | undefined, bold: boolean | undefined): string;
|
|
51
|
+
/**
|
|
52
|
+
* The weight as an SVG/CSS attribute value: omitted (`undefined`) for 400,
|
|
53
|
+
* `bold` for 700, the number otherwise.
|
|
54
|
+
*/
|
|
55
|
+
export declare function fontWeightAttribute(fontFamily: string | undefined, bold: boolean | undefined): string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Whether text in `fontFamily` (a typeface name or a resolved CSS
|
|
58
|
+
* `font-family` list) renders italic: when it is italic itself, or when the
|
|
59
|
+
* family is a style variant of a Google Fonts family named as its own family
|
|
60
|
+
* ("Lato Light Italic" is Lato's italic 300 face). The same rule as
|
|
61
|
+
* {@link resolveFontWeight}, so other names keep their own style.
|
|
62
|
+
*/
|
|
63
|
+
export declare function resolveFontItalic(fontFamily: string | undefined, italic: boolean | undefined): boolean;
|
|
64
|
+
/** The style as a canvas/CSS font-shorthand fragment: `italic ` or nothing. */
|
|
65
|
+
export declare function fontStyleShorthand(fontFamily: string | undefined, italic: boolean | undefined): string;
|
|
66
|
+
//# sourceMappingURL=font-weight-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-weight-names.d.ts","sourceRoot":"","sources":["../../../text/webfonts/font-weight-names.ts"],"names":[],"mappings":"AAqDA,qEAAqE;AACrE,MAAM,WAAW,cAAc;IAC9B,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,MAAM,EAAE,OAAO,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CA+BvE;AAMD,6EAA6E;AAC7E,MAAM,WAAW,eAAe;IAC/B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAgB/E;AAoCD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAChC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,IAAI,EAAE,OAAO,GAAG,SAAS,GACvB,MAAM,CAIR;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,IAAI,EAAE,OAAO,GAAG,SAAS,GACvB,MAAM,CAGR;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAClC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,IAAI,EAAE,OAAO,GAAG,SAAS,GACvB,MAAM,GAAG,SAAS,CAMpB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAChC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,MAAM,EAAE,OAAO,GAAG,SAAS,GACzB,OAAO,CAKT;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CACjC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,MAAM,EAAE,OAAO,GAAG,SAAS,GACzB,MAAM,CAER"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED by scripts/update-google-fonts-catalogue.mjs on 2026-09-02; do not
|
|
3
|
+
* edit by hand. Every family name the Google Fonts CSS2 API served on that
|
|
4
|
+
* date, in the API's own spelling (family names are matched case-insensitively
|
|
5
|
+
* and requested with this canonical spelling).
|
|
6
|
+
*
|
|
7
|
+
* Refresh with `bun run fonts:catalogue` when a deck references a family
|
|
8
|
+
* Google has added since.
|
|
9
|
+
*/
|
|
10
|
+
/** Date the catalogue was last regenerated (ISO yyyy-mm-dd). */
|
|
11
|
+
export declare const GOOGLE_FONTS_CATALOGUE_DATE = "2026-09-02";
|
|
12
|
+
/** Family names served by the Google Fonts CSS2 API, sorted. */
|
|
13
|
+
export declare const GOOGLE_FONTS_FAMILIES: readonly string[];
|
|
14
|
+
//# sourceMappingURL=google-fonts-catalogue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-fonts-catalogue.d.ts","sourceRoot":"","sources":["../../../text/webfonts/google-fonts-catalogue.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,gEAAgE;AAChE,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EA25DlD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical Google Fonts spelling for `family`, or `null` when the CSS2 API
|
|
3
|
+
* does not serve it. Matching is case-insensitive and whitespace-normalised
|
|
4
|
+
* because PowerPoint stores the name as the author typed it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function findGoogleFontsFamily(family: string): string | null;
|
|
7
|
+
//# sourceMappingURL=google-fonts-lookup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-fonts-lookup.d.ts","sourceRoot":"","sources":["../../../text/webfonts/google-fonts-lookup.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKnE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** Base URL of the Google Fonts CSS2 API. */
|
|
2
|
+
export declare const GOOGLE_FONTS_CSS2_BASE = "https://fonts.googleapis.com/css2";
|
|
3
|
+
/**
|
|
4
|
+
* Host policy for the webfont fallback, the `googleFonts` option of every product.
|
|
5
|
+
*
|
|
6
|
+
* - `false`: off. No stylesheet is injected, so no request reaches `fonts.googleapis.com` or
|
|
7
|
+
* `fonts.gstatic.com`; text uses installed, embedded or fallback fonts.
|
|
8
|
+
* - `{ baseUrl }`: every CSS2 request goes to `baseUrl` instead, with the same query format
|
|
9
|
+
* (`?family=...&display=swap`).
|
|
10
|
+
* - unset: each product's documented default (see {@link resolveGoogleFontsCss2Base}).
|
|
11
|
+
*/
|
|
12
|
+
export type GoogleFontsOption = false | {
|
|
13
|
+
readonly baseUrl: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Validate a self-hosted CSS2 mirror base URL: an absolute `http:` or `https:` URL without
|
|
17
|
+
* credentials, query or fragment (the request appends its own query). The normalised URL, or
|
|
18
|
+
* `null` when it is not acceptable.
|
|
19
|
+
*/
|
|
20
|
+
export declare function normalizeGoogleFontsBaseUrl(baseUrl: unknown): string | null;
|
|
21
|
+
/**
|
|
22
|
+
* The CSS2 base URL a `googleFonts` value requests, or `null` when the fallback is off. An
|
|
23
|
+
* invalid `baseUrl` fails closed: it warns (once per distinct value) and turns the fallback off
|
|
24
|
+
* rather than silently falling back to Google. `whenUnset` is the product's default for an unset
|
|
25
|
+
* value: PowerPoint's is Google (`GOOGLE_FONTS_CSS2_BASE`), Word, Excel and Visio's is off.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveGoogleFontsCss2Base(option: GoogleFontsOption | undefined, whenUnset?: string | null, label?: string): string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Axis spec requested for every catalogue family. The API serves only the weights and styles a
|
|
30
|
+
* family has, so this one fragment is safe for every family and yields real bold and italic.
|
|
31
|
+
*/
|
|
32
|
+
export declare const GOOGLE_WEBFONT_AXIS = "ital,wght@0,400;0,700;1,400;1,700";
|
|
33
|
+
/**
|
|
34
|
+
* The referenced families to look up: everything not satisfied by an embedded font and (when
|
|
35
|
+
* the check is supplied) not installed, so an installed family is used as-is and its name never
|
|
36
|
+
* reaches the API.
|
|
37
|
+
*/
|
|
38
|
+
export declare function selectGoogleWebfontFamilies(referenced: Iterable<string>, embedded?: Iterable<string>, isLocallyInstalled?: (family: string) => boolean): string[];
|
|
39
|
+
/**
|
|
40
|
+
* The CSS2 query fragment for one family. Word separators stay literal spaces: the fragment goes
|
|
41
|
+
* through `encodeURIComponent`, and an encoded `+` reaches Google as a literal plus it rejects.
|
|
42
|
+
*/
|
|
43
|
+
export declare function buildGoogleFontsFragment(family: string, weights?: Iterable<number>): string;
|
|
44
|
+
/** The CSS2 stylesheet href for the fragments, or `null` when there is nothing to load. */
|
|
45
|
+
export declare function buildGoogleFontsHref(fragments: readonly string[], baseUrl?: string): string | null;
|
|
46
|
+
/** The family the stylesheet serves for `family` (itself or its clone), or `null`. */
|
|
47
|
+
export declare function servedGoogleFontsFamily(family: string): string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The query fragments for the candidate families the catalogue knows, under their canonical
|
|
50
|
+
* spelling or as their metric-compatible clone; families resolving to one served family give one
|
|
51
|
+
* fragment. A weight variant named as its own family ("DM Sans Light") requests its base family
|
|
52
|
+
* with that weight on the axis. Unmatched families are dropped without any request. Sorted, so
|
|
53
|
+
* the href depends only on which families a document uses. `onResolved` hears every candidate
|
|
54
|
+
* that matched.
|
|
55
|
+
*/
|
|
56
|
+
export declare function matchGoogleWebfontFragments(families: readonly string[], onResolved?: (family: string) => void): string[];
|
|
57
|
+
//# sourceMappingURL=google-fonts-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-fonts-request.d.ts","sourceRoot":"","sources":["../../../text/webfonts/google-fonts-request.ts"],"names":[],"mappings":"AAoBA,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB,sCAAsC,CAAC;AAE1E;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAErE;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAa3E;AAID;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,SAAS,GAAE,MAAM,GAAG,IAA6B,EACjD,KAAK,SAAgB,GACnB,MAAM,GAAG,IAAI,CAYf;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,sCAAsC,CAAC;AAKvE;;;;GAIG;AACH,wBAAgB,2BAA2B,CAC1C,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,EAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,EAC3B,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,GAC9C,MAAM,EAAE,CAQV;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAM3F;AAED,2FAA2F;AAC3F,wBAAgB,oBAAoB,CACnC,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,OAAO,GAAE,MAA+B,GACtC,MAAM,GAAG,IAAI,CAIf;AAED,sFAAsF;AACtF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAErE;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GACnC,MAAM,EAAE,CAqBV"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Webfonts for document fonts the reader has neither installed nor embedded: the bundled Google
|
|
3
|
+
* Fonts catalogue, verified metric-compatible clones, weight-variant names, the CSS2 request and
|
|
4
|
+
* the faces a document draws. DOM-free; `ooxml-ui`'s `fonts` folder does the browser side.
|
|
5
|
+
*/
|
|
6
|
+
export { GOOGLE_FONTS_CATALOGUE_DATE, GOOGLE_FONTS_FAMILIES } from './google-fonts-catalogue.js';
|
|
7
|
+
export { findGoogleFontsFamily } from './google-fonts-lookup.js';
|
|
8
|
+
export { findMetricCompatibleGoogleFontsFamily } from './metric-clones.js';
|
|
9
|
+
export * from './font-weight-names.js';
|
|
10
|
+
export * from './google-fonts-request.js';
|
|
11
|
+
export * from './webfont-faces.js';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../text/webfonts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,qCAAqC,EAAE,MAAM,iBAAiB,CAAC;AACxE,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Google-Fonts-catalogue family to request for `family` when `family`
|
|
3
|
+
* itself is not served under its own name: its verified metric-compatible
|
|
4
|
+
* clone ({@link METRIC_COMPATIBLE_CLONES}), if the catalogue serves it, or
|
|
5
|
+
* `null` when `family` is itself servable (no substitute needed) or has no
|
|
6
|
+
* verified clone on the catalogue (e.g. Segoe UI's match, Selawik, is not on
|
|
7
|
+
* Google Fonts; see `google-webfonts.ts`'s module doc comment).
|
|
8
|
+
*
|
|
9
|
+
* Loading the substitute rather than the deck's own name is what makes text
|
|
10
|
+
* line breaks and extents match PowerPoint even though the exact family is
|
|
11
|
+
* unavailable: `getSubstituteFontFamily` (`ooxml-core/pptx`) already lists
|
|
12
|
+
* this same family second in the CSS `font-family` chain (right after the
|
|
13
|
+
* deck font), so once it is loaded the browser measures text with matching
|
|
14
|
+
* advance widths.
|
|
15
|
+
*/
|
|
16
|
+
export declare function findMetricCompatibleGoogleFontsFamily(family: string): string | null;
|
|
17
|
+
//# sourceMappingURL=metric-clones.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metric-clones.d.ts","sourceRoot":"","sources":["../../../text/webfonts/metric-clones.ts"],"names":[],"mappings":"AA+CA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qCAAqC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMnF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** One run of text: its family, emphasis and characters. */
|
|
2
|
+
export interface WebfontRun {
|
|
3
|
+
family: string | undefined;
|
|
4
|
+
bold?: boolean | undefined;
|
|
5
|
+
italic?: boolean | undefined;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
/** One face to load: CSS `font` shorthand, its served family and the characters drawn in it. */
|
|
9
|
+
export interface WebfontFace {
|
|
10
|
+
family: string;
|
|
11
|
+
font: string;
|
|
12
|
+
chars: Set<string>;
|
|
13
|
+
}
|
|
14
|
+
/** Every distinct family the runs name. */
|
|
15
|
+
export declare function collectRunFamilies(runs: Iterable<WebfontRun>): Set<string>;
|
|
16
|
+
/**
|
|
17
|
+
* The faces the runs draw in `candidates`, grouped by served family, and the candidates the
|
|
18
|
+
* catalogue does not serve.
|
|
19
|
+
*/
|
|
20
|
+
export declare function collectWebfontFaces(runs: Iterable<WebfontRun>, candidates: readonly string[]): {
|
|
21
|
+
faces: Map<string, WebfontFace[]>;
|
|
22
|
+
unavailable: string[];
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=webfont-faces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webfont-faces.d.ts","sourceRoot":"","sources":["../../../text/webfonts/webfont-faces.ts"],"names":[],"mappings":"AAaA,4DAA4D;AAC5D,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACb;AAED,gGAAgG;AAChG,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACnB;AAOD,2CAA2C;AAC3C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAO1E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,UAAU,EAAE,SAAS,MAAM,EAAE,GAC3B;IAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IAAC,WAAW,EAAE,MAAM,EAAE,CAAA;CAAE,CA2B9D"}
|
package/dist/visio/index.cjs
CHANGED
|
@@ -45093,6 +45093,14 @@ function applyConnectorEdit(roots, root2, edit, check) {
|
|
|
45093
45093
|
|
|
45094
45094
|
// text/font-metrics/design-advances.generated.ts
|
|
45095
45095
|
var DESIGN_ADVANCES = {
|
|
45096
|
+
aptos: {
|
|
45097
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
45098
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
45099
|
+
},
|
|
45100
|
+
"aptos display": {
|
|
45101
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
45102
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
45103
|
+
},
|
|
45096
45104
|
arial: {
|
|
45097
45105
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
45098
45106
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
|
@@ -61253,6 +61261,61 @@ function encodeBitmapEmf(width, height, rgba) {
|
|
|
61253
61261
|
return out;
|
|
61254
61262
|
}
|
|
61255
61263
|
|
|
61264
|
+
// visio/webfont-runs.ts
|
|
61265
|
+
var DEFAULT_PER_FACE = 256;
|
|
61266
|
+
var DEFAULT_SCANNED = 1e6;
|
|
61267
|
+
function collectVisioWebfontRuns(document, options2 = {}) {
|
|
61268
|
+
const perFace = options2.maxCharactersPerFace ?? DEFAULT_PER_FACE;
|
|
61269
|
+
let budget = options2.maxScannedCharacters ?? DEFAULT_SCANNED;
|
|
61270
|
+
const faces = /* @__PURE__ */ new Map();
|
|
61271
|
+
const add = (family, bold, italic, text7, upper) => {
|
|
61272
|
+
const name4 = family.trim();
|
|
61273
|
+
if (!name4) return;
|
|
61274
|
+
const key3 = `${name4.toLowerCase()}\0${bold}\0${italic}`;
|
|
61275
|
+
let face = faces.get(key3);
|
|
61276
|
+
if (!face) {
|
|
61277
|
+
face = { family: name4, bold, italic, chars: /* @__PURE__ */ new Set() };
|
|
61278
|
+
faces.set(key3, face);
|
|
61279
|
+
}
|
|
61280
|
+
if (budget <= 0 || face.chars.size >= perFace) return;
|
|
61281
|
+
const sample = text7.length > budget ? text7.slice(0, budget) : text7;
|
|
61282
|
+
budget -= sample.length;
|
|
61283
|
+
for (const char of upper ? `${sample}${sample.toUpperCase()}` : sample) {
|
|
61284
|
+
if (face.chars.size >= perFace) break;
|
|
61285
|
+
if (char.trim() !== "") face.chars.add(char);
|
|
61286
|
+
}
|
|
61287
|
+
};
|
|
61288
|
+
const readText = (text7) => {
|
|
61289
|
+
if (text7.runs.length)
|
|
61290
|
+
for (const run2 of text7.runs)
|
|
61291
|
+
add(run2.fontFamily, run2.bold, run2.italic, run2.text, run2.textCase !== void 0);
|
|
61292
|
+
else if (text7.plainText)
|
|
61293
|
+
add(text7.fontFamily, !!text7.bold, !!text7.italic, text7.plainText, text7.textCase !== void 0);
|
|
61294
|
+
for (const paragraph2 of text7.paragraphs ?? [])
|
|
61295
|
+
if (paragraph2.bullet)
|
|
61296
|
+
add(paragraph2.bullet.fontFamily, false, false, paragraph2.bullet.text, false);
|
|
61297
|
+
};
|
|
61298
|
+
const readShapes2 = (roots) => {
|
|
61299
|
+
const stack = [...roots].reverse();
|
|
61300
|
+
while (stack.length) {
|
|
61301
|
+
const shape = stack.pop();
|
|
61302
|
+
if (shape.hidden) continue;
|
|
61303
|
+
readText(shape.text);
|
|
61304
|
+
for (let index3 = shape.children.length - 1; index3 >= 0; index3--)
|
|
61305
|
+
stack.push(shape.children[index3]);
|
|
61306
|
+
}
|
|
61307
|
+
};
|
|
61308
|
+
for (const page of document.pages) readShapes2(page.shapes);
|
|
61309
|
+
if (options2.includeMasters ?? true)
|
|
61310
|
+
for (const master2 of document.masters ?? []) readShapes2(master2.shapes);
|
|
61311
|
+
return [...faces.values()].map((face) => ({
|
|
61312
|
+
family: face.family,
|
|
61313
|
+
bold: face.bold,
|
|
61314
|
+
italic: face.italic,
|
|
61315
|
+
text: [...face.chars].join("")
|
|
61316
|
+
}));
|
|
61317
|
+
}
|
|
61318
|
+
|
|
61256
61319
|
// visio/accessibility.ts
|
|
61257
61320
|
function checkVisioAlternativeText(document) {
|
|
61258
61321
|
const issues = [];
|
|
@@ -61385,6 +61448,7 @@ exports.bevelProfile = bevelProfile;
|
|
|
61385
61448
|
exports.canonicalShapeDataValue = canonicalShapeDataValue;
|
|
61386
61449
|
exports.captureVisioClipboard = captureVisioClipboard;
|
|
61387
61450
|
exports.checkVisioAlternativeText = checkVisioAlternativeText;
|
|
61451
|
+
exports.collectVisioWebfontRuns = collectVisioWebfontRuns;
|
|
61388
61452
|
exports.convertVisioMetafile = convertVisioMetafile;
|
|
61389
61453
|
exports.createProjection = createProjection;
|
|
61390
61454
|
exports.createVsdx = createVsdx;
|
package/dist/visio/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export type { VisioCommentEdit, VisioCommentAddEdit, VisioCommentUpdateEdit, Vis
|
|
|
68
68
|
export { isVisioLayerName, VISIO_LAYER_NAME_LIMIT } from './edit-layer-commands.js';
|
|
69
69
|
export { designTextMeasurer, setVisioTextMeasurer, visioTextExtents, type VisioTextExtents, type VisioTextMeasureStyle, type VisioTextMeasurer, } from './text-extent.js';
|
|
70
70
|
export { visioFontAssumed } from './style.js';
|
|
71
|
+
export { collectVisioWebfontRuns, type VisioWebfontRunOptions } from './webfont-runs.js';
|
|
71
72
|
export { checkVisioAlternativeText, type VisioAccessibilityIssue } from './accessibility.js';
|
|
72
73
|
export type { VisioAction, VisioActionRun, VisioControl, VisioScratchRow, VisioTabStop, VisioUserCell, } from './shape-sections-types.js';
|
|
73
74
|
export type { VisioControlEdit } from './edit-control.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../visio/index.ts"],"names":[],"mappings":"AAAA,uEA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BAAyB,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/visio/index.mjs
CHANGED
|
@@ -45087,6 +45087,14 @@ function applyConnectorEdit(roots, root2, edit, check) {
|
|
|
45087
45087
|
|
|
45088
45088
|
// text/font-metrics/design-advances.generated.ts
|
|
45089
45089
|
var DESIGN_ADVANCES = {
|
|
45090
|
+
aptos: {
|
|
45091
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
45092
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
45093
|
+
},
|
|
45094
|
+
"aptos display": {
|
|
45095
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
45096
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
45097
|
+
},
|
|
45090
45098
|
arial: {
|
|
45091
45099
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
45092
45100
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
|
@@ -61247,6 +61255,61 @@ function encodeBitmapEmf(width, height, rgba) {
|
|
|
61247
61255
|
return out;
|
|
61248
61256
|
}
|
|
61249
61257
|
|
|
61258
|
+
// visio/webfont-runs.ts
|
|
61259
|
+
var DEFAULT_PER_FACE = 256;
|
|
61260
|
+
var DEFAULT_SCANNED = 1e6;
|
|
61261
|
+
function collectVisioWebfontRuns(document, options2 = {}) {
|
|
61262
|
+
const perFace = options2.maxCharactersPerFace ?? DEFAULT_PER_FACE;
|
|
61263
|
+
let budget = options2.maxScannedCharacters ?? DEFAULT_SCANNED;
|
|
61264
|
+
const faces = /* @__PURE__ */ new Map();
|
|
61265
|
+
const add = (family, bold, italic, text7, upper) => {
|
|
61266
|
+
const name4 = family.trim();
|
|
61267
|
+
if (!name4) return;
|
|
61268
|
+
const key3 = `${name4.toLowerCase()}\0${bold}\0${italic}`;
|
|
61269
|
+
let face = faces.get(key3);
|
|
61270
|
+
if (!face) {
|
|
61271
|
+
face = { family: name4, bold, italic, chars: /* @__PURE__ */ new Set() };
|
|
61272
|
+
faces.set(key3, face);
|
|
61273
|
+
}
|
|
61274
|
+
if (budget <= 0 || face.chars.size >= perFace) return;
|
|
61275
|
+
const sample = text7.length > budget ? text7.slice(0, budget) : text7;
|
|
61276
|
+
budget -= sample.length;
|
|
61277
|
+
for (const char of upper ? `${sample}${sample.toUpperCase()}` : sample) {
|
|
61278
|
+
if (face.chars.size >= perFace) break;
|
|
61279
|
+
if (char.trim() !== "") face.chars.add(char);
|
|
61280
|
+
}
|
|
61281
|
+
};
|
|
61282
|
+
const readText = (text7) => {
|
|
61283
|
+
if (text7.runs.length)
|
|
61284
|
+
for (const run2 of text7.runs)
|
|
61285
|
+
add(run2.fontFamily, run2.bold, run2.italic, run2.text, run2.textCase !== void 0);
|
|
61286
|
+
else if (text7.plainText)
|
|
61287
|
+
add(text7.fontFamily, !!text7.bold, !!text7.italic, text7.plainText, text7.textCase !== void 0);
|
|
61288
|
+
for (const paragraph2 of text7.paragraphs ?? [])
|
|
61289
|
+
if (paragraph2.bullet)
|
|
61290
|
+
add(paragraph2.bullet.fontFamily, false, false, paragraph2.bullet.text, false);
|
|
61291
|
+
};
|
|
61292
|
+
const readShapes2 = (roots) => {
|
|
61293
|
+
const stack = [...roots].reverse();
|
|
61294
|
+
while (stack.length) {
|
|
61295
|
+
const shape = stack.pop();
|
|
61296
|
+
if (shape.hidden) continue;
|
|
61297
|
+
readText(shape.text);
|
|
61298
|
+
for (let index3 = shape.children.length - 1; index3 >= 0; index3--)
|
|
61299
|
+
stack.push(shape.children[index3]);
|
|
61300
|
+
}
|
|
61301
|
+
};
|
|
61302
|
+
for (const page of document.pages) readShapes2(page.shapes);
|
|
61303
|
+
if (options2.includeMasters ?? true)
|
|
61304
|
+
for (const master2 of document.masters ?? []) readShapes2(master2.shapes);
|
|
61305
|
+
return [...faces.values()].map((face) => ({
|
|
61306
|
+
family: face.family,
|
|
61307
|
+
bold: face.bold,
|
|
61308
|
+
italic: face.italic,
|
|
61309
|
+
text: [...face.chars].join("")
|
|
61310
|
+
}));
|
|
61311
|
+
}
|
|
61312
|
+
|
|
61250
61313
|
// visio/accessibility.ts
|
|
61251
61314
|
function checkVisioAlternativeText(document) {
|
|
61252
61315
|
const issues = [];
|
|
@@ -61296,4 +61359,4 @@ function visioTabStarts(segments, tabs = [], origin = 0, start = 0, spacing2 = V
|
|
|
61296
61359
|
return starts;
|
|
61297
61360
|
}
|
|
61298
61361
|
|
|
61299
|
-
export { BEVEL_BLUR_WIDTHS, BEVEL_LIGHTING_TYPES, EmfBitmapError, MAX_PATH_CHARS, MAX_PATH_SEGMENTS, VISIO_ARROW_SHAPES, VISIO_BACKGROUND_STYLES, VISIO_BASIC_SHAPES, VISIO_BASIC_STENCIL, VISIO_BEVEL_PRESETS, VISIO_BEVEL_TYPES_INSET, VISIO_BEVEL_TYPES_SHARP, VISIO_BORDER_STYLES, VISIO_BUILT_IN_STENCILS, VISIO_BUILT_IN_THEMES, VISIO_BUILT_IN_THEME_IDS, VISIO_CALLOUT_STYLES, VISIO_CHART_OBJECT_MAX_BYTES, VISIO_CLIPBOARD_MAGIC, VISIO_CLIPBOARD_MAX_CHARS, VISIO_COMMENT_AUTHOR_LIMIT, VISIO_COMMENT_LIMIT, VISIO_COMMENT_TEXT_LIMIT, VISIO_CONNECTOR_ROUTES, VISIO_CONTAINER_HEADING, VISIO_CONTAINER_MARGIN, VISIO_CONTAINER_STYLES, VISIO_DATA_LIMITS, VISIO_DEFAULT_TAB_SPACING, VISIO_EMF_ADMISSION_LIMITS, VISIO_FIELD_FORMATS, VISIO_FIELD_FUNCTIONS, VISIO_FLOWCHART_SHAPES, VISIO_FOREIGN_VECTOR_LIMITS, VISIO_GLOW_SIZES, VISIO_GLOW_TRANSPARENCY, VISIO_GLUE, VISIO_GRID_DENSITIES, VISIO_LAYER_NAME_LIMIT, VISIO_LINE_JUMP_LIMITS, VISIO_LINE_JUMP_WIDTH, VISIO_MANAGED_BACKGROUND, VISIO_METADATA_TEXT_LIMIT, VISIO_PAGE_LAYOUT_DEFAULTS, VISIO_PATH_SEGMENT_LIMIT, VISIO_PICTURE_MAX_BYTES, VISIO_PRINT_COUNT_LIMITS, VISIO_QUICK_STYLE_COLORS, VISIO_QUICK_STYLE_VARIANT_COLORS, VISIO_RASTER_IMAGE_LIMITS, VISIO_REFLECTION_PRESETS, VISIO_ROTATION_PRESETS, VISIO_RULER_DENSITIES, VISIO_SCALE_UNITS, VISIO_SHADOW_PRESETS, VISIO_SHAPE_DATA_TYPES, VISIO_SNAP, VISIO_SNAP_GLUE_DEFAULTS, VISIO_SOFT_EDGE_SIZES, VISIO_STENCILS, VISIO_STENCIL_FILES, VISIO_SWIMLANE_HEADER, VISIO_SWIMLANE_MIN, VISIO_SWIMLANE_STYLES, VISIO_SWIMLANE_TITLE, VISIO_TEXT_CASES, VISIO_TEXT_POSITIONS, VISIO_THEME_COLOR_SLOTS, VISIO_UNTHEMED_COLORS, VISIO_VISIBILITY_LIMITS, VisioForeignVectorError, VisioFormulaError, VisioImageError, VisioPackageError, analyzeVisioFormula, bevelHeightAt, bevelHeightTable, bevelLight, bevelMaterial, bevelProfile, canonicalShapeDataValue, captureVisioClipboard, checkVisioAlternativeText, convertVisioMetafile, createProjection, createVsdx, deserializeVisioClipboard, designTextMeasurer, editVsdx, encodeBitmapEmf, evaluateVisioFormula, evaluateVisioTextField, extrudePaths, extrusionPathData, flattenPath, formatVisioFieldValue, getVisioPageLayers, inspectVisioEmfAdmission, inspectVisioRasterImage, isUndrawnBevelMaterial, isVisioBasicShape, isVisioBuiltInThemeId, isVisioChangeShapeTarget, isVisioDiagramPartEdit, isVisioLayerName, isVisioOutlineShape, isVisioQuickStyleColor, isVisioShadowPreset, isVisioStencilShape, isVisioThemeColorRef, layoutVisioFilledArrowLine, loadVisio, matchRefreshedRows, mergeVisioPages, normalBevelLighting, parseLegacyVsd, parsePath, parseVisioFormula, parseVisioThemeColorFormula, parseVsdx, parseVsdxPages, projectPathData, projectionMatrix, readVisioStencil, resolveVisioPageVisibility, resolveVisioThemeColor, rewriteControlFormula, sanitizeVisioForeignVectorTree, serializeVisioClipboard, setVisioTextMeasurer, trimVisioArrowLine, validateVisioForeignVector, visioBackgroundShapes, visioBasicShapeOutline, visioBorderShapes, visioBuiltInMaster, visioBuiltInStencil, visioBuiltInTheme, visioCircleThrough, visioCurvedRoute, visioDataConnectionFor, visioDecorationName, visioFallbackQuickStyle, visioFilledArrow, visioFitFreeform, visioFitPencil, visioFontAssumed, visioFormulaCachedValue, visioLineJumpPaths, visioLinkedRowNames, visioOpenArrowExtent, visioOpenArrowPath, visioOrthogonalRoute, visioOutlineShape, visioPageLayout, visioPageThemeColors, visioPathBounds, visioPathSamples, visioPrintTileCount, visioQuarterArc, visioRefreshReport, visioRotation3dMatrix, visioShade, visioShadowPresetGeometry, visioShapeDataRowName, visioShapeStructure, visioSimplifyPath, visioSnapGlue, visioStencilMaster, visioStencilShapeOutline, visioTabStarts, visioTextExtents, visioThemeColorFormula, visioThemeVariantColors, visioThemeXml };
|
|
61362
|
+
export { BEVEL_BLUR_WIDTHS, BEVEL_LIGHTING_TYPES, EmfBitmapError, MAX_PATH_CHARS, MAX_PATH_SEGMENTS, VISIO_ARROW_SHAPES, VISIO_BACKGROUND_STYLES, VISIO_BASIC_SHAPES, VISIO_BASIC_STENCIL, VISIO_BEVEL_PRESETS, VISIO_BEVEL_TYPES_INSET, VISIO_BEVEL_TYPES_SHARP, VISIO_BORDER_STYLES, VISIO_BUILT_IN_STENCILS, VISIO_BUILT_IN_THEMES, VISIO_BUILT_IN_THEME_IDS, VISIO_CALLOUT_STYLES, VISIO_CHART_OBJECT_MAX_BYTES, VISIO_CLIPBOARD_MAGIC, VISIO_CLIPBOARD_MAX_CHARS, VISIO_COMMENT_AUTHOR_LIMIT, VISIO_COMMENT_LIMIT, VISIO_COMMENT_TEXT_LIMIT, VISIO_CONNECTOR_ROUTES, VISIO_CONTAINER_HEADING, VISIO_CONTAINER_MARGIN, VISIO_CONTAINER_STYLES, VISIO_DATA_LIMITS, VISIO_DEFAULT_TAB_SPACING, VISIO_EMF_ADMISSION_LIMITS, VISIO_FIELD_FORMATS, VISIO_FIELD_FUNCTIONS, VISIO_FLOWCHART_SHAPES, VISIO_FOREIGN_VECTOR_LIMITS, VISIO_GLOW_SIZES, VISIO_GLOW_TRANSPARENCY, VISIO_GLUE, VISIO_GRID_DENSITIES, VISIO_LAYER_NAME_LIMIT, VISIO_LINE_JUMP_LIMITS, VISIO_LINE_JUMP_WIDTH, VISIO_MANAGED_BACKGROUND, VISIO_METADATA_TEXT_LIMIT, VISIO_PAGE_LAYOUT_DEFAULTS, VISIO_PATH_SEGMENT_LIMIT, VISIO_PICTURE_MAX_BYTES, VISIO_PRINT_COUNT_LIMITS, VISIO_QUICK_STYLE_COLORS, VISIO_QUICK_STYLE_VARIANT_COLORS, VISIO_RASTER_IMAGE_LIMITS, VISIO_REFLECTION_PRESETS, VISIO_ROTATION_PRESETS, VISIO_RULER_DENSITIES, VISIO_SCALE_UNITS, VISIO_SHADOW_PRESETS, VISIO_SHAPE_DATA_TYPES, VISIO_SNAP, VISIO_SNAP_GLUE_DEFAULTS, VISIO_SOFT_EDGE_SIZES, VISIO_STENCILS, VISIO_STENCIL_FILES, VISIO_SWIMLANE_HEADER, VISIO_SWIMLANE_MIN, VISIO_SWIMLANE_STYLES, VISIO_SWIMLANE_TITLE, VISIO_TEXT_CASES, VISIO_TEXT_POSITIONS, VISIO_THEME_COLOR_SLOTS, VISIO_UNTHEMED_COLORS, VISIO_VISIBILITY_LIMITS, VisioForeignVectorError, VisioFormulaError, VisioImageError, VisioPackageError, analyzeVisioFormula, bevelHeightAt, bevelHeightTable, bevelLight, bevelMaterial, bevelProfile, canonicalShapeDataValue, captureVisioClipboard, checkVisioAlternativeText, collectVisioWebfontRuns, convertVisioMetafile, createProjection, createVsdx, deserializeVisioClipboard, designTextMeasurer, editVsdx, encodeBitmapEmf, evaluateVisioFormula, evaluateVisioTextField, extrudePaths, extrusionPathData, flattenPath, formatVisioFieldValue, getVisioPageLayers, inspectVisioEmfAdmission, inspectVisioRasterImage, isUndrawnBevelMaterial, isVisioBasicShape, isVisioBuiltInThemeId, isVisioChangeShapeTarget, isVisioDiagramPartEdit, isVisioLayerName, isVisioOutlineShape, isVisioQuickStyleColor, isVisioShadowPreset, isVisioStencilShape, isVisioThemeColorRef, layoutVisioFilledArrowLine, loadVisio, matchRefreshedRows, mergeVisioPages, normalBevelLighting, parseLegacyVsd, parsePath, parseVisioFormula, parseVisioThemeColorFormula, parseVsdx, parseVsdxPages, projectPathData, projectionMatrix, readVisioStencil, resolveVisioPageVisibility, resolveVisioThemeColor, rewriteControlFormula, sanitizeVisioForeignVectorTree, serializeVisioClipboard, setVisioTextMeasurer, trimVisioArrowLine, validateVisioForeignVector, visioBackgroundShapes, visioBasicShapeOutline, visioBorderShapes, visioBuiltInMaster, visioBuiltInStencil, visioBuiltInTheme, visioCircleThrough, visioCurvedRoute, visioDataConnectionFor, visioDecorationName, visioFallbackQuickStyle, visioFilledArrow, visioFitFreeform, visioFitPencil, visioFontAssumed, visioFormulaCachedValue, visioLineJumpPaths, visioLinkedRowNames, visioOpenArrowExtent, visioOpenArrowPath, visioOrthogonalRoute, visioOutlineShape, visioPageLayout, visioPageThemeColors, visioPathBounds, visioPathSamples, visioPrintTileCount, visioQuarterArc, visioRefreshReport, visioRotation3dMatrix, visioShade, visioShadowPresetGeometry, visioShapeDataRowName, visioShapeStructure, visioSimplifyPath, visioSnapGlue, visioStencilMaster, visioStencilShapeOutline, visioTabStarts, visioTextExtents, visioThemeColorFormula, visioThemeVariantColors, visioThemeXml };
|
package/dist/visio/ui/index.cjs
CHANGED
|
@@ -42255,6 +42255,14 @@ function replaceScopedPlainText(pkg, pagePaths, roots2, document, edit, check, d
|
|
|
42255
42255
|
|
|
42256
42256
|
// text/font-metrics/design-advances.generated.ts
|
|
42257
42257
|
var DESIGN_ADVANCES = {
|
|
42258
|
+
aptos: {
|
|
42259
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
42260
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
42261
|
+
},
|
|
42262
|
+
"aptos display": {
|
|
42263
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
42264
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
42265
|
+
},
|
|
42258
42266
|
arial: {
|
|
42259
42267
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
42260
42268
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
package/dist/visio/ui/index.mjs
CHANGED
|
@@ -42249,6 +42249,14 @@ function replaceScopedPlainText(pkg, pagePaths, roots2, document, edit, check, d
|
|
|
42249
42249
|
|
|
42250
42250
|
// text/font-metrics/design-advances.generated.ts
|
|
42251
42251
|
var DESIGN_ADVANCES = {
|
|
42252
|
+
aptos: {
|
|
42253
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
42254
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
42255
|
+
},
|
|
42256
|
+
"aptos display": {
|
|
42257
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
42258
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
42259
|
+
},
|
|
42252
42260
|
arial: {
|
|
42253
42261
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
42254
42262
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A drawing's text reduced to format-neutral webfont runs, for the shared webfont fallback
|
|
3
|
+
* (`text/webfonts`, `ooxml-ui`'s `fonts/webfonts.ts`). Each run is one face (resolved family,
|
|
4
|
+
* bold, italic) with a bounded sample of the distinct characters drawn in it, so the loader can
|
|
5
|
+
* request the right `unicode-range` subsets without walking every character of a large drawing
|
|
6
|
+
* twice. DOM-free.
|
|
7
|
+
*
|
|
8
|
+
* @module visio/webfont-runs
|
|
9
|
+
*/
|
|
10
|
+
import type { WebfontRun } from '../text/webfonts/index.js';
|
|
11
|
+
import type { VisioDocument } from './model.js';
|
|
12
|
+
export interface VisioWebfontRunOptions {
|
|
13
|
+
/** Distinct characters kept per face (the loader keeps at most 256 per face as well). */
|
|
14
|
+
maxCharactersPerFace?: number;
|
|
15
|
+
/** UTF-16 code units read across the drawing before collecting stops. */
|
|
16
|
+
maxScannedCharacters?: number;
|
|
17
|
+
/** Also read the document stencil's master previews, which the Shapes window draws. */
|
|
18
|
+
includeMasters?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Every face the drawing's visible text draws: each page's shapes (instances carry their master's
|
|
22
|
+
* resolved text), their group members, paragraph bullets and, by default, the master previews.
|
|
23
|
+
* Hidden shapes and runs without a family are skipped; a face whose runs draw only whitespace is
|
|
24
|
+
* still named, with an empty sample.
|
|
25
|
+
*/
|
|
26
|
+
export declare function collectVisioWebfontRuns(document: VisioDocument, options?: VisioWebfontRunOptions): WebfontRun[];
|
|
27
|
+
//# sourceMappingURL=webfont-runs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webfont-runs.d.ts","sourceRoot":"","sources":["../../visio/webfont-runs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAyB,MAAM,SAAS,CAAC;AAEpE,MAAM,WAAW,sBAAsB;IACtC,yFAAyF;IACzF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uFAAuF;IACvF,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB;AAYD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACtC,QAAQ,EAAE,aAAa,EACvB,OAAO,GAAE,sBAA2B,GAClC,UAAU,EAAE,CAmDd"}
|