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
package/README.md
CHANGED
|
@@ -192,6 +192,10 @@ const part = resolvePartPath('word/document.xml', rels.get('rId5')!.target);
|
|
|
192
192
|
|
|
193
193
|
`ooxml-core` is developed in the [ChristopherVR/ooxml](https://github.com/ChristopherVR/ooxml) repository, which also holds [`ooxml-ui`](https://www.npmjs.com/package/ooxml-ui), the MCP servers and the Word, Excel, Visio and OpenTeams viewers. Its README covers the repository layout, the development workflow and releases, and the [roadmap](https://github.com/ChristopherVR/ooxml/blob/main/docs/roadmap.md) says what comes next; the working agreements are in [AGENTS.md](../../AGENTS.md) and [CONTRIBUTING.md](../../CONTRIBUTING.md), and [PROVENANCE.md](../../PROVENANCE.md) records where each module came from.
|
|
194
194
|
|
|
195
|
+
## Privacy and network use
|
|
196
|
+
|
|
197
|
+
`ooxml-core` parses, edits and writes documents locally and never uploads them. It contacts a server only when you ask it to: a source URL you pass, collaboration or Teams servers you configure, OneDrive when you set it up, and, in Node signature inspection, the OCSP responder named in a signing certificate. Linked pictures are not fetched by default. Nothing collects analytics or telemetry. See [PRIVACY.md](https://github.com/ChristopherVR/ooxml/blob/main/PRIVACY.md).
|
|
198
|
+
|
|
195
199
|
## License
|
|
196
200
|
|
|
197
201
|
[Apache-2.0](LICENSE). Third-party notices are in [NOTICE](NOTICE) and [THIRD-PARTY-LICENSES](THIRD-PARTY-LICENSES).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PptxHandler } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PptxHandler } from './chunk-4LEVL6ZW.mjs';
|
|
2
|
+
import './chunk-KCDLTVUI.mjs';
|
|
3
3
|
import './chunk-EYCM7RVL.mjs';
|
|
4
4
|
import './chunk-2N7RZQLC.mjs';
|
|
5
5
|
import './chunk-VDUNZTJC.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRNZQ2OU4_cjs = require('./chunk-RNZQ2OU4.cjs');
|
|
4
|
+
require('./chunk-3J6VIKLP.cjs');
|
|
5
|
+
require('./chunk-QZPOPUI5.cjs');
|
|
6
|
+
require('./chunk-XZPZHXV4.cjs');
|
|
7
|
+
require('./chunk-5W2QL4SB.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "PptxHandler", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkRNZQ2OU4_cjs.PptxHandler; }
|
|
14
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-4LEVL6ZW.mjs';
|
|
2
|
+
import './chunk-KCDLTVUI.mjs';
|
|
3
3
|
import './chunk-EYCM7RVL.mjs';
|
|
4
4
|
import './chunk-2N7RZQLC.mjs';
|
|
5
5
|
import './chunk-VDUNZTJC.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkRNZQ2OU4_cjs = require('./chunk-RNZQ2OU4.cjs');
|
|
4
|
+
require('./chunk-3J6VIKLP.cjs');
|
|
5
|
+
require('./chunk-QZPOPUI5.cjs');
|
|
6
6
|
require('./chunk-XZPZHXV4.cjs');
|
|
7
7
|
require('./chunk-5W2QL4SB.cjs');
|
|
8
8
|
|
|
@@ -10,13 +10,13 @@ require('./chunk-5W2QL4SB.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PresentationBuilder", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkRNZQ2OU4_cjs.PresentationBuilder; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "STANDARD_LAYOUTS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkRNZQ2OU4_cjs.STANDARD_LAYOUTS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "buildBlankPresentationArchive", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkRNZQ2OU4_cjs.buildBlankPresentationArchive; }
|
|
22
22
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-HLYOHD2Z.mjs';
|
|
2
|
+
import './chunk-VKFKEVHK.mjs';
|
|
3
|
+
import './chunk-IPV3J3I5.mjs';
|
|
4
4
|
import './chunk-GXHKNSZX.mjs';
|
|
5
5
|
import './chunk-CA7KCNL3.mjs';
|
|
@@ -8659,84 +8659,22 @@ var triangle = (g3, dir) => g3.poly([
|
|
|
8659
8659
|
[D * dir, 0],
|
|
8660
8660
|
[-D * dir, D]
|
|
8661
8661
|
]);
|
|
8662
|
-
var
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
[
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
[-8.5, -13.5],
|
|
8679
|
-
[-9.3, -17.2],
|
|
8680
|
-
[-7.8, -19.5],
|
|
8681
|
-
[-4, -22.5],
|
|
8682
|
-
[-3.3, -21.7],
|
|
8683
|
-
[-1.8, -21.7],
|
|
8684
|
-
[-1, -23.2],
|
|
8685
|
-
[0.5, -23.2],
|
|
8686
|
-
[1.2, -21.7],
|
|
8687
|
-
[2.7, -21.7],
|
|
8688
|
-
[3.5, -22.5],
|
|
8689
|
-
[8, -18.7],
|
|
8690
|
-
[8.7, -17.2],
|
|
8691
|
-
[8, -16.5],
|
|
8692
|
-
[8, -15],
|
|
8693
|
-
[9.5, -14.2],
|
|
8694
|
-
[9.5, -13.5],
|
|
8695
|
-
[8, -12.7],
|
|
8696
|
-
[8.7, -9.7],
|
|
8697
|
-
[5, -6],
|
|
8698
|
-
[2, -6],
|
|
8699
|
-
[-2.5, -2.2],
|
|
8700
|
-
[-3.3, 0.8],
|
|
8701
|
-
[-5.5, 2.3],
|
|
8702
|
-
[-4.8, 6.8],
|
|
8703
|
-
[-6.3, 7.5],
|
|
8704
|
-
[-6.3, 18],
|
|
8705
|
-
[-4.8, 18],
|
|
8706
|
-
[-4, 17.3],
|
|
8707
|
-
[4.2, 17.3],
|
|
8708
|
-
[4.2, 6.8],
|
|
8709
|
-
[6.5, 5.3],
|
|
8710
|
-
[6.5, 3.8],
|
|
8711
|
-
[8, 3],
|
|
8712
|
-
[8, 1.5],
|
|
8713
|
-
[8.7, 0.8],
|
|
8714
|
-
[13.2, 0],
|
|
8715
|
-
[17, -4.5],
|
|
8716
|
-
[18.5, -4.5],
|
|
8717
|
-
[18.5, -6],
|
|
8718
|
-
[17.7, -6.7],
|
|
8719
|
-
[18.5, -8.2],
|
|
8720
|
-
[18.5, -15],
|
|
8721
|
-
[20, -15.7],
|
|
8722
|
-
[20, -18],
|
|
8723
|
-
[17.7, -19.5],
|
|
8724
|
-
[17.7, -21],
|
|
8725
|
-
[15.5, -24.7],
|
|
8726
|
-
[15.5, -27],
|
|
8727
|
-
[14, -27],
|
|
8728
|
-
[13.2, -27.7],
|
|
8729
|
-
[13.2, -29.2],
|
|
8730
|
-
[9.5, -30],
|
|
8731
|
-
[8.7, -30.7],
|
|
8732
|
-
[8.7, -32.2],
|
|
8733
|
-
[5.7, -31.5],
|
|
8734
|
-
[4.2, -33.7],
|
|
8735
|
-
[2.7, -33.7],
|
|
8736
|
-
[2, -32.2],
|
|
8737
|
-
[-2.5, -32.2],
|
|
8738
|
-
[-3.3, -33.7]
|
|
8739
|
-
];
|
|
8662
|
+
var U = 90;
|
|
8663
|
+
var question = (g3) => {
|
|
8664
|
+
const x = (v) => g3.x(v * U);
|
|
8665
|
+
const y = (v) => g3.y(v * U);
|
|
8666
|
+
const r = (v) => g3.len(v * U);
|
|
8667
|
+
return [
|
|
8668
|
+
`M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
|
|
8669
|
+
`A ${r(0.108)} ${r(0.162)} 0 5400000`,
|
|
8670
|
+
`A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
|
|
8671
|
+
`L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
|
|
8672
|
+
`A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
|
|
8673
|
+
`A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
|
|
8674
|
+
`A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
|
|
8675
|
+
`L ${x(-0.214)} ${y(-0.162)} Z`
|
|
8676
|
+
].join(" ");
|
|
8677
|
+
};
|
|
8740
8678
|
var MOVIE = [
|
|
8741
8679
|
[-33.75, -16.5],
|
|
8742
8680
|
[-33.75, -3],
|
|
@@ -8843,8 +8781,8 @@ var buttons = {
|
|
|
8843
8781
|
)
|
|
8844
8782
|
]),
|
|
8845
8783
|
actionButtonHelp: build("actionButtonHelp", (g3) => [
|
|
8846
|
-
darken(g3
|
|
8847
|
-
darken(g3.circle(
|
|
8784
|
+
darken(question(g3)),
|
|
8785
|
+
darken(g3.circle(0, 0.295 * U, 0.08 * U))
|
|
8848
8786
|
]),
|
|
8849
8787
|
actionButtonInformation: build("actionButtonInformation", (g3) => [
|
|
8850
8788
|
darken(g3.circle(0, 0.4, 34)),
|
|
@@ -12167,12 +12105,46 @@ var leftRightUpArrow2 = exactDef(
|
|
|
12167
12105
|
)
|
|
12168
12106
|
]
|
|
12169
12107
|
);
|
|
12108
|
+
var swooshArrow3 = exactDef(
|
|
12109
|
+
"swooshArrow",
|
|
12110
|
+
{ adj1: 25e3, adj2: 16667 },
|
|
12111
|
+
[
|
|
12112
|
+
"a1 pin 1 adj1 75000",
|
|
12113
|
+
"maxAdj2 */ 70000 w ss",
|
|
12114
|
+
"a2 pin 0 adj2 maxAdj2",
|
|
12115
|
+
"ad1 */ h a1 100000",
|
|
12116
|
+
"ad2 */ ss a2 100000",
|
|
12117
|
+
"xB +- r 0 ad2",
|
|
12118
|
+
"yB +- t ssd8 0",
|
|
12119
|
+
"alfa */ cd4 1 14",
|
|
12120
|
+
"dx0 tan ssd8 alfa",
|
|
12121
|
+
"xC +- xB 0 dx0",
|
|
12122
|
+
"dx1 tan ad1 alfa",
|
|
12123
|
+
"yF +- yB ad1 0",
|
|
12124
|
+
"xF +- xB dx1 0",
|
|
12125
|
+
"xE +- xF dx0 0",
|
|
12126
|
+
"yE +- yF ssd8 0",
|
|
12127
|
+
"dy2 +- yE 0 t",
|
|
12128
|
+
"dy22 */ dy2 1 2",
|
|
12129
|
+
"dy3 */ h 1 20",
|
|
12130
|
+
"yD +- dy22 0 dy3",
|
|
12131
|
+
"dy4 */ hd6 1 1",
|
|
12132
|
+
"yP1 +- hd6 dy4 0",
|
|
12133
|
+
"xP1 val wd6",
|
|
12134
|
+
"dy5 */ hd6 1 2",
|
|
12135
|
+
"yP2 +- yF dy5 0",
|
|
12136
|
+
"xP2 val wd4"
|
|
12137
|
+
],
|
|
12138
|
+
"l t r b",
|
|
12139
|
+
[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")]
|
|
12140
|
+
);
|
|
12170
12141
|
var EXACT_ARROW_PRESET_DEFINITIONS = {
|
|
12171
12142
|
leftRightArrow: leftRightArrow2,
|
|
12172
12143
|
upDownArrow: upDownArrow2,
|
|
12173
12144
|
quadArrow: quadArrow2,
|
|
12174
12145
|
leftUpArrow: leftUpArrow2,
|
|
12175
|
-
leftRightUpArrow: leftRightUpArrow2
|
|
12146
|
+
leftRightUpArrow: leftRightUpArrow2,
|
|
12147
|
+
swooshArrow: swooshArrow3
|
|
12176
12148
|
};
|
|
12177
12149
|
|
|
12178
12150
|
// geometry/preset-shape-definitions-exact-circular.ts
|
|
@@ -12978,10 +12950,13 @@ var verticalScroll = exactDef(
|
|
|
12978
12950
|
p(
|
|
12979
12951
|
"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"
|
|
12980
12952
|
),
|
|
12981
|
-
p(
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12953
|
+
p(
|
|
12954
|
+
"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",
|
|
12955
|
+
{
|
|
12956
|
+
fill: "darkenLess",
|
|
12957
|
+
stroke: false
|
|
12958
|
+
}
|
|
12959
|
+
),
|
|
12985
12960
|
p(
|
|
12986
12961
|
"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",
|
|
12987
12962
|
{ fill: "none" }
|
|
@@ -12997,10 +12972,13 @@ var horizontalScroll = exactDef(
|
|
|
12997
12972
|
p(
|
|
12998
12973
|
"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"
|
|
12999
12974
|
),
|
|
13000
|
-
p(
|
|
13001
|
-
|
|
13002
|
-
|
|
13003
|
-
|
|
12975
|
+
p(
|
|
12976
|
+
"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",
|
|
12977
|
+
{
|
|
12978
|
+
fill: "darkenLess",
|
|
12979
|
+
stroke: false
|
|
12980
|
+
}
|
|
12981
|
+
),
|
|
13004
12982
|
p(
|
|
13005
12983
|
"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",
|
|
13006
12984
|
{ fill: "none" }
|
|
@@ -74668,10 +74646,12 @@ function cellFont(font, defaultFont) {
|
|
|
74668
74646
|
if (!out.size && defaultFont.size) out.size = defaultFont.size;
|
|
74669
74647
|
return out;
|
|
74670
74648
|
}
|
|
74649
|
+
function fontFamilyName(font, theme3) {
|
|
74650
|
+
return font.scheme === "major" ? theme3.majorFont || font.name || "Calibri Light" : font.scheme === "minor" ? theme3.minorFont || font.name || "Calibri" : font.name || theme3.minorFont || "Calibri";
|
|
74651
|
+
}
|
|
74671
74652
|
function fontView(font, theme3) {
|
|
74672
|
-
const family = font.scheme === "major" ? theme3.majorFont || font.name || "Calibri Light" : font.scheme === "minor" ? theme3.minorFont || font.name || "Calibri" : font.name || theme3.minorFont || "Calibri";
|
|
74673
74653
|
const view = {
|
|
74674
|
-
family,
|
|
74654
|
+
family: fontFamilyName(font, theme3),
|
|
74675
74655
|
sizePx: (font.size && font.size > 0 ? font.size : 11) * PX_PER_PT6,
|
|
74676
74656
|
bold: font.bold === true,
|
|
74677
74657
|
italic: font.italic === true,
|
|
@@ -101806,6 +101786,14 @@ function applyConnectorEdit(roots, root, edit2, check4) {
|
|
|
101806
101786
|
|
|
101807
101787
|
// text/font-metrics/design-advances.generated.ts
|
|
101808
101788
|
var DESIGN_ADVANCES = {
|
|
101789
|
+
aptos: {
|
|
101790
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
101791
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
101792
|
+
},
|
|
101793
|
+
"aptos display": {
|
|
101794
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
101795
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
101796
|
+
},
|
|
101809
101797
|
arial: {
|
|
101810
101798
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
101811
101799
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
|
@@ -8634,84 +8634,22 @@ var triangle = (g3, dir) => g3.poly([
|
|
|
8634
8634
|
[D * dir, 0],
|
|
8635
8635
|
[-D * dir, D]
|
|
8636
8636
|
]);
|
|
8637
|
-
var
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
[
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
[-8.5, -13.5],
|
|
8654
|
-
[-9.3, -17.2],
|
|
8655
|
-
[-7.8, -19.5],
|
|
8656
|
-
[-4, -22.5],
|
|
8657
|
-
[-3.3, -21.7],
|
|
8658
|
-
[-1.8, -21.7],
|
|
8659
|
-
[-1, -23.2],
|
|
8660
|
-
[0.5, -23.2],
|
|
8661
|
-
[1.2, -21.7],
|
|
8662
|
-
[2.7, -21.7],
|
|
8663
|
-
[3.5, -22.5],
|
|
8664
|
-
[8, -18.7],
|
|
8665
|
-
[8.7, -17.2],
|
|
8666
|
-
[8, -16.5],
|
|
8667
|
-
[8, -15],
|
|
8668
|
-
[9.5, -14.2],
|
|
8669
|
-
[9.5, -13.5],
|
|
8670
|
-
[8, -12.7],
|
|
8671
|
-
[8.7, -9.7],
|
|
8672
|
-
[5, -6],
|
|
8673
|
-
[2, -6],
|
|
8674
|
-
[-2.5, -2.2],
|
|
8675
|
-
[-3.3, 0.8],
|
|
8676
|
-
[-5.5, 2.3],
|
|
8677
|
-
[-4.8, 6.8],
|
|
8678
|
-
[-6.3, 7.5],
|
|
8679
|
-
[-6.3, 18],
|
|
8680
|
-
[-4.8, 18],
|
|
8681
|
-
[-4, 17.3],
|
|
8682
|
-
[4.2, 17.3],
|
|
8683
|
-
[4.2, 6.8],
|
|
8684
|
-
[6.5, 5.3],
|
|
8685
|
-
[6.5, 3.8],
|
|
8686
|
-
[8, 3],
|
|
8687
|
-
[8, 1.5],
|
|
8688
|
-
[8.7, 0.8],
|
|
8689
|
-
[13.2, 0],
|
|
8690
|
-
[17, -4.5],
|
|
8691
|
-
[18.5, -4.5],
|
|
8692
|
-
[18.5, -6],
|
|
8693
|
-
[17.7, -6.7],
|
|
8694
|
-
[18.5, -8.2],
|
|
8695
|
-
[18.5, -15],
|
|
8696
|
-
[20, -15.7],
|
|
8697
|
-
[20, -18],
|
|
8698
|
-
[17.7, -19.5],
|
|
8699
|
-
[17.7, -21],
|
|
8700
|
-
[15.5, -24.7],
|
|
8701
|
-
[15.5, -27],
|
|
8702
|
-
[14, -27],
|
|
8703
|
-
[13.2, -27.7],
|
|
8704
|
-
[13.2, -29.2],
|
|
8705
|
-
[9.5, -30],
|
|
8706
|
-
[8.7, -30.7],
|
|
8707
|
-
[8.7, -32.2],
|
|
8708
|
-
[5.7, -31.5],
|
|
8709
|
-
[4.2, -33.7],
|
|
8710
|
-
[2.7, -33.7],
|
|
8711
|
-
[2, -32.2],
|
|
8712
|
-
[-2.5, -32.2],
|
|
8713
|
-
[-3.3, -33.7]
|
|
8714
|
-
];
|
|
8637
|
+
var U = 90;
|
|
8638
|
+
var question = (g3) => {
|
|
8639
|
+
const x = (v) => g3.x(v * U);
|
|
8640
|
+
const y = (v) => g3.y(v * U);
|
|
8641
|
+
const r = (v) => g3.len(v * U);
|
|
8642
|
+
return [
|
|
8643
|
+
`M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
|
|
8644
|
+
`A ${r(0.108)} ${r(0.162)} 0 5400000`,
|
|
8645
|
+
`A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
|
|
8646
|
+
`L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
|
|
8647
|
+
`A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
|
|
8648
|
+
`A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
|
|
8649
|
+
`A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
|
|
8650
|
+
`L ${x(-0.214)} ${y(-0.162)} Z`
|
|
8651
|
+
].join(" ");
|
|
8652
|
+
};
|
|
8715
8653
|
var MOVIE = [
|
|
8716
8654
|
[-33.75, -16.5],
|
|
8717
8655
|
[-33.75, -3],
|
|
@@ -8818,8 +8756,8 @@ var buttons = {
|
|
|
8818
8756
|
)
|
|
8819
8757
|
]),
|
|
8820
8758
|
actionButtonHelp: build("actionButtonHelp", (g3) => [
|
|
8821
|
-
darken(g3
|
|
8822
|
-
darken(g3.circle(
|
|
8759
|
+
darken(question(g3)),
|
|
8760
|
+
darken(g3.circle(0, 0.295 * U, 0.08 * U))
|
|
8823
8761
|
]),
|
|
8824
8762
|
actionButtonInformation: build("actionButtonInformation", (g3) => [
|
|
8825
8763
|
darken(g3.circle(0, 0.4, 34)),
|
|
@@ -12142,12 +12080,46 @@ var leftRightUpArrow2 = exactDef(
|
|
|
12142
12080
|
)
|
|
12143
12081
|
]
|
|
12144
12082
|
);
|
|
12083
|
+
var swooshArrow3 = exactDef(
|
|
12084
|
+
"swooshArrow",
|
|
12085
|
+
{ adj1: 25e3, adj2: 16667 },
|
|
12086
|
+
[
|
|
12087
|
+
"a1 pin 1 adj1 75000",
|
|
12088
|
+
"maxAdj2 */ 70000 w ss",
|
|
12089
|
+
"a2 pin 0 adj2 maxAdj2",
|
|
12090
|
+
"ad1 */ h a1 100000",
|
|
12091
|
+
"ad2 */ ss a2 100000",
|
|
12092
|
+
"xB +- r 0 ad2",
|
|
12093
|
+
"yB +- t ssd8 0",
|
|
12094
|
+
"alfa */ cd4 1 14",
|
|
12095
|
+
"dx0 tan ssd8 alfa",
|
|
12096
|
+
"xC +- xB 0 dx0",
|
|
12097
|
+
"dx1 tan ad1 alfa",
|
|
12098
|
+
"yF +- yB ad1 0",
|
|
12099
|
+
"xF +- xB dx1 0",
|
|
12100
|
+
"xE +- xF dx0 0",
|
|
12101
|
+
"yE +- yF ssd8 0",
|
|
12102
|
+
"dy2 +- yE 0 t",
|
|
12103
|
+
"dy22 */ dy2 1 2",
|
|
12104
|
+
"dy3 */ h 1 20",
|
|
12105
|
+
"yD +- dy22 0 dy3",
|
|
12106
|
+
"dy4 */ hd6 1 1",
|
|
12107
|
+
"yP1 +- hd6 dy4 0",
|
|
12108
|
+
"xP1 val wd6",
|
|
12109
|
+
"dy5 */ hd6 1 2",
|
|
12110
|
+
"yP2 +- yF dy5 0",
|
|
12111
|
+
"xP2 val wd4"
|
|
12112
|
+
],
|
|
12113
|
+
"l t r b",
|
|
12114
|
+
[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")]
|
|
12115
|
+
);
|
|
12145
12116
|
var EXACT_ARROW_PRESET_DEFINITIONS = {
|
|
12146
12117
|
leftRightArrow: leftRightArrow2,
|
|
12147
12118
|
upDownArrow: upDownArrow2,
|
|
12148
12119
|
quadArrow: quadArrow2,
|
|
12149
12120
|
leftUpArrow: leftUpArrow2,
|
|
12150
|
-
leftRightUpArrow: leftRightUpArrow2
|
|
12121
|
+
leftRightUpArrow: leftRightUpArrow2,
|
|
12122
|
+
swooshArrow: swooshArrow3
|
|
12151
12123
|
};
|
|
12152
12124
|
|
|
12153
12125
|
// geometry/preset-shape-definitions-exact-circular.ts
|
|
@@ -12953,10 +12925,13 @@ var verticalScroll = exactDef(
|
|
|
12953
12925
|
p(
|
|
12954
12926
|
"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"
|
|
12955
12927
|
),
|
|
12956
|
-
p(
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12928
|
+
p(
|
|
12929
|
+
"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",
|
|
12930
|
+
{
|
|
12931
|
+
fill: "darkenLess",
|
|
12932
|
+
stroke: false
|
|
12933
|
+
}
|
|
12934
|
+
),
|
|
12960
12935
|
p(
|
|
12961
12936
|
"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",
|
|
12962
12937
|
{ fill: "none" }
|
|
@@ -12972,10 +12947,13 @@ var horizontalScroll = exactDef(
|
|
|
12972
12947
|
p(
|
|
12973
12948
|
"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"
|
|
12974
12949
|
),
|
|
12975
|
-
p(
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
|
|
12950
|
+
p(
|
|
12951
|
+
"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",
|
|
12952
|
+
{
|
|
12953
|
+
fill: "darkenLess",
|
|
12954
|
+
stroke: false
|
|
12955
|
+
}
|
|
12956
|
+
),
|
|
12979
12957
|
p(
|
|
12980
12958
|
"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",
|
|
12981
12959
|
{ fill: "none" }
|
|
@@ -74643,10 +74621,12 @@ function cellFont(font, defaultFont) {
|
|
|
74643
74621
|
if (!out.size && defaultFont.size) out.size = defaultFont.size;
|
|
74644
74622
|
return out;
|
|
74645
74623
|
}
|
|
74624
|
+
function fontFamilyName(font, theme3) {
|
|
74625
|
+
return font.scheme === "major" ? theme3.majorFont || font.name || "Calibri Light" : font.scheme === "minor" ? theme3.minorFont || font.name || "Calibri" : font.name || theme3.minorFont || "Calibri";
|
|
74626
|
+
}
|
|
74646
74627
|
function fontView(font, theme3) {
|
|
74647
|
-
const family = font.scheme === "major" ? theme3.majorFont || font.name || "Calibri Light" : font.scheme === "minor" ? theme3.minorFont || font.name || "Calibri" : font.name || theme3.minorFont || "Calibri";
|
|
74648
74628
|
const view = {
|
|
74649
|
-
family,
|
|
74629
|
+
family: fontFamilyName(font, theme3),
|
|
74650
74630
|
sizePx: (font.size && font.size > 0 ? font.size : 11) * PX_PER_PT6,
|
|
74651
74631
|
bold: font.bold === true,
|
|
74652
74632
|
italic: font.italic === true,
|
|
@@ -101781,6 +101761,14 @@ function applyConnectorEdit(roots, root, edit2, check4) {
|
|
|
101781
101761
|
|
|
101782
101762
|
// text/font-metrics/design-advances.generated.ts
|
|
101783
101763
|
var DESIGN_ADVANCES = {
|
|
101764
|
+
aptos: {
|
|
101765
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
101766
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
101767
|
+
},
|
|
101768
|
+
"aptos display": {
|
|
101769
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
101770
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
101771
|
+
},
|
|
101784
101772
|
arial: {
|
|
101785
101773
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
101786
101774
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
package/dist/chart/index.cjs
CHANGED
|
@@ -3860,7 +3860,7 @@ function lerpStops(a2, b, t) {
|
|
|
3860
3860
|
opacity: oa + (ob - oa) * t
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
3863
|
-
function
|
|
3863
|
+
function gradientColorAt(stops, position) {
|
|
3864
3864
|
const first2 = stops[0];
|
|
3865
3865
|
const last = stops[stops.length - 1];
|
|
3866
3866
|
if (position <= first2.position) {
|
|
@@ -3915,7 +3915,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
|
|
|
3915
3915
|
if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
|
|
3916
3916
|
for (let i = bands; i >= 0; i -= 1) {
|
|
3917
3917
|
const t = i / bands;
|
|
3918
|
-
const { color: color2, opacity } =
|
|
3918
|
+
const { color: color2, opacity } = gradientColorAt(sorted, t * 100);
|
|
3919
3919
|
const left = lerpEdge(inner.left, 0, t);
|
|
3920
3920
|
const top = lerpEdge(inner.top, 0, t);
|
|
3921
3921
|
const right = lerpEdge(inner.right, 100, t);
|
|
@@ -9877,10 +9877,13 @@ var FALLBACKS = {
|
|
|
9877
9877
|
calibri: '"Calibri", "Carlito", "Segoe UI", Arial, sans-serif',
|
|
9878
9878
|
"calibri light": '"Calibri Light", "Calibri", "Carlito", "Segoe UI", Arial, sans-serif',
|
|
9879
9879
|
cambria: '"Cambria", "Caladea", Georgia, serif',
|
|
9880
|
-
arial: 'Arial, "Liberation Sans", Helvetica, sans-serif',
|
|
9881
|
-
"times new roman": '"Times New Roman", "Liberation Serif", Times, serif',
|
|
9882
|
-
"courier new": '"Courier New", "Liberation Mono", monospace',
|
|
9883
|
-
|
|
9880
|
+
arial: 'Arial, "Arimo", "Liberation Sans", Helvetica, sans-serif',
|
|
9881
|
+
"times new roman": '"Times New Roman", "Tinos", "Liberation Serif", Times, serif',
|
|
9882
|
+
"courier new": '"Courier New", "Cousine", "Liberation Mono", monospace',
|
|
9883
|
+
georgia: '"Georgia", "Gelasio", serif',
|
|
9884
|
+
aptos: '"Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif',
|
|
9885
|
+
"aptos narrow": '"Aptos Narrow", "Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif',
|
|
9886
|
+
"aptos display": '"Aptos Display", "Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif'
|
|
9884
9887
|
};
|
|
9885
9888
|
function cssFontFamily(name) {
|
|
9886
9889
|
const known = FALLBACKS[name.toLowerCase()];
|
|
@@ -14125,7 +14128,7 @@ function radarSvg(model, area) {
|
|
|
14125
14128
|
}
|
|
14126
14129
|
|
|
14127
14130
|
// chart/render/chart-svg-hierarchy.ts
|
|
14128
|
-
var
|
|
14131
|
+
var colorAt = (model, index) => {
|
|
14129
14132
|
const first2 = model.series[0];
|
|
14130
14133
|
const colors = first2?.pointColors;
|
|
14131
14134
|
return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first2?.color ?? "#4472C4";
|
|
@@ -14154,7 +14157,7 @@ function treemapSvg(model, area) {
|
|
|
14154
14157
|
}
|
|
14155
14158
|
out.push(`<g data-chart-series="${cell2.seriesIndex}" data-chart-point="${cell2.pointIndex}">`);
|
|
14156
14159
|
out.push(
|
|
14157
|
-
rect(cell2.x, cell2.y, cell2.w, cell2.h,
|
|
14160
|
+
rect(cell2.x, cell2.y, cell2.w, cell2.h, colorAt(model, cell2.colorIndex)).replace(
|
|
14158
14161
|
"/>",
|
|
14159
14162
|
' rx="2"/>'
|
|
14160
14163
|
)
|
|
@@ -14193,7 +14196,7 @@ function sunburstSvg(model, area) {
|
|
|
14193
14196
|
);
|
|
14194
14197
|
for (const arc of arcs)
|
|
14195
14198
|
out.push(
|
|
14196
|
-
`<path d="${arc.d}" fill="${
|
|
14199
|
+
`<path d="${arc.d}" fill="${colorAt(model, arc.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc.pointIndex}"`}/>`
|
|
14197
14200
|
);
|
|
14198
14201
|
const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
|
|
14199
14202
|
for (const arc of model.hierarchy?.labels === false ? [] : arcs) {
|