ooxml-ui 1.43.0 → 1.45.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/{chunk-NH5ZSZMI.js → chunk-2YRHRV4H.js} +1 -1
- package/dist/{chunk-JWBWLGEY.js → chunk-LPI7LT4B.js} +2 -2
- package/dist/{chunk-2ZYRZANE.js → chunk-MWDG776V.js} +1 -1
- package/dist/{chunk-I57TCM2Q.js → chunk-UEFVC6V4.js} +1 -1
- package/dist/{chunk-M4ARYL3L.js → chunk-ZTLP52FH.js} +1 -1
- package/dist/controls.js +1 -1
- package/dist/docx.js +4 -4
- package/dist/index.js +4 -4
- package/dist/pptx/{chart-3d-view-scene-CGLU6ISD.mjs → chart-3d-view-scene-7LIMCTEM.mjs} +3 -2
- package/dist/pptx/{chart-3d-view-scene-C7QUQTXD.cjs → chart-3d-view-scene-RCWYLVC3.cjs} +38 -37
- package/dist/pptx/{chunk-W2QJX2ON.mjs → chunk-2P6TH4ZE.mjs} +3 -0
- package/dist/pptx/{chunk-DH6EKOVI.mjs → chunk-3DJZBAQ2.mjs} +1 -1
- package/dist/pptx/{chunk-5BINBXFV.mjs → chunk-6JTQ7AG6.mjs} +3 -3
- package/dist/pptx/{chunk-P4NVINSK.cjs → chunk-CWBVJ4DC.cjs} +9257 -8918
- package/dist/pptx/chunk-FI2ATACZ.cjs +147 -0
- package/dist/pptx/chunk-G5NEBI7N.mjs +135 -0
- package/dist/pptx/{chunk-CK6RYGB4.cjs → chunk-GYI2TFSW.cjs} +3 -126
- package/dist/pptx/{chunk-7FTP7OOA.mjs → chunk-HGT3CA36.mjs} +6221 -5845
- package/dist/pptx/{chunk-YZWKNFPU.cjs → chunk-HTFYAGHG.cjs} +2864 -167
- package/dist/pptx/{chunk-JP26TA3Q.cjs → chunk-LOUVYGWX.cjs} +12 -12
- package/dist/pptx/{chunk-UGSMMZU6.cjs → chunk-MZCAYJ7H.cjs} +49 -49
- package/dist/pptx/{chunk-BA4CJI4U.mjs → chunk-S6P7UWGZ.mjs} +3 -115
- package/dist/pptx/{chunk-ZHVKGGLQ.cjs → chunk-UFJBHFSD.cjs} +3 -0
- package/dist/pptx/{chunk-TW5UQCZS.mjs → chunk-XL5AF4U3.mjs} +2750 -175
- 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 +546 -459
- package/dist/pptx/dom/index.mjs +136 -50
- package/dist/pptx/export/html2canvas-clone.cjs +7 -6
- package/dist/pptx/export/html2canvas-clone.mjs +2 -1
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3917 -3664
- package/dist/pptx/index.mjs +6 -5
- 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 +17 -1
- package/dist/pptx/render/connector-dash.d.ts.map +1 -1
- package/dist/pptx/render/connector-path.d.ts +2 -2
- 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/customization/customization-controller.d.ts +8 -0
- package/dist/pptx/render/customization/customization-controller.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 +10 -0
- package/dist/pptx/render/dash-pattern.d.ts.map +1 -0
- package/dist/pptx/render/dash-square-cap.d.ts +34 -0
- package/dist/pptx/render/dash-square-cap.d.ts.map +1 -0
- package/dist/pptx/render/deck-webfont-outlines.d.ts +25 -0
- package/dist/pptx/render/deck-webfont-outlines.d.ts.map +1 -0
- package/dist/pptx/render/deck-webfont-readiness.d.ts +59 -0
- package/dist/pptx/render/deck-webfont-readiness.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 +22 -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/google-webfonts.d.ts +11 -1
- package/dist/pptx/render/google-webfonts.d.ts.map +1 -1
- package/dist/pptx/render/gradient-svg-image.d.ts +29 -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 +15 -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/options/font-download-policy.d.ts +52 -0
- package/dist/pptx/render/options/font-download-policy.d.ts.map +1 -0
- package/dist/pptx/render/options/index.d.ts +1 -0
- package/dist/pptx/render/options/index.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-tabs-advanced.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options.d.ts +2 -0
- package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +46 -2
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-run-build.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-trailing-break.d.ts +15 -0
- package/dist/pptx/render/paragraph-trailing-break.d.ts.map +1 -0
- 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/shape-path-gradient-fill.d.ts +20 -0
- package/dist/pptx/render/shape-path-gradient-fill.d.ts.map +1 -0
- 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-attr-escape.d.ts +30 -0
- package/dist/pptx/render/svg-attr-escape.d.ts.map +1 -0
- package/dist/pptx/render/svg-gradient-paint.d.ts +6 -1
- 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 +37 -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-body-top-snap.d.ts +43 -0
- package/dist/pptx/render/text-body-top-snap.d.ts.map +1 -0
- package/dist/pptx/render/text-design-tracking.d.ts +20 -0
- package/dist/pptx/render/text-design-tracking.d.ts.map +1 -0
- package/dist/pptx/render/text-line-height.d.ts +8 -0
- package/dist/pptx/render/text-line-height.d.ts.map +1 -1
- package/dist/pptx/render/text-metric-tracking.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-fit.d.ts +51 -0
- package/dist/pptx/render/text-warp-arch-fit.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-arch.d.ts +65 -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-envelope-measure.d.ts +5 -0
- package/dist/pptx/render/text-warp-envelope-measure.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-glyph-outline.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-outline-webfont-fetch.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 +3 -1
- package/dist/pptx/render/text-warp.d.ts.map +1 -1
- package/dist/pptx/render/visual-effects.d.ts +11 -21
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-UP6DYY42.cjs → smartart-insert-preview-R7USUBIX.cjs} +8 -7
- package/dist/pptx/{smartart-insert-preview-DXFDFDSC.mjs → smartart-insert-preview-ZKVFXFSI.mjs} +7 -6
- package/dist/teams.js +2 -2
- package/dist/visio.js +23 -6
- package/dist/xlsx.js +7 -7
- package/package.json +2 -2
|
@@ -1,178 +1,179 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHTFYAGHG_cjs = require('../chunk-HTFYAGHG.cjs');
|
|
4
|
+
require('../chunk-FI2ATACZ.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 chunkHTFYAGHG_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 chunkHTFYAGHG_cjs.DEFAULT_PALETTE; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "GRIDLINE_COLOR", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkHTFYAGHG_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 chunkHTFYAGHG_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 chunkHTFYAGHG_cjs.ZERO_LINE_COLOR; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "axisTickValues", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkHTFYAGHG_cjs.axisTickValues; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "buildCategoryLabels", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkHTFYAGHG_cjs.buildCategoryLabels; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "buildChartViewModel", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkHTFYAGHG_cjs.buildChartViewModel; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "buildFallbackViewModel", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkHTFYAGHG_cjs.buildFallbackViewModel; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "buildGridlinesAndLabels", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkHTFYAGHG_cjs.buildGridlinesAndLabels; }
|
|
46
47
|
});
|
|
47
48
|
Object.defineProperty(exports, "buildLegend", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkHTFYAGHG_cjs.buildLegend; }
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(exports, "buildMarkTooltip", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkHTFYAGHG_cjs.buildMarkTooltip; }
|
|
54
55
|
});
|
|
55
56
|
Object.defineProperty(exports, "buildPieViewModel", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkHTFYAGHG_cjs.buildPieViewModel; }
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(exports, "buildRadarViewModel", {
|
|
60
61
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkHTFYAGHG_cjs.buildRadarViewModel; }
|
|
62
63
|
});
|
|
63
64
|
Object.defineProperty(exports, "buildZeroLine", {
|
|
64
65
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkHTFYAGHG_cjs.buildZeroLine; }
|
|
66
67
|
});
|
|
67
68
|
Object.defineProperty(exports, "chartPreserveAspectRatio", {
|
|
68
69
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkHTFYAGHG_cjs.chartPreserveAspectRatio; }
|
|
70
71
|
});
|
|
71
72
|
Object.defineProperty(exports, "clipStackedSegment", {
|
|
72
73
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkHTFYAGHG_cjs.clipStackedSegment; }
|
|
74
75
|
});
|
|
75
76
|
Object.defineProperty(exports, "computeBarRects", {
|
|
76
77
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkHTFYAGHG_cjs.computeBarRects; }
|
|
78
79
|
});
|
|
79
80
|
Object.defineProperty(exports, "computeBubbleRadius", {
|
|
80
81
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkHTFYAGHG_cjs.computeBubbleRadius; }
|
|
82
83
|
});
|
|
83
84
|
Object.defineProperty(exports, "computeLinePoints", {
|
|
84
85
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkHTFYAGHG_cjs.computeLinePoints; }
|
|
86
87
|
});
|
|
87
88
|
Object.defineProperty(exports, "computePieLayout", {
|
|
88
89
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkHTFYAGHG_cjs.computePieLayout; }
|
|
90
91
|
});
|
|
91
92
|
Object.defineProperty(exports, "computePieSlicePath", {
|
|
92
93
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkHTFYAGHG_cjs.computePieSlicePath; }
|
|
94
95
|
});
|
|
95
96
|
Object.defineProperty(exports, "computePieSlices", {
|
|
96
97
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkHTFYAGHG_cjs.computePieSlices; }
|
|
98
99
|
});
|
|
99
100
|
Object.defineProperty(exports, "computePlotLayout", {
|
|
100
101
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkHTFYAGHG_cjs.computePlotLayout; }
|
|
102
103
|
});
|
|
103
104
|
Object.defineProperty(exports, "computeRadarPoints", {
|
|
104
105
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkHTFYAGHG_cjs.computeRadarPoints; }
|
|
106
107
|
});
|
|
107
108
|
Object.defineProperty(exports, "computeScatterDots", {
|
|
108
109
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkHTFYAGHG_cjs.computeScatterDots; }
|
|
110
111
|
});
|
|
111
112
|
Object.defineProperty(exports, "computeScatterXDomain", {
|
|
112
113
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkHTFYAGHG_cjs.computeScatterXDomain; }
|
|
114
115
|
});
|
|
115
116
|
Object.defineProperty(exports, "computeStackedBarRects", {
|
|
116
117
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkHTFYAGHG_cjs.computeStackedBarRects; }
|
|
118
119
|
});
|
|
119
120
|
Object.defineProperty(exports, "computeStackedValueRange", {
|
|
120
121
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkHTFYAGHG_cjs.computeStackedValueRange; }
|
|
122
123
|
});
|
|
123
124
|
Object.defineProperty(exports, "computeValueRange", {
|
|
124
125
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkHTFYAGHG_cjs.computeValueRange2; }
|
|
126
127
|
});
|
|
127
128
|
Object.defineProperty(exports, "formatAxisValue", {
|
|
128
129
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkHTFYAGHG_cjs.formatAxisValue2; }
|
|
130
131
|
});
|
|
131
132
|
Object.defineProperty(exports, "linePointsToSvgString", {
|
|
132
133
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkHTFYAGHG_cjs.linePointsToSvgString; }
|
|
134
135
|
});
|
|
135
136
|
Object.defineProperty(exports, "paletteColor", {
|
|
136
137
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkHTFYAGHG_cjs.paletteColor2; }
|
|
138
139
|
});
|
|
139
140
|
Object.defineProperty(exports, "radarAngle", {
|
|
140
141
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkHTFYAGHG_cjs.radarAngle; }
|
|
142
143
|
});
|
|
143
144
|
Object.defineProperty(exports, "radarRingPoints", {
|
|
144
145
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkHTFYAGHG_cjs.radarRingPoints; }
|
|
146
147
|
});
|
|
147
148
|
Object.defineProperty(exports, "resolveChartKind", {
|
|
148
149
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkHTFYAGHG_cjs.resolveChartKind; }
|
|
150
151
|
});
|
|
151
152
|
Object.defineProperty(exports, "resolveLegendAnchorPosition", {
|
|
152
153
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkHTFYAGHG_cjs.resolveLegendAnchorPosition; }
|
|
154
155
|
});
|
|
155
156
|
Object.defineProperty(exports, "seriesColor", {
|
|
156
157
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkHTFYAGHG_cjs.seriesColor2; }
|
|
158
159
|
});
|
|
159
160
|
Object.defineProperty(exports, "seriesXValues", {
|
|
160
161
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkHTFYAGHG_cjs.seriesXValues; }
|
|
162
163
|
});
|
|
163
164
|
Object.defineProperty(exports, "stackedBarWidth", {
|
|
164
165
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkHTFYAGHG_cjs.stackedBarWidth; }
|
|
166
167
|
});
|
|
167
168
|
Object.defineProperty(exports, "stackedSegmentExtent", {
|
|
168
169
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkHTFYAGHG_cjs.stackedSegmentExtent; }
|
|
170
171
|
});
|
|
171
172
|
Object.defineProperty(exports, "valueToY", {
|
|
172
173
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkHTFYAGHG_cjs.valueToY2; }
|
|
174
175
|
});
|
|
175
176
|
Object.defineProperty(exports, "withManualLayouts", {
|
|
176
177
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkHTFYAGHG_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-XL5AF4U3.mjs';
|
|
2
|
+
import '../chunk-G5NEBI7N.mjs';
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHTFYAGHG_cjs = require('../chunk-HTFYAGHG.cjs');
|
|
4
|
+
require('../chunk-FI2ATACZ.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 chunkHTFYAGHG_cjs.buildRegionMapViewModel; }
|
|
10
11
|
});
|
|
11
12
|
Object.defineProperty(exports, "buildWaterfallViewModel", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkHTFYAGHG_cjs.buildWaterfallViewModel; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "normalizeValue", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkHTFYAGHG_cjs.normalizeValue; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "resolveRegionCode", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkHTFYAGHG_cjs.resolveRegionCode; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "sequentialColorScale", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkHTFYAGHG_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-XL5AF4U3.mjs';
|
|
2
|
+
import '../chunk-G5NEBI7N.mjs';
|
|
@@ -26,6 +26,22 @@ 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;
|
|
32
|
+
/** The `a:ln` fields {@link connectorSquareCapPath} reads. */
|
|
33
|
+
export interface ConnectorDashStyle {
|
|
34
|
+
strokeDash?: string | undefined;
|
|
35
|
+
lineCap?: 'flat' | 'rnd' | 'sq' | undefined;
|
|
36
|
+
customDashSegments?: ReadonlyArray<DashSegment> | undefined;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The path data a connector's painted line must use to show PowerPoint's
|
|
40
|
+
* overshoot at the two ends of a dashed square-cap line (see `dash-square-cap`),
|
|
41
|
+
* or `undefined` when its own geometry is right as it is. `d` is the connector's
|
|
42
|
+
* absolute `M`/`L` path (`M x1,y1 L x2,y2` for a straight one). A line with
|
|
43
|
+
* arrowheads or several strands is left alone: markers would attach to the
|
|
44
|
+
* extra sub-paths.
|
|
45
|
+
*/
|
|
46
|
+
export declare function connectorSquareCapPath(d: string, style: ConnectorDashStyle | undefined, strokeWidth: number, hasMarkersOrStrands: boolean): string | undefined;
|
|
31
47
|
//# 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;
|
|
1
|
+
{"version":3,"file":"connector-dash.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/connector-dash.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,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;AAED,8DAA8D;AAC9D,MAAM,WAAW,kBAAkB;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,kBAAkB,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CAC5D;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACrC,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,kBAAkB,GAAG,SAAS,EACrC,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,OAAO,GAC1B,MAAM,GAAG,SAAS,CAWpB"}
|
|
@@ -16,7 +16,7 @@ import type { RouterRect } from './connector-router.js';
|
|
|
16
16
|
export { CONNECTOR_HIT_MIN_WIDTH, connectorHitStrokeWidth } from './connector-hit-target.js';
|
|
17
17
|
export { markerPath, normalizeArrow } from './connector-markers.js';
|
|
18
18
|
export type { ArrowSize, MarkerShape } from './connector-markers.js';
|
|
19
|
-
export { buildDashArray } from './connector-dash.js';
|
|
19
|
+
export { buildDashArray, connectorSquareCapPath } from './connector-dash.js';
|
|
20
20
|
export type { DashSegment } from './connector-dash.js';
|
|
21
21
|
export { connectorAdjustmentFraction, connectorBendFraction } from './connector-elbow-geometry.js';
|
|
22
22
|
export type { ElbowSegments } from './connector-elbow-geometry.js';
|
|
@@ -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;
|
|
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;AASnD,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,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,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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AG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC,EACvE,QAAQ,EAAE,OAAO,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GACjB,MAAM,GAAG,SAAS,CAYpB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gBAAgB,GACxB,iBAAiB,CA+GnB;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"}
|
|
@@ -16,6 +16,7 @@ import type { BackstageCardId } from '../backstage-cards.js';
|
|
|
16
16
|
import type { CanvasContextMenuCommandId } from '../canvas-context-menu-commands.js';
|
|
17
17
|
import type { ContextMenuCommandId } from '../context-menu-commands.js';
|
|
18
18
|
import type { EditorKeyActionName } from '../editor-keymap.js';
|
|
19
|
+
import type { GoogleFontsOption } from '../google-webfonts.js';
|
|
19
20
|
import type { ViewerOptionPrimitive } from '../options/viewer-options.js';
|
|
20
21
|
import type { RibbonContextualTabId, ToolbarButtonId, ToolbarTabId } from '../toolbar-actions.js';
|
|
21
22
|
import type { ResolvedCustomization } from './customization-resolve.js';
|
|
@@ -93,6 +94,13 @@ export interface ViewerCustomizationController {
|
|
|
93
94
|
* drop it.
|
|
94
95
|
*/
|
|
95
96
|
setAllowExternalContent(allow: boolean | undefined): void;
|
|
97
|
+
/**
|
|
98
|
+
* Apply the host `googleFonts` value: `false` (or an invalid mirror URL)
|
|
99
|
+
* locks the Trust Center setting `trust.allowFontDownloads` off, a valid
|
|
100
|
+
* `{ baseUrl }` locks it on, `undefined` leaves it to the user. Kept
|
|
101
|
+
* beside the customisation like {@link setAllowExternalContent}.
|
|
102
|
+
*/
|
|
103
|
+
setGoogleFonts(host: GoogleFontsOption | undefined): void;
|
|
96
104
|
}
|
|
97
105
|
/** Create the store for one viewer instance, seeded with `initial`. */
|
|
98
106
|
export declare function createCustomizationController(initial?: ViewerCustomization): ViewerCustomizationController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customization-controller.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/customization/customization-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"customization-controller.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/customization/customization-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG5D,OAAO,KAAK,EAAE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uE;AACvE,wBAAgB,6BAA6B,CAC5C,OAAO,CAAC,EAAE,mBAAmB,GAC3B,6BAA6B,CA4I/B"}
|
|
@@ -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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerPoint's measured dash patterns. The logic lives in the core
|
|
3
|
+
* (`ooxml-core/drawingml`, `dash-pattern.ts`) so other formats can use it;
|
|
4
|
+
* this module keeps the render-layer exports in place.
|
|
5
|
+
*
|
|
6
|
+
* @module render/dash-pattern
|
|
7
|
+
*/
|
|
8
|
+
export { capCompensatedDashArray, dashPatternUnits, dashPenWidth, isDashedStroke, } from 'ooxml-core/drawingml';
|
|
9
|
+
export type { DashSegmentInput } from 'ooxml-core/drawingml';
|
|
10
|
+
//# 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;;;;;;GAMG;AACH,OAAO,EACN,uBAAuB,EACvB,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACd,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where PowerPoint puts the ends of a DASHED line with square caps.
|
|
3
|
+
*
|
|
4
|
+
* Measured on its own 1280x720 exports (0.75 pt to 9 pt, all ten presets): a
|
|
5
|
+
* square cap is applied to the line, not to every dash. The interior dashes
|
|
6
|
+
* are the flat dashes of the pattern; the FIRST dash reaches back past the
|
|
7
|
+
* start of the line by half the pen width, and the LAST one reaches past the
|
|
8
|
+
* end by half the pen width when the line ends inside a dash (a line that ends
|
|
9
|
+
* in a gap gains nothing). SVG's own `square` cap would lengthen every dash, so
|
|
10
|
+
* a dashed square line is stroked with `butt` caps (`svgLineCap(cap, true)`)
|
|
11
|
+
* and these two overshoots are drawn as extra sub-paths: a dash pattern
|
|
12
|
+
* restarts at every sub-path, and each sub-path here is shorter than the
|
|
13
|
+
* pattern's first dash, so it is painted solid.
|
|
14
|
+
*
|
|
15
|
+
* Only a single sub-path of absolute `M`/`L` (a straight line or a polyline,
|
|
16
|
+
* which covers straight and bent connectors and the line presets) is
|
|
17
|
+
* rewritten; curves, closed outlines and anything else come back unchanged.
|
|
18
|
+
*
|
|
19
|
+
* Pure and framework-agnostic.
|
|
20
|
+
*
|
|
21
|
+
* @module render/dash-square-cap
|
|
22
|
+
*/
|
|
23
|
+
import type { DashSegmentInput } from './dash-pattern.js';
|
|
24
|
+
/**
|
|
25
|
+
* The path data of a dashed square-cap line with PowerPoint's overshoot at its
|
|
26
|
+
* two ends (see the module comment), or `d` unchanged when it does not apply.
|
|
27
|
+
*
|
|
28
|
+
* @param d Absolute `M`/`L` path data of one open sub-path.
|
|
29
|
+
* @param strokeWidth The authored stroke width in px.
|
|
30
|
+
* @param dashType The `a:prstDash` token (`custom` with `customSegments`).
|
|
31
|
+
* @param lineCap `a:ln/@cap`; anything but `sq` returns `d`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function squareCapDashedPathData(d: string, strokeWidth: number, dashType: string | undefined, lineCap: string | undefined, customSegments?: ReadonlyArray<DashSegmentInput>): string;
|
|
34
|
+
//# sourceMappingURL=dash-square-cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dash-square-cap.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/dash-square-cap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA4CvD;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACtC,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,GAC9C,MAAM,CAoCR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { PptxEmbeddedFont, PptxSlide } from 'ooxml-core/pptx';
|
|
2
|
+
import type { FetchLike } from './text-warp-outline-webfont-fetch.js';
|
|
3
|
+
/** What {@link loadDeckWebfontOutlines} needs from a `GlyphOutlineFontCache`. */
|
|
4
|
+
export interface WebfontOutlineRegistrar {
|
|
5
|
+
registerFontBytes(family: string, bold: boolean, italic: boolean, bytes: Uint8Array): boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Families used by glyph-envelope WordArt anywhere in `slides`. */
|
|
8
|
+
export declare function collectGlyphEnvelopeFontFamilies(slides: readonly PptxSlide[]): Set<string>;
|
|
9
|
+
export interface LoadDeckWebfontOutlinesOptions {
|
|
10
|
+
slides: readonly PptxSlide[];
|
|
11
|
+
embeddedFonts: readonly PptxEmbeddedFont[];
|
|
12
|
+
/** From `resolveGoogleFontsCss2Base`; `null` disables the fallback. */
|
|
13
|
+
googleFontsBase: string | null;
|
|
14
|
+
cache: WebfontOutlineRegistrar;
|
|
15
|
+
/** Checked between fetches; a superseded deck stops registering. */
|
|
16
|
+
isCancelled?: () => boolean;
|
|
17
|
+
fetchImpl?: FetchLike;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Fetch and register the outline bytes of the webfonts glyph-envelope
|
|
21
|
+
* WordArt uses. Resolves `true` when any font was registered (the binding
|
|
22
|
+
* then repaints), `false` otherwise. Best-effort; never rejects.
|
|
23
|
+
*/
|
|
24
|
+
export declare function loadDeckWebfontOutlines(options: LoadDeckWebfontOutlinesOptions): Promise<boolean>;
|
|
25
|
+
//# sourceMappingURL=deck-webfont-outlines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck-webfont-outlines.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/deck-webfont-outlines.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAe,gBAAgB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGnE,iFAAiF;AACjF,MAAM,WAAW,uBAAuB;IACvC,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC;CAC9F;AAaD,oEAAoE;AACpE,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAQ1F;AAED,MAAM,WAAW,8BAA8B;IAC9C,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B,aAAa,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC3C,uEAAuE;IACvE,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,uBAAuB,CAAC;IAC/B,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;CACtB;AAOD;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC5C,OAAO,EAAE,8BAA8B,GACrC,OAAO,CAAC,OAAO,CAAC,CAgClB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { PptxEmbeddedFont, PptxSlide } from 'ooxml-core/pptx';
|
|
2
|
+
/** How long the wait may last before the deck is shown with stand-in faces. */
|
|
3
|
+
export declare const DECK_WEBFONT_TIMEOUT_MS = 8000;
|
|
4
|
+
/** How long the wait lasts before progress is reported. */
|
|
5
|
+
export declare const DECK_WEBFONT_PROGRESS_DELAY_MS = 400;
|
|
6
|
+
/** Progress of the wait, by webfont family (the names the stylesheet serves). */
|
|
7
|
+
export interface DeckWebfontProgress {
|
|
8
|
+
/** Families whose faces have all loaded or failed. */
|
|
9
|
+
loaded: number;
|
|
10
|
+
total: number;
|
|
11
|
+
/** Every family being downloaded, in deck order. */
|
|
12
|
+
families: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
/** Outcome of {@link prepareDeckWebfonts}. */
|
|
15
|
+
export interface DeckWebfontReadiness {
|
|
16
|
+
/** The stylesheet the binding's `<link>` now points at, or `null`. */
|
|
17
|
+
href: string | null;
|
|
18
|
+
/** Webfont families the deck waited for (canonical catalogue names). */
|
|
19
|
+
families: readonly string[];
|
|
20
|
+
/** Referenced families with no installed, embedded or catalogue face. */
|
|
21
|
+
unavailable: readonly string[];
|
|
22
|
+
/** The wait ended at `timeoutMs` with faces still downloading. */
|
|
23
|
+
timedOut: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface PrepareDeckWebfontsOptions {
|
|
26
|
+
document: Document;
|
|
27
|
+
/** The binding's managed `<link>` id (the one its webfont effect syncs). */
|
|
28
|
+
linkId: string;
|
|
29
|
+
/** The slides the binding's webfont effect will read, so both resolve one href. */
|
|
30
|
+
slides: readonly PptxSlide[];
|
|
31
|
+
embeddedFonts: readonly PptxEmbeddedFont[];
|
|
32
|
+
/** From `resolveGoogleFontsCss2Base`; `null` disables the fallback and the wait. */
|
|
33
|
+
googleFontsBase: string | null;
|
|
34
|
+
onProgress?: (progress: DeckWebfontProgress) => void;
|
|
35
|
+
timeoutMs?: number;
|
|
36
|
+
progressDelayMs?: number;
|
|
37
|
+
isLocallyInstalled?: (family: string) => boolean;
|
|
38
|
+
}
|
|
39
|
+
/** One face the slides draw: CSS `font` shorthand plus the characters drawn in it. */
|
|
40
|
+
interface FaceUse {
|
|
41
|
+
family: string;
|
|
42
|
+
font: string;
|
|
43
|
+
chars: Set<string>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The faces the slides draw in `candidates`, by served family, and the
|
|
47
|
+
* candidates the catalogue does not serve.
|
|
48
|
+
*/
|
|
49
|
+
export declare function collectDeckWebfontFaces(slides: readonly PptxSlide[], candidates: readonly string[]): {
|
|
50
|
+
faces: Map<string, FaceUse[]>;
|
|
51
|
+
unavailable: string[];
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Inject the deck's webfont stylesheet and wait (bounded) for the faces its
|
|
55
|
+
* slides draw, as described in the module comment. Never rejects.
|
|
56
|
+
*/
|
|
57
|
+
export declare function prepareDeckWebfonts(options: PrepareDeckWebfontsOptions): Promise<DeckWebfontReadiness>;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=deck-webfont-readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck-webfont-readiness.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/deck-webfont-readiness.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAe,gBAAgB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAWhF,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAC5C,2DAA2D;AAC3D,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAKlD,iFAAiF;AACjF,MAAM,WAAW,mBAAmB;IACnC,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B;AAED,8CAA8C;AAC9C,MAAM,WAA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
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
|