ooxml-ui 1.31.0 → 1.32.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/building-block-styles.d.ts +0 -1
- package/dist/chart/format-pane-3d.d.ts +0 -1
- package/dist/chart/format-pane-analysis.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/pptx/{chunk-KCZWGNWT.mjs → chunk-7DT3UJQB.mjs} +1 -1
- package/dist/pptx/{chunk-52Z74ESQ.mjs → chunk-CH4Z6H6C.mjs} +274 -76
- package/dist/pptx/{chunk-W4GPWC2Z.cjs → chunk-TDIJHLS5.cjs} +277 -74
- package/dist/pptx/{chunk-UG72HBSV.cjs → chunk-ZS5EVODY.cjs} +41 -41
- package/dist/pptx/dom/index.cjs +384 -383
- package/dist/pptx/dom/index.mjs +7 -6
- package/dist/pptx/index.cjs +3046 -3026
- package/dist/pptx/index.mjs +1 -1
- package/dist/pptx/render/bullet-toggle-selection.d.ts +8 -4
- package/dist/pptx/render/bullet-toggle-selection.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +1 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inline-list-style.d.ts +2 -1
- package/dist/pptx/render/inline-list-style.d.ts.map +1 -1
- package/dist/pptx/render/text-list-style-update.d.ts +23 -2
- package/dist/pptx/render/text-list-style-update.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-block.d.ts +10 -1
- package/dist/pptx/render/text-warp-envelope-block.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-curves.d.ts +8 -0
- package/dist/pptx/render/text-warp-envelope-curves.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-layout.d.ts +9 -3
- package/dist/pptx/render/text-warp-envelope-layout.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-map.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-wrap.d.ts +29 -0
- package/dist/pptx/render/text-warp-envelope-wrap.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts +13 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-preset-sampler.d.ts +12 -0
- package/dist/pptx/render/text-warp-preset-sampler.d.ts.map +1 -1
- package/dist/pptx/render/text-warp.d.ts +3 -2
- package/dist/pptx/render/text-warp.d.ts.map +1 -1
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-GDFFXVAO.mjs → smartart-insert-preview-RQUFRLSV.mjs} +2 -2
- package/dist/pptx/{smartart-insert-preview-FA4WM2N4.cjs → smartart-insert-preview-YKNB37GE.cjs} +3 -3
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/theme.d.ts +0 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-envelope-curves.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-curves.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-warp-envelope-curves.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-curves.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAarD,CAAC;AAEH,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEpE;AAsCD,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,MAAM,EACT,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,sBAAsB,GAAG,SAAS,CAyEpC;AAcD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,MAAM,EACd,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,kBAAkB,CAOpB;AAED,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,EAAE,sBAGnC,CAAC"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { measureGlyphAdvances, resetGlyphEnvelopeMeasureCache } from './text-warp-envelope-measure.js';
|
|
2
2
|
import type { EnvelopeAlign, EnvelopeGlyphPlacement, EnvelopeSegmentInput, GlyphOutlineLookup } from './text-warp-envelope-types.js';
|
|
3
|
+
import type { EnvelopeTextBody } from './text-warp-envelope-wrap.js';
|
|
3
4
|
export type { EnvelopeAlign, EnvelopeFontSpec, EnvelopeGlyphPlacement, EnvelopeSegmentInput, GlyphOutlineLookup, GlyphOutlineLookupFont, } from './text-warp-envelope-types.js';
|
|
4
5
|
export { measureGlyphAdvances, resetGlyphEnvelopeMeasureCache };
|
|
5
6
|
/**
|
|
6
7
|
* Build every paragraph's glyph placements for one envelope-warped text
|
|
7
8
|
* block in a `width` x `height` shape box. Returns one array per paragraph
|
|
8
9
|
* (in order), each empty when the preset is outside the envelope family, the
|
|
9
|
-
* box is degenerate, or the block has no ink at all.
|
|
10
|
+
* box is degenerate, or the block has no ink at all. A paragraph that wraps
|
|
11
|
+
* still returns one array, holding all of its rows' glyphs.
|
|
12
|
+
*
|
|
13
|
+
* `textBody` is the element's text style (its `a:bodyPr` insets and `wrap`):
|
|
14
|
+
* with it, paragraphs wrap at `width` less the insets before the warp, unless
|
|
15
|
+
* it says `wrap="none"`. Without it nothing wraps.
|
|
10
16
|
*/
|
|
11
|
-
export declare function buildGlyphEnvelopeBlock(preset: string, paragraphs: EnvelopeSegmentInput[][], width: number, height: number, align: EnvelopeAlign, adj?: number, adj2?: number, getGlyphOutline?: GlyphOutlineLookup): EnvelopeGlyphPlacement[][];
|
|
17
|
+
export declare function buildGlyphEnvelopeBlock(preset: string, paragraphs: EnvelopeSegmentInput[][], width: number, height: number, align: EnvelopeAlign, adj?: number, adj2?: number, getGlyphOutline?: GlyphOutlineLookup, textBody?: EnvelopeTextBody): EnvelopeGlyphPlacement[][];
|
|
12
18
|
/**
|
|
13
19
|
* Single-paragraph convenience wrapper around {@link buildGlyphEnvelopeBlock}:
|
|
14
20
|
* the placements for a block that consists of `segments` alone.
|
|
15
21
|
*/
|
|
16
|
-
export declare function buildGlyphEnvelope(preset: string, segments: EnvelopeSegmentInput[], width: number, height: number, align: EnvelopeAlign, adj?: number, adj2?: number, getGlyphOutline?: GlyphOutlineLookup): EnvelopeGlyphPlacement[];
|
|
22
|
+
export declare function buildGlyphEnvelope(preset: string, segments: EnvelopeSegmentInput[], width: number, height: number, align: EnvelopeAlign, adj?: number, adj2?: number, getGlyphOutline?: GlyphOutlineLookup, textBody?: EnvelopeTextBody): EnvelopeGlyphPlacement[];
|
|
17
23
|
//# sourceMappingURL=text-warp-envelope-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-envelope-layout.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-layout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-warp-envelope-layout.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-layout.ts"],"names":[],"mappings":"AAgCA,OAAO,EAEN,oBAAoB,EACpB,8BAA8B,EAC9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACX,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,YAAY,EACX,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,GACtB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,CAAC;AAuChE;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,oBAAoB,EAAE,EAAE,EACpC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,EACpB,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,eAAe,CAAC,EAAE,kBAAkB,EACpC,QAAQ,CAAC,EAAE,gBAAgB,GACzB,sBAAsB,EAAE,EAAE,CAsB5B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,oBAAoB,EAAE,EAChC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,EACpB,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,eAAe,CAAC,EAAE,kBAAkB,EACpC,QAAQ,CAAC,EAAE,gBAAgB,GACzB,sBAAsB,EAAE,CAc1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-envelope-map.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-map.ts"],"names":[],"mappings":"AAsCA,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpD;
|
|
1
|
+
{"version":3,"file":"text-warp-envelope-map.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-map.ts"],"names":[],"mappings":"AAsCA,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpD;AAyDD;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,KAAK,EAAE,gBAAgB,GACrB,YAAY,GAAG,SAAS,CA4B1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { EnvelopeSegmentInput } from './text-warp-envelope-types.js';
|
|
2
|
+
/** The `a:bodyPr` properties that decide whether, and how wide, the block wraps. */
|
|
3
|
+
export interface EnvelopeTextBody {
|
|
4
|
+
/** Left inset in px (`a:bodyPr/@lIns`); the OOXML default when absent. */
|
|
5
|
+
bodyInsetLeft?: number;
|
|
6
|
+
/** Right inset in px (`a:bodyPr/@rIns`); the OOXML default when absent. */
|
|
7
|
+
bodyInsetRight?: number;
|
|
8
|
+
/** `a:bodyPr/@wrap`: `'none'` keeps each paragraph on one row. */
|
|
9
|
+
textWrap?: string;
|
|
10
|
+
}
|
|
11
|
+
/** One character of a paragraph with the run it came from and its advance. */
|
|
12
|
+
export interface EnvelopeWrapItem {
|
|
13
|
+
seg: EnvelopeSegmentInput;
|
|
14
|
+
char: string;
|
|
15
|
+
advance: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The width a `boxWidth`-wide shape wraps its text at: the box less its left
|
|
19
|
+
* and right insets, or `undefined` (no wrapping) when `body` is absent or
|
|
20
|
+
* says `wrap="none"`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function envelopeWrapWidth(boxWidth: number, body: EnvelopeTextBody | undefined): number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Break one paragraph's characters into rows no wider than `maxWidth`
|
|
25
|
+
* (see the module comment). With `maxWidth` `undefined` the paragraph stays
|
|
26
|
+
* one row, unchanged.
|
|
27
|
+
*/
|
|
28
|
+
export declare function wrapEnvelopeParagraph(items: EnvelopeWrapItem[], maxWidth: number | undefined): EnvelopeWrapItem[][];
|
|
29
|
+
//# sourceMappingURL=text-warp-envelope-wrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-warp-envelope-wrap.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-wrap.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAChC,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAChC,GAAG,EAAE,oBAAoB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAWD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,gBAAgB,GAAG,SAAS,GAChC,MAAM,GAAG,SAAS,CAOpB;AA6CD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,gBAAgB,EAAE,EACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC1B,gBAAgB,EAAE,EAAE,CAgBtB"}
|
|
@@ -67,12 +67,25 @@ export type WarpCurveSegment = {
|
|
|
67
67
|
readonly stAng: string;
|
|
68
68
|
readonly swAng: string;
|
|
69
69
|
};
|
|
70
|
+
/** Guide names for where a path starts and ends horizontally. */
|
|
71
|
+
export interface WarpCurveXExtent {
|
|
72
|
+
readonly startX: string;
|
|
73
|
+
readonly endX: string;
|
|
74
|
+
}
|
|
70
75
|
/** One preset's transcribed guide list plus its top/bottom curve segments. */
|
|
71
76
|
export interface WarpPresetDefinition {
|
|
72
77
|
readonly defaultAdj: number;
|
|
73
78
|
readonly gdLst: readonly GeometryGuide[];
|
|
74
79
|
readonly top: WarpCurveSegment;
|
|
75
80
|
readonly bottom: WarpCurveSegment;
|
|
81
|
+
/**
|
|
82
|
+
* Horizontal extent of the top path, for a preset whose path does not run
|
|
83
|
+
* from `l` to `r` (`textPlain` away from its default `adj`). Omitted means
|
|
84
|
+
* the full width.
|
|
85
|
+
*/
|
|
86
|
+
readonly topX?: WarpCurveXExtent;
|
|
87
|
+
/** Horizontal extent of the bottom path; see {@link topX}. */
|
|
88
|
+
readonly bottomX?: WarpCurveXExtent;
|
|
76
89
|
}
|
|
77
90
|
/** Spec-transcribed definitions, keyed by `prstTxWarp` preset name. */
|
|
78
91
|
export declare const WARP_PRESET_DEFINITIONS: Readonly<Record<string, WarpPresetDefinition>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-preset-definitions.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,2FAA2F;AAC3F,MAAM,MAAM,gBAAgB,GAC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B,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACjC,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;CACpC;AAeD,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CA0KlF,CAAC"}
|
|
@@ -10,6 +10,18 @@ export interface SampledWarpCurve {
|
|
|
10
10
|
* fall back to a reconstruction in that case).
|
|
11
11
|
*/
|
|
12
12
|
export declare function sampleWarpPresetCurve(preset: string, u: number, adj: number | undefined, adj2: number | undefined): SampledWarpCurve | undefined;
|
|
13
|
+
/** Where the top and bottom paths start and end, each a `[start, end]` fraction of box width. */
|
|
14
|
+
export interface SampledWarpXExtent {
|
|
15
|
+
top: readonly [number, number];
|
|
16
|
+
bottom: readonly [number, number];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The horizontal extent of `preset`'s top and bottom paths. Every path spans
|
|
20
|
+
* the full width except where a definition says otherwise (`textPlain` away
|
|
21
|
+
* from its default `adj`). Returns `undefined` when `preset` has no
|
|
22
|
+
* transcribed definition.
|
|
23
|
+
*/
|
|
24
|
+
export declare function sampleWarpPresetXExtent(preset: string, adj: number | undefined, adj2: number | undefined): SampledWarpXExtent | undefined;
|
|
13
25
|
/** Preset names with a spec-transcribed definition (exported for tests/tooling). */
|
|
14
26
|
export declare function hasWarpPresetDefinition(preset: string): boolean;
|
|
15
27
|
//# sourceMappingURL=text-warp-preset-sampler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-preset-sampler.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-sampler.ts"],"names":[],"mappings":"AA6IA,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,MAAM,EACT,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,GACtB,gBAAgB,GAAG,SAAS,CAe9B;AAED,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE/D"}
|
|
1
|
+
{"version":3,"file":"text-warp-preset-sampler.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-sampler.ts"],"names":[],"mappings":"AA6IA,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,MAAM,EACT,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,GACtB,gBAAgB,GAAG,SAAS,CAe9B;AAED,iGAAiG;AACjG,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAmBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,GACtB,kBAAkB,GAAG,SAAS,CAchC;AAED,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE/D"}
|
|
@@ -16,12 +16,13 @@ import type { PptxElement, PptxTextWarpPreset, TextSegment } from 'ooxml-core/pp
|
|
|
16
16
|
* Rendering-strategy category for a warp preset.
|
|
17
17
|
* - `path`: renders along an SVG `<textPath>` (arcs, waves, circles,
|
|
18
18
|
* slant/fade/cascade, …)
|
|
19
|
-
* - `envelope`:
|
|
19
|
+
* - `envelope`: the text block stretched between a top and a bottom curve
|
|
20
|
+
* (plain/inflate/deflate/can). Also
|
|
20
21
|
* renders along an SVG `<textPath>`; kept as its own category
|
|
21
22
|
* for documentation/grouping only (see {@link ENVELOPE_PRESETS}).
|
|
22
23
|
* - `simple`: unused (kept for API stability; no preset classifies here
|
|
23
24
|
* any more, see {@link SIMPLE_PRESETS}).
|
|
24
|
-
* - `none`: no warp (`textNoShape`,
|
|
25
|
+
* - `none`: no warp (`textNoShape`, unknown)
|
|
25
26
|
*
|
|
26
27
|
* Every classified preset (`path` and `envelope` alike) should be routed to
|
|
27
28
|
* SVG `<textPath>` rendering via {@link shouldUseSvgWarp}; a binding that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAOpF
|
|
1
|
+
{"version":3,"file":"text-warp.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAOpF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AA6EnE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,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CAAC,CAyC5E,CAAC;AAIF,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAKhF;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAKzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC5B,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,MAAM,CAQR;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,sBAAgB,CAAC;AAIzC;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAChC,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,eAAe,EAAE,MAAM,CAAC;CACxB;AAmBD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,GACX,gBAAgB,GAAG,SAAS,CA8D9B;AAcD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CA+CjG;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAClC,MAAM,EAAE,kBAAkB,GAAG,MAAM,GAAG,SAAS,EAC/C,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,gBAAgB,GAAG,SAAS,CAS9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-props-manifest.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/viewer-props-manifest.ts"],"names":[],"mapp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MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACnE;AAoBD,mFAAmF;AACnF,eAAO,MAAM,YAAY,EAAE,SAAS,kBAAkB,EA8ErD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,kBAAkB,EAwCtD,CAAC;AAIF,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,CAExF;AAED,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,CAgBzF;AAED,MAAM,WAAW,kBAAkB;IAClC,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,0FAA0F;AAC1F,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B;AA4CD,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAChC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC,GAC1D,kBAAkB,EAAE,CAKtB"}
|
package/dist/pptx/{smartart-insert-preview-GDFFXVAO.mjs → smartart-insert-preview-RQUFRLSV.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildSmartArtInsertPreview } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { buildSmartArtInsertPreview } from './chunk-7DT3UJQB.mjs';
|
|
2
|
+
import './chunk-CH4Z6H6C.mjs';
|
|
3
3
|
import './chunk-RQJOOXRG.mjs';
|
|
4
4
|
import './chunk-7BHPBO2O.mjs';
|
|
5
5
|
import './chunk-A63ASSCH.mjs';
|
package/dist/pptx/{smartart-insert-preview-FA4WM2N4.cjs → smartart-insert-preview-YKNB37GE.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkZS5EVODY_cjs = require('./chunk-ZS5EVODY.cjs');
|
|
4
|
+
require('./chunk-TDIJHLS5.cjs');
|
|
5
5
|
require('./chunk-XOAXPD2W.cjs');
|
|
6
6
|
require('./chunk-W3X2UVYQ.cjs');
|
|
7
7
|
require('./chunk-WSTWYZFM.cjs');
|
|
@@ -44,5 +44,5 @@ require('./chunk-HJ3JZXOL.cjs');
|
|
|
44
44
|
|
|
45
45
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkZS5EVODY_cjs.buildSmartArtInsertPreview; }
|
|
48
48
|
});
|
package/dist/theme-bridge.d.ts
CHANGED
|
@@ -54,4 +54,3 @@ export interface ShadcnBridgeOptions {
|
|
|
54
54
|
* (`prefix` includes the dashes, for example `'--dve-'` or `'--pptx-'`).
|
|
55
55
|
*/
|
|
56
56
|
export declare function shadcnBridge(selector: string, prefix: string, options?: ShadcnBridgeOptions): string;
|
|
57
|
-
//# sourceMappingURL=theme-bridge.d.ts.map
|
package/dist/theme.d.ts
CHANGED
|
@@ -15,4 +15,3 @@ export declare function installOfficeUiTheme(root?: Document | ShadowRoot | unde
|
|
|
15
15
|
export declare function installOfficeUiThemeFor(host: HTMLElement): boolean;
|
|
16
16
|
/** Marks only the library control's own root. Theme state and custom tokens stay on host scopes. */
|
|
17
17
|
export declare function prepareOfficeUiBlock(host: HTMLElement, kind: OfficeUiBlockKind, product?: OfficeUiProduct): void;
|
|
18
|
-
//# sourceMappingURL=theme.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"dompurify": "^3.4.17",
|
|
172
172
|
"emf-converter": "4.23.1",
|
|
173
173
|
"lit": "^3.3.3",
|
|
174
|
-
"ooxml-core": "^1.30.
|
|
174
|
+
"ooxml-core": "^1.30.1",
|
|
175
175
|
"opentype.js": "^2.0.0",
|
|
176
176
|
"prosemirror-collab": "^1.3.1",
|
|
177
177
|
"prosemirror-commands": "^1.7.2",
|