@office-open/core 0.10.12 → 0.10.14
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 +10 -9
- package/dist/chart/index.d.mts +2 -2
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-DwE8FCFk.mjs → chart-DIGJna_6.mjs} +220 -9
- package/dist/chart-DIGJna_6.mjs.map +1 -0
- package/dist/converters-C_Y2QX1w.mjs +1789 -0
- package/dist/converters-C_Y2QX1w.mjs.map +1 -0
- package/dist/data-type-CZMKVaaT.d.mts +10 -0
- package/dist/data-type-CZMKVaaT.d.mts.map +1 -0
- package/dist/descriptor/index.d.mts +2 -2
- package/dist/descriptor/index.mjs +2 -2
- package/dist/{descriptor-DAER86Rt.mjs → descriptor-BjNkn5jo.mjs} +3 -33
- package/dist/descriptor-BjNkn5jo.mjs.map +1 -0
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/{src-bVqU5Bh3.mjs → drawingml-sj1J3lb0.mjs} +22 -3728
- package/dist/drawingml-sj1J3lb0.mjs.map +1 -0
- package/dist/index-BVK2dv6C.d.mts +63 -0
- package/dist/index-BVK2dv6C.d.mts.map +1 -0
- package/dist/index-BfHfKuKy.d.mts +275 -0
- package/dist/index-BfHfKuKy.d.mts.map +1 -0
- package/dist/index-CE53SwpZ.d.mts +1463 -0
- package/dist/index-CE53SwpZ.d.mts.map +1 -0
- package/dist/{index-3STznXzZ.d.mts → index-D6VE-MnJ.d.mts} +3 -15
- package/dist/index-D6VE-MnJ.d.mts.map +1 -0
- package/dist/{index-CN0YjNSx.d.mts → index-DE4CLElr.d.mts} +29 -21
- package/dist/index-DE4CLElr.d.mts.map +1 -0
- package/dist/{index-CsQP7Cl4.d.mts → index-DlPA26cw.d.mts} +2 -47
- package/dist/index-DlPA26cw.d.mts.map +1 -0
- package/dist/index-k8WKLXnA.d.mts +150 -0
- package/dist/index-k8WKLXnA.d.mts.map +1 -0
- package/dist/index.d.mts +650 -8
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1271 -7
- package/dist/index.mjs.map +1 -0
- package/dist/output-D_G_JR_8.d.mts +24 -0
- package/dist/output-D_G_JR_8.d.mts.map +1 -0
- package/dist/patch/index.d.mts +2 -2
- package/dist/patch/index.mjs +1 -1
- package/dist/{patch-OSbQIQAi.mjs → patch-BmRfghOo.mjs} +65 -84
- package/dist/patch-BmRfghOo.mjs.map +1 -0
- package/dist/smartart/index.d.mts +1 -1
- package/dist/smartart/index.mjs +1 -1
- package/dist/{smartart-DCY-Vdv7.mjs → smartart-B7ukZ-Tw.mjs} +5 -3
- package/dist/smartart-B7ukZ-Tw.mjs.map +1 -0
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme-CiNzdl-9.mjs +2 -0
- package/dist/theme-CiNzdl-9.mjs.map +1 -0
- package/dist/util/index.d.mts +4 -0
- package/dist/util/index.mjs +3 -0
- package/dist/util-Tq9PSjK0.mjs +1113 -0
- package/dist/util-Tq9PSjK0.mjs.map +1 -0
- package/dist/values-8di32lIe.d.mts +56 -0
- package/dist/values-8di32lIe.d.mts.map +1 -0
- package/package.json +7 -6
- package/dist/index-CHGFwCCQ.d.mts +0 -266
- package/dist/index-CpNwAcem.d.mts +0 -169
- package/dist/index-DdXU1_sq.d.mts +0 -5029
- package/dist/util/values.d.mts +0 -2
- package/dist/util/values.mjs +0 -2
- package/dist/values-CVIZcTRw.mjs +0 -371
- package/dist/values-DQfI1FSg.d.mts +0 -426
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converters-C_Y2QX1w.mjs","names":[],"sources":["../src/util/base64.ts","../src/util/data-type.ts","../src/util/generators.ts","../src/util/mappings.ts","../src/util/converters.ts"],"sourcesContent":["/**\n * Shared base64 encode/decode helpers.\n *\n * Both prefer the native `Uint8Array` base64 methods (Node 22+, modern\n * browsers): they avoid the intermediate binary string that `btoa`/`atob`\n * materialize and cannot stack-overflow on large buffers. Node `Buffer` is the\n * secondary path; a manual loop covers older runtimes.\n *\n * @module\n */\n\n/**\n * Decode a base64 string into a `Uint8Array`.\n *\n * Prefers native `Uint8Array.fromBase64` (no intermediate binary string), then\n * Node `Buffer` (zero-copy), then `atob`.\n */\nexport function decodeBase64(input: string): Uint8Array {\n const fromBase64 = (Uint8Array as { fromBase64?: (s: string) => Uint8Array }).fromBase64;\n if (typeof fromBase64 === \"function\") return fromBase64.call(Uint8Array, input);\n if (typeof Buffer !== \"undefined\") return Buffer.from(input, \"base64\");\n return Uint8Array.from(atob(input), (c) => c.codePointAt(0)!);\n}\n\n/**\n * Encode a `Uint8Array` into a base64 string.\n *\n * Prefers native `Uint8Array.prototype.toBase64` (no intermediate binary\n * string), then Node `Buffer` (zero-copy), then a `btoa` fallback.\n *\n * The fallback builds the binary string in a loop rather than\n * `String.fromCharCode(...bytes)` — the spread form places every byte on the\n * call stack and overflows for large buffers (V8 caps function arguments near\n * ~65k).\n */\nexport function encodeBase64(bytes: Uint8Array): string {\n const toBase64 = (Uint8Array.prototype as { toBase64?: () => string }).toBase64;\n if (typeof toBase64 === \"function\") return toBase64.call(bytes);\n if (typeof Buffer !== \"undefined\") return Buffer.from(bytes).toString(\"base64\");\n let binary = \"\";\n for (const byte of bytes) {\n binary += String.fromCharCode(byte);\n }\n return btoa(binary);\n}\n","/**\n * Binary input normalization.\n *\n * Accepts the full range of binary inputs (Buffer/Uint8Array/ArrayBuffer/\n * DataView/number[]/string/base64 data URL/…) and normalizes to `Uint8Array`.\n * Centralized here so every entry point (packer, patch, descriptor helpers)\n * shares one definition instead of re-declaring per module.\n *\n * @module\n */\nimport { decodeBase64 } from \"./base64\";\n\n/** Supported binary input shapes. */\nexport type DataType =\n | ArrayBufferLike\n | Blob\n | DataView\n | number[]\n | ReadableStream\n | string\n | Uint8Array;\n\n// Matches data:[<mediatype>][;base64],<data> — a base64 data URL. Mirrors the\n// `isBase64DataURL` check in unjs/undio so plain strings stay UTF-8 text.\nconst DATA_URL_RE = /^data:([\\w.+-]+\\/[\\w.+-]+)?;base64,/;\n\n/** Test whether a string is a base64 data URL (`data:[mime];base64,...`). */\nexport function isBase64DataURL(input: string): boolean {\n return DATA_URL_RE.test(input);\n}\n\n/** Options for {@link toUint8Array}. */\nexport interface ToUint8ArrayOptions {\n /**\n * How to interpret a plain (non-data-URL) string input. Data URLs\n * (`data:...;base64,...`) and binary inputs (Buffer/Uint8Array/ArrayBuffer/\n * DataView/number[]) are auto-detected and ignore this hint.\n *\n * - `\"utf8\"` (default): UTF-8 text.\n * - `\"base64\"`: base64-encoded binary — e.g. an image supplied via\n * `readFileSync(...).toString(\"base64\")`.\n */\n encoding?: \"utf8\" | \"base64\";\n}\n\n/** Normalize any supported binary input to a `Uint8Array`. */\nexport function toUint8Array(data: DataType, options?: ToUint8ArrayOptions): Uint8Array {\n if (data instanceof Uint8Array) return data;\n if (data instanceof ArrayBuffer) return new Uint8Array(data);\n if (data instanceof DataView)\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);\n if (typeof data === \"string\") {\n const match = data.match(DATA_URL_RE);\n if (match) return decodeBase64(data.slice(match[0].length));\n if (options?.encoding === \"base64\") return decodeBase64(data);\n return new TextEncoder().encode(data);\n }\n if (Array.isArray(data)) return new Uint8Array(data);\n if (data instanceof Blob) throw new TypeError(\"Blob input requires async processing\");\n if (data instanceof ReadableStream)\n throw new TypeError(\"ReadableStream input requires async processing\");\n throw new TypeError(`Unsupported data type: ${typeof data}`);\n}\n","/**\n * Unique ID generation utilities.\n *\n * @module\n */\n\nimport { sha1 } from \"@noble/hashes/legacy.js\";\nimport { bytesToHex } from \"@noble/hashes/utils.js\";\n\n/**\n * A function that generates unique sequential numeric IDs.\n */\nexport type UniqueNumericIdCreator = () => number;\n\n/**\n * Creates a unique numeric ID generator with sequential numbering.\n */\nexport const uniqueNumericIdCreator = (initial = 0): UniqueNumericIdCreator => {\n let currentCount = initial;\n return () => ++currentCount;\n};\n\nconst URL_ALPHABET = \"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\";\n\n/**\n * Generates a unique lowercase alphanumeric ID using crypto.getRandomValues.\n */\nexport const uniqueId = (): string => {\n const bytes = new Uint8Array(21);\n crypto.getRandomValues(bytes);\n let id = \"\";\n // URL_ALPHABET has 64 entries; the index is masked to [0,63], so the access is in-bounds.\n for (const byte of bytes) id += URL_ALPHABET[byte & 63]!;\n return id.toLowerCase();\n};\n\n/**\n * Generates a SHA-1 hash of the provided data.\n */\nexport const hashedId = (data: Uint8Array | ArrayBuffer | string): string => {\n const bytes =\n data instanceof ArrayBuffer\n ? new Uint8Array(data)\n : typeof data === \"string\"\n ? new TextEncoder().encode(data)\n : data;\n return bytesToHex(sha1(bytes));\n};\n\n/**\n * Generates a UUID v4-style unique identifier using crypto.randomUUID.\n */\nexport const uniqueUuid = (): string => crypto.randomUUID();\n","/**\n * Bidirectional mappings between user-friendly values and XSD abbreviated values.\n *\n * When XSD uses full English words (e.g. \"center\", \"start\"), values are used directly — no mapping needed.\n * When XSD uses abbreviations (e.g. \"ctr\", \"l\", \"rnd\"), this module maps them to full words.\n *\n * Usage in generation (Options → XML): xsdAlign.to(\"center\") → \"ctr\"\n * Usage in parsing (XML → Options): xsdAlign.from(\"ctr\") → \"center\"\n */\n\n/** Invert a Record<K, V> into Record<V, K>. */\nexport function invertMap<K extends string, V extends string>(map: Record<K, V>): Record<V, K> {\n const result = {} as Record<V, K>;\n for (const key of Object.keys(map) as K[]) {\n result[map[key]] = key;\n }\n return result;\n}\n\n/** Create a bidirectional mapping helper from a single forward map. */\nfunction bidi<K extends string, V extends string>(forward: Record<K, V>) {\n const reverse = invertMap(forward);\n return {\n /** User-friendly value → XSD value */\n to: (key: string): string => (forward as Record<string, string>)[key] ?? key,\n /** XSD value → user-friendly value */\n from: (xsd: string): string => (reverse as Record<string, string>)[xsd] ?? xsd,\n /** The forward map (user → XSD) */\n forward,\n /** The reverse map (XSD → user) */\n reverse,\n };\n}\n\n// ---------------------------------------------------------------------------\n// DrawingML — Direction / Position (ST_RectAlignment)\n// Used by: RectAlignment, TileAlignment, ReflectionAlignment\n// ---------------------------------------------------------------------------\n\nexport const xsdRectAlignment = bidi({\n topLeft: \"tl\",\n top: \"t\",\n topRight: \"tr\",\n left: \"l\",\n center: \"ctr\",\n right: \"r\",\n bottomLeft: \"bl\",\n bottom: \"b\",\n bottomRight: \"br\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Text alignment (ST_TextAlignType)\n// Used by: TextAlignment (pptx)\n// ---------------------------------------------------------------------------\n\nexport const xsdTextAlign = bidi({\n left: \"l\",\n center: \"ctr\",\n right: \"r\",\n justify: \"just\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Text anchoring (ST_TextAnchoringType)\n// Used by: VerticalAlignment (pptx)\n// ---------------------------------------------------------------------------\n\nexport const xsdTextAnchor = bidi({\n top: \"t\",\n center: \"ctr\",\n bottom: \"b\",\n justify: \"just\",\n distribute: \"dist\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Line cap (ST_LineCap)\n// ---------------------------------------------------------------------------\n\nexport const xsdLineCap = bidi({\n round: \"rnd\",\n square: \"sq\",\n flat: \"flat\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Compound line (ST_CompoundLine)\n// ---------------------------------------------------------------------------\n\nexport const xsdCompoundLine = bidi({\n single: \"sng\",\n double: \"dbl\",\n thickThin: \"thickThin\",\n thinThick: \"thinThick\",\n triple: \"tri\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Pen alignment (ST_PenAlignment)\n// ---------------------------------------------------------------------------\n\nexport const xsdPenAlignment = bidi({\n center: \"ctr\",\n inside: \"in\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Line end size (ST_LineEndWidth, ST_LineEndLength)\n// ---------------------------------------------------------------------------\n\nexport const xsdLineEndSize = bidi({\n small: \"sm\",\n medium: \"med\",\n large: \"lg\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Blend mode (ST_BlendMode)\n// ---------------------------------------------------------------------------\n\nexport const xsdBlendMode = bidi({\n over: \"over\",\n multiply: \"mult\",\n screen: \"screen\",\n darken: \"darken\",\n lighten: \"lighten\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Path fill mode (ST_PathFillMode)\n// ---------------------------------------------------------------------------\n\nexport const xsdPathFillMode = bidi({\n none: \"none\",\n normal: \"norm\",\n lighten: \"lighten\",\n lightenLess: \"lightenLess\",\n darken: \"darken\",\n darkenLess: \"darkenLess\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Effect container type\n// ---------------------------------------------------------------------------\n\nexport const xsdEffectContainer = bidi({\n sibling: \"sib\",\n tree: \"tree\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Preset shadow (ST_PresetShadowVal)\n// ---------------------------------------------------------------------------\n\nexport const xsdPresetShadow = bidi({\n shadow1: \"shdw1\",\n shadow2: \"shdw2\",\n shadow3: \"shdw3\",\n shadow4: \"shdw4\",\n shadow5: \"shdw5\",\n shadow6: \"shdw6\",\n shadow7: \"shdw7\",\n shadow8: \"shdw8\",\n shadow9: \"shdw9\",\n shadow10: \"shdw10\",\n shadow11: \"shdw11\",\n shadow12: \"shdw12\",\n shadow13: \"shdw13\",\n shadow14: \"shdw14\",\n shadow15: \"shdw15\",\n shadow16: \"shdw16\",\n shadow17: \"shdw17\",\n shadow18: \"shdw18\",\n shadow19: \"shdw19\",\n shadow20: \"shdw20\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Preset material type (ST_PresetMaterialType)\n// Only the abbreviated ones need mapping; full-word values pass through.\n// ---------------------------------------------------------------------------\n\nexport const xsdMaterialType = bidi({\n legacyMatte: \"legacyMatte\",\n legacyPlastic: \"legacyPlastic\",\n legacyMetal: \"legacyMetal\",\n legacyWireframe: \"legacyWireframe\",\n matte: \"matte\",\n plastic: \"plastic\",\n metal: \"metal\",\n warmMatte: \"warmMatte\",\n translucentPowder: \"translucentPowder\",\n powder: \"powder\",\n darkEdge: \"dkEdge\",\n softEdge: \"softEdge\",\n clear: \"clear\",\n flat: \"flat\",\n softMetal: \"softmetal\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DrawingML — Preset pattern fill (ST_PresetPatternVal)\n// Only the abbreviated ones are mapped; values already using full words pass through.\n// ---------------------------------------------------------------------------\n\nexport const xsdPattern = bidi({\n percent5: \"pct5\",\n percent10: \"pct10\",\n percent20: \"pct20\",\n percent25: \"pct25\",\n percent30: \"pct30\",\n percent40: \"pct40\",\n percent50: \"pct50\",\n percent60: \"pct60\",\n percent70: \"pct70\",\n percent75: \"pct75\",\n percent80: \"pct80\",\n percent90: \"pct90\",\n horizontal: \"horz\",\n vertical: \"vert\",\n lightHorizontal: \"ltHorz\",\n lightVertical: \"ltVert\",\n darkHorizontal: \"dkHorz\",\n darkVertical: \"dkVert\",\n narrowHorizontal: \"narHorz\",\n narrowVertical: \"narVert\",\n dashedHorizontal: \"dashHorz\",\n dashedVertical: \"dashVert\",\n cross: \"cross\",\n downDiagonal: \"dnDiag\",\n upDiagonal: \"upDiag\",\n lightDownDiagonal: \"ltDnDiag\",\n lightUpDiagonal: \"ltUpDiag\",\n darkDownDiagonal: \"dkDnDiag\",\n darkUpDiagonal: \"dkUpDiag\",\n wideDownDiagonal: \"wdDnDiag\",\n wideUpDiagonal: \"wdUpDiag\",\n dashedDownDiagonal: \"dashDnDiag\",\n dashedUpDiagonal: \"dashUpDiag\",\n diagonalCross: \"diagCross\",\n smallChecker: \"smCheck\",\n largeChecker: \"lgCheck\",\n smallGrid: \"smGrid\",\n largeGrid: \"lgGrid\",\n dotGrid: \"dotGrid\",\n smallConfetti: \"smConfetti\",\n largeConfetti: \"lgConfetti\",\n horizontalBrick: \"horzBrick\",\n diagonalBrick: \"diagBrick\",\n solidDiamond: \"solidDmnd\",\n openDiamond: \"openDmnd\",\n dottedDiamond: \"dotDmnd\",\n plaid: \"plaid\",\n sphere: \"sphere\",\n weave: \"weave\",\n divot: \"divot\",\n shingle: \"shingle\",\n wave: \"wave\",\n trellis: \"trellis\",\n zigZag: \"zigZag\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// DOCX — Vertical merge revision (ST_VerticalMergeRestart)\n// ---------------------------------------------------------------------------\n\nexport const xsdVerticalMergeRev = bidi({\n continue: \"cont\",\n restart: \"rest\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// PPTX — Underline style (ST_TextUnderlineType, abbreviated subset)\n// ---------------------------------------------------------------------------\n\nexport const xsdUnderlineStyle = bidi({\n single: \"sng\",\n double: \"dbl\",\n none: \"none\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// PPTX — Strike style (ST_TextStrikeType)\n// ---------------------------------------------------------------------------\n\nexport const xsdStrikeStyle = bidi({\n singleStrike: \"sngStrike\",\n doubleStrike: \"dblStrike\",\n noStrike: \"noStrike\",\n} as const);\n\n// ---------------------------------------------------------------------------\n// PPTX — Text capitalization (ST_TextCapsType)\n// ---------------------------------------------------------------------------\n\nexport const xsdTextCaps = bidi({\n none: \"none\",\n all: \"all\",\n small: \"small\",\n} as const);\n","/**\n * OOXML unit conversion utilities.\n *\n * @module\n */\n\n// ---------------------------------------------------------------------------\n// TWIP conversions (1 TWIP = 1/20 point, used in WordprocessingML)\n// ---------------------------------------------------------------------------\n\n/**\n * Converts millimeters to TWIP (twentieths of a point).\n */\nexport const convertMillimetersToTwip = (millimeters: number): number =>\n Math.floor((millimeters / 25.4) * 72 * 20);\n\n/**\n * Converts inches to TWIP (twentieths of a point).\n */\nexport const convertInchesToTwip = (inches: number): number => Math.floor(inches * 72 * 20);\n\n// ---------------------------------------------------------------------------\n// EMU conversions (English Metric Units, used in DrawingML)\n// 1 inch = 914400 EMU, 1 pixel (96 DPI) = 9525 EMU, 1 point = 12700 EMU\n// ---------------------------------------------------------------------------\n\n/**\n * Converts pixels to EMU (96 DPI).\n */\nexport const convertPixelsToEmu = (pixels: number): number => Math.round(pixels * 9525);\n\n/**\n * Converts EMU to pixels (96 DPI).\n *\n * Returns a possibly fractional (sub-pixel) value. The integer rounding that\n * lived here before permanently discarded sub-pixel precision, which made an\n * EMU → pixel → EMU round-trip lossy (e.g. 5521960 EMU → 580 px → 5524500 EMU).\n * Keeping the fraction lets convertPixelsToEmu restore the exact original EMU.\n * Callers needing an integer pixel for display should Math.round the result.\n */\nexport const convertEmuToPixels = (emus: number): number => emus / 9525;\n\n/**\n * Converts inches to EMU.\n */\nexport const convertInchesToEmu = (inches: number): number => Math.round(inches * 914400);\n\n/**\n * Converts EMU to inches.\n */\nexport const convertEmuToInches = (emus: number): number => emus / 914400;\n\n/**\n * Converts points to EMU.\n */\nexport const convertPointsToEmu = (points: number): number => Math.round(points * 12700);\n\n/**\n * Converts EMU to points.\n */\nexport const convertEmuToPoints = (emus: number): number => emus / 12700;\n\n// ---------------------------------------------------------------------------\n// UniversalMeasure → Twips conversion\n// Used when numeric computation is needed (e.g., landscape width/height swap)\n// ---------------------------------------------------------------------------\n\n/** Parsed result of a UniversalMeasure string. */\ninterface ParsedMeasure {\n value: number;\n unit: \"mm\" | \"cm\" | \"in\" | \"pt\" | \"pc\" | \"pi\" | \"px\";\n}\n\n/**\n * Parse a UniversalMeasure string into its numeric value and unit.\n *\n * @param measure - A universal measure string like \"2.54cm\", \"-10mm\", \"1in\"\n * @returns The parsed value and unit\n * @throws Error if the format is invalid\n *\n * @example\n * ```typescript\n * parseUniversalMeasure(\"2.54cm\"); // { value: 2.54, unit: \"cm\" }\n * parseUniversalMeasure(\"-10mm\"); // { value: -10, unit: \"mm\" }\n * ```\n */\nexport const parseUniversalMeasure = (measure: string): ParsedMeasure => {\n const match = measure.match(/^(-?[0-9]+(?:\\.[0-9]+)?)(mm|cm|in|pt|pc|pi|px)$/);\n if (!match) {\n throw new Error(`Invalid universal measure: '${measure}'`);\n }\n const [, value, unit] = match;\n if (value === undefined || unit === undefined) {\n throw new Error(`Invalid universal measure: '${measure}'`);\n }\n return { value: parseFloat(value), unit: unit as ParsedMeasure[\"unit\"] };\n};\n\n/**\n * Converts a UniversalMeasure string to TWIP (twentieths of a point).\n *\n * Supports units: mm, cm, in, pt, pc (picas, 1pc = 12pt), pi (alias for pc).\n *\n * @param measure - A universal measure string like \"2.54cm\", \"1in\", \"12pt\"\n * @returns The value in TWIP\n *\n * @example\n * ```typescript\n * convertUniversalMeasureToTwip(\"1in\"); // 1440\n * convertUniversalMeasureToTwip(\"2.54cm\"); // ~1440 (1 inch)\n * convertUniversalMeasureToTwip(\"72pt\"); // 1440 (1 inch = 72pt = 1440 twips)\n * ```\n */\nexport const convertUniversalMeasureToTwip = (measure: string): number => {\n const { value, unit } = parseUniversalMeasure(measure);\n switch (unit) {\n case \"mm\":\n return convertMillimetersToTwip(value);\n case \"cm\":\n return convertMillimetersToTwip(value * 10);\n case \"in\":\n return convertInchesToTwip(value);\n case \"pt\":\n return Math.floor(value * 20); // 1 point = 20 twips\n case \"pc\":\n case \"pi\":\n return Math.floor(value * 12 * 20); // 1 pica = 12 points = 240 twips\n case \"px\":\n return Math.round(value * 15); // 1px = 15twip (1in = 1440twip = 96px)\n }\n};\n\n/**\n * Converts a measurement value (number or UniversalMeasure) to TWIP.\n *\n * If the value is already a number, it is returned as-is (assumed to be in twips).\n * If the value is a UniversalMeasure string, it is converted to twips.\n *\n * Useful for accepting both `number` and `UniversalMeasure` inputs where\n * the XSD type is a union (e.g., ST_TwipsMeasure, ST_SignedTwipsMeasure).\n *\n * @param val - A numeric twip value or a universal measure string\n * @returns The value in TWIP\n *\n * @example\n * ```typescript\n * convertToTwip(1440); // 1440 (already twips)\n * convertToTwip(\"1in\"); // 1440\n * convertToTwip(\"2.54cm\"); // ~1440\n * ```\n */\nexport const convertToTwip = (val: number | string): number =>\n typeof val === \"string\" ? convertUniversalMeasureToTwip(val) : val;\n\n// ---------------------------------------------------------------------------\n// UniversalMeasure → EMU conversion\n// Used in DrawingML (PPTX shapes, images, etc.)\n// ---------------------------------------------------------------------------\n\n/**\n * Converts a UniversalMeasure string to EMU (English Metric Units).\n *\n * Supports units: mm, cm, in, pt, pc (picas, 1pc = 12pt), pi (alias for pc).\n *\n * @param measure - A universal measure string like \"2.54cm\", \"1in\", \"12pt\"\n * @returns The value in EMU\n *\n * @example\n * ```typescript\n * convertUniversalMeasureToEmu(\"1in\"); // 914400\n * convertUniversalMeasureToEmu(\"2.54cm\"); // 914400\n * convertUniversalMeasureToEmu(\"12pt\"); // 152400\n * ```\n */\nexport const convertUniversalMeasureToEmu = (measure: string): number => {\n const { value, unit } = parseUniversalMeasure(measure);\n switch (unit) {\n case \"mm\":\n return Math.round(value * 36000);\n case \"cm\":\n return Math.round(value * 360000);\n case \"in\":\n return convertInchesToEmu(value);\n case \"pt\":\n return convertPointsToEmu(value);\n case \"pc\":\n case \"pi\":\n return convertPointsToEmu(value * 12); // 1 pica = 12 points\n case \"px\":\n return convertPixelsToEmu(value); // 1px = 9525 EMU (96 DPI)\n }\n};\n\n/**\n * Converts a measurement value (number or UniversalMeasure) to EMU.\n *\n * Numbers are returned as-is (assumed EMU). Strings are parsed as\n * UniversalMeasure via {@link convertUniversalMeasureToEmu} — including the\n * project-only `px` unit (96 DPI). The result is always an EMU number written to\n * XML, so px never appears verbatim in the document.\n *\n * Useful for DrawingML fields where the XSD type is a union (e.g., ST_Coordinate).\n *\n * @param val - A numeric EMU value, or a UniversalMeasure string (incl. `${n}px`)\n * @returns The value in EMU\n *\n * @example\n * ```typescript\n * convertToEmu(914400); // 914400 (already EMU)\n * convertToEmu(\"1in\"); // 914400\n * convertToEmu(\"2.54cm\"); // 914400\n * convertToEmu(\"200px\"); // 1905000 (200 * 9525)\n * ```\n */\nexport const convertToEmu = (val: number | string): number =>\n typeof val === \"string\" ? convertUniversalMeasureToEmu(val) : val;\n\n// ---------------------------------------------------------------------------\n// UniversalMeasure → Points / Inches conversion\n// Used in SpreadsheetML (row height in points, page margins in inches)\n// ---------------------------------------------------------------------------\n\n/**\n * Converts a UniversalMeasure string to points (1pt = 1/72 inch).\n *\n * Supports units: mm, cm, in, pt, pc (picas, 1pc = 12pt), pi (alias for pc),\n * px (96 DPI).\n */\nexport const convertUniversalMeasureToPt = (measure: string): number => {\n const { value, unit } = parseUniversalMeasure(measure);\n switch (unit) {\n case \"mm\":\n return (value / 25.4) * 72;\n case \"cm\":\n return ((value * 10) / 25.4) * 72;\n case \"in\":\n return value * 72;\n case \"pt\":\n return value;\n case \"pc\":\n case \"pi\":\n return value * 12; // 1 pica = 12 points\n case \"px\":\n return (value / 96) * 72; // 1px = 0.75pt (96 DPI)\n }\n};\n\n/**\n * Converts a measurement value (number or UniversalMeasure) to points.\n *\n * Numbers are returned as-is (assumed to be in points). Strings are parsed as\n * UniversalMeasure. Useful for SpreadsheetML fields where a number is points.\n */\nexport const convertToPt = (val: number | string): number =>\n typeof val === \"string\" ? convertUniversalMeasureToPt(val) : val;\n\n/**\n * Converts a UniversalMeasure string to inches.\n *\n * Supports units: mm, cm, in, pt, pc, pi, px (96 DPI).\n */\nexport const convertUniversalMeasureToInch = (measure: string): number => {\n const { value, unit } = parseUniversalMeasure(measure);\n switch (unit) {\n case \"mm\":\n return value / 25.4;\n case \"cm\":\n return (value * 10) / 25.4;\n case \"in\":\n return value;\n case \"pt\":\n return value / 72;\n case \"pc\":\n case \"pi\":\n return (value * 12) / 72;\n case \"px\":\n return value / 96;\n }\n};\n\n/**\n * Converts a measurement value (number or UniversalMeasure) to inches.\n *\n * Numbers are returned as-is (assumed to be in inches). Useful for SpreadsheetML\n * page-margin fields where a number is inches.\n */\nexport const convertToInch = (val: number | string): number =>\n typeof val === \"string\" ? convertUniversalMeasureToInch(val) : val;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EACtC,KAAK,MACH,OAAO,mBAAmB,KAAK;CACnC;AACF;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAa,gBAAgB,QAC3B,OAAO,QAAQ,WAAW,6BAA6B,GAAG,IAAI;;;;;;;AAahE,MAAa,+BAA+B,YAA4B;CACtE,MAAM,EAAE,OAAO,SAAS,sBAAsB,OAAO;CACrD,QAAQ,MAAR;EACE,KAAK,MACH,OAAQ,QAAQ,OAAQ;EAC1B,KAAK,MACH,OAAS,QAAQ,KAAM,OAAQ;EACjC,KAAK,MACH,OAAO,QAAQ;EACjB,KAAK,MACH,OAAO;EACT,KAAK;EACL,KAAK,MACH,OAAO,QAAQ;EACjB,KAAK,MACH,OAAQ,QAAQ,KAAM;CAC1B;AACF;;;;;;;AAQA,MAAa,eAAe,QAC1B,OAAO,QAAQ,WAAW,4BAA4B,GAAG,IAAI;;;;;;AAO/D,MAAa,iCAAiC,YAA4B;CACxE,MAAM,EAAE,OAAO,SAAS,sBAAsB,OAAO;CACrD,QAAQ,MAAR;EACE,KAAK,MACH,OAAO,QAAQ;EACjB,KAAK,MACH,OAAQ,QAAQ,KAAM;EACxB,KAAK,MACH,OAAO;EACT,KAAK,MACH,OAAO,QAAQ;EACjB,KAAK;EACL,KAAK,MACH,OAAQ,QAAQ,KAAM;EACxB,KAAK,MACH,OAAO,QAAQ;CACnB;AACF;;;;;;;AAQA,MAAa,iBAAiB,QAC5B,OAAO,QAAQ,WAAW,8BAA8B,GAAG,IAAI"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/util/data-type.d.ts
|
|
2
|
+
type DataType = ArrayBufferLike | Blob | DataView | number[] | ReadableStream | string | Uint8Array;
|
|
3
|
+
declare function isBase64DataURL(input: string): boolean;
|
|
4
|
+
interface ToUint8ArrayOptions {
|
|
5
|
+
encoding?: "utf8" | "base64";
|
|
6
|
+
}
|
|
7
|
+
declare function toUint8Array(data: DataType, options?: ToUint8ArrayOptions): Uint8Array;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { toUint8Array as i, ToUint8ArrayOptions as n, isBase64DataURL as r, DataType as t };
|
|
10
|
+
//# sourceMappingURL=data-type-CZMKVaaT.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-type-CZMKVaaT.d.mts","names":[],"sources":["../src/util/data-type.ts"],"mappings":";KAaY,QAAA,GACR,eAAA,GACA,IAAA,GACA,QAAA,cAEA,cAAA,YAEA,UAAA;AAAA,iBAOY,eAAA,CAAgB,KAAa;AAAA,UAK5B,mBAAA;EAUf,QAAQ;AAAA;AAAA,iBAIM,YAAA,CAAa,IAAA,EAAM,QAAA,EAAU,OAAA,GAAU,mBAAA,GAAsB,UAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type CustomDescriptor, type Descriptor, type DescriptorFieldSpec, FIELD_SPECS, type FieldConsistencyReport, type OrderViolation, type ReadContext, type RoundTripResult, type WriteContext,
|
|
1
|
+
import { a as diffTagSets, c as FIELD_SPECS, d as stringify, f as CustomDescriptor, h as WriteContext, i as checkOrder, l as findFieldSpec, m as ReadContext, n as OrderViolation, o as roundTripFields, p as Descriptor, r as RoundTripResult, s as DescriptorFieldSpec, t as FieldConsistencyReport, u as parse } from "../index-BVK2dv6C.mjs";
|
|
2
|
+
export { type CustomDescriptor, type Descriptor, type DescriptorFieldSpec, FIELD_SPECS, type FieldConsistencyReport, type OrderViolation, type ReadContext, type RoundTripResult, type WriteContext, checkOrder, diffTagSets, findFieldSpec, parse, roundTripFields, stringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as roundTripFields,
|
|
2
|
-
export { FIELD_SPECS,
|
|
1
|
+
import { a as roundTripFields, i as diffTagSets, n as findFieldSpec, o as parse, r as checkOrder, s as stringify, t as FIELD_SPECS } from "../descriptor-BjNkn5jo.mjs";
|
|
2
|
+
export { FIELD_SPECS, checkOrder, diffTagSets, findFieldSpec, parse, roundTripFields, stringify };
|
|
@@ -12,38 +12,6 @@ function parse$1(desc, el, ctx) {
|
|
|
12
12
|
return desc.parse(el, ctx);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region src/descriptor/helpers.ts
|
|
16
|
-
/**
|
|
17
|
-
* OOXML-specific encode/decode helpers for descriptors.
|
|
18
|
-
*
|
|
19
|
-
* XML traversal helpers (findChild, etc.) are in @office-open/xml utils.
|
|
20
|
-
* This file only contains OOXML value encoding/decoding.
|
|
21
|
-
*
|
|
22
|
-
* @module
|
|
23
|
-
*/
|
|
24
|
-
/** Encode boolean for CT_OnOff: true → omit val, false → "0". */
|
|
25
|
-
const boolEncode = (v) => {
|
|
26
|
-
if (v === void 0) return void 0;
|
|
27
|
-
return v ? void 0 : "0";
|
|
28
|
-
};
|
|
29
|
-
/** Decode CT_OnOff: absent or "true"/"1" → true, "0"/"false" → false. */
|
|
30
|
-
const boolDecode = (raw) => raw !== "0" && raw !== "false";
|
|
31
|
-
/** Create an enum encoder from a JS↔XML mapping. */
|
|
32
|
-
const enumEncode = (map) => (v) => {
|
|
33
|
-
if (v === void 0) return void 0;
|
|
34
|
-
return map[v] ?? v;
|
|
35
|
-
};
|
|
36
|
-
/** Create an enum decoder from a JS↔XML mapping (inverted). */
|
|
37
|
-
const enumDecode = (map) => {
|
|
38
|
-
const inv = invertRecord(map);
|
|
39
|
-
return (raw) => inv[raw] ?? raw;
|
|
40
|
-
};
|
|
41
|
-
function invertRecord(map) {
|
|
42
|
-
const result = {};
|
|
43
|
-
for (const key of Object.keys(map)) result[map[key]] = key;
|
|
44
|
-
return result;
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
15
|
//#region src/descriptor/field-consistency.ts
|
|
48
16
|
/**
|
|
49
17
|
* Field-consistency helpers for descriptor round-trip auditing.
|
|
@@ -416,4 +384,6 @@ function findFieldSpec(id) {
|
|
|
416
384
|
return FIELD_SPECS.find((s) => s.id === id);
|
|
417
385
|
}
|
|
418
386
|
//#endregion
|
|
419
|
-
export { roundTripFields as a,
|
|
387
|
+
export { roundTripFields as a, diffTagSets as i, findFieldSpec as n, parse$1 as o, checkOrder as r, stringify$1 as s, FIELD_SPECS as t };
|
|
388
|
+
|
|
389
|
+
//# sourceMappingURL=descriptor-BjNkn5jo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor-BjNkn5jo.mjs","names":["stringify","parse","parseXml"],"sources":["../src/descriptor/runtime.ts","../src/descriptor/field-consistency.ts","../src/descriptor/field-spec.ts"],"sourcesContent":["/**\n * Descriptor runtime: stringify (write) and parse (parse path) functions.\n *\n * Write path: Options → stringify(desc, opts, ctx) → string\n * Parse path: Element → parse(desc, el, ctx) → Options\n *\n * Both paths delegate to the descriptor's own stringify()/parse() methods —\n * every descriptor is a CustomDescriptor.\n *\n * @module\n */\n\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ReadContext, WriteContext } from \"./context\";\nimport type { CustomDescriptor } from \"./types\";\n\n// ── Write path ──\n\n/**\n * Serialize an Options object to an XML string using its descriptor.\n * Returns `undefined` when an optional element should be omitted.\n */\nexport function stringify<TInput, Ctx = WriteContext, TOutput = TInput>(\n desc: CustomDescriptor<TInput, Ctx, TOutput>,\n value: TInput,\n ctx: Ctx,\n): string | undefined {\n return desc.stringify(value, ctx);\n}\n\n// ── Read path ──\n\n/** Parse an XML Element into an Options object using its descriptor. */\nexport function parse<TInput, TOutput = TInput, Ctx = WriteContext>(\n desc: CustomDescriptor<TInput, Ctx, TOutput>,\n el: XmlElement,\n ctx: ReadContext,\n): TOutput {\n return desc.parse(el, ctx);\n}\n","/**\n * Field-consistency helpers for descriptor round-trip auditing.\n *\n * Pairs with {@link DescriptorFieldSpec}: {@link diffTagSets} flags the static\n * asymmetries between the interface / write / parse field sets (F1/F2/F3/F5),\n * and {@link roundTripFields} runs an actual stringify→parse cycle and reports\n * which fields were lost, gained, or mutated (F4).\n *\n * @module\n */\nimport { parse as parseXml } from \"@office-open/xml\";\nimport type { Element } from \"@office-open/xml\";\n\nimport type { DescriptorFieldSpec } from \"./field-spec\";\n\nexport interface FieldConsistencyReport {\n /** F1 — declared on the interface but never written (write-loss). */\n f1WriteLoss: readonly string[];\n /** F2 — written but absent from the interface (write-only inflation). */\n f2WriteOnly: readonly string[];\n /** F3 — written but never restored on parse (round-trip loss). */\n f3ParseLoss: readonly string[];\n /** F5 — restored on parse but never written (parse-only). */\n f5ParseOnly: readonly string[];\n}\n\n/** Diff the interface / write / parse field sets declared on a spec. */\nexport function diffTagSets(spec: DescriptorFieldSpec): FieldConsistencyReport {\n const interfaceSet = new Set(spec.interfaceFields);\n const writeSet = new Set(spec.writeFields);\n const parseSet = new Set(spec.parseFields);\n return {\n f1WriteLoss: spec.interfaceFields.filter((f) => !writeSet.has(f)),\n f2WriteOnly: spec.writeFields.filter((f) => !interfaceSet.has(f)),\n f3ParseLoss: spec.writeFields.filter((f) => !parseSet.has(f)),\n f5ParseOnly: spec.parseFields.filter((f) => !writeSet.has(f)),\n };\n}\n\nexport interface RoundTripResult {\n /** Present in the sample, absent after round-trip. */\n lost: readonly string[];\n /** Absent from the sample, present after round-trip. */\n gained: readonly string[];\n /** Present on both sides with differing values. */\n mutated: readonly string[];\n}\n\n/**\n * Run a stringify→parse cycle over a sample and diff the result field set.\n * Returns the F4 round-trip drift. The caller supplies the descriptor's own\n * stringify/parse (a `CustomDescriptor` pair or a function pair).\n */\nexport function roundTripFields<T extends object, WC = unknown, RC = unknown>(\n stringifyFn: (opts: T, ctx: WC) => string | undefined,\n parseFn: (el: Element, ctx: RC) => T,\n sample: T,\n writeCtx: WC,\n readCtx: RC,\n): RoundTripResult {\n const xml = stringifyFn(sample, writeCtx);\n if (xml === undefined) {\n throw new Error(\"roundTripFields: stringify returned undefined for the sample\");\n }\n const doc = parseXml(xml) as Element;\n const root = doc.elements?.find((e) => e.type === \"element\");\n if (!root) throw new Error(\"roundTripFields: stringify produced no root element\");\n const result = parseFn(root, readCtx);\n return diffObjects(sample, result);\n}\n\nexport interface OrderViolation {\n /** Position of the offending child within its parent. */\n index: number;\n /** Local name of the child element (namespace prefix stripped). */\n tag: string;\n /** Why the child violates the expected sequence. */\n reason: \"unexpected\" | \"out-of-order\";\n}\n\n/**\n * Verify the child element order of a stringified container against an XSD\n * sequence — the F6 check. Namespace prefixes are normalized, so `expected`\n * entries may be qualified (`w:pStyle`) or local (`pStyle`); both match a\n * `<w:pStyle>` child. Elements absent from `expected` are flagged \"unexpected\";\n * a child whose expected position precedes the previous child's is\n * \"out-of-order\".\n */\nexport function checkOrder(xml: string, expected: readonly string[]): readonly OrderViolation[] {\n const doc = parseXml(xml) as Element;\n const root = doc.elements?.find((e) => e.type === \"element\");\n if (!root) return [];\n const expectedLocal = expected.map(localName);\n const violations: OrderViolation[] = [];\n let lastIdx = -1;\n const children = (root.elements ?? []).filter((e) => e.type === \"element\");\n children.forEach((child, i) => {\n const tag = localName(child.name);\n const idx = expectedLocal.indexOf(tag);\n if (idx === -1) {\n violations.push({ index: i, tag, reason: \"unexpected\" });\n return;\n }\n if (idx < lastIdx) {\n violations.push({ index: i, tag, reason: \"out-of-order\" });\n }\n lastIdx = idx;\n });\n return violations;\n}\n\nfunction localName(name: string | undefined): string {\n if (name === undefined) return \"\";\n const colon = name.lastIndexOf(\":\");\n return colon === -1 ? name : name.slice(colon + 1);\n}\n\nfunction diffObjects(sample: object, result: object): RoundTripResult {\n const sampleKeys = enumerableKeys(sample);\n const resultKeys = enumerableKeys(result);\n const lost = sampleKeys.filter((k) => !(k in result));\n const gained = resultKeys.filter((k) => !(k in sample));\n const mutated = sampleKeys.filter(\n (k) => k in result && !deepEqual(fieldValue(sample, k), fieldValue(result, k)),\n );\n return { lost, gained, mutated };\n}\n\nfunction enumerableKeys(value: object): string[] {\n return Object.keys(value).filter((k) => fieldValue(value, k) !== undefined);\n}\n\nfunction fieldValue(value: object, key: string): unknown {\n return (value as Record<string, unknown>)[key];\n}\n\n/** Structural deep equality (objects, arrays, primitives); no special-case classes. */\nfunction deepEqual(a: unknown, b: unknown): boolean {\n if (a === b) return true;\n if (typeof a !== typeof b) return false;\n if (a === null || b === null) return a === b;\n if (typeof a !== \"object\") return a === b;\n const aArr = Array.isArray(a);\n const bArr = Array.isArray(b);\n if (aArr || bArr) {\n if (!aArr || !bArr) return false;\n const aa = a as unknown[];\n const bb = b as unknown[];\n if (aa.length !== bb.length) return false;\n return aa.every((v, i) => deepEqual(v, bb[i]));\n }\n const ao = a as Record<string, unknown>;\n const bo = b as Record<string, unknown>;\n const keys = new Set([...Object.keys(ao), ...Object.keys(bo)]);\n for (const k of keys) {\n if (!deepEqual(ao[k], bo[k])) return false;\n }\n return true;\n}\n","/**\n * Declarative field-consistency spec for descriptors.\n *\n * The `CustomDescriptor<T>` closure carries no field metadata, so the three\n * places that must agree — the Options interface, the stringify body, and the\n * parse body — drift silently (reflection dropping 9/14 props, styles\n * round-trip loss, core-properties 8-interface/10-write/8-parse inflation).\n *\n * Each entry declares the three field sets in a single semantic dimension\n * (Options field names, not XML tags), so {@link diffTagSets} can surface the\n * asymmetries directly:\n * - F1 write-loss — declared on the interface but never written\n * - F2 write-only — written but absent from the interface (inflation)\n * - F3 parse-loss — written but never restored on parse (round-trip loss)\n * - F5 parse-only — restored but never written\n *\n * @module\n */\n\nexport interface DescriptorFieldSpec {\n /** Stable identifier, matched to the descriptor under test. */\n id: string;\n /** Options interface name (documentation / assertion messages). */\n optionsInterface: string;\n /** Fields declared on the Options interface — the contract. */\n interfaceFields: readonly string[];\n /** Fields the stringify path actually emits; may carry inflation not on the interface. */\n writeFields: readonly string[];\n /** Fields the parse path actually restores. */\n parseFields: readonly string[];\n /** Expected child order when the XSD mandates sequence; omitted when order-independent. */\n order?: readonly string[];\n /** Sample exercising the interface fields, for F4 round-trip deep-equality. */\n sampleOptions: unknown;\n /**\n * Interface fields excluded from the contract comparison — input-side sugar\n * (thematicBreak→border, rightTabStop→tabStops) and control flags\n * (includeIfEmpty) that map field→XML but XML→a different field, breaking the\n * 1:1 round-trip assumption. The interface-drift test asserts\n * `interfaceFields === (live interface fields − excludeFields)`.\n */\n excludeFields?: readonly string[];\n notes?: string;\n}\n\n/**\n * Curated high-value targets — each maps to a known historical drift.\n * `settings` is intentionally absent: its round-trip is rawXml-based (byte\n * passthrough), so field-level diff would mislabel every field as F2.\n */\nexport const FIELD_SPECS: readonly DescriptorFieldSpec[] = [\n {\n id: \"core-properties\",\n optionsInterface: \"CorePropertiesOptions\",\n // 10 interface fields — created/modified are now carried for round-trip fidelity.\n interfaceFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n ],\n // stringify emits all 10 fields; created/modified default to now when absent.\n writeFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n ],\n // parse reads back all 10 interface fields.\n parseFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n ],\n sampleOptions: {\n title: \"T\",\n subject: \"S\",\n creator: \"C\",\n keywords: \"k1,k2\",\n description: \"D\",\n lastModifiedBy: \"LMB\",\n revision: 3,\n lastPrinted: \"2024-01-02T03:04:05Z\",\n created: \"2018-05-11T07:02:00Z\",\n modified: \"2026-04-10T02:02:36Z\",\n },\n notes: \"created/modified round-tripped verbatim from dcterms:created/modified.\",\n },\n {\n id: \"paragraph-properties\",\n optionsInterface: \"ParagraphPropertiesOptions\",\n interfaceFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"textDirection\",\n \"outlineLevel\",\n \"divId\",\n \"cnfStyle\",\n \"revision\",\n ],\n // stringify writes every interface field (pPrChange is revision's XML).\n writeFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"textDirection\",\n \"outlineLevel\",\n \"divId\",\n \"cnfStyle\",\n \"revision\",\n ],\n // parse omits textDirection, textboxTightWrap, divId, cnfStyle\n // (no findChild for these in parseParagraphProperties).\n parseFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"outlineLevel\",\n \"revision\",\n ],\n order: [\n \"pStyle\",\n \"keepNext\",\n \"keepLines\",\n \"pageBreakBefore\",\n \"framePr\",\n \"widowControl\",\n \"numPr\",\n \"suppressLineNumbers\",\n \"pBdr\",\n \"shd\",\n \"tabs\",\n \"suppressAutoHyphens\",\n \"kinsoku\",\n \"wordWrap\",\n \"overflowPunct\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"autoSpaceDN\",\n \"bidi\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"spacing\",\n \"ind\",\n \"contextualSpacing\",\n \"mirrorIndents\",\n \"suppressOverlap\",\n \"jc\",\n \"textDirection\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"outlineLvl\",\n \"divId\",\n \"cnfStyle\",\n \"rPr\",\n \"pPrChange\",\n ],\n sampleOptions: {\n heading: \"Heading1\",\n alignment: \"center\",\n spacing: { before: 240, after: 120, line: 278, lineRule: \"auto\" },\n indent: { left: 720, firstLine: 360 },\n keepNext: true,\n keepLines: true,\n widowControl: true,\n contextualSpacing: true,\n border: { bottom: { style: \"single\", color: \"FF0000\", size: 6, space: 1 } },\n shading: { fill: \"FFFF00\", type: \"clear\" },\n tabStops: [{ position: 720, type: \"left\" }],\n numbering: { reference: \"list_1\", level: 0 },\n outlineLevel: 1,\n textAlignment: \"center\",\n },\n excludeFields: [\"thematicBreak\", \"rightTabStop\", \"leftTabStop\", \"includeIfEmpty\"],\n notes:\n \"F3 parse-loss: textDirection, textboxTightWrap, divId, cnfStyle written but never parsed. \" +\n \"Input-side sugar excluded from the field sets: thematicBreak (→pBdr/border), \" +\n \"rightTabStop/leftTabStop (→tabs/tabStops), includeIfEmpty (control flag) — these map field→XML but XML→a different field, breaking the 1:1 round-trip assumption.\",\n },\n];\n\nexport function findFieldSpec(id: string): DescriptorFieldSpec | undefined {\n return FIELD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ACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAGA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,eAAe;EACb,SAAS;EACT,WAAW;EACX,SAAS;GAAE,QAAQ;GAAK,OAAO;GAAK,MAAM;GAAK,UAAU;EAAO;EAChE,QAAQ;GAAE,MAAM;GAAK,WAAW;EAAI;EACpC,UAAU;EACV,WAAW;EACX,cAAc;EACd,mBAAmB;EACnB,QAAQ,EAAE,QAAQ;GAAE,OAAO;GAAU,OAAO;GAAU,MAAM;GAAG,OAAO;EAAE,EAAE;EAC1E,SAAS;GAAE,MAAM;GAAU,MAAM;EAAQ;EACzC,UAAU,CAAC;GAAE,UAAU;GAAK,MAAM;EAAO,CAAC;EAC1C,WAAW;GAAE,WAAW;GAAU,OAAO;EAAE;EAC3C,cAAc;EACd,eAAe;CACjB;CACA,eAAe;EAAC;EAAiB;EAAgB;EAAe;CAAgB;CAChF,OACE;AAGJ,CACF;AAEA,SAAgB,cAAc,IAA6C;CACzE,OAAO,YAAY,MAAM,MAAM,EAAE,OAAO,EAAE;AAC5C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as createLineColorList, $
|
|
2
|
-
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleLabelOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MaxChildrenOptions, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList,
|
|
1
|
+
import { $ as createLineColorList, $n as createReflectionEffect, $r as createSourceRectangle, $t as TableStyleListOptions, A as scRgbColorDesc, An as createShape3D, Ar as PresetPattern, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Bn as SphereCoords, Br as GradientShadeOptions, Bt as GraphicFrameLockingOptions, C as fillDesc, Cn as createCustomGeometry, Cr as LineEndType, Ct as AnimationLevelOptions, D as parseColorChoice, Dn as stringifyAdjustmentValues, Dr as createCustomDash, Dt as MaxChildrenOptions, E as hslColorDesc, En as GeometryGuide, Er as DashStop, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fn as BackdropOptions, Fr as FillOptions, Ft as createHierBranch, G as DiagramStyleLabelOptions, Gn as EffectDagOptions, Gr as RelativeRect, Gt as createGroupLocking, H as createDiagramRelationshipIds, Hn as createScene3D, Hr as LinearShadeOptions, Ht as PictureLockingOptions, I as DiagramExtensionOptions, In as CameraOptions, Ir as GradientStopOptions, It as createMaxChildren, J as HueDirection, Jn as EffectExtent, Jr as createGradientStop, Jt as OnOffStyleType, K as DiagramStyleOptions, Kn as createEffectDag, Kr as TileFlipMode, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, Ln as LightRigOptions, Lr as buildFill, Lt as createOrgChart, M as solidFillDesc, Mn as BevelPresetType, Mr as createNoFill, Mt as createAdjustList, N as stringifyColorChoice, Nn as createBevel, Nr as BlipFillConfigOptions, Nt as createAnimateOneByOne, O as presetColorDesc, On as PresetMaterialType, Or as createGroupFill, Ot as OrgChartOptions, P as systemColorDesc, Pn as createBottomBevel, Pr as BlipFillMediaData, Pt as createAnimationLevel, Q as createFillColorList, Qn as ReflectionEffectOptions, Qr as SourceRectangleOptions, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Rn as Point3D, Rr as extractBlipFillMedia, Rt as createPreferredChildren, S as outlineDesc, Sn as PathOptions, Sr as LineEndOptions, St as AnimateOneByOneValue, T as patternFillDesc, Tn as stringifyPresetGeometry, Tr as createLineEnd, Tt as HierBranchOptions, U as ColorListOptions, Un as createSoftEdgeEffect, Ur as PathShadeOptions, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Vn as Vector3D, Vr as GradientStop, Vt as GroupLockingOptions, W as ColorMethod, Wn as EffectContainerType, Wr as PathShadeType, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xn as calculateEffectExtent, Xr as TileOptions, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Yn as EffectListOptions, Yr as TileAlignment, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Zn as createEffectList, Zr as createTileInfo, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _i as createPresetColor, _n as ConnectionSite, _r as OutlineOptions, _t as createStyleDefinitionHeader, a as blipDesc, ai as SystemColor, an as createTableStyleList, ar as createOuterShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, bi as ColorTransformOptions, bn as PathCommand, br as createOutline, bt as AdjustOptions, c as stretchDesc, ci as SchemeColor, cn as Transform2DOptions, cr as GlowEffectOptions, ct as DiagramNameOptions, d as scene3DDesc, di as ScRgbColorOptions, dn as stringifyStretch, dr as FillOverlayEffectOptions, dt as StyleDefinitionHeaderListOptions, ei as BlipEffectsOptions, en as TableStyleOptions, er as PresetShadowEffectOptions, et as createStyleLabel, f as shape3DDesc, fi as createScRgbColor, fn as createExtensionList, fr as createFillOverlayEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, gi as PresetColorOptions, gn as createBlip, gr as OutlineFillProperties, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, hi as PresetColor, hn as BlipOptions, hr as LineJoin, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, ii as createSolidFill, in as createTableStyle, ir as RectAlignment, it as ColorsDefinitionHeaderListOptions, j as schemeColorDesc, jn as BevelOptions, jr as createPatternFill, jt as createAdjust, k as rgbColorDesc, kn as Shape3DOptions, kr as PatternFillOptions, kt as PreferredChildrenOptions, l as tileDesc, li as SchemeColorOptions, ln as createGroupTransform2D, lr as createGlowEffect, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, mi as createRgbColor, mn as createBlipFill, mr as LineCap, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, ni as SolidFillOptions, nn as TableTextStyleOptions, nr as createPresetShadowEffect, nt as createTextFillColorList, o as blipFillDesc, oi as SystemColorOptions, on as parseTableStyleList, or as InnerShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pi as RgbColorOptions, pn as BlipFillOptions, pr as CompoundLine, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qn as BlurEffectOptions, qr as createGradientFill, qt as createShapeLocking, r as diagramStyleDesc, ri as createColorElement, rn as ThemeableLineStyleOptions, rr as OuterShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, si as createSystemColor, sn as GroupTransform2DOptions, sr as createInnerShadowEffect, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, ti as createBlipEffects, tn as TableStyleRegion, tr as PresetShadowVal, tt as createTextEffectColorList, u as bevelDesc, ui as createSchemeColor, un as createTransform2D, ur as BlendMode, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, vi as HslColorOptions, vn as CustomGeometryOptions, vr as PenAlignment, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wn as PresetGeometryOptions, wr as LineEndWidth, wt as AnimationLevelValue, x as effectListDesc, xi as createColorTransforms, xn as PathFillMode, xr as LineEndLength, xt as AnimateOneByOneOptions, y as pictureLockingDesc, yi as createHslColor, yn as GeomRect, yr as PresetDash, yt as AdjustListOptions, z as createDiagramShape3D, zn as Scene3DOptions, zr as GradientFillOptions, zt as createPresentationLayoutVariables } from "../index-CE53SwpZ.mjs";
|
|
2
|
+
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleLabelOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MaxChildrenOptions, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtensionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyColorChoice, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|
package/dist/drawingml/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList,
|
|
1
|
+
import { $ as createLayoutDefinitionHeader, $t as PenAlignment, A as scRgbColorDesc, An as createPresetColor, At as stringifyAdjustmentValues, B as FontCollectionIndex, Bt as createSoftEdgeEffect, C as sourceRectangleDesc, Cn as SystemColor, Ct as createTransform2D, D as parseColorChoice, Dn as createScRgbColor, Dt as createExtensionList, E as hslColorDesc, En as createSchemeColor, Et as createBlip, F as createDiagramExtensionList, Ft as createBottomBevel, G as createFillColorList, Gt as createOuterShadowEffect, H as StyleMatrixIndex, Ht as PresetShadowVal, I as createDiagramShape3D, It as createScene3D, J as createTextEffectColorList, Jt as BlendMode, K as createLineColorList, Kt as createInnerShadowEffect, L as createDiagramTextProperties, Lt as createEffectDag, M as solidFillDesc, Mn as createColorTransforms, Mt as createShape3D, N as stringifyColorChoice, Nt as BevelPresetType, O as presetColorDesc, On as createRgbColor, Ot as createCustomGeometry, P as systemColorDesc, Pt as createBevel, Q as createColorsDefinitionHeaderList, Qt as LineJoin, R as createDiagramRelationshipIds, Rt as calculateEffectExtent, S as blipFillDesc, Sn as createSolidFill, St as createGroupTransform2D, T as tileDesc, Tn as SchemeColor, Tt as createBlipFill, U as createDiagramStyle, Ut as createPresetShadowEffect, V as HueDirection, Vt as createReflectionEffect, W as createEffectColorList, Wt as RectAlignment, X as createTextLineColorList, Xt as CompoundLine, Y as createTextFillColorList, Yt as createFillOverlayEffect, Z as createColorsDefinitionHeader, Zt as LineCap, _ as outlineDesc, _n as TileAlignment, _t as createPictureLocking, a as bevelDesc, an as createLineEnd, at as HierBranchStyle, b as patternFillDesc, bn as createBlipEffects, bt as createTableStyleList, c as groupTransform2DDesc, cn as createNoFill, ct as createAnimateOneByOne, d as presetGeometryDesc, dn as PresetPattern, dt as createMaxChildren, en as PresetDash, et as createLayoutDefinitionHeaderList, f as graphicFrameLockingDesc, fn as createPatternFill, ft as createOrgChart, g as effectListDesc, gn as createGradientStop, gt as createGroupLocking, h as shapeLockingDesc, hn as createGradientFill, ht as createGraphicFrameLocking, i as presentationLayoutVariablesDesc, in as LineEndWidth, it as AnimationLevelValue, j as schemeColorDesc, jn as createHslColor, jt as PresetMaterialType, k as rgbColorDesc, kn as PresetColor, kt as stringifyPresetGeometry, l as transform2DDesc, ln as buildFill, lt as createAnimationLevel, m as pictureLockingDesc, mn as TileFlipMode, mt as createPresentationLayoutVariables, n as diagramRelationshipIdsDesc, nn as LineEndLength, nt as createStyleDefinitionHeaderList, o as scene3DDesc, on as createCustomDash, ot as createAdjust, p as groupLockingDesc, pn as PathShadeType, pt as createPreferredChildren, q as createStyleLabel, qt as createGlowEffect, r as diagramStyleDesc, rn as LineEndType, rt as AnimateOneByOneValue, s as shape3DDesc, sn as createGroupFill, st as createAdjustList, t as diagramExtensionListDesc, tn as createOutline, tt as createStyleDefinitionHeader, u as customGeometryDesc, un as extractBlipFillMedia, ut as createHierBranch, v as fillDesc, vn as createTileInfo, vt as createShapeLocking, w as stretchDesc, wn as createSystemColor, wt as stringifyStretch, x as blipDesc, xn as createColorElement, xt as parseTableStyleList, y as gradientFillDesc, yn as createSourceRectangle, yt as createTableStyle, z as ColorMethod, zt as createEffectList } from "../drawingml-sj1J3lb0.mjs";
|
|
2
|
+
export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtensionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyColorChoice, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|