ooxml-core 1.42.0 → 1.44.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/{PptxHandler-A2J4PCOB.mjs → PptxHandler-3VAVJDFB.mjs} +2 -2
- package/dist/{PptxHandler-73QIJ6SD.cjs → PptxHandler-V23RDNEX.cjs} +2 -2
- package/dist/{PptxHandler-OGLVLX2T.mjs → PptxHandler-WB3KL2WH.mjs} +1 -1
- package/dist/{PresentationBuilder-APJKCMVS.mjs → PresentationBuilder-7LJMTRJ6.mjs} +2 -2
- package/dist/{PresentationBuilder-6S5PJXXF.cjs → PresentationBuilder-KHL6GONR.cjs} +4 -4
- package/dist/{PresentationBuilder-F3BWDERK.mjs → PresentationBuilder-PY2GB4IG.mjs} +1 -1
- package/dist/automation/index.cjs +4 -2
- package/dist/automation/index.mjs +4 -2
- package/dist/chart/index.cjs +7 -4
- package/dist/chart/index.mjs +7 -4
- package/dist/{chunk-ZUEN4RQG.mjs → chunk-243ZYX2B.mjs} +1 -1
- package/dist/{chunk-VV724DWE.mjs → chunk-4LEVL6ZW.mjs} +12 -7
- package/dist/{chunk-XVB3CBNM.mjs → chunk-HLYOHD2Z.mjs} +11 -6
- package/dist/{chunk-MXA67O7R.mjs → chunk-JHYU7HGG.mjs} +1 -1
- package/dist/{chunk-N6X5CJZP.mjs → chunk-KCDLTVUI.mjs} +1 -1
- package/dist/{chunk-YNQRXFTC.cjs → chunk-RNZQ2OU4.cjs} +11 -6
- package/dist/{chunk-CPSTCCRD.mjs → chunk-WEAWSXUX.mjs} +4 -4
- package/dist/docx/index.cjs +7 -4
- package/dist/docx/index.mjs +7 -4
- package/dist/docx/layout/index.cjs +139 -4
- 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 +139 -5
- package/dist/docx/layout/webfont-runs.d.ts +5 -0
- package/dist/docx/layout/webfont-runs.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +7 -4
- package/dist/docx/ui/index.mjs +7 -4
- package/dist/index.cjs +2403 -72
- package/dist/index.mjs +2404 -73
- package/dist/opc/declared-fonts.d.ts +9 -0
- package/dist/opc/declared-fonts.d.ts.map +1 -0
- package/dist/opc/index.cjs +84 -0
- package/dist/opc/index.d.ts +1 -0
- package/dist/opc/index.d.ts.map +1 -1
- package/dist/opc/index.mjs +85 -2
- package/dist/pptx/automation/index.cjs +11 -6
- package/dist/pptx/automation/index.d.ts +3 -3
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{index-BJuR8GLL.d.ts → index-Bj-hur0D.d.ts} +2 -2
- package/dist/pptx/chunks/{index-BJuR8GLL.d.ts.map → index-Bj-hur0D.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-Rbvl2WaM.d.ts → index-CCJiD-Bm.d.ts} +3 -3
- package/dist/pptx/chunks/{index-Rbvl2WaM.d.ts.map → index-CCJiD-Bm.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-xoJGYTgQ.d.ts → index-CGNb1TV9.d.ts} +18 -2
- package/dist/pptx/chunks/index-CGNb1TV9.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +11 -6
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +1 -1
- package/dist/pptx/editor/render/slide-operations.mjs +1 -1
- package/dist/pptx/index.cjs +11 -6
- package/dist/pptx/index.d.ts +3 -3
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/text/css-font-family.d.ts.map +1 -1
- package/dist/text/index.cjs +2244 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +2223 -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 +56 -0
- package/dist/visio/index.d.ts +1 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +56 -1
- package/dist/visio/webfont-runs.d.ts +27 -0
- package/dist/visio/webfont-runs.d.ts.map +1 -0
- package/dist/xlsx/index.cjs +2137 -10
- package/dist/xlsx/index.mjs +2133 -11
- 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-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/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 +2061 -13
- package/dist/xlsx/ui/index.mjs +2061 -14
- package/dist/xlsx/ui/locales/de/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/options.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/pptx/chunks/index-xoJGYTgQ.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
|
@@ -61261,6 +61261,61 @@ function encodeBitmapEmf(width, height, rgba) {
|
|
|
61261
61261
|
return out;
|
|
61262
61262
|
}
|
|
61263
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
|
+
|
|
61264
61319
|
// visio/accessibility.ts
|
|
61265
61320
|
function checkVisioAlternativeText(document) {
|
|
61266
61321
|
const issues = [];
|
|
@@ -61393,6 +61448,7 @@ exports.bevelProfile = bevelProfile;
|
|
|
61393
61448
|
exports.canonicalShapeDataValue = canonicalShapeDataValue;
|
|
61394
61449
|
exports.captureVisioClipboard = captureVisioClipboard;
|
|
61395
61450
|
exports.checkVisioAlternativeText = checkVisioAlternativeText;
|
|
61451
|
+
exports.collectVisioWebfontRuns = collectVisioWebfontRuns;
|
|
61396
61452
|
exports.convertVisioMetafile = convertVisioMetafile;
|
|
61397
61453
|
exports.createProjection = createProjection;
|
|
61398
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,uEAAuE;AACvE,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,cAA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package/dist/visio/index.mjs
CHANGED
|
@@ -61255,6 +61255,61 @@ function encodeBitmapEmf(width, height, rgba) {
|
|
|
61255
61255
|
return out;
|
|
61256
61256
|
}
|
|
61257
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
|
+
|
|
61258
61313
|
// visio/accessibility.ts
|
|
61259
61314
|
function checkVisioAlternativeText(document) {
|
|
61260
61315
|
const issues = [];
|
|
@@ -61304,4 +61359,4 @@ function visioTabStarts(segments, tabs = [], origin = 0, start = 0, spacing2 = V
|
|
|
61304
61359
|
return starts;
|
|
61305
61360
|
}
|
|
61306
61361
|
|
|
61307
|
-
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 };
|
|
@@ -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"}
|