@office-open/core 0.10.2 → 0.10.4
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/chart/index.d.mts +1 -1
- package/dist/descriptor/index.d.mts +2 -2
- package/dist/descriptor/index.mjs +2 -2
- package/dist/{descriptor-BdWTH1vv.mjs → descriptor-DAER86Rt.mjs} +1 -26
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/{index-vEeWkbm5.d.mts → index-3STznXzZ.d.mts} +1 -1
- package/dist/{index-Bpw3LFuI.d.mts → index-BpWDihDR.d.mts} +226 -215
- package/dist/{index-DEeO4sOq.d.mts → index-CHGFwCCQ.d.mts} +54 -27
- package/dist/{index-BEQ12eyX.d.mts → index-CN0YjNSx.d.mts} +1 -1
- package/dist/{index-L82O3q6V.d.mts → index-CpNwAcem.d.mts} +22 -23
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +4 -4
- package/dist/patch/index.d.mts +2 -2
- package/dist/patch/index.mjs +2 -2
- package/dist/{patch-DocIv0Sn.mjs → patch-DEPPafeB.mjs} +49 -4
- package/dist/{src-DaZbVB3f.mjs → src-Cc2VvOoz.mjs} +1577 -1469
- package/dist/theme/index.d.mts +1 -1
- package/dist/util/values.d.mts +1 -1
- package/dist/{values-Dqj8cbcy.d.mts → values-DQfI1FSg.d.mts} +11 -4
- package/package.json +2 -2
package/dist/theme/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "../index-
|
|
1
|
+
import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "../index-3STznXzZ.mjs";
|
|
2
2
|
export { type ColorSchemeOptions, DEFAULT_COLORS, type FontSchemeOptions, type ThemeOptions, buildThemeXml, createThemeXml, themeDesc };
|
package/dist/util/values.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "../values-
|
|
1
|
+
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "../values-DQfI1FSg.mjs";
|
|
2
2
|
export { Percentage, PositivePercentage, PositiveUniversalMeasure, RelativeMeasure, ThemeColor, ThemeFont, UniversalMeasure, dateTimeValue, decimalNumber, eighthPointMeasureValue, hexBinary, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, universalMeasureValue, unsignedDecimalNumber };
|
|
@@ -12,18 +12,25 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* A measurement value with optional sign and unit suffix.
|
|
14
14
|
*
|
|
15
|
-
* Supports units: mm (millimeters), cm (centimeters), in (inches),
|
|
16
|
-
*
|
|
15
|
+
* Supports units: mm (millimeters), cm (centimeters), in (inches), pt (points),
|
|
16
|
+
* pc (picas), pi (picas), and a project-only px (96 DPI pixels).
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* px is NOT part of OOXML's ST_UniversalMeasure (whose pattern is
|
|
19
|
+
* `-?[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)`); it is a project extension so
|
|
20
|
+
* geometry APIs can accept `"200px"` alongside `"5cm"`. px is converted to EMU
|
|
21
|
+
* (or TWIP) on input and never written to XML verbatim. Note: Word line spacing
|
|
22
|
+
* with lineRule="auto" uses a bare multiple (240ths of a line), not a measure,
|
|
23
|
+
* so px is irrelevant there; spacing before/after and indents accept px and
|
|
24
|
+
* convert it to twips (1px = 15twip).
|
|
19
25
|
*
|
|
20
26
|
* @example
|
|
21
27
|
* ```typescript
|
|
22
28
|
* const measure: UniversalMeasure = "10.5mm";
|
|
29
|
+
* const px: UniversalMeasure = "200px";
|
|
23
30
|
* const negative: UniversalMeasure = "-5pt";
|
|
24
31
|
* ```
|
|
25
32
|
*/
|
|
26
|
-
type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
|
|
33
|
+
type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi" | "px"}`;
|
|
27
34
|
/**
|
|
28
35
|
* A positive measurement value with unit suffix.
|
|
29
36
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-open/core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "Shared OOXML infrastructure — XML components, validators, converters, charts, and SmartArt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"core",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@noble/hashes": "2.2.0",
|
|
68
68
|
"fflate": "0.8.3",
|
|
69
|
-
"@office-open/xml": "0.10.
|
|
69
|
+
"@office-open/xml": "0.10.4"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"dev": "basis build --stub",
|