ooxml-ui 1.43.0 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.d.ts +0 -1
- package/dist/chart/format-pane-3d.d.ts +0 -1
- package/dist/chart/format-pane-advanced-intent.d.ts +0 -1
- package/dist/chart/format-pane-analysis.d.ts +0 -1
- package/dist/chart/format-pane-axis.d.ts +0 -1
- package/dist/chart/format-pane-common.d.ts +0 -1
- package/dist/chart/format-pane-effects.d.ts +0 -1
- package/dist/chart/format-pane-fields.d.ts +0 -1
- package/dist/chart/format-pane-fill-kinds.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-locales/es.d.ts +0 -1
- package/dist/chart/format-pane-model.d.ts +0 -1
- package/dist/chart/format-pane-options.d.ts +0 -1
- package/dist/chart/format-pane-space.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/chart/format-pane-types.d.ts +0 -1
- package/dist/chart/format-pane-view.d.ts +0 -1
- package/dist/chrome/find-bar.d.ts +1 -2
- package/dist/controls.d.ts +0 -1
- package/dist/embedding/region-host.d.ts +0 -1
- package/dist/files/save-progress-label.d.ts +0 -1
- package/dist/fonts/custom-fonts.d.ts +0 -1
- package/dist/form/color-swatches.d.ts +0 -1
- package/dist/image-native-size.d.ts +0 -1
- package/dist/picture-artistic-filters.d.ts +0 -1
- package/dist/picture-artistic-preview.d.ts +0 -1
- package/dist/picture-paint.d.ts +0 -1
- package/dist/pptx/{chart-3d-view-scene-CGLU6ISD.mjs → chart-3d-view-scene-D6OJTZYC.mjs} +3 -2
- package/dist/pptx/{chart-3d-view-scene-C7QUQTXD.cjs → chart-3d-view-scene-PC2RUBL4.cjs} +38 -37
- package/dist/pptx/{chunk-JP26TA3Q.cjs → chunk-2GDYTHUY.cjs} +12 -12
- package/dist/pptx/{chunk-YZWKNFPU.cjs → chunk-2SO3BL67.cjs} +2706 -160
- package/dist/pptx/{chunk-5BINBXFV.mjs → chunk-BNPTGOEZ.mjs} +3 -3
- package/dist/pptx/{chunk-7FTP7OOA.mjs → chunk-D3DQS2J2.mjs} +6767 -6987
- package/dist/pptx/chunk-EDIAPF6J.mjs +135 -0
- package/dist/pptx/{chunk-DH6EKOVI.mjs → chunk-H6M3FKNG.mjs} +1 -1
- package/dist/pptx/{chunk-CK6RYGB4.cjs → chunk-HB6CH2FF.cjs} +3 -126
- package/dist/pptx/chunk-HWJKBKCW.cjs +147 -0
- package/dist/pptx/{chunk-BA4CJI4U.mjs → chunk-KYTG7WNC.mjs} +3 -115
- package/dist/pptx/{chunk-P4NVINSK.cjs → chunk-LK35P6RE.cjs} +5329 -5606
- package/dist/pptx/{chunk-TW5UQCZS.mjs → chunk-TDALHSYV.mjs} +2605 -168
- package/dist/pptx/{chunk-UGSMMZU6.cjs → chunk-ZH35NTNU.cjs} +49 -49
- package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
- package/dist/pptx/dom/elements/equation.d.ts.map +1 -1
- package/dist/pptx/dom/elements/media.d.ts.map +1 -1
- package/dist/pptx/dom/elements/ole.d.ts.map +1 -1
- package/dist/pptx/dom/elements/reflection-mirror-content.d.ts.map +1 -1
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts +5 -0
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/table.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-warp.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +524 -446
- package/dist/pptx/dom/index.mjs +114 -37
- package/dist/pptx/export/html2canvas-clone.cjs +7 -6
- package/dist/pptx/export/html2canvas-clone.mjs +2 -1
- package/dist/pptx/index.cjs +3828 -3663
- package/dist/pptx/index.mjs +5 -4
- package/dist/pptx/render/chart-combo-stock.cjs +4 -3
- package/dist/pptx/render/chart-combo-stock.mjs +2 -1
- package/dist/pptx/render/chart-overlays.cjs +8 -7
- package/dist/pptx/render/chart-overlays.mjs +2 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +5 -4
- package/dist/pptx/render/chart-surface-treemap.mjs +2 -1
- package/dist/pptx/render/chart-view-model.cjs +45 -44
- package/dist/pptx/render/chart-view-model.mjs +2 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +7 -6
- package/dist/pptx/render/chart-waterfall-map.mjs +2 -1
- package/dist/pptx/render/connector-dash.d.ts +2 -1
- package/dist/pptx/render/connector-dash.d.ts.map +1 -1
- package/dist/pptx/render/connector-path.d.ts +1 -1
- package/dist/pptx/render/connector-path.d.ts.map +1 -1
- package/dist/pptx/render/connector-style.d.ts +4 -2
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/dash-path-start.d.ts +38 -0
- package/dist/pptx/render/dash-path-start.d.ts.map +1 -0
- package/dist/pptx/render/dash-pattern.d.ts +61 -0
- package/dist/pptx/render/dash-pattern.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-exact.d.ts +34 -0
- package/dist/pptx/render/device-pixel-exact.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-group.d.ts +42 -0
- package/dist/pptx/render/device-pixel-group.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-stroke.d.ts +21 -3
- package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
- package/dist/pptx/render/element-style-transform.d.ts +6 -5
- package/dist/pptx/render/element-style-transform.d.ts.map +1 -1
- package/dist/pptx/render/embedded-fonts-sheet.d.ts +6 -0
- package/dist/pptx/render/embedded-fonts-sheet.d.ts.map +1 -1
- package/dist/pptx/render/equation-box-style.d.ts +23 -0
- package/dist/pptx/render/equation-box-style.d.ts.map +1 -0
- package/dist/pptx/render/fill-style.d.ts +16 -1
- package/dist/pptx/render/fill-style.d.ts.map +1 -1
- package/dist/pptx/render/font-line-gap.d.ts +0 -18
- package/dist/pptx/render/font-line-gap.d.ts.map +1 -1
- package/dist/pptx/render/gradient-svg-image.d.ts +20 -0
- package/dist/pptx/render/gradient-svg-image.d.ts.map +1 -0
- package/dist/pptx/render/group-fill.d.ts.map +1 -1
- package/dist/pptx/render/hollow-shape-hit-test.d.ts +23 -1
- package/dist/pptx/render/hollow-shape-hit-test.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +11 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/linked-text-box-overflow.d.ts +20 -5
- package/dist/pptx/render/linked-text-box-overflow.d.ts.map +1 -1
- package/dist/pptx/render/media-control-bar.d.ts +41 -0
- package/dist/pptx/render/media-control-bar.d.ts.map +1 -0
- package/dist/pptx/render/media-playback.d.ts +6 -6
- package/dist/pptx/render/media-playback.d.ts.map +1 -1
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-connector-carry.d.ts +43 -0
- package/dist/pptx/render/morph-connector-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-carry.d.ts +2 -0
- package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-effect-silhouette.d.ts +23 -0
- package/dist/pptx/render/morph-effect-silhouette.d.ts.map +1 -0
- package/dist/pptx/render/morph-geometry-key.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-carry.d.ts +27 -0
- package/dist/pptx/render/morph-line-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-ends.d.ts +27 -0
- package/dist/pptx/render/morph-line-ends.d.ts.map +1 -0
- package/dist/pptx/render/morph-line-reach.d.ts +72 -0
- package/dist/pptx/render/morph-line-reach.d.ts.map +1 -0
- package/dist/pptx/render/morph-overlay-order.d.ts.map +1 -1
- package/dist/pptx/render/morph-plan-css.d.ts +0 -7
- package/dist/pptx/render/morph-plan-css.d.ts.map +1 -1
- package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +33 -0
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/path-gradient-rect.d.ts +1 -1
- package/dist/pptx/render/path-gradient-rect.d.ts.map +1 -1
- package/dist/pptx/render/shape-geometry-base.d.ts +73 -0
- package/dist/pptx/render/shape-geometry-base.d.ts.map +1 -0
- package/dist/pptx/render/shape-geometry-cascade.d.ts +7 -37
- package/dist/pptx/render/shape-geometry-cascade.d.ts.map +1 -1
- package/dist/pptx/render/silhouette-effects.d.ts +118 -0
- package/dist/pptx/render/silhouette-effects.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-fill-layer.d.ts +19 -0
- package/dist/pptx/render/silhouette-fill-layer.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-morph-refresh.d.ts +6 -0
- package/dist/pptx/render/silhouette-morph-refresh.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-morph-registry.d.ts +36 -0
- package/dist/pptx/render/silhouette-morph-registry.d.ts.map +1 -0
- package/dist/pptx/render/stroke-only-preset.d.ts +22 -0
- package/dist/pptx/render/stroke-only-preset.d.ts.map +1 -1
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/subpath-fill-overlay.d.ts +11 -5
- package/dist/pptx/render/subpath-fill-overlay.d.ts.map +1 -1
- package/dist/pptx/render/subpath-geometry.d.ts +38 -0
- package/dist/pptx/render/subpath-geometry.d.ts.map +1 -0
- package/dist/pptx/render/svg-gradient-paint.d.ts.map +1 -1
- package/dist/pptx/render/svg-id-scope.d.ts +8 -0
- package/dist/pptx/render/svg-id-scope.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-baseline.d.ts +36 -0
- package/dist/pptx/render/table-cell-baseline.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-border-inset.d.ts +21 -0
- package/dist/pptx/render/table-cell-border-inset.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-css.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts +13 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/table-style-bg-settle.d.ts +43 -0
- package/dist/pptx/render/table-style-bg-settle.d.ts.map +1 -0
- package/dist/pptx/render/table-style-bg-span.d.ts +26 -0
- package/dist/pptx/render/table-style-bg-span.d.ts.map +1 -0
- package/dist/pptx/render/table-style-borders.d.ts.map +1 -1
- package/dist/pptx/render/table-style-builtins-data.d.ts +1 -1
- package/dist/pptx/render/table-style-builtins-data.d.ts.map +1 -1
- package/dist/pptx/render/table-style-fill.d.ts.map +1 -1
- package/dist/pptx/render/table-style-shadow.d.ts +20 -0
- package/dist/pptx/render/table-style-shadow.d.ts.map +1 -0
- package/dist/pptx/render/table-style-theme-refs.d.ts.map +1 -1
- package/dist/pptx/render/table-style.d.ts +9 -0
- package/dist/pptx/render/table-style.d.ts.map +1 -1
- package/dist/pptx/render/text-block-style.d.ts +5 -0
- package/dist/pptx/render/text-block-style.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts +11 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-arch.d.ts +25 -0
- package/dist/pptx/render/text-warp-arch.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-closed-paths.d.ts +53 -0
- package/dist/pptx/render/text-warp-closed-paths.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-envelope-curves.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-map.d.ts +12 -0
- package/dist/pptx/render/text-warp-envelope-map.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-glyph-outline.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-polygon-clip.d.ts +21 -0
- package/dist/pptx/render/text-warp-polygon-clip.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts +21 -0
- package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts +19 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-preset-sampler.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-run-paint.d.ts +19 -0
- package/dist/pptx/render/text-warp-run-paint.d.ts.map +1 -0
- package/dist/pptx/render/text-warp.d.ts.map +1 -1
- package/dist/pptx/render/visual-effects.d.ts +9 -0
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-UP6DYY42.cjs → smartart-insert-preview-55QCEISC.cjs} +7 -6
- package/dist/pptx/{smartart-insert-preview-DXFDFDSC.mjs → smartart-insert-preview-GPBTE3HU.mjs} +6 -5
- package/dist/render-cache.d.ts +0 -1
- package/dist/ribbon/ribbon-group.d.ts +1 -2
- package/dist/ribbon/svg-preview.d.ts +0 -1
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/theme.d.ts +0 -1
- package/package.json +2 -2
|
@@ -1,178 +1,179 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2SO3BL67_cjs = require('../chunk-2SO3BL67.cjs');
|
|
4
|
+
require('../chunk-HWJKBKCW.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, "AXIS_LABEL_COLOR", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk2SO3BL67_cjs.AXIS_LABEL_COLOR; }
|
|
10
11
|
});
|
|
11
12
|
Object.defineProperty(exports, "DEFAULT_PALETTE", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk2SO3BL67_cjs.DEFAULT_PALETTE; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "GRIDLINE_COLOR", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2SO3BL67_cjs.GRIDLINE_COLOR; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "PIE_AUTO_INSET_PX", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk2SO3BL67_cjs.PIE_AUTO_INSET_PX; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "ZERO_LINE_COLOR", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk2SO3BL67_cjs.ZERO_LINE_COLOR; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "axisTickValues", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk2SO3BL67_cjs.axisTickValues; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "buildCategoryLabels", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk2SO3BL67_cjs.buildCategoryLabels; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "buildChartViewModel", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk2SO3BL67_cjs.buildChartViewModel; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "buildFallbackViewModel", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk2SO3BL67_cjs.buildFallbackViewModel; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "buildGridlinesAndLabels", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk2SO3BL67_cjs.buildGridlinesAndLabels; }
|
|
46
47
|
});
|
|
47
48
|
Object.defineProperty(exports, "buildLegend", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk2SO3BL67_cjs.buildLegend; }
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(exports, "buildMarkTooltip", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk2SO3BL67_cjs.buildMarkTooltip; }
|
|
54
55
|
});
|
|
55
56
|
Object.defineProperty(exports, "buildPieViewModel", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk2SO3BL67_cjs.buildPieViewModel; }
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(exports, "buildRadarViewModel", {
|
|
60
61
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2SO3BL67_cjs.buildRadarViewModel; }
|
|
62
63
|
});
|
|
63
64
|
Object.defineProperty(exports, "buildZeroLine", {
|
|
64
65
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk2SO3BL67_cjs.buildZeroLine; }
|
|
66
67
|
});
|
|
67
68
|
Object.defineProperty(exports, "chartPreserveAspectRatio", {
|
|
68
69
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk2SO3BL67_cjs.chartPreserveAspectRatio; }
|
|
70
71
|
});
|
|
71
72
|
Object.defineProperty(exports, "clipStackedSegment", {
|
|
72
73
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk2SO3BL67_cjs.clipStackedSegment; }
|
|
74
75
|
});
|
|
75
76
|
Object.defineProperty(exports, "computeBarRects", {
|
|
76
77
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk2SO3BL67_cjs.computeBarRects; }
|
|
78
79
|
});
|
|
79
80
|
Object.defineProperty(exports, "computeBubbleRadius", {
|
|
80
81
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk2SO3BL67_cjs.computeBubbleRadius; }
|
|
82
83
|
});
|
|
83
84
|
Object.defineProperty(exports, "computeLinePoints", {
|
|
84
85
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk2SO3BL67_cjs.computeLinePoints; }
|
|
86
87
|
});
|
|
87
88
|
Object.defineProperty(exports, "computePieLayout", {
|
|
88
89
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk2SO3BL67_cjs.computePieLayout; }
|
|
90
91
|
});
|
|
91
92
|
Object.defineProperty(exports, "computePieSlicePath", {
|
|
92
93
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk2SO3BL67_cjs.computePieSlicePath; }
|
|
94
95
|
});
|
|
95
96
|
Object.defineProperty(exports, "computePieSlices", {
|
|
96
97
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk2SO3BL67_cjs.computePieSlices; }
|
|
98
99
|
});
|
|
99
100
|
Object.defineProperty(exports, "computePlotLayout", {
|
|
100
101
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2SO3BL67_cjs.computePlotLayout; }
|
|
102
103
|
});
|
|
103
104
|
Object.defineProperty(exports, "computeRadarPoints", {
|
|
104
105
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2SO3BL67_cjs.computeRadarPoints; }
|
|
106
107
|
});
|
|
107
108
|
Object.defineProperty(exports, "computeScatterDots", {
|
|
108
109
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk2SO3BL67_cjs.computeScatterDots; }
|
|
110
111
|
});
|
|
111
112
|
Object.defineProperty(exports, "computeScatterXDomain", {
|
|
112
113
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk2SO3BL67_cjs.computeScatterXDomain; }
|
|
114
115
|
});
|
|
115
116
|
Object.defineProperty(exports, "computeStackedBarRects", {
|
|
116
117
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk2SO3BL67_cjs.computeStackedBarRects; }
|
|
118
119
|
});
|
|
119
120
|
Object.defineProperty(exports, "computeStackedValueRange", {
|
|
120
121
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk2SO3BL67_cjs.computeStackedValueRange; }
|
|
122
123
|
});
|
|
123
124
|
Object.defineProperty(exports, "computeValueRange", {
|
|
124
125
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk2SO3BL67_cjs.computeValueRange2; }
|
|
126
127
|
});
|
|
127
128
|
Object.defineProperty(exports, "formatAxisValue", {
|
|
128
129
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk2SO3BL67_cjs.formatAxisValue2; }
|
|
130
131
|
});
|
|
131
132
|
Object.defineProperty(exports, "linePointsToSvgString", {
|
|
132
133
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk2SO3BL67_cjs.linePointsToSvgString; }
|
|
134
135
|
});
|
|
135
136
|
Object.defineProperty(exports, "paletteColor", {
|
|
136
137
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk2SO3BL67_cjs.paletteColor2; }
|
|
138
139
|
});
|
|
139
140
|
Object.defineProperty(exports, "radarAngle", {
|
|
140
141
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunk2SO3BL67_cjs.radarAngle; }
|
|
142
143
|
});
|
|
143
144
|
Object.defineProperty(exports, "radarRingPoints", {
|
|
144
145
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2SO3BL67_cjs.radarRingPoints; }
|
|
146
147
|
});
|
|
147
148
|
Object.defineProperty(exports, "resolveChartKind", {
|
|
148
149
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2SO3BL67_cjs.resolveChartKind; }
|
|
150
151
|
});
|
|
151
152
|
Object.defineProperty(exports, "resolveLegendAnchorPosition", {
|
|
152
153
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2SO3BL67_cjs.resolveLegendAnchorPosition; }
|
|
154
155
|
});
|
|
155
156
|
Object.defineProperty(exports, "seriesColor", {
|
|
156
157
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk2SO3BL67_cjs.seriesColor2; }
|
|
158
159
|
});
|
|
159
160
|
Object.defineProperty(exports, "seriesXValues", {
|
|
160
161
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk2SO3BL67_cjs.seriesXValues; }
|
|
162
163
|
});
|
|
163
164
|
Object.defineProperty(exports, "stackedBarWidth", {
|
|
164
165
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk2SO3BL67_cjs.stackedBarWidth; }
|
|
166
167
|
});
|
|
167
168
|
Object.defineProperty(exports, "stackedSegmentExtent", {
|
|
168
169
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk2SO3BL67_cjs.stackedSegmentExtent; }
|
|
170
171
|
});
|
|
171
172
|
Object.defineProperty(exports, "valueToY", {
|
|
172
173
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk2SO3BL67_cjs.valueToY2; }
|
|
174
175
|
});
|
|
175
176
|
Object.defineProperty(exports, "withManualLayouts", {
|
|
176
177
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk2SO3BL67_cjs.withManualLayouts; }
|
|
178
179
|
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { AXIS_LABEL_COLOR, DEFAULT_PALETTE, GRIDLINE_COLOR, PIE_AUTO_INSET_PX, ZERO_LINE_COLOR, axisTickValues, buildCategoryLabels, buildChartViewModel, buildFallbackViewModel, buildGridlinesAndLabels, buildLegend, buildMarkTooltip, buildPieViewModel, buildRadarViewModel, buildZeroLine, chartPreserveAspectRatio, clipStackedSegment, computeBarRects, computeBubbleRadius, computeLinePoints, computePieLayout, computePieSlicePath, computePieSlices, computePlotLayout, computeRadarPoints, computeScatterDots, computeScatterXDomain, computeStackedBarRects, computeStackedValueRange, computeValueRange2 as computeValueRange, formatAxisValue2 as formatAxisValue, linePointsToSvgString, paletteColor2 as paletteColor, radarAngle, radarRingPoints, resolveChartKind, resolveLegendAnchorPosition, seriesColor2 as seriesColor, seriesXValues, stackedBarWidth, stackedSegmentExtent, valueToY2 as valueToY, withManualLayouts } from '../chunk-
|
|
1
|
+
export { AXIS_LABEL_COLOR, DEFAULT_PALETTE, GRIDLINE_COLOR, PIE_AUTO_INSET_PX, ZERO_LINE_COLOR, axisTickValues, buildCategoryLabels, buildChartViewModel, buildFallbackViewModel, buildGridlinesAndLabels, buildLegend, buildMarkTooltip, buildPieViewModel, buildRadarViewModel, buildZeroLine, chartPreserveAspectRatio, clipStackedSegment, computeBarRects, computeBubbleRadius, computeLinePoints, computePieLayout, computePieSlicePath, computePieSlices, computePlotLayout, computeRadarPoints, computeScatterDots, computeScatterXDomain, computeStackedBarRects, computeStackedValueRange, computeValueRange2 as computeValueRange, formatAxisValue2 as formatAxisValue, linePointsToSvgString, paletteColor2 as paletteColor, radarAngle, radarRingPoints, resolveChartKind, resolveLegendAnchorPosition, seriesColor2 as seriesColor, seriesXValues, stackedBarWidth, stackedSegmentExtent, valueToY2 as valueToY, withManualLayouts } from '../chunk-TDALHSYV.mjs';
|
|
2
|
+
import '../chunk-EDIAPF6J.mjs';
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2SO3BL67_cjs = require('../chunk-2SO3BL67.cjs');
|
|
4
|
+
require('../chunk-HWJKBKCW.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, "buildRegionMapViewModel", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk2SO3BL67_cjs.buildRegionMapViewModel; }
|
|
10
11
|
});
|
|
11
12
|
Object.defineProperty(exports, "buildWaterfallViewModel", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk2SO3BL67_cjs.buildWaterfallViewModel; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "normalizeValue", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2SO3BL67_cjs.normalizeValue; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "resolveRegionCode", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk2SO3BL67_cjs.resolveRegionCode; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "sequentialColorScale", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk2SO3BL67_cjs.sequentialColorScale; }
|
|
26
27
|
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { buildRegionMapViewModel, buildWaterfallViewModel, normalizeValue, resolveRegionCode, sequentialColorScale } from '../chunk-
|
|
1
|
+
export { buildRegionMapViewModel, buildWaterfallViewModel, normalizeValue, resolveRegionCode, sequentialColorScale } from '../chunk-TDALHSYV.mjs';
|
|
2
|
+
import '../chunk-EDIAPF6J.mjs';
|
|
@@ -26,6 +26,7 @@ export interface DashSegment {
|
|
|
26
26
|
* @param strokeWidth Resolved stroke width in px.
|
|
27
27
|
* @param customDashSegments Optional `custDash` segments; when present they take
|
|
28
28
|
* precedence and are rendered as an explicit pattern.
|
|
29
|
+
* @param lineCap `a:ln/@cap`: a round cap is part of each dash.
|
|
29
30
|
*/
|
|
30
|
-
export declare function buildDashArray(dash: string | undefined, strokeWidth: number, customDashSegments?: ReadonlyArray<DashSegment
|
|
31
|
+
export declare function buildDashArray(dash: string | undefined, strokeWidth: number, customDashSegments?: ReadonlyArray<DashSegment>, lineCap?: 'flat' | 'rnd' | 'sq'): string | undefined;
|
|
31
32
|
//# sourceMappingURL=connector-dash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-dash.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/connector-dash.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AAED
|
|
1
|
+
{"version":3,"file":"connector-dash.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/connector-dash.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,WAAW,EAAE,MAAM,EACnB,kBAAkB,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,EAC/C,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAC7B,MAAM,GAAG,SAAS,CASpB"}
|
|
@@ -93,7 +93,7 @@ export interface ConnectorGeometry {
|
|
|
93
93
|
* rows. `undefined` for anything else (bent, curved, diagonal, rotated or
|
|
94
94
|
* compound lines), which PowerPoint anti-aliases as well.
|
|
95
95
|
*/
|
|
96
|
-
export declare function connectorSnapTransform(element: Pick<PptxElement, 'x' | 'y' | 'width' | 'height' | 'rotation'
|
|
96
|
+
export declare function connectorSnapTransform(element: Pick<PptxElement, 'x' | 'y' | 'width' | 'height' | 'rotation'> & Partial<Pick<PptxElement, 'xEmu' | 'yEmu' | 'widthEmu' | 'heightEmu'>>, straight: boolean, strandCount: number, strokeWidth: number): string | undefined;
|
|
97
97
|
/**
|
|
98
98
|
* Derive all rendering geometry for a connector element.
|
|
99
99
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-path.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/connector-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAQnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"connector-path.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/connector-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAQnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAWrD,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAChG,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAChC,SAAS,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,6EAA6E;AAC7E,MAAM,WAAW,iBAA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CAAC,CAAC,EACvE,QAAQ,EAAE,OAAO,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GACjB,MAAM,GAAG,SAAS,CASpB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gBAAgB,GACxB,iBAAiB,CAsGnB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAClC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,KAAK,SAAM,EACX,KAAK,SAAM,GACT,MAAM,GAAG,SAAS,CAsBpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAElF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAsB9E"}
|
|
@@ -38,9 +38,11 @@ export declare function connectorStrandScreenWidth(widths: readonly number[], st
|
|
|
38
38
|
* Map an OOXML line-cap token (`a:ln/@cap`) to its SVG `stroke-linecap` value.
|
|
39
39
|
*
|
|
40
40
|
* `flat` -> `butt`, `sq` -> `square`, `rnd` -> `round`. Anything absent or
|
|
41
|
-
* unrecognised falls back to `
|
|
41
|
+
* unrecognised falls back to `butt`: PowerPoint draws a flat cap when a line
|
|
42
|
+
* declares no `cap` and no theme line style supplies one (measured on a 12 pt line:
|
|
43
|
+
* it ends exactly at its endpoints, where `rnd` and `sq` overshoot by half the width).
|
|
42
44
|
*/
|
|
43
|
-
export declare function svgLineCap(lineCap: 'flat' | 'rnd' | 'sq' | undefined): 'butt' | 'round' | 'square';
|
|
45
|
+
export declare function svgLineCap(lineCap: 'flat' | 'rnd' | 'sq' | undefined, dashed?: boolean): 'butt' | 'round' | 'square';
|
|
44
46
|
/** Connector routing family, derived from the OOXML preset shape type. */
|
|
45
47
|
export type ConnectorKind = 'straight' | 'bent' | 'curved';
|
|
46
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-style.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/connector-style.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,qDAAqD;AACrD,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,KAAK,CAAC;AAoCjF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACrC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,WAAW,EAAE,MAAM,GACjB,MAAM,EAAE,CAKV;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,WAAW,EAAE,MAAM,GACjB,MAAM,EAAE,CAGV;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,GACT,MAAM,CAMR;AAED
|
|
1
|
+
{"version":3,"file":"connector-style.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/connector-style.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,qDAAqD;AACrD,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,KAAK,CAAC;AAoCjF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACrC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,WAAW,EAAE,MAAM,GACjB,MAAM,EAAE,CAKV;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,WAAW,EAAE,MAAM,GACjB,MAAM,EAAE,CAGV;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,GACT,MAAM,CAMR;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACzB,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,EAC1C,MAAM,UAAQ,GACZ,MAAM,GAAG,OAAO,GAAG,QAAQ,CAY7B;AAED,0EAA0E;AAC1E,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAS1E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEzE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a dashed CLOSED outline starts.
|
|
3
|
+
*
|
|
4
|
+
* A dash pattern begins at the first point of the path it is applied to, so
|
|
5
|
+
* which point that is shows in the picture: it fixes the phase of every dash
|
|
6
|
+
* round the shape and where the odd, shortened dash of the closing seam lands.
|
|
7
|
+
* PowerPoint's own exports (measured on 18 presets, rotated and flipped, with
|
|
8
|
+
* an asymmetric custom dash so the direction shows too) start a closed outline
|
|
9
|
+
* at the LAST vertex of the preset path and run through the closing segment
|
|
10
|
+
* first. In ECMA-376's path order that is:
|
|
11
|
+
*
|
|
12
|
+
* - `rect`: the bottom-left corner, up the left edge (the path is
|
|
13
|
+
* top-left, top-right, bottom-right, bottom-left);
|
|
14
|
+
* - `triangle`: the bottom-right corner, along the base to the left;
|
|
15
|
+
* - `roundRect`, `diamond`, `pentagon`, `hexagon`, the arrows, `plus`,
|
|
16
|
+
* `parallelogram`, `trapezoid`, `octagon`, `star5`, callouts and custom
|
|
17
|
+
* geometry: likewise the last vertex, forward through the closing edge.
|
|
18
|
+
*
|
|
19
|
+
* A path whose last point is its first (`heart`, `cloud`: the figure closes
|
|
20
|
+
* itself) is not rotated. Ellipses are the exception: `ellipse` and
|
|
21
|
+
* `flowChartConnector` start at the left-middle point and run COUNTER-clockwise.
|
|
22
|
+
* Flips and rotations carry the same start with the shape: PowerPoint applies
|
|
23
|
+
* them to the path, as the SVG overlay's transform does.
|
|
24
|
+
*
|
|
25
|
+
* Only a single closed sub-path of absolute `M L C Q A Z` is rewritten; open
|
|
26
|
+
* paths and anything else come back unchanged.
|
|
27
|
+
*
|
|
28
|
+
* Pure and framework-agnostic.
|
|
29
|
+
*
|
|
30
|
+
* @module render/dash-path-start
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* The outline path data to dash so the pattern starts where PowerPoint starts
|
|
34
|
+
* it. `shapeType` is the preset name as authored (not `getShapeType`, which
|
|
35
|
+
* folds unknown presets into `rect`), or empty for custom geometry.
|
|
36
|
+
*/
|
|
37
|
+
export declare function dashStartPathData(d: string, shapeType?: string): string;
|
|
38
|
+
//# sourceMappingURL=dash-path-start.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dash-path-start.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/dash-path-start.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAwFH;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAiBvE"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerPoint's dash patterns, measured from its own 1280x720 exports.
|
|
3
|
+
*
|
|
4
|
+
* Every preset is a fixed run of (dash, gap) lengths in units of the pen width:
|
|
5
|
+
*
|
|
6
|
+
* | preset | dash, gap, ... |
|
|
7
|
+
* | --------------------------- | ---------------------------------- |
|
|
8
|
+
* | `dash` | 4 3 |
|
|
9
|
+
* | `dot` | 1 3 |
|
|
10
|
+
* | `lgDash` | 8 3 |
|
|
11
|
+
* | `dashDot` | 4 3 1 3 |
|
|
12
|
+
* | `lgDashDot` | 8 3 1 3 |
|
|
13
|
+
* | `lgDashDotDot` | 8 3 1 3 1 3 |
|
|
14
|
+
* | `sysDash` | 3 1 |
|
|
15
|
+
* | `sysDot` | 1 1 |
|
|
16
|
+
* | `sysDashDot` | 3 1 1 1 |
|
|
17
|
+
* | `sysDashDotDot` | 3 1 1 1 1 1 |
|
|
18
|
+
* | `custDash` (`a:ds d sp`) | d, sp in 1000ths of a percent |
|
|
19
|
+
*
|
|
20
|
+
* Three behaviours the numbers alone do not say:
|
|
21
|
+
*
|
|
22
|
+
* - The unit is the pen width rounded to WHOLE device pixels (at least one),
|
|
23
|
+
* the same rounding the line itself gets: at 1280 px a 2 pt line (2.67 px)
|
|
24
|
+
* dashes as a 3 px pen, 1 pt (1.33 px) as 1 px. See {@link dashPenWidth}.
|
|
25
|
+
* - The pattern starts at the first point of the path with a dash.
|
|
26
|
+
* - Caps are part of the dash, not added to it. A `rnd` dash is the pattern's
|
|
27
|
+
* dash length INCLUDING its round ends (a `dot` is a circle one pen wide and
|
|
28
|
+
* the period is unchanged), and `sq` adds nothing to interior dashes: they
|
|
29
|
+
* are the flat dashes, only the line's own ends overshoot. SVG draws a cap
|
|
30
|
+
* on top of the dash, so {@link capCompensatedDashArray} shortens round dashes
|
|
31
|
+
* by one pen width, and the stroke uses a `butt` cap for dashed square lines
|
|
32
|
+
* (`svgLineCap(cap, true)`).
|
|
33
|
+
*
|
|
34
|
+
* Pure and framework-agnostic.
|
|
35
|
+
*
|
|
36
|
+
* @module render/dash-pattern
|
|
37
|
+
*/
|
|
38
|
+
/** A `custDash` segment: lengths in 1000ths of a percent of the line width. */
|
|
39
|
+
export interface DashSegmentInput {
|
|
40
|
+
dash: number;
|
|
41
|
+
space: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The pen width dash lengths scale with: the stroke width rounded to whole
|
|
45
|
+
* pixels, at least one (ties round down: 4.5 px dashes as 4 px, measured).
|
|
46
|
+
*/
|
|
47
|
+
export declare function dashPenWidth(strokeWidth: number): number;
|
|
48
|
+
/**
|
|
49
|
+
* The dash pattern of a preset or custom dash in pen widths, or `undefined` for
|
|
50
|
+
* a solid line.
|
|
51
|
+
*/
|
|
52
|
+
export declare function dashPatternUnits(dashType: string | undefined, customSegments?: ReadonlyArray<DashSegmentInput>): readonly number[] | undefined;
|
|
53
|
+
/** Whether an `a:ln` dash token paints a dashed (not solid) line. */
|
|
54
|
+
export declare function isDashedStroke(dashType: string | undefined): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The SVG dash array (user units) for a pattern at a stroke width. With a
|
|
57
|
+
* `rnd` cap each dash gives up one pen width to its two round ends, and the gap
|
|
58
|
+
* gains it back, so dots and dashes land where PowerPoint puts them.
|
|
59
|
+
*/
|
|
60
|
+
export declare function capCompensatedDashArray(pattern: readonly number[], strokeWidth: number, lineCap?: 'flat' | 'rnd' | 'sq'): string;
|
|
61
|
+
//# sourceMappingURL=dash-pattern.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dash-pattern.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/dash-pattern.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAgBH,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AAQD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,GAC9C,SAAS,MAAM,EAAE,GAAG,SAAS,CAU/B;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEpE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAC7B,MAAM,CAiBR"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where PowerPoint really puts an element, for the device-pixel stroke snap.
|
|
3
|
+
*
|
|
4
|
+
* The model keeps `x`, `y`, `width` and `height` in whole slide pixels, but
|
|
5
|
+
* PowerPoint rounds every edge to a device pixel from the file's EMU, so a
|
|
6
|
+
* stroke can land one pixel away whenever those whole pixels differ from the
|
|
7
|
+
* real position (a 50.5 pt tall rectangle is 67.33 px, not 67). The parser
|
|
8
|
+
* keeps the exact EMU next to each value (`xEmu`, `yEmu`, `widthEmu`,
|
|
9
|
+
* `heightEmu`), so the snap can use them without a change to the model.
|
|
10
|
+
*
|
|
11
|
+
* PowerPoint also quantises the geometry it paints to its master unit, 1/576
|
|
12
|
+
* inch (1587.5 EMU, an eighth of a point): a rectangle at 290.4 pt sits at
|
|
13
|
+
* 290.375 pt (measured at 1280, 1366 and 1920 px wide). {@link exactDeviceBox}
|
|
14
|
+
* applies the same rounding.
|
|
15
|
+
*
|
|
16
|
+
* @module render/device-pixel-exact
|
|
17
|
+
*/
|
|
18
|
+
/** A box in slide pixels. */
|
|
19
|
+
export interface DeviceBox {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
}
|
|
25
|
+
/** The element fields {@link exactDeviceBox} reads. */
|
|
26
|
+
export interface ExactBoxSource extends DeviceBox {
|
|
27
|
+
xEmu?: number | undefined;
|
|
28
|
+
yEmu?: number | undefined;
|
|
29
|
+
widthEmu?: number | undefined;
|
|
30
|
+
heightEmu?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
/** The box PowerPoint positions `element` at, in slide pixels (the model's where unknown). */
|
|
33
|
+
export declare function exactDeviceBox(element: ExactBoxSource): DeviceBox;
|
|
34
|
+
//# sourceMappingURL=device-pixel-exact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-pixel-exact.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/device-pixel-exact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,6BAA6B;AAC7B,MAAM,WAAW,SAAS;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,uDAAuD;AACvD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAChD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAiBD,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,CAOjE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a group child really sits in the stage, for the device-pixel stroke snap.
|
|
3
|
+
*
|
|
4
|
+
* A child's `x` / `y` are relative to its group's box, and a group's own `x` / `y`
|
|
5
|
+
* are rounded to whole pixels while the children keep the exact (unrounded)
|
|
6
|
+
* offset from the exact group origin. The snap rounds ABSOLUTE stage positions,
|
|
7
|
+
* so it needs the chain of ancestor groups: the position the child is painted at
|
|
8
|
+
* (the sum of the ancestors' model `x` / `y`) and the position PowerPoint puts it
|
|
9
|
+
* at (the sum of their exact origins, from `xEmu` / `yEmu` where those still
|
|
10
|
+
* describe the model).
|
|
11
|
+
*
|
|
12
|
+
* Bindings render a group's children from the group element, and every one of
|
|
13
|
+
* them calls {@link getGroupChildParentFill} there, which calls
|
|
14
|
+
* {@link registerGroupChildren}: the child to group links are kept in a WeakMap,
|
|
15
|
+
* so no binding has to thread a parent through its renderer props. A child that
|
|
16
|
+
* was never registered reads as top level (the previous behaviour).
|
|
17
|
+
*
|
|
18
|
+
* A rotated or flipped ancestor group turns the child's axes: its strokes are
|
|
19
|
+
* anti-aliased in PowerPoint's export too and are not snapped ({@link snapPlacement}
|
|
20
|
+
* returns `undefined`).
|
|
21
|
+
*
|
|
22
|
+
* @module render/device-pixel-group
|
|
23
|
+
*/
|
|
24
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
25
|
+
import type { DeviceBox } from './device-pixel-exact.js';
|
|
26
|
+
/** Remember `group` as the parent of each of its children (idempotent, cheap). */
|
|
27
|
+
export declare function registerGroupChildren(group: PptxElement): void;
|
|
28
|
+
/** The absolute placement of an element: where it is painted and where PowerPoint paints it. */
|
|
29
|
+
export interface SnapPlacement {
|
|
30
|
+
/** Painted position and size in stage pixels. */
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
/** The box PowerPoint positions it at, in stage pixels. */
|
|
34
|
+
exact: DeviceBox;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The stage placement of `element`, or `undefined` when an ancestor group is
|
|
38
|
+
* rotated or flipped (no snap). A top-level element places at its own `x` / `y`
|
|
39
|
+
* and its {@link exactDeviceBox}, exactly as before.
|
|
40
|
+
*/
|
|
41
|
+
export declare function snapPlacement(element: PptxElement): SnapPlacement | undefined;
|
|
42
|
+
//# sourceMappingURL=device-pixel-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-pixel-group.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/device-pixel-group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,sBAAsB,CAAC;AAKtE,kFAAkF;AAClF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAO9D;AAED,gGAAgG;AAChG,MAAM,WAAW,aAAa;IAC7B,iDAAiD;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC;CACjB;AAyBD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa,GAAG,SAAS,CAmC7E"}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
*
|
|
35
35
|
* @module render/device-pixel-stroke
|
|
36
36
|
*/
|
|
37
|
+
import type { DeviceBox } from './device-pixel-exact.js';
|
|
37
38
|
/** One device pixel in the enclosing stage's unscaled slide pixels. */
|
|
38
39
|
export declare const DEVICE_PX_VAR = "--pptx-device-px";
|
|
39
40
|
/** `window.devicePixelRatio`, mirrored onto the root element as a plain number. */
|
|
@@ -71,10 +72,27 @@ export declare function snappedStrokeShift(coord: number, width: number | undefi
|
|
|
71
72
|
* The `transform` that snaps an axis-aligned stroke of `width` to the device
|
|
72
73
|
* grid (see {@link snappedStrokeShift}): `axis` is the direction the stroke
|
|
73
74
|
* RUNS in, so a horizontal line (`'h'`) shifts in y only, a vertical one
|
|
74
|
-
* (`'v'`) in x only, and an outline whose
|
|
75
|
-
*
|
|
75
|
+
* (`'v'`) in x only, and an outline whose edges all need it (`'box'`) in both.
|
|
76
|
+
* `x`/`y` are the stroke's position in the stage.
|
|
77
|
+
*
|
|
78
|
+
* A `'box'` given its `size` snaps the far edges too: PowerPoint rounds every
|
|
79
|
+
* edge on its own, so the right and bottom edges land on `round(x + w)` and
|
|
80
|
+
* `round(y + h)`, not at the near edge's shift plus the authored size. That is
|
|
81
|
+
* a translate to the near edge and a scale by `(w + farShift - nearShift) / w`:
|
|
82
|
+
* a fraction of a device pixel over the whole rectangle, so the stroke width
|
|
83
|
+
* stays within a fraction of a percent. Without a size only the top and left
|
|
84
|
+
* edges are snapped.
|
|
85
|
+
*
|
|
86
|
+
* `x`, `y` and `size` are the element's box as the model lays it out (whole
|
|
87
|
+
* pixels). `exact` is the box PowerPoint positions it at (see
|
|
88
|
+
* {@link exactDeviceBox}); the snap rounds THAT, so a stroke lands on the same
|
|
89
|
+
* device pixel as in PowerPoint instead of one off whenever the model's whole
|
|
90
|
+
* pixel differs from the real position.
|
|
76
91
|
*/
|
|
77
|
-
export declare function snappedStrokeTransform(axis: 'h' | 'v' | 'box', x: number, y: number, width: number | undefined
|
|
92
|
+
export declare function snappedStrokeTransform(axis: 'h' | 'v' | 'box', x: number, y: number, width: number | undefined, size?: {
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
}, exact?: DeviceBox): string | undefined;
|
|
78
96
|
/**
|
|
79
97
|
* The on-screen CSS width of a `border-width`: never under one device pixel
|
|
80
98
|
* inside a stage, the authored width anywhere else. Unlike
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-pixel-stroke.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/device-pixel-stroke.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,uEAAuE;AACvE,eAAO,MAAM,aAAa,qBAAqB,CAAC;AAChD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,eAAe,CAAC;AAqBnD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,eAAe,SAAI,GAAG,MAAM,CAQxF;AAeD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EA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/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE;gBAAE,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,CAAC;IAChG,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK;QAC/B,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,OAAO,CAAA;SAAE,KAAK,IAAI,CAAC;KAChG,CAAC;CACF;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CACpC,GAAG,GAAE,sBAAsB,GAAG,SAEkB,GAC9C,IAAI,CAoBN;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQ5E;AAED,KAAK,aAAa,GAAG,OAAO,GAAG,qBAAqB,CAAC;AAgBrD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAIjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAwBjF"}
|
|
@@ -91,18 +91,19 @@ export declare function getCompoundLineBorderWidth(_compoundLine: string | undef
|
|
|
91
91
|
*/
|
|
92
92
|
export declare function getCompoundLineStyle(compoundLine: string | undefined, strokeColor: string, strokeWidth: number): CssStyleMap;
|
|
93
93
|
/**
|
|
94
|
-
* Computes an SVG `stroke-dasharray` value for a given dash type and stroke width
|
|
95
|
-
*
|
|
96
|
-
*
|
|
94
|
+
* Computes an SVG `stroke-dasharray` value for a given dash type and stroke width,
|
|
95
|
+
* with PowerPoint's own dash and gap lengths (see `dash-pattern.ts`). Custom
|
|
96
|
+
* segments are 1000ths of a percent of the line width.
|
|
97
97
|
* @param dashType - The OOXML dash type.
|
|
98
98
|
* @param strokeWidth - Stroke width in pixels (minimum 1).
|
|
99
99
|
* @param customDashSegments - Optional array of `{dash, space}` segments for custom dashes.
|
|
100
|
+
* @param lineCap - The `a:ln/@cap` token: round dashes include their caps.
|
|
100
101
|
* @returns A space-separated dasharray string, or `undefined` for solid strokes.
|
|
101
102
|
*/
|
|
102
|
-
export declare function getSvgStrokeDasharray(dashType: StrokeDashType | undefined, strokeWidth: number, customDashSegments?:
|
|
103
|
+
export declare function getSvgStrokeDasharray(dashType: StrokeDashType | undefined, strokeWidth: number, customDashSegments?: ReadonlyArray<{
|
|
103
104
|
dash: number;
|
|
104
105
|
space: number;
|
|
105
|
-
}
|
|
106
|
+
}>, lineCap?: 'flat' | 'rnd' | 'sq'): string | undefined;
|
|
106
107
|
/**
|
|
107
108
|
* Builds a CSS `transform` string combining flip and rotation transforms for an element.
|
|
108
109
|
* Flips are expressed as `scaleX(-1)` / `scaleY(-1)`, rotation as `rotate(Ndeg)`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-style-transform.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/element-style-transform.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"element-style-transform.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/element-style-transform.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAK1F,4DAA4D;AAC5D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QA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