ooxml-core 1.41.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/PptxHandler-73QIJ6SD.cjs +14 -0
- package/dist/{PptxHandler-3AGIITR7.mjs → PptxHandler-A2J4PCOB.mjs} +2 -2
- package/dist/PptxHandler-OGLVLX2T.mjs +5 -0
- package/dist/{PresentationBuilder-MZBKYOYD.cjs → PresentationBuilder-6S5PJXXF.cjs} +6 -6
- package/dist/{PresentationBuilder-JNID4B4Z.mjs → PresentationBuilder-APJKCMVS.mjs} +2 -2
- package/dist/{PresentationBuilder-5DPKFUXP.mjs → PresentationBuilder-F3BWDERK.mjs} +3 -3
- package/dist/automation/index.cjs +75 -89
- package/dist/automation/index.mjs +75 -89
- package/dist/chart/index.cjs +5 -5
- package/dist/chart/index.mjs +5 -5
- package/dist/{chunk-LRBWCRQ3.cjs → chunk-3J6VIKLP.cjs} +3 -3
- package/dist/chunk-CODMW5KF.cjs +110 -0
- package/dist/{chunk-KKVD3R6O.mjs → chunk-CPSTCCRD.mjs} +4 -4
- package/dist/{chunk-P3WAKBVS.mjs → chunk-IPV3J3I5.mjs} +82 -90
- package/dist/{chunk-6LGRRQ3K.mjs → chunk-MXA67O7R.mjs} +1 -1
- package/dist/{chunk-JXR6YWBW.mjs → chunk-N6X5CJZP.mjs} +125 -126
- package/dist/chunk-O3YGBYGZ.mjs +104 -0
- package/dist/{chunk-75KBNUKS.cjs → chunk-QZPOPUI5.cjs} +82 -89
- package/dist/{chunk-UE23HF2N.mjs → chunk-VKFKEVHK.mjs} +1 -1
- package/dist/{chunk-DD7COXWR.mjs → chunk-VV724DWE.mjs} +19 -7
- package/dist/{chunk-HTELXT2N.mjs → chunk-XVB3CBNM.mjs} +19 -6
- package/dist/{chunk-3BIFRTU4.cjs → chunk-YNQRXFTC.cjs} +1283 -1270
- package/dist/{chunk-ZYCBJKAE.mjs → chunk-ZUEN4RQG.mjs} +1 -1
- package/dist/diagram/index.cjs +499 -370
- package/dist/diagram/index.d.ts +1 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +495 -371
- package/dist/docx/embedded.cjs +67 -89
- package/dist/docx/embedded.mjs +67 -89
- package/dist/docx/index.cjs +118 -106
- package/dist/docx/index.mjs +118 -106
- package/dist/docx/layout/index.cjs +118 -106
- package/dist/docx/layout/index.mjs +118 -106
- package/dist/docx/load/index.cjs +67 -89
- package/dist/docx/load/index.mjs +67 -89
- package/dist/docx/shape-svg.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +72 -94
- package/dist/docx/ui/index.mjs +72 -94
- package/dist/drawingml/dash-pattern.d.ts +61 -0
- package/dist/drawingml/dash-pattern.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +249 -43
- package/dist/drawingml/index.d.ts +3 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +241 -44
- package/dist/drawingml/rect-path-gradient.d.ts +5 -0
- package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
- package/dist/drawingml/shape-path-gradient.d.ts +57 -0
- package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
- package/dist/geometry/index.cjs +68 -90
- package/dist/geometry/index.mjs +68 -90
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +2 -2
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -1
- package/dist/index.cjs +686 -489
- package/dist/index.mjs +686 -489
- package/dist/pptx/automation/index.cjs +355 -191
- package/dist/pptx/automation/index.d.ts +11 -17
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +156 -71
- package/dist/pptx/chunks/{elements-6BMEOo7i.d.ts → elements-PBugbKtv.d.ts} +3 -873
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts → index-BJuR8GLL.d.ts} +4 -4
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts.map → index-BJuR8GLL.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DvN0TkJJ.d.ts → index-Rbvl2WaM.d.ts} +14 -10
- package/dist/pptx/chunks/index-Rbvl2WaM.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-Dija_Wth.d.ts → index-xoJGYTgQ.d.ts} +5 -3
- package/dist/pptx/chunks/index-xoJGYTgQ.d.ts.map +1 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-DorONr3h.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
- package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +169 -96
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +69 -91
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +8 -37
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +214 -129
- package/dist/pptx/index.d.ts +6 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/teams/index.cjs +136 -91
- package/dist/teams/index.mjs +136 -91
- package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
- package/dist/text/index.cjs +8 -0
- package/dist/text/index.mjs +8 -0
- package/dist/visio/index.cjs +8 -0
- package/dist/visio/index.mjs +8 -0
- package/dist/visio/ui/index.cjs +8 -0
- package/dist/visio/ui/index.mjs +8 -0
- package/dist/xlsx/collab/index.cjs +67 -89
- package/dist/xlsx/collab/index.mjs +67 -89
- package/dist/xlsx/index.cjs +116 -108
- package/dist/xlsx/index.mjs +116 -108
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +67 -89
- package/dist/xlsx/load/index.mjs +67 -89
- package/dist/xlsx/ui/index.cjs +72 -94
- package/dist/xlsx/ui/index.mjs +72 -94
- package/package.json +1 -1
- package/dist/PptxHandler-EL4E4SPH.mjs +0 -5
- package/dist/PptxHandler-OIZ3R3DJ.cjs +0 -14
- package/dist/chunk-3IT6ZD7K.mjs +0 -213
- package/dist/chunk-FRUB573B.cjs +0 -219
- package/dist/pptx/chunks/elements-6BMEOo7i.d.ts.map +0 -1
- package/dist/pptx/chunks/index-Dija_Wth.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-DorONr3h.d.ts.map +0 -1
package/dist/docx/index.cjs
CHANGED
|
@@ -7548,7 +7548,7 @@ function lerpStops(a2, b, t) {
|
|
|
7548
7548
|
opacity: oa + (ob - oa) * t
|
|
7549
7549
|
};
|
|
7550
7550
|
}
|
|
7551
|
-
function
|
|
7551
|
+
function gradientColorAt(stops, position2) {
|
|
7552
7552
|
const first3 = stops[0];
|
|
7553
7553
|
const last = stops[stops.length - 1];
|
|
7554
7554
|
if (position2 <= first3.position) {
|
|
@@ -7603,7 +7603,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
|
|
|
7603
7603
|
if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
|
|
7604
7604
|
for (let i2 = bands; i2 >= 0; i2 -= 1) {
|
|
7605
7605
|
const t = i2 / bands;
|
|
7606
|
-
const { color, opacity } =
|
|
7606
|
+
const { color, opacity } = gradientColorAt(sorted, t * 100);
|
|
7607
7607
|
const left = lerpEdge(inner.left, 0, t);
|
|
7608
7608
|
const top = lerpEdge(inner.top, 0, t);
|
|
7609
7609
|
const right = lerpEdge(inner.right, 100, t);
|
|
@@ -8949,6 +8949,48 @@ function drawingPathData(path3, width, height) {
|
|
|
8949
8949
|
return out.join(" ");
|
|
8950
8950
|
}
|
|
8951
8951
|
|
|
8952
|
+
// drawingml/dash-pattern.ts
|
|
8953
|
+
var PRESET_PATTERNS = {
|
|
8954
|
+
dash: [4, 3],
|
|
8955
|
+
dot: [1, 3],
|
|
8956
|
+
lgDash: [8, 3],
|
|
8957
|
+
dashDot: [4, 3, 1, 3],
|
|
8958
|
+
lgDashDot: [8, 3, 1, 3],
|
|
8959
|
+
lgDashDotDot: [8, 3, 1, 3, 1, 3],
|
|
8960
|
+
sysDash: [3, 1],
|
|
8961
|
+
sysDot: [1, 1],
|
|
8962
|
+
sysDashDot: [3, 1, 1, 1],
|
|
8963
|
+
sysDashDotDot: [3, 1, 1, 1, 1, 1]
|
|
8964
|
+
};
|
|
8965
|
+
var CUSTOM_DASH_UNIT = 1e5;
|
|
8966
|
+
var FALLBACK_CUSTOM_PATTERN = [3, 2];
|
|
8967
|
+
function dashPenWidth(strokeWidth) {
|
|
8968
|
+
if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
|
|
8969
|
+
return Math.max(1, Math.ceil(strokeWidth - 0.5));
|
|
8970
|
+
}
|
|
8971
|
+
function dashPatternUnits(dashType, customSegments) {
|
|
8972
|
+
if (!dashType || dashType === "solid") return void 0;
|
|
8973
|
+
if (dashType === "custom") {
|
|
8974
|
+
const pattern = ([]).flatMap((seg) => [
|
|
8975
|
+
Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
|
|
8976
|
+
Math.max(0, seg.space) / CUSTOM_DASH_UNIT
|
|
8977
|
+
]);
|
|
8978
|
+
return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
|
|
8979
|
+
}
|
|
8980
|
+
return PRESET_PATTERNS[dashType];
|
|
8981
|
+
}
|
|
8982
|
+
function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
|
|
8983
|
+
const pen = dashPenWidth(strokeWidth);
|
|
8984
|
+
const out = [];
|
|
8985
|
+
for (let i2 = 0; i2 < pattern.length; i2 += 1) {
|
|
8986
|
+
const len = (pattern[i2] ?? 0) * pen;
|
|
8987
|
+
{
|
|
8988
|
+
out.push(len);
|
|
8989
|
+
}
|
|
8990
|
+
}
|
|
8991
|
+
return out.map((n2) => Number(n2.toFixed(4))).join(" ");
|
|
8992
|
+
}
|
|
8993
|
+
|
|
8952
8994
|
// geometry/preset-shape-exact-dsl.ts
|
|
8953
8995
|
function g(line4) {
|
|
8954
8996
|
const [name2, ...rest] = line4.trim().split(/\s+/);
|
|
@@ -9079,84 +9121,22 @@ var triangle = (g3, dir) => g3.poly([
|
|
|
9079
9121
|
[D * dir, 0],
|
|
9080
9122
|
[-D * dir, D]
|
|
9081
9123
|
]);
|
|
9082
|
-
var
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
[
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
[-8.5, -13.5],
|
|
9099
|
-
[-9.3, -17.2],
|
|
9100
|
-
[-7.8, -19.5],
|
|
9101
|
-
[-4, -22.5],
|
|
9102
|
-
[-3.3, -21.7],
|
|
9103
|
-
[-1.8, -21.7],
|
|
9104
|
-
[-1, -23.2],
|
|
9105
|
-
[0.5, -23.2],
|
|
9106
|
-
[1.2, -21.7],
|
|
9107
|
-
[2.7, -21.7],
|
|
9108
|
-
[3.5, -22.5],
|
|
9109
|
-
[8, -18.7],
|
|
9110
|
-
[8.7, -17.2],
|
|
9111
|
-
[8, -16.5],
|
|
9112
|
-
[8, -15],
|
|
9113
|
-
[9.5, -14.2],
|
|
9114
|
-
[9.5, -13.5],
|
|
9115
|
-
[8, -12.7],
|
|
9116
|
-
[8.7, -9.7],
|
|
9117
|
-
[5, -6],
|
|
9118
|
-
[2, -6],
|
|
9119
|
-
[-2.5, -2.2],
|
|
9120
|
-
[-3.3, 0.8],
|
|
9121
|
-
[-5.5, 2.3],
|
|
9122
|
-
[-4.8, 6.8],
|
|
9123
|
-
[-6.3, 7.5],
|
|
9124
|
-
[-6.3, 18],
|
|
9125
|
-
[-4.8, 18],
|
|
9126
|
-
[-4, 17.3],
|
|
9127
|
-
[4.2, 17.3],
|
|
9128
|
-
[4.2, 6.8],
|
|
9129
|
-
[6.5, 5.3],
|
|
9130
|
-
[6.5, 3.8],
|
|
9131
|
-
[8, 3],
|
|
9132
|
-
[8, 1.5],
|
|
9133
|
-
[8.7, 0.8],
|
|
9134
|
-
[13.2, 0],
|
|
9135
|
-
[17, -4.5],
|
|
9136
|
-
[18.5, -4.5],
|
|
9137
|
-
[18.5, -6],
|
|
9138
|
-
[17.7, -6.7],
|
|
9139
|
-
[18.5, -8.2],
|
|
9140
|
-
[18.5, -15],
|
|
9141
|
-
[20, -15.7],
|
|
9142
|
-
[20, -18],
|
|
9143
|
-
[17.7, -19.5],
|
|
9144
|
-
[17.7, -21],
|
|
9145
|
-
[15.5, -24.7],
|
|
9146
|
-
[15.5, -27],
|
|
9147
|
-
[14, -27],
|
|
9148
|
-
[13.2, -27.7],
|
|
9149
|
-
[13.2, -29.2],
|
|
9150
|
-
[9.5, -30],
|
|
9151
|
-
[8.7, -30.7],
|
|
9152
|
-
[8.7, -32.2],
|
|
9153
|
-
[5.7, -31.5],
|
|
9154
|
-
[4.2, -33.7],
|
|
9155
|
-
[2.7, -33.7],
|
|
9156
|
-
[2, -32.2],
|
|
9157
|
-
[-2.5, -32.2],
|
|
9158
|
-
[-3.3, -33.7]
|
|
9159
|
-
];
|
|
9124
|
+
var U = 90;
|
|
9125
|
+
var question = (g3) => {
|
|
9126
|
+
const x = (v) => g3.x(v * U);
|
|
9127
|
+
const y = (v) => g3.y(v * U);
|
|
9128
|
+
const r = (v) => g3.len(v * U);
|
|
9129
|
+
return [
|
|
9130
|
+
`M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
|
|
9131
|
+
`A ${r(0.108)} ${r(0.162)} 0 5400000`,
|
|
9132
|
+
`A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
|
|
9133
|
+
`L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
|
|
9134
|
+
`A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
|
|
9135
|
+
`A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
|
|
9136
|
+
`A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
|
|
9137
|
+
`L ${x(-0.214)} ${y(-0.162)} Z`
|
|
9138
|
+
].join(" ");
|
|
9139
|
+
};
|
|
9160
9140
|
var MOVIE = [
|
|
9161
9141
|
[-33.75, -16.5],
|
|
9162
9142
|
[-33.75, -3],
|
|
@@ -9263,8 +9243,8 @@ var buttons = {
|
|
|
9263
9243
|
)
|
|
9264
9244
|
]),
|
|
9265
9245
|
actionButtonHelp: build("actionButtonHelp", (g3) => [
|
|
9266
|
-
darken(g3
|
|
9267
|
-
darken(g3.circle(
|
|
9246
|
+
darken(question(g3)),
|
|
9247
|
+
darken(g3.circle(0, 0.295 * U, 0.08 * U))
|
|
9268
9248
|
]),
|
|
9269
9249
|
actionButtonInformation: build("actionButtonInformation", (g3) => [
|
|
9270
9250
|
darken(g3.circle(0, 0.4, 34)),
|
|
@@ -12587,12 +12567,46 @@ var leftRightUpArrow2 = exactDef(
|
|
|
12587
12567
|
)
|
|
12588
12568
|
]
|
|
12589
12569
|
);
|
|
12570
|
+
var swooshArrow3 = exactDef(
|
|
12571
|
+
"swooshArrow",
|
|
12572
|
+
{ adj1: 25e3, adj2: 16667 },
|
|
12573
|
+
[
|
|
12574
|
+
"a1 pin 1 adj1 75000",
|
|
12575
|
+
"maxAdj2 */ 70000 w ss",
|
|
12576
|
+
"a2 pin 0 adj2 maxAdj2",
|
|
12577
|
+
"ad1 */ h a1 100000",
|
|
12578
|
+
"ad2 */ ss a2 100000",
|
|
12579
|
+
"xB +- r 0 ad2",
|
|
12580
|
+
"yB +- t ssd8 0",
|
|
12581
|
+
"alfa */ cd4 1 14",
|
|
12582
|
+
"dx0 tan ssd8 alfa",
|
|
12583
|
+
"xC +- xB 0 dx0",
|
|
12584
|
+
"dx1 tan ad1 alfa",
|
|
12585
|
+
"yF +- yB ad1 0",
|
|
12586
|
+
"xF +- xB dx1 0",
|
|
12587
|
+
"xE +- xF dx0 0",
|
|
12588
|
+
"yE +- yF ssd8 0",
|
|
12589
|
+
"dy2 +- yE 0 t",
|
|
12590
|
+
"dy22 */ dy2 1 2",
|
|
12591
|
+
"dy3 */ h 1 20",
|
|
12592
|
+
"yD +- dy22 0 dy3",
|
|
12593
|
+
"dy4 */ hd6 1 1",
|
|
12594
|
+
"yP1 +- hd6 dy4 0",
|
|
12595
|
+
"xP1 val wd6",
|
|
12596
|
+
"dy5 */ hd6 1 2",
|
|
12597
|
+
"yP2 +- yF dy5 0",
|
|
12598
|
+
"xP2 val wd4"
|
|
12599
|
+
],
|
|
12600
|
+
"l t r b",
|
|
12601
|
+
[p("M l b Q xP1 yP1 xB yB L xC t L r yD L xE yE L xF yF Q xP2 yP2 l b Z")]
|
|
12602
|
+
);
|
|
12590
12603
|
var EXACT_ARROW_PRESET_DEFINITIONS = {
|
|
12591
12604
|
leftRightArrow: leftRightArrow2,
|
|
12592
12605
|
upDownArrow: upDownArrow2,
|
|
12593
12606
|
quadArrow: quadArrow2,
|
|
12594
12607
|
leftUpArrow: leftUpArrow2,
|
|
12595
|
-
leftRightUpArrow: leftRightUpArrow2
|
|
12608
|
+
leftRightUpArrow: leftRightUpArrow2,
|
|
12609
|
+
swooshArrow: swooshArrow3
|
|
12596
12610
|
};
|
|
12597
12611
|
|
|
12598
12612
|
// geometry/preset-shape-definitions-exact-circular.ts
|
|
@@ -13398,10 +13412,13 @@ var verticalScroll = exactDef(
|
|
|
13398
13412
|
p(
|
|
13399
13413
|
"M ch ch2 A ch2 ch2 10800000 5400000 L x6 t A ch2 ch2 16200000 10800000 L x4 ch L x4 y4 A ch2 ch2 0 5400000 L ch2 b A ch2 ch2 5400000 10800000 L ch y3 Z"
|
|
13400
13414
|
),
|
|
13401
|
-
p(
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13415
|
+
p(
|
|
13416
|
+
"M ch y4 A ch2 ch2 0 5400000 A ch2 ch2 5400000 10800000 A ch4 ch4 16200000 10800000 Z M x3b ch2 A ch2 ch2 0 5400000 A ch4 ch4 5400000 10800000 Z",
|
|
13417
|
+
{
|
|
13418
|
+
fill: "darkenLess",
|
|
13419
|
+
stroke: false
|
|
13420
|
+
}
|
|
13421
|
+
),
|
|
13405
13422
|
p(
|
|
13406
13423
|
"M x3 t A ch2 ch2 16200000 10800000 L x4 ch M ch2 y4 L ch y4 M x3b ch2 L x3 ch2 A ch4 ch4 16200000 -10800000",
|
|
13407
13424
|
{ fill: "none" }
|
|
@@ -13417,10 +13434,13 @@ var horizontalScroll = exactDef(
|
|
|
13417
13434
|
p(
|
|
13418
13435
|
"M ch2 ch A ch2 ch2 16200000 -5400000 L l x6 A ch2 ch2 10800000 -10800000 L ch x4 L y4 x4 A ch2 ch2 5400000 -5400000 L r ch2 A ch2 ch2 0 -10800000 L y3 ch Z"
|
|
13419
13436
|
),
|
|
13420
|
-
p(
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13437
|
+
p(
|
|
13438
|
+
"M y4 ch A ch2 ch2 5400000 -5400000 A ch2 ch2 0 -10800000 A ch4 ch4 10800000 -10800000 Z M ch2 x3b A ch2 ch2 5400000 -5400000 A ch4 ch4 0 -10800000 Z",
|
|
13439
|
+
{
|
|
13440
|
+
fill: "darkenLess",
|
|
13441
|
+
stroke: false
|
|
13442
|
+
}
|
|
13443
|
+
),
|
|
13424
13444
|
p(
|
|
13425
13445
|
"M l x3 A ch2 ch2 10800000 -10800000 L ch x4 M y4 ch2 L y4 ch M ch2 x3b L ch2 x3 A ch4 ch4 10800000 10800000",
|
|
13426
13446
|
{ fill: "none" }
|
|
@@ -38575,7 +38595,7 @@ function radarSvg(model, area) {
|
|
|
38575
38595
|
}
|
|
38576
38596
|
|
|
38577
38597
|
// chart/render/chart-svg-hierarchy.ts
|
|
38578
|
-
var
|
|
38598
|
+
var colorAt = (model, index) => {
|
|
38579
38599
|
const first3 = model.series[0];
|
|
38580
38600
|
const colors = first3?.pointColors;
|
|
38581
38601
|
return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first3?.color ?? "#4472C4";
|
|
@@ -38604,7 +38624,7 @@ function treemapSvg(model, area) {
|
|
|
38604
38624
|
}
|
|
38605
38625
|
out.push(`<g data-chart-series="${cell2.seriesIndex}" data-chart-point="${cell2.pointIndex}">`);
|
|
38606
38626
|
out.push(
|
|
38607
|
-
rect2(cell2.x, cell2.y, cell2.w, cell2.h,
|
|
38627
|
+
rect2(cell2.x, cell2.y, cell2.w, cell2.h, colorAt(model, cell2.colorIndex)).replace(
|
|
38608
38628
|
"/>",
|
|
38609
38629
|
' rx="2"/>'
|
|
38610
38630
|
)
|
|
@@ -38643,7 +38663,7 @@ function sunburstSvg(model, area) {
|
|
|
38643
38663
|
);
|
|
38644
38664
|
for (const arc3 of arcs)
|
|
38645
38665
|
out.push(
|
|
38646
|
-
`<path d="${arc3.d}" fill="${
|
|
38666
|
+
`<path d="${arc3.d}" fill="${colorAt(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
|
|
38647
38667
|
);
|
|
38648
38668
|
const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
|
|
38649
38669
|
for (const arc3 of model.hierarchy?.labels === false ? [] : arcs) {
|
|
@@ -53030,16 +53050,6 @@ var DEFAULT_DRAWN_SHAPE = { widthPx: 96, heightPx: 64 };
|
|
|
53030
53050
|
var isDirectionalPreset = (preset) => /^(line|straightConnector1|bentConnector\d|curvedConnector\d)$/.test(preset);
|
|
53031
53051
|
|
|
53032
53052
|
// docx/shape-svg.ts
|
|
53033
|
-
var DASHES2 = {
|
|
53034
|
-
dash: "4 3",
|
|
53035
|
-
sysDash: "3 1",
|
|
53036
|
-
dot: "1 2",
|
|
53037
|
-
sysDot: "1 1",
|
|
53038
|
-
dashDot: "4 3 1 3",
|
|
53039
|
-
lgDash: "8 3",
|
|
53040
|
-
lgDashDot: "8 3 1 3",
|
|
53041
|
-
sysDashDot: "3 1 1 1"
|
|
53042
|
-
};
|
|
53043
53053
|
var escapeXml = (text2) => text2.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
53044
53054
|
var round2 = (value) => Math.round(value * 100) / 100;
|
|
53045
53055
|
function shapeColorCss(color, theme) {
|
|
@@ -53060,11 +53070,13 @@ function fillPaint(fill, theme) {
|
|
|
53060
53070
|
}
|
|
53061
53071
|
function shapeAppearance(spec, theme) {
|
|
53062
53072
|
const line4 = spec.line;
|
|
53073
|
+
const strokeWidthPx = round2((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL);
|
|
53074
|
+
const dashUnits = dashPatternUnits(line4?.dash);
|
|
53063
53075
|
return {
|
|
53064
53076
|
fill: isLinePreset(spec.preset) ? "none" : fillPaint(spec.fill, theme),
|
|
53065
53077
|
stroke: linePaint(line4?.fill, theme),
|
|
53066
|
-
strokeWidthPx
|
|
53067
|
-
...
|
|
53078
|
+
strokeWidthPx,
|
|
53079
|
+
...dashUnits ? { dash: capCompensatedDashArray(dashUnits, strokeWidthPx) } : {}
|
|
53068
53080
|
};
|
|
53069
53081
|
}
|
|
53070
53082
|
var luminance = (css) => {
|
package/dist/docx/index.mjs
CHANGED
|
@@ -7542,7 +7542,7 @@ function lerpStops(a2, b, t) {
|
|
|
7542
7542
|
opacity: oa + (ob - oa) * t
|
|
7543
7543
|
};
|
|
7544
7544
|
}
|
|
7545
|
-
function
|
|
7545
|
+
function gradientColorAt(stops, position2) {
|
|
7546
7546
|
const first3 = stops[0];
|
|
7547
7547
|
const last = stops[stops.length - 1];
|
|
7548
7548
|
if (position2 <= first3.position) {
|
|
@@ -7597,7 +7597,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
|
|
|
7597
7597
|
if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
|
|
7598
7598
|
for (let i2 = bands; i2 >= 0; i2 -= 1) {
|
|
7599
7599
|
const t = i2 / bands;
|
|
7600
|
-
const { color, opacity } =
|
|
7600
|
+
const { color, opacity } = gradientColorAt(sorted, t * 100);
|
|
7601
7601
|
const left = lerpEdge(inner.left, 0, t);
|
|
7602
7602
|
const top = lerpEdge(inner.top, 0, t);
|
|
7603
7603
|
const right = lerpEdge(inner.right, 100, t);
|
|
@@ -8943,6 +8943,48 @@ function drawingPathData(path3, width, height) {
|
|
|
8943
8943
|
return out.join(" ");
|
|
8944
8944
|
}
|
|
8945
8945
|
|
|
8946
|
+
// drawingml/dash-pattern.ts
|
|
8947
|
+
var PRESET_PATTERNS = {
|
|
8948
|
+
dash: [4, 3],
|
|
8949
|
+
dot: [1, 3],
|
|
8950
|
+
lgDash: [8, 3],
|
|
8951
|
+
dashDot: [4, 3, 1, 3],
|
|
8952
|
+
lgDashDot: [8, 3, 1, 3],
|
|
8953
|
+
lgDashDotDot: [8, 3, 1, 3, 1, 3],
|
|
8954
|
+
sysDash: [3, 1],
|
|
8955
|
+
sysDot: [1, 1],
|
|
8956
|
+
sysDashDot: [3, 1, 1, 1],
|
|
8957
|
+
sysDashDotDot: [3, 1, 1, 1, 1, 1]
|
|
8958
|
+
};
|
|
8959
|
+
var CUSTOM_DASH_UNIT = 1e5;
|
|
8960
|
+
var FALLBACK_CUSTOM_PATTERN = [3, 2];
|
|
8961
|
+
function dashPenWidth(strokeWidth) {
|
|
8962
|
+
if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
|
|
8963
|
+
return Math.max(1, Math.ceil(strokeWidth - 0.5));
|
|
8964
|
+
}
|
|
8965
|
+
function dashPatternUnits(dashType, customSegments) {
|
|
8966
|
+
if (!dashType || dashType === "solid") return void 0;
|
|
8967
|
+
if (dashType === "custom") {
|
|
8968
|
+
const pattern = ([]).flatMap((seg) => [
|
|
8969
|
+
Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
|
|
8970
|
+
Math.max(0, seg.space) / CUSTOM_DASH_UNIT
|
|
8971
|
+
]);
|
|
8972
|
+
return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
|
|
8973
|
+
}
|
|
8974
|
+
return PRESET_PATTERNS[dashType];
|
|
8975
|
+
}
|
|
8976
|
+
function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
|
|
8977
|
+
const pen = dashPenWidth(strokeWidth);
|
|
8978
|
+
const out = [];
|
|
8979
|
+
for (let i2 = 0; i2 < pattern.length; i2 += 1) {
|
|
8980
|
+
const len = (pattern[i2] ?? 0) * pen;
|
|
8981
|
+
{
|
|
8982
|
+
out.push(len);
|
|
8983
|
+
}
|
|
8984
|
+
}
|
|
8985
|
+
return out.map((n2) => Number(n2.toFixed(4))).join(" ");
|
|
8986
|
+
}
|
|
8987
|
+
|
|
8946
8988
|
// geometry/preset-shape-exact-dsl.ts
|
|
8947
8989
|
function g(line4) {
|
|
8948
8990
|
const [name2, ...rest] = line4.trim().split(/\s+/);
|
|
@@ -9073,84 +9115,22 @@ var triangle = (g3, dir) => g3.poly([
|
|
|
9073
9115
|
[D * dir, 0],
|
|
9074
9116
|
[-D * dir, D]
|
|
9075
9117
|
]);
|
|
9076
|
-
var
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
[
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
[-8.5, -13.5],
|
|
9093
|
-
[-9.3, -17.2],
|
|
9094
|
-
[-7.8, -19.5],
|
|
9095
|
-
[-4, -22.5],
|
|
9096
|
-
[-3.3, -21.7],
|
|
9097
|
-
[-1.8, -21.7],
|
|
9098
|
-
[-1, -23.2],
|
|
9099
|
-
[0.5, -23.2],
|
|
9100
|
-
[1.2, -21.7],
|
|
9101
|
-
[2.7, -21.7],
|
|
9102
|
-
[3.5, -22.5],
|
|
9103
|
-
[8, -18.7],
|
|
9104
|
-
[8.7, -17.2],
|
|
9105
|
-
[8, -16.5],
|
|
9106
|
-
[8, -15],
|
|
9107
|
-
[9.5, -14.2],
|
|
9108
|
-
[9.5, -13.5],
|
|
9109
|
-
[8, -12.7],
|
|
9110
|
-
[8.7, -9.7],
|
|
9111
|
-
[5, -6],
|
|
9112
|
-
[2, -6],
|
|
9113
|
-
[-2.5, -2.2],
|
|
9114
|
-
[-3.3, 0.8],
|
|
9115
|
-
[-5.5, 2.3],
|
|
9116
|
-
[-4.8, 6.8],
|
|
9117
|
-
[-6.3, 7.5],
|
|
9118
|
-
[-6.3, 18],
|
|
9119
|
-
[-4.8, 18],
|
|
9120
|
-
[-4, 17.3],
|
|
9121
|
-
[4.2, 17.3],
|
|
9122
|
-
[4.2, 6.8],
|
|
9123
|
-
[6.5, 5.3],
|
|
9124
|
-
[6.5, 3.8],
|
|
9125
|
-
[8, 3],
|
|
9126
|
-
[8, 1.5],
|
|
9127
|
-
[8.7, 0.8],
|
|
9128
|
-
[13.2, 0],
|
|
9129
|
-
[17, -4.5],
|
|
9130
|
-
[18.5, -4.5],
|
|
9131
|
-
[18.5, -6],
|
|
9132
|
-
[17.7, -6.7],
|
|
9133
|
-
[18.5, -8.2],
|
|
9134
|
-
[18.5, -15],
|
|
9135
|
-
[20, -15.7],
|
|
9136
|
-
[20, -18],
|
|
9137
|
-
[17.7, -19.5],
|
|
9138
|
-
[17.7, -21],
|
|
9139
|
-
[15.5, -24.7],
|
|
9140
|
-
[15.5, -27],
|
|
9141
|
-
[14, -27],
|
|
9142
|
-
[13.2, -27.7],
|
|
9143
|
-
[13.2, -29.2],
|
|
9144
|
-
[9.5, -30],
|
|
9145
|
-
[8.7, -30.7],
|
|
9146
|
-
[8.7, -32.2],
|
|
9147
|
-
[5.7, -31.5],
|
|
9148
|
-
[4.2, -33.7],
|
|
9149
|
-
[2.7, -33.7],
|
|
9150
|
-
[2, -32.2],
|
|
9151
|
-
[-2.5, -32.2],
|
|
9152
|
-
[-3.3, -33.7]
|
|
9153
|
-
];
|
|
9118
|
+
var U = 90;
|
|
9119
|
+
var question = (g3) => {
|
|
9120
|
+
const x = (v) => g3.x(v * U);
|
|
9121
|
+
const y = (v) => g3.y(v * U);
|
|
9122
|
+
const r = (v) => g3.len(v * U);
|
|
9123
|
+
return [
|
|
9124
|
+
`M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
|
|
9125
|
+
`A ${r(0.108)} ${r(0.162)} 0 5400000`,
|
|
9126
|
+
`A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
|
|
9127
|
+
`L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
|
|
9128
|
+
`A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
|
|
9129
|
+
`A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
|
|
9130
|
+
`A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
|
|
9131
|
+
`L ${x(-0.214)} ${y(-0.162)} Z`
|
|
9132
|
+
].join(" ");
|
|
9133
|
+
};
|
|
9154
9134
|
var MOVIE = [
|
|
9155
9135
|
[-33.75, -16.5],
|
|
9156
9136
|
[-33.75, -3],
|
|
@@ -9257,8 +9237,8 @@ var buttons = {
|
|
|
9257
9237
|
)
|
|
9258
9238
|
]),
|
|
9259
9239
|
actionButtonHelp: build("actionButtonHelp", (g3) => [
|
|
9260
|
-
darken(g3
|
|
9261
|
-
darken(g3.circle(
|
|
9240
|
+
darken(question(g3)),
|
|
9241
|
+
darken(g3.circle(0, 0.295 * U, 0.08 * U))
|
|
9262
9242
|
]),
|
|
9263
9243
|
actionButtonInformation: build("actionButtonInformation", (g3) => [
|
|
9264
9244
|
darken(g3.circle(0, 0.4, 34)),
|
|
@@ -12581,12 +12561,46 @@ var leftRightUpArrow2 = exactDef(
|
|
|
12581
12561
|
)
|
|
12582
12562
|
]
|
|
12583
12563
|
);
|
|
12564
|
+
var swooshArrow3 = exactDef(
|
|
12565
|
+
"swooshArrow",
|
|
12566
|
+
{ adj1: 25e3, adj2: 16667 },
|
|
12567
|
+
[
|
|
12568
|
+
"a1 pin 1 adj1 75000",
|
|
12569
|
+
"maxAdj2 */ 70000 w ss",
|
|
12570
|
+
"a2 pin 0 adj2 maxAdj2",
|
|
12571
|
+
"ad1 */ h a1 100000",
|
|
12572
|
+
"ad2 */ ss a2 100000",
|
|
12573
|
+
"xB +- r 0 ad2",
|
|
12574
|
+
"yB +- t ssd8 0",
|
|
12575
|
+
"alfa */ cd4 1 14",
|
|
12576
|
+
"dx0 tan ssd8 alfa",
|
|
12577
|
+
"xC +- xB 0 dx0",
|
|
12578
|
+
"dx1 tan ad1 alfa",
|
|
12579
|
+
"yF +- yB ad1 0",
|
|
12580
|
+
"xF +- xB dx1 0",
|
|
12581
|
+
"xE +- xF dx0 0",
|
|
12582
|
+
"yE +- yF ssd8 0",
|
|
12583
|
+
"dy2 +- yE 0 t",
|
|
12584
|
+
"dy22 */ dy2 1 2",
|
|
12585
|
+
"dy3 */ h 1 20",
|
|
12586
|
+
"yD +- dy22 0 dy3",
|
|
12587
|
+
"dy4 */ hd6 1 1",
|
|
12588
|
+
"yP1 +- hd6 dy4 0",
|
|
12589
|
+
"xP1 val wd6",
|
|
12590
|
+
"dy5 */ hd6 1 2",
|
|
12591
|
+
"yP2 +- yF dy5 0",
|
|
12592
|
+
"xP2 val wd4"
|
|
12593
|
+
],
|
|
12594
|
+
"l t r b",
|
|
12595
|
+
[p("M l b Q xP1 yP1 xB yB L xC t L r yD L xE yE L xF yF Q xP2 yP2 l b Z")]
|
|
12596
|
+
);
|
|
12584
12597
|
var EXACT_ARROW_PRESET_DEFINITIONS = {
|
|
12585
12598
|
leftRightArrow: leftRightArrow2,
|
|
12586
12599
|
upDownArrow: upDownArrow2,
|
|
12587
12600
|
quadArrow: quadArrow2,
|
|
12588
12601
|
leftUpArrow: leftUpArrow2,
|
|
12589
|
-
leftRightUpArrow: leftRightUpArrow2
|
|
12602
|
+
leftRightUpArrow: leftRightUpArrow2,
|
|
12603
|
+
swooshArrow: swooshArrow3
|
|
12590
12604
|
};
|
|
12591
12605
|
|
|
12592
12606
|
// geometry/preset-shape-definitions-exact-circular.ts
|
|
@@ -13392,10 +13406,13 @@ var verticalScroll = exactDef(
|
|
|
13392
13406
|
p(
|
|
13393
13407
|
"M ch ch2 A ch2 ch2 10800000 5400000 L x6 t A ch2 ch2 16200000 10800000 L x4 ch L x4 y4 A ch2 ch2 0 5400000 L ch2 b A ch2 ch2 5400000 10800000 L ch y3 Z"
|
|
13394
13408
|
),
|
|
13395
|
-
p(
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
|
|
13409
|
+
p(
|
|
13410
|
+
"M ch y4 A ch2 ch2 0 5400000 A ch2 ch2 5400000 10800000 A ch4 ch4 16200000 10800000 Z M x3b ch2 A ch2 ch2 0 5400000 A ch4 ch4 5400000 10800000 Z",
|
|
13411
|
+
{
|
|
13412
|
+
fill: "darkenLess",
|
|
13413
|
+
stroke: false
|
|
13414
|
+
}
|
|
13415
|
+
),
|
|
13399
13416
|
p(
|
|
13400
13417
|
"M x3 t A ch2 ch2 16200000 10800000 L x4 ch M ch2 y4 L ch y4 M x3b ch2 L x3 ch2 A ch4 ch4 16200000 -10800000",
|
|
13401
13418
|
{ fill: "none" }
|
|
@@ -13411,10 +13428,13 @@ var horizontalScroll = exactDef(
|
|
|
13411
13428
|
p(
|
|
13412
13429
|
"M ch2 ch A ch2 ch2 16200000 -5400000 L l x6 A ch2 ch2 10800000 -10800000 L ch x4 L y4 x4 A ch2 ch2 5400000 -5400000 L r ch2 A ch2 ch2 0 -10800000 L y3 ch Z"
|
|
13413
13430
|
),
|
|
13414
|
-
p(
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13431
|
+
p(
|
|
13432
|
+
"M y4 ch A ch2 ch2 5400000 -5400000 A ch2 ch2 0 -10800000 A ch4 ch4 10800000 -10800000 Z M ch2 x3b A ch2 ch2 5400000 -5400000 A ch4 ch4 0 -10800000 Z",
|
|
13433
|
+
{
|
|
13434
|
+
fill: "darkenLess",
|
|
13435
|
+
stroke: false
|
|
13436
|
+
}
|
|
13437
|
+
),
|
|
13418
13438
|
p(
|
|
13419
13439
|
"M l x3 A ch2 ch2 10800000 -10800000 L ch x4 M y4 ch2 L y4 ch M ch2 x3b L ch2 x3 A ch4 ch4 10800000 10800000",
|
|
13420
13440
|
{ fill: "none" }
|
|
@@ -38569,7 +38589,7 @@ function radarSvg(model, area) {
|
|
|
38569
38589
|
}
|
|
38570
38590
|
|
|
38571
38591
|
// chart/render/chart-svg-hierarchy.ts
|
|
38572
|
-
var
|
|
38592
|
+
var colorAt = (model, index) => {
|
|
38573
38593
|
const first3 = model.series[0];
|
|
38574
38594
|
const colors = first3?.pointColors;
|
|
38575
38595
|
return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first3?.color ?? "#4472C4";
|
|
@@ -38598,7 +38618,7 @@ function treemapSvg(model, area) {
|
|
|
38598
38618
|
}
|
|
38599
38619
|
out.push(`<g data-chart-series="${cell2.seriesIndex}" data-chart-point="${cell2.pointIndex}">`);
|
|
38600
38620
|
out.push(
|
|
38601
|
-
rect2(cell2.x, cell2.y, cell2.w, cell2.h,
|
|
38621
|
+
rect2(cell2.x, cell2.y, cell2.w, cell2.h, colorAt(model, cell2.colorIndex)).replace(
|
|
38602
38622
|
"/>",
|
|
38603
38623
|
' rx="2"/>'
|
|
38604
38624
|
)
|
|
@@ -38637,7 +38657,7 @@ function sunburstSvg(model, area) {
|
|
|
38637
38657
|
);
|
|
38638
38658
|
for (const arc3 of arcs)
|
|
38639
38659
|
out.push(
|
|
38640
|
-
`<path d="${arc3.d}" fill="${
|
|
38660
|
+
`<path d="${arc3.d}" fill="${colorAt(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
|
|
38641
38661
|
);
|
|
38642
38662
|
const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
|
|
38643
38663
|
for (const arc3 of model.hierarchy?.labels === false ? [] : arcs) {
|
|
@@ -53024,16 +53044,6 @@ var DEFAULT_DRAWN_SHAPE = { widthPx: 96, heightPx: 64 };
|
|
|
53024
53044
|
var isDirectionalPreset = (preset) => /^(line|straightConnector1|bentConnector\d|curvedConnector\d)$/.test(preset);
|
|
53025
53045
|
|
|
53026
53046
|
// docx/shape-svg.ts
|
|
53027
|
-
var DASHES2 = {
|
|
53028
|
-
dash: "4 3",
|
|
53029
|
-
sysDash: "3 1",
|
|
53030
|
-
dot: "1 2",
|
|
53031
|
-
sysDot: "1 1",
|
|
53032
|
-
dashDot: "4 3 1 3",
|
|
53033
|
-
lgDash: "8 3",
|
|
53034
|
-
lgDashDot: "8 3 1 3",
|
|
53035
|
-
sysDashDot: "3 1 1 1"
|
|
53036
|
-
};
|
|
53037
53047
|
var escapeXml = (text2) => text2.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
53038
53048
|
var round2 = (value) => Math.round(value * 100) / 100;
|
|
53039
53049
|
function shapeColorCss(color, theme) {
|
|
@@ -53054,11 +53064,13 @@ function fillPaint(fill, theme) {
|
|
|
53054
53064
|
}
|
|
53055
53065
|
function shapeAppearance(spec, theme) {
|
|
53056
53066
|
const line4 = spec.line;
|
|
53067
|
+
const strokeWidthPx = round2((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL);
|
|
53068
|
+
const dashUnits = dashPatternUnits(line4?.dash);
|
|
53057
53069
|
return {
|
|
53058
53070
|
fill: isLinePreset(spec.preset) ? "none" : fillPaint(spec.fill, theme),
|
|
53059
53071
|
stroke: linePaint(line4?.fill, theme),
|
|
53060
|
-
strokeWidthPx
|
|
53061
|
-
...
|
|
53072
|
+
strokeWidthPx,
|
|
53073
|
+
...dashUnits ? { dash: capCompensatedDashArray(dashUnits, strokeWidthPx) } : {}
|
|
53062
53074
|
};
|
|
53063
53075
|
}
|
|
53064
53076
|
var luminance = (css) => {
|