ooxml-core 1.41.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/{PptxHandler-3AGIITR7.mjs → PptxHandler-3VAVJDFB.mjs} +2 -2
- package/dist/PptxHandler-V23RDNEX.cjs +14 -0
- package/dist/PptxHandler-WB3KL2WH.mjs +5 -0
- package/dist/{PresentationBuilder-JNID4B4Z.mjs → PresentationBuilder-7LJMTRJ6.mjs} +2 -2
- package/dist/{PresentationBuilder-MZBKYOYD.cjs → PresentationBuilder-KHL6GONR.cjs} +6 -6
- package/dist/{PresentationBuilder-5DPKFUXP.mjs → PresentationBuilder-PY2GB4IG.mjs} +3 -3
- package/dist/automation/index.cjs +79 -91
- package/dist/automation/index.mjs +79 -91
- package/dist/chart/index.cjs +12 -9
- package/dist/chart/index.mjs +12 -9
- package/dist/{chunk-ZYCBJKAE.mjs → chunk-243ZYX2B.mjs} +1 -1
- package/dist/{chunk-LRBWCRQ3.cjs → chunk-3J6VIKLP.cjs} +3 -3
- package/dist/{chunk-DD7COXWR.mjs → chunk-4LEVL6ZW.mjs} +30 -13
- package/dist/chunk-CODMW5KF.cjs +110 -0
- package/dist/{chunk-HTELXT2N.mjs → chunk-HLYOHD2Z.mjs} +30 -12
- package/dist/{chunk-P3WAKBVS.mjs → chunk-IPV3J3I5.mjs} +82 -90
- package/dist/{chunk-6LGRRQ3K.mjs → chunk-JHYU7HGG.mjs} +1 -1
- package/dist/{chunk-JXR6YWBW.mjs → chunk-KCDLTVUI.mjs} +125 -126
- package/dist/chunk-O3YGBYGZ.mjs +104 -0
- package/dist/{chunk-75KBNUKS.cjs → chunk-QZPOPUI5.cjs} +82 -89
- package/dist/{chunk-3BIFRTU4.cjs → chunk-RNZQ2OU4.cjs} +1294 -1276
- package/dist/{chunk-UE23HF2N.mjs → chunk-VKFKEVHK.mjs} +1 -1
- package/dist/{chunk-KKVD3R6O.mjs → chunk-WEAWSXUX.mjs} +4 -4
- package/dist/diagram/index.cjs +499 -370
- package/dist/diagram/index.d.ts +1 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +495 -371
- package/dist/docx/embedded.cjs +67 -89
- package/dist/docx/embedded.mjs +67 -89
- package/dist/docx/index.cjs +125 -110
- package/dist/docx/index.mjs +125 -110
- package/dist/docx/layout/index.cjs +257 -110
- package/dist/docx/layout/index.d.ts +1 -0
- package/dist/docx/layout/index.d.ts.map +1 -1
- package/dist/docx/layout/index.mjs +257 -111
- package/dist/docx/layout/webfont-runs.d.ts +5 -0
- package/dist/docx/layout/webfont-runs.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +67 -89
- package/dist/docx/load/index.mjs +67 -89
- package/dist/docx/shape-svg.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +79 -98
- package/dist/docx/ui/index.mjs +79 -98
- package/dist/drawingml/dash-pattern.d.ts +61 -0
- package/dist/drawingml/dash-pattern.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +249 -43
- package/dist/drawingml/index.d.ts +3 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +241 -44
- package/dist/drawingml/rect-path-gradient.d.ts +5 -0
- package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
- package/dist/drawingml/shape-path-gradient.d.ts +57 -0
- package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
- package/dist/geometry/index.cjs +68 -90
- package/dist/geometry/index.mjs +68 -90
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +2 -2
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -1
- package/dist/index.cjs +2937 -493
- package/dist/index.mjs +2937 -493
- package/dist/pptx/automation/index.cjs +366 -197
- package/dist/pptx/automation/index.d.ts +11 -17
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +156 -71
- package/dist/pptx/chunks/{elements-6BMEOo7i.d.ts → elements-PBugbKtv.d.ts} +3 -873
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts → index-Bj-hur0D.d.ts} +4 -4
- package/dist/pptx/chunks/{index-BbXLv6As.d.ts.map → index-Bj-hur0D.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DvN0TkJJ.d.ts → index-CCJiD-Bm.d.ts} +14 -10
- package/dist/pptx/chunks/index-CCJiD-Bm.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-Dija_Wth.d.ts → index-CGNb1TV9.d.ts} +22 -4
- package/dist/pptx/chunks/index-CGNb1TV9.d.ts.map +1 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-DorONr3h.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
- package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +180 -102
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +69 -91
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +8 -37
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +225 -135
- package/dist/pptx/index.d.ts +6 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/teams/index.cjs +136 -91
- package/dist/teams/index.mjs +136 -91
- package/dist/text/css-font-family.d.ts.map +1 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
- package/dist/text/index.cjs +2252 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +2231 -1
- package/dist/text/metric-font-family.d.ts.map +1 -1
- package/dist/text/webfonts/font-weight-names.d.ts +66 -0
- package/dist/text/webfonts/font-weight-names.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-catalogue.d.ts +14 -0
- package/dist/text/webfonts/google-fonts-catalogue.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-lookup.d.ts +7 -0
- package/dist/text/webfonts/google-fonts-lookup.d.ts.map +1 -0
- package/dist/text/webfonts/google-fonts-request.d.ts +57 -0
- package/dist/text/webfonts/google-fonts-request.d.ts.map +1 -0
- package/dist/text/webfonts/index.d.ts +12 -0
- package/dist/text/webfonts/index.d.ts.map +1 -0
- package/dist/text/webfonts/metric-clones.d.ts +17 -0
- package/dist/text/webfonts/metric-clones.d.ts.map +1 -0
- package/dist/text/webfonts/webfont-faces.d.ts +24 -0
- package/dist/text/webfonts/webfont-faces.d.ts.map +1 -0
- package/dist/visio/index.cjs +64 -0
- package/dist/visio/index.d.ts +1 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +64 -1
- package/dist/visio/ui/index.cjs +8 -0
- package/dist/visio/ui/index.mjs +8 -0
- package/dist/visio/webfont-runs.d.ts +27 -0
- package/dist/visio/webfont-runs.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +67 -89
- package/dist/xlsx/collab/index.mjs +67 -89
- package/dist/xlsx/index.cjs +2253 -118
- package/dist/xlsx/index.mjs +2249 -119
- package/dist/xlsx/layout/font-stack.d.ts +8 -0
- package/dist/xlsx/layout/font-stack.d.ts.map +1 -0
- package/dist/xlsx/layout/index.d.ts +3 -1
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-view.d.ts.map +1 -1
- package/dist/xlsx/layout/style-view.d.ts +2 -0
- package/dist/xlsx/layout/style-view.d.ts.map +1 -1
- package/dist/xlsx/layout/webfont-runs.d.ts +11 -0
- package/dist/xlsx/layout/webfont-runs.d.ts.map +1 -0
- package/dist/xlsx/load/index.cjs +67 -89
- package/dist/xlsx/load/index.mjs +67 -89
- package/dist/xlsx/ui/commands/util.d.ts.map +1 -1
- package/dist/xlsx/ui/context.d.ts +5 -0
- package/dist/xlsx/ui/context.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/cell-paint.d.ts +3 -2
- package/dist/xlsx/ui/grid/cell-paint.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +2093 -102
- package/dist/xlsx/ui/index.mjs +2093 -103
- package/package.json +1 -1
- package/dist/PptxHandler-EL4E4SPH.mjs +0 -5
- package/dist/PptxHandler-OIZ3R3DJ.cjs +0 -14
- package/dist/chunk-3IT6ZD7K.mjs +0 -213
- package/dist/chunk-FRUB573B.cjs +0 -219
- package/dist/pptx/chunks/elements-6BMEOo7i.d.ts.map +0 -1
- package/dist/pptx/chunks/index-Dija_Wth.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-DorONr3h.d.ts.map +0 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// pptx/editor/render/table-layout.ts
|
|
2
|
+
var DEFAULT_INSERTED_ROW_HEIGHT = 40;
|
|
3
|
+
function createCell(text = "") {
|
|
4
|
+
return { text, style: {} };
|
|
5
|
+
}
|
|
6
|
+
function copyRows(data) {
|
|
7
|
+
return data.rows.map((row) => ({ ...row, cells: [...row.cells] }));
|
|
8
|
+
}
|
|
9
|
+
function updateIntersectingMerges(source, rows, edit) {
|
|
10
|
+
const isRowEdit = edit.axis === "row";
|
|
11
|
+
const inserting = edit.action === "insert";
|
|
12
|
+
const delta = inserting ? 1 : -1;
|
|
13
|
+
for (const [rowIndex, row] of source.rows.entries()) {
|
|
14
|
+
for (const [columnIndex, anchor] of row.cells.entries()) {
|
|
15
|
+
if (anchor.hMerge || anchor.vMerge) continue;
|
|
16
|
+
const rowSpan = anchor.rowSpan ?? 1;
|
|
17
|
+
const gridSpan = anchor.gridSpan ?? 1;
|
|
18
|
+
const start = isRowEdit ? rowIndex : columnIndex;
|
|
19
|
+
const span = isRowEdit ? rowSpan : gridSpan;
|
|
20
|
+
if (edit.index < start || edit.index >= start + span || (inserting ? edit.index === start : span === 1)) {
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
if (!Number.isInteger(rowSpan) || !Number.isInteger(gridSpan) || rowSpan < 1 || gridSpan < 1 || rowIndex + rowSpan > source.rows.length || columnIndex + gridSpan > source.columnWidths.length) {
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
const height = isRowEdit ? rowSpan + delta : rowSpan;
|
|
27
|
+
const width = isRowEdit ? gridSpan : gridSpan + delta;
|
|
28
|
+
const anchorRemoved = !inserting && edit.index === start;
|
|
29
|
+
for (let r = rowIndex; r < rowIndex + height; r++) {
|
|
30
|
+
for (let c = columnIndex; c < columnIndex + width; c++) {
|
|
31
|
+
const cell = rows[r]?.cells[c];
|
|
32
|
+
if (!cell) continue;
|
|
33
|
+
const firstRow = r === rowIndex;
|
|
34
|
+
const firstColumn = c === columnIndex;
|
|
35
|
+
const promote = anchorRemoved && firstRow && firstColumn;
|
|
36
|
+
const content = promote && anchor.text ? anchor : cell;
|
|
37
|
+
rows[r].cells[c] = {
|
|
38
|
+
...cell,
|
|
39
|
+
text: content.text,
|
|
40
|
+
textRuns: content.textRuns,
|
|
41
|
+
paragraphs: content.paragraphs,
|
|
42
|
+
style: promote ? cell.style ?? anchor.style : cell.style,
|
|
43
|
+
rowSpan: firstRow && height > 1 ? height : void 0,
|
|
44
|
+
gridSpan: firstColumn && width > 1 ? width : void 0,
|
|
45
|
+
hMerge: firstColumn ? void 0 : true,
|
|
46
|
+
vMerge: firstRow ? void 0 : true
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function normalizeWidths(widths) {
|
|
54
|
+
const sum = widths.reduce((total, width) => total + width, 0);
|
|
55
|
+
return sum > 0 ? widths.map((width) => width / sum) : widths;
|
|
56
|
+
}
|
|
57
|
+
function insertTableRow(tableData, rowIdx, position, cellTexts) {
|
|
58
|
+
const index = Math.max(0, Math.min(tableData.rows.length, rowIdx + Number(position === "below")));
|
|
59
|
+
const rows = copyRows(tableData);
|
|
60
|
+
rows.splice(index, 0, {
|
|
61
|
+
height: DEFAULT_INSERTED_ROW_HEIGHT,
|
|
62
|
+
cells: tableData.columnWidths.map((_, column) => createCell(cellTexts?.[column]))
|
|
63
|
+
});
|
|
64
|
+
updateIntersectingMerges(tableData, rows, { axis: "row", action: "insert", index });
|
|
65
|
+
return { ...tableData, rows };
|
|
66
|
+
}
|
|
67
|
+
function deleteTableRow(tableData, rowIdx) {
|
|
68
|
+
if (tableData.rows.length <= 1 || rowIdx < 0 || rowIdx >= tableData.rows.length) {
|
|
69
|
+
return tableData;
|
|
70
|
+
}
|
|
71
|
+
const rows = copyRows(tableData);
|
|
72
|
+
rows.splice(rowIdx, 1);
|
|
73
|
+
updateIntersectingMerges(tableData, rows, { axis: "row", action: "delete", index: rowIdx });
|
|
74
|
+
return { ...tableData, rows };
|
|
75
|
+
}
|
|
76
|
+
function insertTableColumn(tableData, colIdx, position, cellTexts) {
|
|
77
|
+
const count = tableData.columnWidths.length;
|
|
78
|
+
const index = Math.max(0, Math.min(count, colIdx + Number(position === "right")));
|
|
79
|
+
const columnWidths = [...tableData.columnWidths];
|
|
80
|
+
if (count === 0) {
|
|
81
|
+
columnWidths.push(1);
|
|
82
|
+
} else {
|
|
83
|
+
const neighbour = Math.min(index, count - 1);
|
|
84
|
+
const half = columnWidths[neighbour] / 2;
|
|
85
|
+
columnWidths[neighbour] = half;
|
|
86
|
+
columnWidths.splice(index, 0, half);
|
|
87
|
+
}
|
|
88
|
+
const rows = copyRows(tableData);
|
|
89
|
+
rows.forEach((row, rowIndex) => row.cells.splice(index, 0, createCell(cellTexts?.[rowIndex])));
|
|
90
|
+
updateIntersectingMerges(tableData, rows, { axis: "column", action: "insert", index });
|
|
91
|
+
return { ...tableData, rows, columnWidths: normalizeWidths(columnWidths) };
|
|
92
|
+
}
|
|
93
|
+
function deleteTableColumn(tableData, colIdx) {
|
|
94
|
+
if (tableData.columnWidths.length <= 1 || colIdx < 0 || colIdx >= tableData.columnWidths.length) {
|
|
95
|
+
return tableData;
|
|
96
|
+
}
|
|
97
|
+
const rows = copyRows(tableData);
|
|
98
|
+
rows.forEach((row) => row.cells.splice(colIdx, 1));
|
|
99
|
+
updateIntersectingMerges(tableData, rows, { axis: "column", action: "delete", index: colIdx });
|
|
100
|
+
const columnWidths = tableData.columnWidths.filter((_, index) => index !== colIdx);
|
|
101
|
+
return { ...tableData, rows, columnWidths: normalizeWidths(columnWidths) };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { DEFAULT_INSERTED_ROW_HEIGHT, deleteTableColumn, deleteTableRow, insertTableColumn, insertTableRow };
|
|
@@ -254,6 +254,20 @@ function xmlAttrNumber(node, name) {
|
|
|
254
254
|
const parsed = Number(raw);
|
|
255
255
|
return Number.isFinite(parsed) ? parsed : void 0;
|
|
256
256
|
}
|
|
257
|
+
function xmlAttrBool(node, name) {
|
|
258
|
+
const raw = xmlAttr(node, name);
|
|
259
|
+
if (raw === void 0) {
|
|
260
|
+
return void 0;
|
|
261
|
+
}
|
|
262
|
+
const normalized = raw.trim().toLowerCase();
|
|
263
|
+
if (normalized === "1" || normalized === "true") {
|
|
264
|
+
return true;
|
|
265
|
+
}
|
|
266
|
+
if (normalized === "0" || normalized === "false") {
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
return void 0;
|
|
270
|
+
}
|
|
257
271
|
function xmlText(node) {
|
|
258
272
|
if (!isXmlObject(node)) {
|
|
259
273
|
return coerceString(node);
|
|
@@ -6371,84 +6385,22 @@ var triangle = (g3, dir) => g3.poly([
|
|
|
6371
6385
|
[D * dir, 0],
|
|
6372
6386
|
[-D * dir, D]
|
|
6373
6387
|
]);
|
|
6374
|
-
var
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
[
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
[-8.5, -13.5],
|
|
6391
|
-
[-9.3, -17.2],
|
|
6392
|
-
[-7.8, -19.5],
|
|
6393
|
-
[-4, -22.5],
|
|
6394
|
-
[-3.3, -21.7],
|
|
6395
|
-
[-1.8, -21.7],
|
|
6396
|
-
[-1, -23.2],
|
|
6397
|
-
[0.5, -23.2],
|
|
6398
|
-
[1.2, -21.7],
|
|
6399
|
-
[2.7, -21.7],
|
|
6400
|
-
[3.5, -22.5],
|
|
6401
|
-
[8, -18.7],
|
|
6402
|
-
[8.7, -17.2],
|
|
6403
|
-
[8, -16.5],
|
|
6404
|
-
[8, -15],
|
|
6405
|
-
[9.5, -14.2],
|
|
6406
|
-
[9.5, -13.5],
|
|
6407
|
-
[8, -12.7],
|
|
6408
|
-
[8.7, -9.7],
|
|
6409
|
-
[5, -6],
|
|
6410
|
-
[2, -6],
|
|
6411
|
-
[-2.5, -2.2],
|
|
6412
|
-
[-3.3, 0.8],
|
|
6413
|
-
[-5.5, 2.3],
|
|
6414
|
-
[-4.8, 6.8],
|
|
6415
|
-
[-6.3, 7.5],
|
|
6416
|
-
[-6.3, 18],
|
|
6417
|
-
[-4.8, 18],
|
|
6418
|
-
[-4, 17.3],
|
|
6419
|
-
[4.2, 17.3],
|
|
6420
|
-
[4.2, 6.8],
|
|
6421
|
-
[6.5, 5.3],
|
|
6422
|
-
[6.5, 3.8],
|
|
6423
|
-
[8, 3],
|
|
6424
|
-
[8, 1.5],
|
|
6425
|
-
[8.7, 0.8],
|
|
6426
|
-
[13.2, 0],
|
|
6427
|
-
[17, -4.5],
|
|
6428
|
-
[18.5, -4.5],
|
|
6429
|
-
[18.5, -6],
|
|
6430
|
-
[17.7, -6.7],
|
|
6431
|
-
[18.5, -8.2],
|
|
6432
|
-
[18.5, -15],
|
|
6433
|
-
[20, -15.7],
|
|
6434
|
-
[20, -18],
|
|
6435
|
-
[17.7, -19.5],
|
|
6436
|
-
[17.7, -21],
|
|
6437
|
-
[15.5, -24.7],
|
|
6438
|
-
[15.5, -27],
|
|
6439
|
-
[14, -27],
|
|
6440
|
-
[13.2, -27.7],
|
|
6441
|
-
[13.2, -29.2],
|
|
6442
|
-
[9.5, -30],
|
|
6443
|
-
[8.7, -30.7],
|
|
6444
|
-
[8.7, -32.2],
|
|
6445
|
-
[5.7, -31.5],
|
|
6446
|
-
[4.2, -33.7],
|
|
6447
|
-
[2.7, -33.7],
|
|
6448
|
-
[2, -32.2],
|
|
6449
|
-
[-2.5, -32.2],
|
|
6450
|
-
[-3.3, -33.7]
|
|
6451
|
-
];
|
|
6388
|
+
var U = 90;
|
|
6389
|
+
var question = (g3) => {
|
|
6390
|
+
const x = (v) => g3.x(v * U);
|
|
6391
|
+
const y = (v) => g3.y(v * U);
|
|
6392
|
+
const r = (v) => g3.len(v * U);
|
|
6393
|
+
return [
|
|
6394
|
+
`M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
|
|
6395
|
+
`A ${r(0.108)} ${r(0.162)} 0 5400000`,
|
|
6396
|
+
`A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
|
|
6397
|
+
`L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
|
|
6398
|
+
`A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
|
|
6399
|
+
`A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
|
|
6400
|
+
`A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
|
|
6401
|
+
`L ${x(-0.214)} ${y(-0.162)} Z`
|
|
6402
|
+
].join(" ");
|
|
6403
|
+
};
|
|
6452
6404
|
var MOVIE = [
|
|
6453
6405
|
[-33.75, -16.5],
|
|
6454
6406
|
[-33.75, -3],
|
|
@@ -6555,8 +6507,8 @@ var buttons = {
|
|
|
6555
6507
|
)
|
|
6556
6508
|
]),
|
|
6557
6509
|
actionButtonHelp: build("actionButtonHelp", (g3) => [
|
|
6558
|
-
darken(g3
|
|
6559
|
-
darken(g3.circle(
|
|
6510
|
+
darken(question(g3)),
|
|
6511
|
+
darken(g3.circle(0, 0.295 * U, 0.08 * U))
|
|
6560
6512
|
]),
|
|
6561
6513
|
actionButtonInformation: build("actionButtonInformation", (g3) => [
|
|
6562
6514
|
darken(g3.circle(0, 0.4, 34)),
|
|
@@ -9879,12 +9831,46 @@ var leftRightUpArrow2 = exactDef(
|
|
|
9879
9831
|
)
|
|
9880
9832
|
]
|
|
9881
9833
|
);
|
|
9834
|
+
var swooshArrow3 = exactDef(
|
|
9835
|
+
"swooshArrow",
|
|
9836
|
+
{ adj1: 25e3, adj2: 16667 },
|
|
9837
|
+
[
|
|
9838
|
+
"a1 pin 1 adj1 75000",
|
|
9839
|
+
"maxAdj2 */ 70000 w ss",
|
|
9840
|
+
"a2 pin 0 adj2 maxAdj2",
|
|
9841
|
+
"ad1 */ h a1 100000",
|
|
9842
|
+
"ad2 */ ss a2 100000",
|
|
9843
|
+
"xB +- r 0 ad2",
|
|
9844
|
+
"yB +- t ssd8 0",
|
|
9845
|
+
"alfa */ cd4 1 14",
|
|
9846
|
+
"dx0 tan ssd8 alfa",
|
|
9847
|
+
"xC +- xB 0 dx0",
|
|
9848
|
+
"dx1 tan ad1 alfa",
|
|
9849
|
+
"yF +- yB ad1 0",
|
|
9850
|
+
"xF +- xB dx1 0",
|
|
9851
|
+
"xE +- xF dx0 0",
|
|
9852
|
+
"yE +- yF ssd8 0",
|
|
9853
|
+
"dy2 +- yE 0 t",
|
|
9854
|
+
"dy22 */ dy2 1 2",
|
|
9855
|
+
"dy3 */ h 1 20",
|
|
9856
|
+
"yD +- dy22 0 dy3",
|
|
9857
|
+
"dy4 */ hd6 1 1",
|
|
9858
|
+
"yP1 +- hd6 dy4 0",
|
|
9859
|
+
"xP1 val wd6",
|
|
9860
|
+
"dy5 */ hd6 1 2",
|
|
9861
|
+
"yP2 +- yF dy5 0",
|
|
9862
|
+
"xP2 val wd4"
|
|
9863
|
+
],
|
|
9864
|
+
"l t r b",
|
|
9865
|
+
[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")]
|
|
9866
|
+
);
|
|
9882
9867
|
var EXACT_ARROW_PRESET_DEFINITIONS = {
|
|
9883
9868
|
leftRightArrow: leftRightArrow2,
|
|
9884
9869
|
upDownArrow: upDownArrow2,
|
|
9885
9870
|
quadArrow: quadArrow2,
|
|
9886
9871
|
leftUpArrow: leftUpArrow2,
|
|
9887
|
-
leftRightUpArrow: leftRightUpArrow2
|
|
9872
|
+
leftRightUpArrow: leftRightUpArrow2,
|
|
9873
|
+
swooshArrow: swooshArrow3
|
|
9888
9874
|
};
|
|
9889
9875
|
|
|
9890
9876
|
// geometry/preset-shape-definitions-exact-circular.ts
|
|
@@ -10690,10 +10676,13 @@ var verticalScroll = exactDef(
|
|
|
10690
10676
|
p(
|
|
10691
10677
|
"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"
|
|
10692
10678
|
),
|
|
10693
|
-
p(
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10679
|
+
p(
|
|
10680
|
+
"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",
|
|
10681
|
+
{
|
|
10682
|
+
fill: "darkenLess",
|
|
10683
|
+
stroke: false
|
|
10684
|
+
}
|
|
10685
|
+
),
|
|
10697
10686
|
p(
|
|
10698
10687
|
"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",
|
|
10699
10688
|
{ fill: "none" }
|
|
@@ -10709,10 +10698,13 @@ var horizontalScroll = exactDef(
|
|
|
10709
10698
|
p(
|
|
10710
10699
|
"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"
|
|
10711
10700
|
),
|
|
10712
|
-
p(
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10701
|
+
p(
|
|
10702
|
+
"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",
|
|
10703
|
+
{
|
|
10704
|
+
fill: "darkenLess",
|
|
10705
|
+
stroke: false
|
|
10706
|
+
}
|
|
10707
|
+
),
|
|
10716
10708
|
p(
|
|
10717
10709
|
"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",
|
|
10718
10710
|
{ fill: "none" }
|
|
@@ -52059,6 +52051,7 @@ exports.writeChartShapeProps = writeChartShapeProps;
|
|
|
52059
52051
|
exports.writeGeneratedDiagramDrawing = writeGeneratedDiagramDrawing;
|
|
52060
52052
|
exports.writeShapeEffects = writeShapeEffects;
|
|
52061
52053
|
exports.xmlAttr = xmlAttr;
|
|
52054
|
+
exports.xmlAttrBool = xmlAttrBool;
|
|
52062
52055
|
exports.xmlAttrNumber = xmlAttrNumber;
|
|
52063
52056
|
exports.xmlChild = xmlChild;
|
|
52064
52057
|
exports.xmlChildren = xmlChildren;
|