ooxml-core 1.41.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/{PptxHandler-3AGIITR7.mjs → PptxHandler-3VAVJDFB.mjs} +2 -2
- package/dist/PptxHandler-V23RDNEX.cjs +14 -0
- package/dist/PptxHandler-WB3KL2WH.mjs +5 -0
- package/dist/{PresentationBuilder-JNID4B4Z.mjs → PresentationBuilder-7LJMTRJ6.mjs} +2 -2
- package/dist/{PresentationBuilder-MZBKYOYD.cjs → PresentationBuilder-KHL6GONR.cjs} +6 -6
- package/dist/{PresentationBuilder-5DPKFUXP.mjs → PresentationBuilder-PY2GB4IG.mjs} +3 -3
- package/dist/automation/index.cjs +79 -91
- package/dist/automation/index.mjs +79 -91
- package/dist/chart/index.cjs +12 -9
- package/dist/chart/index.mjs +12 -9
- package/dist/{chunk-ZYCBJKAE.mjs → chunk-243ZYX2B.mjs} +1 -1
- package/dist/{chunk-LRBWCRQ3.cjs → chunk-3J6VIKLP.cjs} +3 -3
- package/dist/{chunk-DD7COXWR.mjs → chunk-4LEVL6ZW.mjs} +30 -13
- package/dist/chunk-CODMW5KF.cjs +110 -0
- package/dist/{chunk-HTELXT2N.mjs → chunk-HLYOHD2Z.mjs} +30 -12
- package/dist/{chunk-P3WAKBVS.mjs → chunk-IPV3J3I5.mjs} +82 -90
- package/dist/{chunk-6LGRRQ3K.mjs → chunk-JHYU7HGG.mjs} +1 -1
- package/dist/{chunk-JXR6YWBW.mjs → chunk-KCDLTVUI.mjs} +125 -126
- package/dist/chunk-O3YGBYGZ.mjs +104 -0
- package/dist/{chunk-75KBNUKS.cjs → chunk-QZPOPUI5.cjs} +82 -89
- package/dist/{chunk-3BIFRTU4.cjs → chunk-RNZQ2OU4.cjs} +1294 -1276
- package/dist/{chunk-UE23HF2N.mjs → chunk-VKFKEVHK.mjs} +1 -1
- package/dist/{chunk-KKVD3R6O.mjs → chunk-WEAWSXUX.mjs} +4 -4
- package/dist/diagram/index.cjs +499 -370
- package/dist/diagram/index.d.ts +1 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +495 -371
- package/dist/docx/embedded.cjs +67 -89
- package/dist/docx/embedded.mjs +67 -89
- package/dist/docx/index.cjs +125 -110
- package/dist/docx/index.mjs +125 -110
- package/dist/docx/layout/index.cjs +257 -110
- package/dist/docx/layout/index.d.ts +1 -0
- package/dist/docx/layout/index.d.ts.map +1 -1
- package/dist/docx/layout/index.mjs +257 -111
- package/dist/docx/layout/webfont-runs.d.ts +5 -0
- package/dist/docx/layout/webfont-runs.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +67 -89
- package/dist/docx/load/index.mjs +67 -89
- package/dist/docx/shape-svg.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +79 -98
- package/dist/docx/ui/index.mjs +79 -98
- package/dist/drawingml/dash-pattern.d.ts +61 -0
- package/dist/drawingml/dash-pattern.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +249 -43
- package/dist/drawingml/index.d.ts +3 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +241 -44
- package/dist/drawingml/rect-path-gradient.d.ts +5 -0
- package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
- package/dist/drawingml/shape-path-gradient.d.ts +57 -0
- package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
- package/dist/geometry/index.cjs +68 -90
- package/dist/geometry/index.mjs +68 -90
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +2 -2
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -1
- package/dist/index.cjs +2937 -493
- package/dist/index.mjs +2937 -493
- package/dist/pptx/automation/index.cjs +366 -197
- package/dist/pptx/automation/index.d.ts +11 -17
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +156 -71
- package/dist/pptx/chunks/{elements-6BMEOo7i.d.ts → elements-PBugbKtv.d.ts} +3 -873
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts → index-Bj-hur0D.d.ts} +4 -4
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts.map → index-Bj-hur0D.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DvN0TkJJ.d.ts → index-CCJiD-Bm.d.ts} +14 -10
- package/dist/pptx/chunks/index-CCJiD-Bm.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-Dija_Wth.d.ts → index-CGNb1TV9.d.ts} +22 -4
- package/dist/pptx/chunks/index-CGNb1TV9.d.ts.map +1 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-DorONr3h.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
- package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +180 -102
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +69 -91
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +8 -37
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +225 -135
- package/dist/pptx/index.d.ts +6 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/teams/index.cjs +136 -91
- package/dist/teams/index.mjs +136 -91
- package/dist/text/css-font-family.d.ts.map +1 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
- package/dist/text/index.cjs +2252 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +2231 -1
- package/dist/text/metric-font-family.d.ts.map +1 -1
- package/dist/text/webfonts/font-weight-names.d.ts +66 -0
- package/dist/text/webfonts/font-weight-names.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-catalogue.d.ts +14 -0
- package/dist/text/webfonts/google-fonts-catalogue.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-lookup.d.ts +7 -0
- package/dist/text/webfonts/google-fonts-lookup.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-request.d.ts +57 -0
- package/dist/text/webfonts/google-fonts-request.d.ts.map +1 -0
- package/dist/text/webfonts/index.d.ts +12 -0
- package/dist/text/webfonts/index.d.ts.map +1 -0
- package/dist/text/webfonts/metric-clones.d.ts +17 -0
- package/dist/text/webfonts/metric-clones.d.ts.map +1 -0
- package/dist/text/webfonts/webfont-faces.d.ts +24 -0
- package/dist/text/webfonts/webfont-faces.d.ts.map +1 -0
- package/dist/visio/index.cjs +64 -0
- package/dist/visio/index.d.ts +1 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +64 -1
- package/dist/visio/ui/index.cjs +8 -0
- package/dist/visio/ui/index.mjs +8 -0
- package/dist/visio/webfont-runs.d.ts +27 -0
- package/dist/visio/webfont-runs.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +67 -89
- package/dist/xlsx/collab/index.mjs +67 -89
- package/dist/xlsx/index.cjs +2253 -118
- package/dist/xlsx/index.mjs +2249 -119
- package/dist/xlsx/layout/font-stack.d.ts +8 -0
- package/dist/xlsx/layout/font-stack.d.ts.map +1 -0
- package/dist/xlsx/layout/index.d.ts +3 -1
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-view.d.ts.map +1 -1
- package/dist/xlsx/layout/style-view.d.ts +2 -0
- package/dist/xlsx/layout/style-view.d.ts.map +1 -1
- package/dist/xlsx/layout/webfont-runs.d.ts +11 -0
- package/dist/xlsx/layout/webfont-runs.d.ts.map +1 -0
- package/dist/xlsx/load/index.cjs +67 -89
- package/dist/xlsx/load/index.mjs +67 -89
- package/dist/xlsx/ui/commands/util.d.ts.map +1 -1
- package/dist/xlsx/ui/context.d.ts +5 -0
- package/dist/xlsx/ui/context.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/cell-paint.d.ts +3 -2
- package/dist/xlsx/ui/grid/cell-paint.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +2093 -102
- package/dist/xlsx/ui/index.mjs +2093 -103
- package/package.json +1 -1
- package/dist/PptxHandler-EL4E4SPH.mjs +0 -5
- package/dist/PptxHandler-OIZ3R3DJ.cjs +0 -14
- package/dist/chunk-3IT6ZD7K.mjs +0 -213
- package/dist/chunk-FRUB573B.cjs +0 -219
- package/dist/pptx/chunks/elements-6BMEOo7i.d.ts.map +0 -1
- package/dist/pptx/chunks/index-Dija_Wth.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-DorONr3h.d.ts.map +0 -1
|
@@ -686,7 +686,7 @@ function build(name, glyph) {
|
|
|
686
686
|
const paths = glyph(g2);
|
|
687
687
|
return exactDef(name, void 0, g2.guides(), "l t r b", [p(FACE), ...paths]);
|
|
688
688
|
}
|
|
689
|
-
var Glyph, FACE, D, darken, darkenLess, lighten, triangle,
|
|
689
|
+
var Glyph, FACE, D, darken, darkenLess, lighten, triangle, U, question, MOVIE, buttons, EXACT_ACTION_BUTTON_PRESET_DEFINITIONS;
|
|
690
690
|
var init_preset_shape_definitions_exact_action_buttons = __esm({
|
|
691
691
|
"geometry/preset-shape-definitions-exact-action-buttons.ts"() {
|
|
692
692
|
init_preset_shape_exact_dsl();
|
|
@@ -752,84 +752,22 @@ var init_preset_shape_definitions_exact_action_buttons = __esm({
|
|
|
752
752
|
[D * dir, 0],
|
|
753
753
|
[-D * dir, D]
|
|
754
754
|
]);
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
[
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
[-8.5, -13.5],
|
|
772
|
-
[-9.3, -17.2],
|
|
773
|
-
[-7.8, -19.5],
|
|
774
|
-
[-4, -22.5],
|
|
775
|
-
[-3.3, -21.7],
|
|
776
|
-
[-1.8, -21.7],
|
|
777
|
-
[-1, -23.2],
|
|
778
|
-
[0.5, -23.2],
|
|
779
|
-
[1.2, -21.7],
|
|
780
|
-
[2.7, -21.7],
|
|
781
|
-
[3.5, -22.5],
|
|
782
|
-
[8, -18.7],
|
|
783
|
-
[8.7, -17.2],
|
|
784
|
-
[8, -16.5],
|
|
785
|
-
[8, -15],
|
|
786
|
-
[9.5, -14.2],
|
|
787
|
-
[9.5, -13.5],
|
|
788
|
-
[8, -12.7],
|
|
789
|
-
[8.7, -9.7],
|
|
790
|
-
[5, -6],
|
|
791
|
-
[2, -6],
|
|
792
|
-
[-2.5, -2.2],
|
|
793
|
-
[-3.3, 0.8],
|
|
794
|
-
[-5.5, 2.3],
|
|
795
|
-
[-4.8, 6.8],
|
|
796
|
-
[-6.3, 7.5],
|
|
797
|
-
[-6.3, 18],
|
|
798
|
-
[-4.8, 18],
|
|
799
|
-
[-4, 17.3],
|
|
800
|
-
[4.2, 17.3],
|
|
801
|
-
[4.2, 6.8],
|
|
802
|
-
[6.5, 5.3],
|
|
803
|
-
[6.5, 3.8],
|
|
804
|
-
[8, 3],
|
|
805
|
-
[8, 1.5],
|
|
806
|
-
[8.7, 0.8],
|
|
807
|
-
[13.2, 0],
|
|
808
|
-
[17, -4.5],
|
|
809
|
-
[18.5, -4.5],
|
|
810
|
-
[18.5, -6],
|
|
811
|
-
[17.7, -6.7],
|
|
812
|
-
[18.5, -8.2],
|
|
813
|
-
[18.5, -15],
|
|
814
|
-
[20, -15.7],
|
|
815
|
-
[20, -18],
|
|
816
|
-
[17.7, -19.5],
|
|
817
|
-
[17.7, -21],
|
|
818
|
-
[15.5, -24.7],
|
|
819
|
-
[15.5, -27],
|
|
820
|
-
[14, -27],
|
|
821
|
-
[13.2, -27.7],
|
|
822
|
-
[13.2, -29.2],
|
|
823
|
-
[9.5, -30],
|
|
824
|
-
[8.7, -30.7],
|
|
825
|
-
[8.7, -32.2],
|
|
826
|
-
[5.7, -31.5],
|
|
827
|
-
[4.2, -33.7],
|
|
828
|
-
[2.7, -33.7],
|
|
829
|
-
[2, -32.2],
|
|
830
|
-
[-2.5, -32.2],
|
|
831
|
-
[-3.3, -33.7]
|
|
832
|
-
];
|
|
755
|
+
U = 90;
|
|
756
|
+
question = (g2) => {
|
|
757
|
+
const x = (v) => g2.x(v * U);
|
|
758
|
+
const y = (v) => g2.y(v * U);
|
|
759
|
+
const r = (v) => g2.len(v * U);
|
|
760
|
+
return [
|
|
761
|
+
`M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
|
|
762
|
+
`A ${r(0.108)} ${r(0.162)} 0 5400000`,
|
|
763
|
+
`A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
|
|
764
|
+
`L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
|
|
765
|
+
`A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
|
|
766
|
+
`A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
|
|
767
|
+
`A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
|
|
768
|
+
`L ${x(-0.214)} ${y(-0.162)} Z`
|
|
769
|
+
].join(" ");
|
|
770
|
+
};
|
|
833
771
|
MOVIE = [
|
|
834
772
|
[-33.75, -16.5],
|
|
835
773
|
[-33.75, -3],
|
|
@@ -936,8 +874,8 @@ var init_preset_shape_definitions_exact_action_buttons = __esm({
|
|
|
936
874
|
)
|
|
937
875
|
]),
|
|
938
876
|
actionButtonHelp: build("actionButtonHelp", (g2) => [
|
|
939
|
-
darken(g2
|
|
940
|
-
darken(g2.circle(
|
|
877
|
+
darken(question(g2)),
|
|
878
|
+
darken(g2.circle(0, 0.295 * U, 0.08 * U))
|
|
941
879
|
]),
|
|
942
880
|
actionButtonInformation: build("actionButtonInformation", (g2) => [
|
|
943
881
|
darken(g2.circle(0, 0.4, 34)),
|
|
@@ -4184,7 +4122,7 @@ var init_preset_shape_definitions_exact_arcs = __esm({
|
|
|
4184
4122
|
});
|
|
4185
4123
|
|
|
4186
4124
|
// geometry/preset-shape-definitions-exact-arrows.ts
|
|
4187
|
-
var leftRightArrow2, upDownArrow2, quadArrow2, leftUpArrow2, leftRightUpArrow2, EXACT_ARROW_PRESET_DEFINITIONS;
|
|
4125
|
+
var leftRightArrow2, upDownArrow2, quadArrow2, leftUpArrow2, leftRightUpArrow2, swooshArrow3, EXACT_ARROW_PRESET_DEFINITIONS;
|
|
4188
4126
|
var init_preset_shape_definitions_exact_arrows = __esm({
|
|
4189
4127
|
"geometry/preset-shape-definitions-exact-arrows.ts"() {
|
|
4190
4128
|
init_preset_shape_exact_dsl();
|
|
@@ -4318,12 +4256,46 @@ var init_preset_shape_definitions_exact_arrows = __esm({
|
|
|
4318
4256
|
)
|
|
4319
4257
|
]
|
|
4320
4258
|
);
|
|
4259
|
+
swooshArrow3 = exactDef(
|
|
4260
|
+
"swooshArrow",
|
|
4261
|
+
{ adj1: 25e3, adj2: 16667 },
|
|
4262
|
+
[
|
|
4263
|
+
"a1 pin 1 adj1 75000",
|
|
4264
|
+
"maxAdj2 */ 70000 w ss",
|
|
4265
|
+
"a2 pin 0 adj2 maxAdj2",
|
|
4266
|
+
"ad1 */ h a1 100000",
|
|
4267
|
+
"ad2 */ ss a2 100000",
|
|
4268
|
+
"xB +- r 0 ad2",
|
|
4269
|
+
"yB +- t ssd8 0",
|
|
4270
|
+
"alfa */ cd4 1 14",
|
|
4271
|
+
"dx0 tan ssd8 alfa",
|
|
4272
|
+
"xC +- xB 0 dx0",
|
|
4273
|
+
"dx1 tan ad1 alfa",
|
|
4274
|
+
"yF +- yB ad1 0",
|
|
4275
|
+
"xF +- xB dx1 0",
|
|
4276
|
+
"xE +- xF dx0 0",
|
|
4277
|
+
"yE +- yF ssd8 0",
|
|
4278
|
+
"dy2 +- yE 0 t",
|
|
4279
|
+
"dy22 */ dy2 1 2",
|
|
4280
|
+
"dy3 */ h 1 20",
|
|
4281
|
+
"yD +- dy22 0 dy3",
|
|
4282
|
+
"dy4 */ hd6 1 1",
|
|
4283
|
+
"yP1 +- hd6 dy4 0",
|
|
4284
|
+
"xP1 val wd6",
|
|
4285
|
+
"dy5 */ hd6 1 2",
|
|
4286
|
+
"yP2 +- yF dy5 0",
|
|
4287
|
+
"xP2 val wd4"
|
|
4288
|
+
],
|
|
4289
|
+
"l t r b",
|
|
4290
|
+
[p("M l b Q xP1 yP1 xB yB L xC t L r yD L xE yE L xF yF Q xP2 yP2 l b Z")]
|
|
4291
|
+
);
|
|
4321
4292
|
EXACT_ARROW_PRESET_DEFINITIONS = {
|
|
4322
4293
|
leftRightArrow: leftRightArrow2,
|
|
4323
4294
|
upDownArrow: upDownArrow2,
|
|
4324
4295
|
quadArrow: quadArrow2,
|
|
4325
4296
|
leftUpArrow: leftUpArrow2,
|
|
4326
|
-
leftRightUpArrow: leftRightUpArrow2
|
|
4297
|
+
leftRightUpArrow: leftRightUpArrow2,
|
|
4298
|
+
swooshArrow: swooshArrow3
|
|
4327
4299
|
};
|
|
4328
4300
|
}
|
|
4329
4301
|
});
|
|
@@ -5159,10 +5131,13 @@ var init_preset_shape_definitions_exact_scrolls = __esm({
|
|
|
5159
5131
|
p(
|
|
5160
5132
|
"M ch ch2 A ch2 ch2 10800000 5400000 L x6 t A ch2 ch2 16200000 10800000 L x4 ch L x4 y4 A ch2 ch2 0 5400000 L ch2 b A ch2 ch2 5400000 10800000 L ch y3 Z"
|
|
5161
5133
|
),
|
|
5162
|
-
p(
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5134
|
+
p(
|
|
5135
|
+
"M ch y4 A ch2 ch2 0 5400000 A ch2 ch2 5400000 10800000 A ch4 ch4 16200000 10800000 Z M x3b ch2 A ch2 ch2 0 5400000 A ch4 ch4 5400000 10800000 Z",
|
|
5136
|
+
{
|
|
5137
|
+
fill: "darkenLess",
|
|
5138
|
+
stroke: false
|
|
5139
|
+
}
|
|
5140
|
+
),
|
|
5166
5141
|
p(
|
|
5167
5142
|
"M x3 t A ch2 ch2 16200000 10800000 L x4 ch M ch2 y4 L ch y4 M x3b ch2 L x3 ch2 A ch4 ch4 16200000 -10800000",
|
|
5168
5143
|
{ fill: "none" }
|
|
@@ -5178,10 +5153,13 @@ var init_preset_shape_definitions_exact_scrolls = __esm({
|
|
|
5178
5153
|
p(
|
|
5179
5154
|
"M ch2 ch A ch2 ch2 16200000 -5400000 L l x6 A ch2 ch2 10800000 -10800000 L ch x4 L y4 x4 A ch2 ch2 5400000 -5400000 L r ch2 A ch2 ch2 0 -10800000 L y3 ch Z"
|
|
5180
5155
|
),
|
|
5181
|
-
p(
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5156
|
+
p(
|
|
5157
|
+
"M y4 ch A ch2 ch2 5400000 -5400000 A ch2 ch2 0 -10800000 A ch4 ch4 10800000 -10800000 Z M ch2 x3b A ch2 ch2 5400000 -5400000 A ch4 ch4 0 -10800000 Z",
|
|
5158
|
+
{
|
|
5159
|
+
fill: "darkenLess",
|
|
5160
|
+
stroke: false
|
|
5161
|
+
}
|
|
5162
|
+
),
|
|
5185
5163
|
p(
|
|
5186
5164
|
"M l x3 A ch2 ch2 10800000 -10800000 L ch x4 M y4 ch2 L y4 ch M ch2 x3b L ch2 x3 A ch4 ch4 10800000 10800000",
|
|
5187
5165
|
{ fill: "none" }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-
|
|
1
|
+
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-Bj-hur0D.js";
|
|
2
2
|
export { type ConversionOptions, type ConversionResult, DocumentConverter, type FileSystemAdapter, type JsonAssetAccumulator, MediaContext, PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, type PptxConverterOptions, type PptxJsonAssetStats, PptxJsonConverter, type PptxJsonConverterOptions, type PptxJsonDocument, PptxJsonFormatError, type PptxJsonSerializeOptions, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, type SlideProcessorOptions, type SvgExportOptions, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, dataUrlToMediaBytes, decodeJsonValue, decodePptxJsonText, deriveOutputPath, deserializePptxFromJson, encodeJsonValue, generateMediaFilename, getDirectory, isPptxJsonText, normalizePath, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../chunk-6Q7TP72Y.mjs';
|
|
2
|
-
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-
|
|
3
|
-
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-
|
|
2
|
+
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-JHYU7HGG.mjs';
|
|
3
|
+
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-KCDLTVUI.mjs';
|
|
4
4
|
import '../../chunk-EYCM7RVL.mjs';
|
|
5
5
|
import '../../chunk-VDUNZTJC.mjs';
|
|
6
6
|
import '../../chunk-7DJEJTN7.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQZPOPUI5_cjs = require('../../../chunk-QZPOPUI5.cjs');
|
|
4
4
|
require('../../../chunk-XZPZHXV4.cjs');
|
|
5
5
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
6
6
|
|
|
@@ -114,7 +114,7 @@ function customShowSlides(show, slides) {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
function clearCustomShowActions(slides, id) {
|
|
117
|
-
const result =
|
|
117
|
+
const result = chunkQZPOPUI5_cjs.mapCustomShowActions(slides, (target) => target === id ? null : target);
|
|
118
118
|
return { slides: result.slides, cleared: result.changed };
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk3J6VIKLP_cjs = require('../../../chunk-3J6VIKLP.cjs');
|
|
4
|
+
var chunkQZPOPUI5_cjs = require('../../../chunk-QZPOPUI5.cjs');
|
|
5
5
|
var chunkXZPZHXV4_cjs = require('../../../chunk-XZPZHXV4.cjs');
|
|
6
6
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
7
7
|
var chunkAWIDASUW_cjs = require('../../../chunk-AWIDASUW.cjs');
|
|
@@ -146,10 +146,10 @@ function* findSlideTextTargets(slide, includeNotes = false, includeChartTitles =
|
|
|
146
146
|
function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
147
147
|
if (!element.rawXml) return void 0;
|
|
148
148
|
const rawXml = structuredClone(element.rawXml);
|
|
149
|
-
const table =
|
|
150
|
-
const row =
|
|
151
|
-
const cell =
|
|
152
|
-
const paragraphs =
|
|
149
|
+
const table = chunk3J6VIKLP_cjs.getTblFromRawXml(rawXml);
|
|
150
|
+
const row = chunk3J6VIKLP_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
151
|
+
const cell = chunk3J6VIKLP_cjs.ensureArray(row?.["a:tc"])[colIndex];
|
|
152
|
+
const paragraphs = chunk3J6VIKLP_cjs.ensureArray(
|
|
153
153
|
cell?.["a:txBody"]?.["a:p"]
|
|
154
154
|
);
|
|
155
155
|
let paragraphIndex = 0, runIndex = 0, fieldIndex = 0;
|
|
@@ -164,7 +164,7 @@ function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
|
164
164
|
if (previous.isLineBreak) continue;
|
|
165
165
|
const paragraph = paragraphs[paragraphIndex];
|
|
166
166
|
const key = previous.isField ? "a:fld" : "a:r";
|
|
167
|
-
const xmlRun =
|
|
167
|
+
const xmlRun = chunk3J6VIKLP_cjs.ensureArray(paragraph?.[key])[previous.isField ? fieldIndex++ : runIndex++];
|
|
168
168
|
if (!xmlRun) return void 0;
|
|
169
169
|
if (previous.text !== runs[index].text) xmlRun["a:t"] = runs[index].text;
|
|
170
170
|
}
|
|
@@ -174,7 +174,7 @@ function updateNode(nodes, nodeId, text) {
|
|
|
174
174
|
return nodes.map((node) => {
|
|
175
175
|
if (node.id === nodeId) {
|
|
176
176
|
const originalParagraphs = node.paragraphs ?? (node.runs?.length ? [{ items: node.runs.map((run) => ({ kind: "run", run })) }] : void 0);
|
|
177
|
-
const paragraphs = originalParagraphs ?
|
|
177
|
+
const paragraphs = originalParagraphs ? chunkQZPOPUI5_cjs.reconcileSmartArtTextParagraphs(originalParagraphs, text) : void 0;
|
|
178
178
|
return { ...node, text, ...paragraphs ? { paragraphs } : {} };
|
|
179
179
|
}
|
|
180
180
|
if (!node.children) return node;
|
|
@@ -253,14 +253,14 @@ function replaceLeaf(element, match, replacement) {
|
|
|
253
253
|
);
|
|
254
254
|
if (!runs) return element;
|
|
255
255
|
let text = runs.map((run) => run.isParagraphBreak ? "\n" : run.isLineBreak ? "" : run.text).join("");
|
|
256
|
-
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) :
|
|
256
|
+
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) : chunk3J6VIKLP_cjs.updateCellTextInRawXml(element, rowIndex, colIndex, text);
|
|
257
257
|
if (rawXml) {
|
|
258
|
-
const table =
|
|
259
|
-
const xmlRow =
|
|
260
|
-
const xmlCell =
|
|
261
|
-
text =
|
|
258
|
+
const table = chunk3J6VIKLP_cjs.getTblFromRawXml(rawXml);
|
|
259
|
+
const xmlRow = chunk3J6VIKLP_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
260
|
+
const xmlCell = chunk3J6VIKLP_cjs.ensureArray(xmlRow?.["a:tc"])[colIndex];
|
|
261
|
+
text = chunk3J6VIKLP_cjs.flattenCellTxBodyText(
|
|
262
262
|
xmlCell?.["a:txBody"],
|
|
263
|
-
(value) =>
|
|
263
|
+
(value) => chunk3J6VIKLP_cjs.ensureArray(value)
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
const rows = [...element.tableData.rows], cells = [...row.cells];
|
|
@@ -274,7 +274,7 @@ function replaceLeaf(element, match, replacement) {
|
|
|
274
274
|
if (!node || match.startOffset < 0 || match.startOffset + match.length > node.text.length)
|
|
275
275
|
return element;
|
|
276
276
|
const text = node.text.slice(0, match.startOffset) + replacement + node.text.slice(match.startOffset + match.length);
|
|
277
|
-
const next =
|
|
277
|
+
const next = chunkQZPOPUI5_cjs.updateSmartArtNodeText({ ...data, nodes }, node.id, text);
|
|
278
278
|
const drawingShapes = next.drawingShapes?.map((shape, index) => {
|
|
279
279
|
if (shape === data.drawingShapes?.[index] || !shape.textSegments) return shape;
|
|
280
280
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../chunks/index-
|
|
2
|
-
import { C as PptxSlide } from "../../chunks/text-operations-
|
|
1
|
+
import "../../chunks/index-CCJiD-Bm.js";
|
|
2
|
+
import { C as PptxSlide } from "../../chunks/text-operations-BNJr7aGa.js";
|
|
3
3
|
/** Identifies a single match of the find query at segment-level precision. */
|
|
4
4
|
export interface FindResult {
|
|
5
5
|
/** Zero-based index of the slide in the slides array. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { updateCellTextInRawXml, getTblFromRawXml, ensureArray, flattenCellTxBodyText } from '../../../chunk-
|
|
2
|
-
import { updateSmartArtNodeText, reconcileSmartArtTextParagraphs } from '../../../chunk-
|
|
1
|
+
import { updateCellTextInRawXml, getTblFromRawXml, ensureArray, flattenCellTxBodyText } from '../../../chunk-VKFKEVHK.mjs';
|
|
2
|
+
import { updateSmartArtNodeText, reconcileSmartArtTextParagraphs } from '../../../chunk-IPV3J3I5.mjs';
|
|
3
3
|
import { hasTextProperties } from '../../../chunk-GXHKNSZX.mjs';
|
|
4
4
|
import '../../../chunk-CA7KCNL3.mjs';
|
|
5
5
|
import { remapTextToSegments } from '../../../chunk-CBNKBVX5.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../../chunk-
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
var
|
|
3
|
+
require('../../../chunk-RNZQ2OU4.cjs');
|
|
4
|
+
require('../../../chunk-3J6VIKLP.cjs');
|
|
5
|
+
var chunkQZPOPUI5_cjs = require('../../../chunk-QZPOPUI5.cjs');
|
|
6
6
|
require('../../../chunk-XZPZHXV4.cjs');
|
|
7
7
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@ function reassignElementId(element) {
|
|
|
21
21
|
return newElement;
|
|
22
22
|
}
|
|
23
23
|
function duplicateSlide(slide, newSlideNumber) {
|
|
24
|
-
const cloned =
|
|
24
|
+
const cloned = chunkQZPOPUI5_cjs.cloneSlide(slide);
|
|
25
25
|
cloned.sourceSlideId = slide.id.startsWith("ppt/slides/") ? slide.id : slide.sourceSlideId ?? slide.id;
|
|
26
26
|
cloned.id = `slide${newSlideNumber}`;
|
|
27
27
|
cloned.rId = `rId${newSlideNumber + 1}`;
|
|
@@ -51,7 +51,7 @@ function duplicateSlide(slide, newSlideNumber) {
|
|
|
51
51
|
function captureSlideClipboard(slides, ids) {
|
|
52
52
|
return ids.flatMap((id) => {
|
|
53
53
|
const slide = slides.find((candidate) => candidate.id === id);
|
|
54
|
-
return slide ? [
|
|
54
|
+
return slide ? [chunkQZPOPUI5_cjs.cloneSlide(slide)] : [];
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
@@ -62,14 +62,14 @@ function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
|
62
62
|
})),
|
|
63
63
|
sourceIds: clipboard.map((slide) => slide.id),
|
|
64
64
|
insertAt,
|
|
65
|
-
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(
|
|
65
|
+
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(chunkQZPOPUI5_cjs.cloneElement))
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
function insertSlidePaste(slides, request) {
|
|
69
69
|
const index = Math.max(0, Math.min(slides.length, request.insertAt));
|
|
70
70
|
const next = [
|
|
71
71
|
...slides.slice(0, index),
|
|
72
|
-
...request.copies.map(
|
|
72
|
+
...request.copies.map(chunkQZPOPUI5_cjs.cloneSlide),
|
|
73
73
|
...slides.slice(index)
|
|
74
74
|
];
|
|
75
75
|
return next.map(
|
|
@@ -79,12 +79,12 @@ function insertSlidePaste(slides, request) {
|
|
|
79
79
|
function applySlidePasteTemplates(mapping, request) {
|
|
80
80
|
const next = { ...mapping };
|
|
81
81
|
request.copies.forEach((copy, index) => {
|
|
82
|
-
next[copy.id] = (request.templateElements[index] ?? []).map(
|
|
82
|
+
next[copy.id] = (request.templateElements[index] ?? []).map(chunkQZPOPUI5_cjs.cloneElement);
|
|
83
83
|
});
|
|
84
84
|
return next;
|
|
85
85
|
}
|
|
86
86
|
function captureSlideClipboardTemplates(mapping, ids) {
|
|
87
|
-
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(
|
|
87
|
+
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(chunkQZPOPUI5_cjs.cloneElement)]));
|
|
88
88
|
}
|
|
89
89
|
function makeSlideId(idGenerator) {
|
|
90
90
|
if (idGenerator) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import { cloneSlide, cloneElement } from '../../../chunk-
|
|
1
|
+
import '../../../chunk-HLYOHD2Z.mjs';
|
|
2
|
+
import '../../../chunk-VKFKEVHK.mjs';
|
|
3
|
+
import { cloneSlide, cloneElement } from '../../../chunk-IPV3J3I5.mjs';
|
|
4
4
|
import '../../../chunk-GXHKNSZX.mjs';
|
|
5
5
|
import '../../../chunk-CA7KCNL3.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCODMW5KF_cjs = require('../../../chunk-CODMW5KF.cjs');
|
|
4
4
|
var chunk7XYVFUB3_cjs = require('../../../chunk-7XYVFUB3.cjs');
|
|
5
5
|
var pptx = require('ooxml-core/pptx');
|
|
6
6
|
|
|
@@ -31,28 +31,28 @@ function setTableElementCellText(element, rowIndex, colIndex, text) {
|
|
|
31
31
|
return rawXml ? { ...updated, rawXml } : updated;
|
|
32
32
|
}
|
|
33
33
|
function insertTableElementRow(element, rowIdx, position) {
|
|
34
|
-
return withTableData(element, (data) =>
|
|
34
|
+
return withTableData(element, (data) => chunkCODMW5KF_cjs.insertTableRow(data, rowIdx, position), {
|
|
35
35
|
axis: "row",
|
|
36
36
|
action: "insert",
|
|
37
37
|
index: position === "above" ? rowIdx : rowIdx + 1
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
function removeTableElementRow(element, rowIdx) {
|
|
41
|
-
return withTableData(element, (data) =>
|
|
41
|
+
return withTableData(element, (data) => chunkCODMW5KF_cjs.deleteTableRow(data, rowIdx), {
|
|
42
42
|
axis: "row",
|
|
43
43
|
action: "delete",
|
|
44
44
|
index: rowIdx
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function insertTableElementColumn(element, colIdx, position) {
|
|
48
|
-
return withTableData(element, (data) =>
|
|
48
|
+
return withTableData(element, (data) => chunkCODMW5KF_cjs.insertTableColumn(data, colIdx, position), {
|
|
49
49
|
axis: "column",
|
|
50
50
|
action: "insert",
|
|
51
51
|
index: position === "left" ? colIdx : colIdx + 1
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
function removeTableElementColumn(element, colIdx) {
|
|
55
|
-
return withTableData(element, (data) =>
|
|
55
|
+
return withTableData(element, (data) => chunkCODMW5KF_cjs.deleteTableColumn(data, colIdx), {
|
|
56
56
|
axis: "column",
|
|
57
57
|
action: "delete",
|
|
58
58
|
index: colIdx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-
|
|
1
|
+
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-O3YGBYGZ.mjs';
|
|
2
2
|
import { setCellText } from '../../../chunk-NBMXEVHL.mjs';
|
|
3
3
|
import { updateCellTextInRawXml, rebuildTableStructureInRawXml } from 'ooxml-core/pptx';
|
|
4
4
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCODMW5KF_cjs = require('../../../chunk-CODMW5KF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DEFAULT_INSERTED_ROW_HEIGHT", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkCODMW5KF_cjs.DEFAULT_INSERTED_ROW_HEIGHT; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "deleteTableColumn", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCODMW5KF_cjs.deleteTableColumn; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deleteTableRow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCODMW5KF_cjs.deleteTableRow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "insertTableColumn", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkCODMW5KF_cjs.insertTableColumn; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "insertTableRow", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkCODMW5KF_cjs.insertTableRow; }
|
|
26
26
|
});
|
|
@@ -1,41 +1,12 @@
|
|
|
1
|
-
import { PptxTableData } from "
|
|
2
|
-
/** Default pixel height assigned to a freshly
|
|
1
|
+
import { v as PptxTableData } from "../../chunks/table-C7ITXL3Y.js";
|
|
2
|
+
/** Default pixel height assigned to a freshly inserted row. */
|
|
3
3
|
export declare const DEFAULT_INSERTED_ROW_HEIGHT = 40;
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @param tableData - Source table (not mutated).
|
|
8
|
-
* @param rowIdx - The reference row the insertion is relative to.
|
|
9
|
-
* @param position - `'above'` inserts before `rowIdx`, `'below'` after it.
|
|
10
|
-
* @returns A new `PptxTableData` with the row inserted and any vertical merge
|
|
11
|
-
* anchors that span the insertion point grown by one.
|
|
12
|
-
*/
|
|
13
|
-
export declare function insertTableRow(tableData: PptxTableData, rowIdx: number, position: 'above' | 'below'): PptxTableData;
|
|
14
|
-
/**
|
|
15
|
-
* Delete a row from `tableData`, adjusting vertical merge spans.
|
|
16
|
-
*
|
|
17
|
-
* Returns the original `tableData` unchanged when there is only one row or the
|
|
18
|
-
* index is out of range.
|
|
19
|
-
*/
|
|
4
|
+
/** Insert a row and extend each vertical merge crossing the insertion point. */
|
|
5
|
+
export declare function insertTableRow(tableData: PptxTableData, rowIdx: number, position: 'above' | 'below', cellTexts?: readonly string[]): PptxTableData;
|
|
6
|
+
/** Delete a row, retaining the title and formatting of any surviving merge. */
|
|
20
7
|
export declare function deleteTableRow(tableData: PptxTableData, rowIdx: number): PptxTableData;
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* The source column's width is split in half between it and the new column,
|
|
25
|
-
* then the whole array is renormalised. Horizontal merge spans that straddle
|
|
26
|
-
* the insertion point are grown by one.
|
|
27
|
-
*
|
|
28
|
-
* @param tableData - Source table (not mutated).
|
|
29
|
-
* @param colIdx - Reference column.
|
|
30
|
-
* @param position - `'left'` inserts before `colIdx`, `'right'` after it.
|
|
31
|
-
*/
|
|
32
|
-
export declare function insertTableColumn(tableData: PptxTableData, colIdx: number, position: 'left' | 'right'): PptxTableData;
|
|
33
|
-
/**
|
|
34
|
-
* Delete a column from `tableData`, adjusting horizontal merge spans and
|
|
35
|
-
* renormalising the column widths.
|
|
36
|
-
*
|
|
37
|
-
* Returns the original `tableData` unchanged when there is only one column or
|
|
38
|
-
* the index is out of range.
|
|
39
|
-
*/
|
|
8
|
+
/** Insert a column, splitting a neighbour's width and extending intersected merges. */
|
|
9
|
+
export declare function insertTableColumn(tableData: PptxTableData, colIdx: number, position: 'left' | 'right', cellTexts?: readonly string[]): PptxTableData;
|
|
10
|
+
/** Delete a column and move any surviving merge's anchor onto the remaining grid. */
|
|
40
11
|
export declare function deleteTableColumn(tableData: PptxTableData, colIdx: number): PptxTableData;
|
|
41
12
|
//# sourceMappingURL=table-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":";;qBAKa;;wBAoFG,eACf,WAAW,eACX,gBACA,6BACA,gCACE;;wBAYa,eAAe,WAAW,eAAe,iBAAiB;;wBAW1D,kBACf,WAAW,eACX,gBACA,4BACA,gCACE;;wBAmBa,kBAAkB,WAAW,eAAe,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DEFAULT_INSERTED_ROW_HEIGHT, deleteTableColumn, deleteTableRow, insertTableColumn, insertTableRow } from '../../../chunk-
|
|
1
|
+
export { DEFAULT_INSERTED_ROW_HEIGHT, deleteTableColumn, deleteTableRow, insertTableColumn, insertTableRow } from '../../../chunk-O3YGBYGZ.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as TextStyle } from "../../chunks/text-t_wJ2OwM.js";
|
|
2
|
-
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-
|
|
2
|
+
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-PBugbKtv.js";
|
|
3
3
|
/** Immutable whole-text edit, using the pre-edit body style for run inheritance. */
|
|
4
4
|
export declare function textRunsStylePatch(element: PptxElement, updates: Partial<TextStyle>): Pick<Partial<PptxElementWithText>, 'textStyle' | 'textSegments'>;
|
|
5
5
|
//# sourceMappingURL=text-runs-style-patch.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as TextStyle, r as TextSegment } from "../../chunks/text-t_wJ2OwM.js";
|
|
2
|
-
import { m as PptxElement } from "../../chunks/elements-
|
|
2
|
+
import { m as PptxElement } from "../../chunks/elements-PBugbKtv.js";
|
|
3
3
|
import { TextDecorationFlag } from "./text-content-style.js";
|
|
4
4
|
/**
|
|
5
5
|
* Keys read from `element.textStyle` only: `a:bodyPr` attributes, the text
|