@openpresentation/opf 0.34.2 → 0.35.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 +6 -6
- package/dist/browser.js +19 -19
- package/dist/{catalog-refs-wtuudZTe.d.ts → catalog-refs-BgotJhR5.d.ts} +105 -95
- package/dist/{catalog-schemas-CSxuFtsu.d.ts → catalog-schemas-BX-VEc5Q.d.ts} +1 -1
- package/dist/{chunk-RM4Z7ZSW.js → chunk-2GCTKQDD.js} +4 -4
- package/dist/{chunk-VI7VWDTN.js → chunk-3KPTVK77.js} +75 -283
- package/dist/{chunk-AQ3WR3H7.js → chunk-3ZTKRX7F.js} +4 -6
- package/dist/{chunk-IDYYLJCQ.js → chunk-4UMZDDJG.js} +11 -29
- package/dist/{chunk-NLJFNCZ4.js → chunk-6JHV2K67.js} +6 -6
- package/dist/{chunk-FK5XG742.js → chunk-6VGLE7C5.js} +114 -2
- package/dist/{chunk-V4G3BYPY.js → chunk-7KUUIL7W.js} +7 -7
- package/dist/{chunk-PHOSM2RA.js → chunk-ARPMSD7V.js} +1 -1
- package/dist/{chunk-UKI43JE6.js → chunk-GGN3NQDK.js} +1 -1
- package/dist/{chunk-XLXCXEVF.js → chunk-GKUAVSXU.js} +3 -10
- package/dist/{chunk-HX4HEJB4.js → chunk-HORPH6O7.js} +7 -6
- package/dist/{chunk-KJFCHCWV.js → chunk-JQNT37IO.js} +4 -13
- package/dist/{chunk-WBPXRUZT.js → chunk-KNMMEE67.js} +795 -467
- package/dist/{chunk-IGT4523S.js → chunk-LDLLZQPP.js} +706 -432
- package/dist/{chunk-6MSH3KCZ.js → chunk-MS2LPR7F.js} +1 -5
- package/dist/{chunk-NMZCPZ3R.js → chunk-MVPQEMCP.js} +97 -15
- package/dist/{chunk-P2X4BBW2.js → chunk-NPRNWPP4.js} +1 -1
- package/dist/{chunk-EQCZ2SFD.js → chunk-P2ACZJUL.js} +6 -6
- package/dist/chunk-SEC4IOOS.js +1 -0
- package/dist/{chunk-VVPPMHP6.js → chunk-VMPOCXTE.js} +5 -17
- package/dist/{chunk-MDAXXFAY.js → chunk-ZZWX4W2G.js} +2 -2
- package/dist/{composition-DF07Ha4R.d.ts → composition-BmJfljJl.d.ts} +198 -114
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-52ki0lfZ.d.ts → conversion-BbXhlurO.d.ts} +7 -7
- package/dist/conversion-VWCH3NKR.js +25 -0
- package/dist/convert.d.ts +11 -11
- package/dist/convert.js +61 -86
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-C3EsoHC3.d.ts → deck-report-BYkbL7uT.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +11 -11
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/{diagram-plantuml-XRZ6VAOL.js → diagram-plantuml-GWXGKY7R.js} +1 -1
- package/dist/diff.d.ts +2 -2
- package/dist/diff.js +4 -4
- package/dist/docs.js +39 -39
- package/dist/examples.js +6336 -8170
- package/dist/{finding-l9dlQ2NF.d.ts → finding-mcHslZLA.d.ts} +6 -2
- package/dist/font-policy.d.ts +16 -2
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.d.ts +2 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +125 -27
- package/dist/index.js +24 -23
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +6 -6
- package/dist/node-engine.js +21 -21
- package/dist/{pagination-Do7vNgU-.d.ts → pagination-C0FPjO29.d.ts} +4 -4
- package/dist/pagination.d.ts +3 -3
- package/dist/pagination.js +4 -4
- package/dist/patch.d.ts +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-ANs2WkaS.d.ts → presentation-Dx-kZC8Y.d.ts} +25 -81
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +5 -7
- package/dist/schema.js +3 -3
- package/dist/schemas.js +1 -1
- package/dist/source.js +10 -10
- package/dist/spec/reference/engine-defaults.json +1 -1
- package/dist/spec/reference/engine-vocabularies.json +43 -43
- package/dist/spec/reference/font-policy.json +114 -2
- package/dist/spec/reference/font-policy.schema.json +45 -1
- package/dist/spec/schemas/color-scheme.schema.json +2 -2
- package/dist/spec/schemas/finding.schema.json +2 -1
- package/dist/spec/schemas/layout.schema.json +27 -85
- package/dist/spec/schemas/opf.schema.json +26 -175
- package/dist/spec/schemas/theme.schema.json +10 -10
- package/dist/symbol-font-encodings.d.ts +2 -2
- package/dist/types.d.ts +74 -86
- package/dist/{validation-types-BNS41nzb.d.ts → validation-types-DKIe1RQW.d.ts} +5 -5
- package/dist/validator.d.ts +5 -7
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.js +7 -7
- package/package.json +5 -5
- package/dist/chunk-HSXWDXKM.js +0 -1
- package/dist/conversion-F3HSCFOV.js +0 -25
|
@@ -243,12 +243,20 @@ function fitVennShapes(frame, native, labels, gap) {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
// src/arrangements.ts
|
|
246
|
-
var LINEAR_ARRANGEMENTS = ["chevrons", "
|
|
247
|
-
var ARRANGEMENTS = ["pyramid", "matrix", "cycle", "org-chart", "hierarchy", "venn", ...LINEAR_ARRANGEMENTS];
|
|
246
|
+
var LINEAR_ARRANGEMENTS = ["chevrons", "process", "vertical-process"];
|
|
247
|
+
var ARRANGEMENTS = ["pyramid", "inverted-pyramid", "matrix", "cycle", "org-chart", "hierarchy", "venn", ...LINEAR_ARRANGEMENTS];
|
|
248
248
|
function isArrangement(value) {
|
|
249
249
|
return typeof value === "string" && ARRANGEMENTS.some((kind2) => kind2 === value);
|
|
250
250
|
}
|
|
251
|
-
var
|
|
251
|
+
var SEQUENCE_ARRANGEMENTS = ["steps", "numbered"];
|
|
252
|
+
function isSequenceArrangement(value) {
|
|
253
|
+
return value === "steps" || value === "numbered";
|
|
254
|
+
}
|
|
255
|
+
var REGION_ARRANGEMENTS = ["steps", "numbered", "pyramid", "inverted-pyramid", "matrix", "cycle", "chevrons", "process", "vertical-process", "org-chart", "hierarchy", "venn"];
|
|
256
|
+
function isRegionArrangement(value) {
|
|
257
|
+
return isSequenceArrangement(value) || isArrangement(value);
|
|
258
|
+
}
|
|
259
|
+
var ARRANGEMENT_MAX = Object.freeze({ pyramid: 8, "inverted-pyramid": 8, matrix: 4, cycle: 8, chevrons: 8, process: 8, "vertical-process": 8, "org-chart": 8, hierarchy: 8, venn: 7 });
|
|
252
260
|
var MATRIX_ENTRIES = 4;
|
|
253
261
|
var ARRANGEMENT_CARDS_MAX = 8;
|
|
254
262
|
var CARD_TEXT_MARGIN = 0.6;
|
|
@@ -257,24 +265,25 @@ var SMART_ART_LAYOUTS = Object.freeze({
|
|
|
257
265
|
matrix: "urn:microsoft.com/office/officeart/2005/8/layout/matrix3",
|
|
258
266
|
cycle: "urn:microsoft.com/office/officeart/2005/8/layout/cycle2",
|
|
259
267
|
chevrons: "urn:microsoft.com/office/officeart/2005/8/layout/chevron1",
|
|
260
|
-
|
|
261
|
-
"vertical-
|
|
268
|
+
process: "urn:microsoft.com/office/officeart/2005/8/layout/process1",
|
|
269
|
+
"vertical-process": "urn:microsoft.com/office/officeart/2005/8/layout/process2",
|
|
262
270
|
"org-chart": "urn:microsoft.com/office/officeart/2005/8/layout/orgChart1",
|
|
263
271
|
hierarchy: "urn:microsoft.com/office/officeart/2005/8/layout/hierarchy1",
|
|
264
272
|
venn: "urn:microsoft.com/office/officeart/2005/8/layout/venn1"
|
|
265
273
|
});
|
|
266
274
|
var SMART_ART_NAMES = Object.freeze({
|
|
267
275
|
pyramid: { layout: "Basic Pyramid", nodes: "levels" },
|
|
276
|
+
"inverted-pyramid": { layout: "Basic Pyramid", nodes: "levels" },
|
|
268
277
|
matrix: { layout: "Basic Matrix", nodes: "quadrants" },
|
|
269
278
|
cycle: { layout: "Basic Cycle", nodes: "steps" },
|
|
270
279
|
"org-chart": { layout: "Organization Chart", nodes: "nodes" },
|
|
271
280
|
hierarchy: { layout: "Hierarchy", nodes: "nodes" },
|
|
272
281
|
venn: { layout: "Basic Venn", nodes: "sets" },
|
|
273
282
|
chevrons: { layout: "Basic Chevron Process", nodes: "chevrons" },
|
|
274
|
-
|
|
275
|
-
"vertical-
|
|
283
|
+
process: { layout: "Basic Process", nodes: "boxes" },
|
|
284
|
+
"vertical-process": { layout: "Vertical Process", nodes: "boxes" }
|
|
276
285
|
});
|
|
277
|
-
var ARRANGEMENT_TEXT_MARGIN = Object.freeze({ pyramid: 0.1, matrix: 0.3, cycle: 0.1, chevrons: 0.105,
|
|
286
|
+
var ARRANGEMENT_TEXT_MARGIN = Object.freeze({ pyramid: 0.1, "inverted-pyramid": 0.1, matrix: 0.3, cycle: 0.1, chevrons: 0.105, process: 0.3, "vertical-process": 0.3, "org-chart": 0.05, hierarchy: 0.3, venn: 0.1 });
|
|
278
287
|
var PYRAMID_TEXT_WIDTH = 0.65;
|
|
279
288
|
var MATRIX_QUADRANT = 0.39;
|
|
280
289
|
var MATRIX_INSET = 0.095;
|
|
@@ -551,15 +560,15 @@ var CYCLE_DOMAIN_ASPECT = Object.freeze({ min: 1.15, max: 1.8 });
|
|
|
551
560
|
var CYCLE_DOMAIN_TOTAL_LINES = 16;
|
|
552
561
|
var SMART_ART_DOMAIN = Object.freeze({
|
|
553
562
|
/** Entries: a pyramid of 1 to 5 levels (6 to 8 never fitted the list's role size in the compared frames), a matrix of 1 to 4 quadrants. */
|
|
554
|
-
count: Object.freeze({ pyramid: 5, matrix: 4, cycle: CYCLE_DOMAIN_COUNT, chevrons: 6,
|
|
563
|
+
count: Object.freeze({ pyramid: 5, matrix: 4, cycle: CYCLE_DOMAIN_COUNT, chevrons: 6, process: 6, "vertical-process": 4 }),
|
|
555
564
|
/** The frame's width over its height, per arrangement: the range the 16:9, 4:3 and 1:1 slides gave, with a small margin. */
|
|
556
565
|
aspect: Object.freeze({
|
|
557
566
|
pyramid: Object.freeze({ min: 1.1, max: 2.3 }),
|
|
558
567
|
matrix: Object.freeze({ min: 0.8, max: 1.2 }),
|
|
559
568
|
cycle: CYCLE_DOMAIN_ASPECT,
|
|
560
569
|
chevrons: Object.freeze({ min: 1.1, max: 2.3 }),
|
|
561
|
-
|
|
562
|
-
"vertical-
|
|
570
|
+
process: Object.freeze({ min: 1.1, max: 2.3 }),
|
|
571
|
+
"vertical-process": Object.freeze({ min: 0.55, max: 1.2 })
|
|
563
572
|
}),
|
|
564
573
|
/** The most lines one entry may wrap to in its node, and in all its entries (a line drawn by PowerPoint's wrap can sit up to 1 px from core's). */
|
|
565
574
|
lines: 2,
|
|
@@ -579,13 +588,13 @@ var SMART_ART_DOMAIN = Object.freeze({
|
|
|
579
588
|
* SH-17: the most of a node's text rectangle (less its margins) an entry's lines may fill from top to bottom: a box PowerPoint finds
|
|
580
589
|
* nearly full is grown or searched to another scale (the sweep found it at 0.969 of the height and above).
|
|
581
590
|
*/
|
|
582
|
-
fill: Object.freeze({ chevrons: 0.95,
|
|
591
|
+
fill: Object.freeze({ chevrons: 0.95, process: 0.95, "vertical-process": 0.95 }),
|
|
583
592
|
/**
|
|
584
593
|
* SH-17: the most of the frame the entries' text may cover (each line's width times the size, over the frame's area): PowerPoint sets
|
|
585
594
|
* a SmartArt's lines up to a pixel from where it sets OPF's native text, which a frame dense with large text shows above SH-07's gate
|
|
586
595
|
* (every instance above 0.082 that failed it did so for this).
|
|
587
596
|
*/
|
|
588
|
-
ink: Object.freeze({ chevrons: 0.08,
|
|
597
|
+
ink: Object.freeze({ chevrons: 0.08, process: 0.08, "vertical-process": 0.08 })
|
|
589
598
|
});
|
|
590
599
|
function smartArtScript(texts) {
|
|
591
600
|
const text2 = texts.join("");
|
|
@@ -595,7 +604,7 @@ function smartArtScript(texts) {
|
|
|
595
604
|
}
|
|
596
605
|
function smartArtUnavailable(candidate) {
|
|
597
606
|
const { kind: kind2, count, frame, nodes } = candidate, domain = SMART_ART_DOMAIN;
|
|
598
|
-
if (kind2 === "pyramid"
|
|
607
|
+
if (kind2 === "inverted-pyramid") return "the inverted pyramid has no qualified live SmartArt domain";
|
|
599
608
|
const compared = domain.count[kind2];
|
|
600
609
|
if (compared === void 0) return `${SMART_ART_NAMES[kind2].layout} text and edits are awaiting native qualification`;
|
|
601
610
|
if (count < 1 || count > compared) return `a ${kind2} of ${count} entries is outside the compared 1 to ${compared}`;
|
|
@@ -624,8 +633,8 @@ function smartArtUnavailable(candidate) {
|
|
|
624
633
|
var isLinearArrangement = (kind2) => LINEAR_ARRANGEMENTS.includes(kind2);
|
|
625
634
|
var SMART_ART_SCALES = Object.freeze({
|
|
626
635
|
chevrons: Object.freeze([1024, 538, 365.5, 276.5, 222.5, 186, 160, 140.25, 124.875, 112.5].map((value) => value / 1024)),
|
|
627
|
-
|
|
628
|
-
"vertical-
|
|
636
|
+
process: Object.freeze([1024, 426.5, 269, 196.75, 155, 128, 108.875, 94.75, 83.875, 75.25].map((value) => value / 1024)),
|
|
637
|
+
"vertical-process": Object.freeze([1024, 409.5, 256, 186, 146.25, 120.375, 102.375, 89, 78.75, 70.5].map((value) => value / 1024))
|
|
629
638
|
});
|
|
630
639
|
var SQUEEZED = 1023 / 1024;
|
|
631
640
|
var CHEVRON_HEIGHT = 0.4;
|
|
@@ -639,8 +648,8 @@ var FLOW_ROUND_ADJUST = 1e4;
|
|
|
639
648
|
var ARROW_ADJUST = Object.freeze([6e4, 5e4]);
|
|
640
649
|
var LINEAR_TEXT_MARGINS = Object.freeze({
|
|
641
650
|
chevrons: Object.freeze([0.315, 0.105, 0.105, 0.105]),
|
|
642
|
-
|
|
643
|
-
"vertical-
|
|
651
|
+
process: Object.freeze([0.3, 0.3, 0.3, 0.3]),
|
|
652
|
+
"vertical-process": Object.freeze([0.3, 0.3, 0.3, 0.3])
|
|
644
653
|
});
|
|
645
654
|
var round2 = (value) => Math.round(value * 1e3) / 1e3;
|
|
646
655
|
var roundBox2 = (box) => ({ x: round2(box.x), y: round2(box.y), width: round2(box.width), height: round2(box.height) });
|
|
@@ -650,7 +659,7 @@ function scaleOf(kind2, count, squeezed) {
|
|
|
650
659
|
if (count === 1 && squeezed) return SQUEEZED;
|
|
651
660
|
const table = SMART_ART_SCALES[kind2];
|
|
652
661
|
if (count <= table.length) return table[count - 1];
|
|
653
|
-
return kind2 === "chevrons" ? 1 / (CHEVRON_STEP * count + 1 - CHEVRON_STEP) : kind2 === "
|
|
662
|
+
return kind2 === "chevrons" ? 1 / (CHEVRON_STEP * count + 1 - CHEVRON_STEP) : kind2 === "process" ? 1 / (FLOW_STEP * count + 1 - FLOW_STEP) : 1 / (VERTICAL_FLOW_STEP * count + 1 - VERTICAL_FLOW_STEP);
|
|
654
663
|
}
|
|
655
664
|
function chevronNode(index, box, depth, flip) {
|
|
656
665
|
const { x, y, width: w, height: h } = box, d = Math.min(depth, w / 2, Math.min(w, h)), ss = Math.min(w, h);
|
|
@@ -693,7 +702,7 @@ function chevronNodes(frame, count, rtl = false) {
|
|
|
693
702
|
return { nodes, arrows: [] };
|
|
694
703
|
}
|
|
695
704
|
function flowNodes(frame, count, rtl = false) {
|
|
696
|
-
const n = Math.max(1, Math.floor(count)), w = scaleOf("
|
|
705
|
+
const n = Math.max(1, Math.floor(count)), w = scaleOf("process", n, FLOW_HEIGHT * frame.width > frame.height) * frame.width;
|
|
697
706
|
const h = Math.min(FLOW_HEIGHT * w, frame.height), x0 = frame.x + (frame.width - w * (FLOW_STEP * n + 1 - FLOW_STEP)) / 2, y = frame.y + (frame.height - h) / 2;
|
|
698
707
|
const place2 = (box) => rtl ? mirrorBox(box, frame) : box;
|
|
699
708
|
const nodes = Array.from({ length: n }, (_, index) => boxNode(index, place2({ x: x0 + FLOW_STEP * w * index, y, width: w, height: h }), FLOW_ROUND_ADJUST));
|
|
@@ -701,14 +710,14 @@ function flowNodes(frame, count, rtl = false) {
|
|
|
701
710
|
return { nodes, arrows };
|
|
702
711
|
}
|
|
703
712
|
function verticalFlowNodes(frame, count) {
|
|
704
|
-
const n = Math.max(1, Math.floor(count)), h = scaleOf("vertical-
|
|
713
|
+
const n = Math.max(1, Math.floor(count)), h = scaleOf("vertical-process", n, VERTICAL_FLOW_WIDTH * frame.height > frame.width) * frame.height;
|
|
705
714
|
const w = Math.min(VERTICAL_FLOW_WIDTH * h, frame.width), y0 = frame.y + (frame.height - h * (VERTICAL_FLOW_STEP * n + 1 - VERTICAL_FLOW_STEP)) / 2, x = frame.x + (frame.width - w) / 2;
|
|
706
715
|
const nodes = Array.from({ length: n }, (_, index) => boxNode(index, { x, y: y0 + VERTICAL_FLOW_STEP * h * index, width: w, height: h }, FLOW_ROUND_ADJUST));
|
|
707
716
|
const arrows = Array.from({ length: n - 1 }, (_, index) => arrow(index, { x: frame.x + frame.width / 2 - 0.1875 * h, y: y0 + VERTICAL_FLOW_STEP * h * index + 1.025 * h, width: 0.375 * h, height: 0.45 * h }, 90));
|
|
708
717
|
return { nodes, arrows };
|
|
709
718
|
}
|
|
710
719
|
function linearNodes(kind2, frame, count, rtl = false) {
|
|
711
|
-
return kind2 === "chevrons" ? chevronNodes(frame, count, rtl) : kind2 === "
|
|
720
|
+
return kind2 === "chevrons" ? chevronNodes(frame, count, rtl) : kind2 === "process" ? flowNodes(frame, count, rtl) : verticalFlowNodes(frame, count);
|
|
712
721
|
}
|
|
713
722
|
var COMPACT_ROOM = 2;
|
|
714
723
|
var COMPACT_COLUMN_ROOM = 1.25;
|
|
@@ -723,8 +732,8 @@ var OPF_COLUMN_ARROW_LENGTH = 0.375;
|
|
|
723
732
|
var OPF_COLUMN_ARROW_THICKNESS = 0.45;
|
|
724
733
|
var OPF_COLUMN_ROOM = 0.5;
|
|
725
734
|
var OPF_CHEVRON_DEPTH = 0.2;
|
|
726
|
-
var OPF_LEAST = Object.freeze({ chevrons: 0.4,
|
|
727
|
-
var OPF_MOST = Object.freeze({ chevrons: 0.8,
|
|
735
|
+
var OPF_LEAST = Object.freeze({ chevrons: 0.4, process: 0.6, "vertical-process": 1 / 1.8 });
|
|
736
|
+
var OPF_MOST = Object.freeze({ chevrons: 0.8, process: 1.25, "vertical-process": 1 });
|
|
728
737
|
var BOX_TEXT_INSET = ROUND_RECT_TEXT_INSET2 * FLOW_ROUND_ADJUST / 1e5;
|
|
729
738
|
function split(count, lines) {
|
|
730
739
|
return Array.from({ length: lines }, (_, line2) => Math.floor(count / lines) + (line2 < count % lines ? 1 : 0));
|
|
@@ -733,12 +742,12 @@ function linearDesign(kind2, area2, count, gap, rtl = false, lines = 1, need, co
|
|
|
733
742
|
const n = Math.max(1, Math.floor(count)), wrap = Math.max(1, Math.min(Math.floor(lines), n)), counts = split(n, wrap), most = counts[0];
|
|
734
743
|
const nodes = [], arrows = [];
|
|
735
744
|
const place2 = (box) => rtl ? mirrorBox(box, area2) : box, turn = (rotation) => rtl ? rotation === 0 ? 180 : rotation === 180 ? 0 : rotation : rotation;
|
|
736
|
-
if (kind2 === "vertical-
|
|
745
|
+
if (kind2 === "vertical-process") {
|
|
737
746
|
const between = 2 * gap, width = (area2.width - (wrap - 1) * between) / wrap;
|
|
738
747
|
if (width <= 0) return void 0;
|
|
739
748
|
const fixed2 = compact ? COMPACT_COLUMN_ROOM * gap : 0;
|
|
740
|
-
const tallest2 = Math.min(compact ? (area2.height - (most - 1) * fixed2) / most : area2.height / (most + OPF_COLUMN_ROOM * (most - 1)), OPF_MOST["vertical-
|
|
741
|
-
const least2 = compact ? 0 : Math.min(tallest2, OPF_LEAST["vertical-
|
|
749
|
+
const tallest2 = Math.min(compact ? (area2.height - (most - 1) * fixed2) / most : area2.height / (most + OPF_COLUMN_ROOM * (most - 1)), OPF_MOST["vertical-process"] * width);
|
|
750
|
+
const least2 = compact ? 0 : Math.min(tallest2, OPF_LEAST["vertical-process"] * width);
|
|
742
751
|
if (tallest2 <= 0) return void 0;
|
|
743
752
|
const h2 = need === void 0 ? tallest2 : Math.min(tallest2, Math.max(least2, need / (1 - 2 * BOX_TEXT_INSET))), room2 = compact ? fixed2 : OPF_COLUMN_ROOM * h2;
|
|
744
753
|
const span = most * h2 + (most - 1) * room2, y02 = area2.y + (area2.height - span) / 2;
|
|
@@ -1082,7 +1091,7 @@ function opfLayoutGeometry(recipe, count) {
|
|
|
1082
1091
|
case "card-grid":
|
|
1083
1092
|
return grid(count, recipe.columns ?? Math.ceil(Math.sqrt(count)));
|
|
1084
1093
|
default: {
|
|
1085
|
-
const kind2 = recipe.design === "chevron-rows" ? "chevrons" : recipe.design === "flow-rows" ? "
|
|
1094
|
+
const kind2 = recipe.design === "chevron-rows" ? "chevrons" : recipe.design === "flow-rows" ? "process" : "vertical-process";
|
|
1086
1095
|
return linearDesign(kind2, area2, count, gap, rtl, Math.min(recipe.lines ?? 1, count), recipe.need, recipe.compact === true) ?? linearDesign(kind2, area2, count, gap, rtl, 1, recipe.need, recipe.compact === true);
|
|
1087
1096
|
}
|
|
1088
1097
|
}
|
|
@@ -1095,8 +1104,8 @@ var OPF_LAYOUT_KIND = Object.freeze({
|
|
|
1095
1104
|
"matrix-quadrants": "matrix",
|
|
1096
1105
|
"card-grid": "matrix",
|
|
1097
1106
|
"chevron-rows": "chevrons",
|
|
1098
|
-
"flow-rows": "
|
|
1099
|
-
"vertical-flow-columns": "vertical-
|
|
1107
|
+
"flow-rows": "process",
|
|
1108
|
+
"vertical-flow-columns": "vertical-process"
|
|
1100
1109
|
});
|
|
1101
1110
|
var SMART_ART_OPF_DOMAIN = Object.freeze({
|
|
1102
1111
|
/**
|
|
@@ -1632,9 +1641,9 @@ function formatNumber(value, language, options = {}) {
|
|
|
1632
1641
|
const rounded = Number(value.toPrecision(12));
|
|
1633
1642
|
return localizeNumberText(String(Object.is(rounded, -0) ? 0 : rounded), language, options);
|
|
1634
1643
|
}
|
|
1635
|
-
function localizeNumberText(
|
|
1636
|
-
if (/e/i.test(
|
|
1637
|
-
const negative =
|
|
1644
|
+
function localizeNumberText(plain3, language, options = {}) {
|
|
1645
|
+
if (/e/i.test(plain3)) return localizeDigits(plain3, language).replace(".", localeOf(language).decimal);
|
|
1646
|
+
const negative = plain3.startsWith("-"), [integer = "0", fraction] = (negative ? plain3.slice(1) : plain3).split(".");
|
|
1638
1647
|
return localizeNumberParts({ negative, integer, ...fraction ? { fraction } : {}, group: options.group === true }, language);
|
|
1639
1648
|
}
|
|
1640
1649
|
function formatPercentNumber(percent, language) {
|
|
@@ -1927,14 +1936,9 @@ function chartNumberLanguage(chart, language) {
|
|
|
1927
1936
|
// src/chart-reference-types.ts
|
|
1928
1937
|
var CHART_REFERENCE_TYPES = /* @__PURE__ */ new Set(["column", "bar", "line", "line-with-markers", "area", "combo"]);
|
|
1929
1938
|
|
|
1930
|
-
// src/
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1934
|
-
function pathFor(parentPath, key) {
|
|
1935
|
-
return parentPath === "/" ? `/${key}` : `${parentPath}/${key.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
1936
|
-
}
|
|
1937
|
-
var promotedRegionKeys = [
|
|
1939
|
+
// src/grid-cells.ts
|
|
1940
|
+
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1941
|
+
var gridCells = [
|
|
1938
1942
|
"start",
|
|
1939
1943
|
"center",
|
|
1940
1944
|
"end",
|
|
@@ -1984,6 +1988,68 @@ var promotedRegionKeys = [
|
|
|
1984
1988
|
"top+middle+bottom:center+end",
|
|
1985
1989
|
"top+middle+bottom:start+center+end"
|
|
1986
1990
|
];
|
|
1991
|
+
var GRID_CELLS = new Set(gridCells);
|
|
1992
|
+
var GRID_ROWS = ["top", "middle", "bottom"];
|
|
1993
|
+
var GRID_COLUMNS = ["start", "center", "end"];
|
|
1994
|
+
function isGridCell(value) {
|
|
1995
|
+
return typeof value === "string" && GRID_CELLS.has(value);
|
|
1996
|
+
}
|
|
1997
|
+
function gridCellSpan(cell) {
|
|
1998
|
+
if (!GRID_CELLS.has(cell)) return void 0;
|
|
1999
|
+
const indices = (part, words2) => part.split("+").map((word) => words2.indexOf(word));
|
|
2000
|
+
const [first = "", second] = cell.split(":");
|
|
2001
|
+
if (second !== void 0) return { rows: indices(first, GRID_ROWS), columns: indices(second, GRID_COLUMNS) };
|
|
2002
|
+
return GRID_COLUMNS.includes(first.split("+")[0] ?? "") ? { rows: [0, 1, 2], columns: indices(first, GRID_COLUMNS) } : { rows: indices(first, GRID_ROWS), columns: [0, 1, 2] };
|
|
2003
|
+
}
|
|
2004
|
+
function cellBlocks(slide) {
|
|
2005
|
+
if (slide.layout !== void 0 || !Array.isArray(slide.blocks)) return void 0;
|
|
2006
|
+
const found = [];
|
|
2007
|
+
for (const [index, block] of slide.blocks.entries()) {
|
|
2008
|
+
if (!isRecord(block)) continue;
|
|
2009
|
+
if (!isGridCell(block.region)) return void 0;
|
|
2010
|
+
found.push({ cell: block.region, index, block });
|
|
2011
|
+
}
|
|
2012
|
+
return found.length ? found : void 0;
|
|
2013
|
+
}
|
|
2014
|
+
function cellsInReadingOrder(entries) {
|
|
2015
|
+
const cells = [...new Set(entries.map((entry) => entry.cell))];
|
|
2016
|
+
const at3 = (cell) => gridCellSpan(cell) ?? { rows: [3], columns: [3] };
|
|
2017
|
+
return cells.sort((a, b) => Math.min(...at3(a).rows) - Math.min(...at3(b).rows) || Math.min(...at3(a).columns) - Math.min(...at3(b).columns));
|
|
2018
|
+
}
|
|
2019
|
+
var logicalCell = (name) => name.split(":").map((part) => part.split("+").map((word) => word === "left" ? "start" : word === "right" ? "end" : word).join("+")).join(":");
|
|
2020
|
+
function nearestGridCell(typed) {
|
|
2021
|
+
if (isGridCell(typed)) return { cell: typed };
|
|
2022
|
+
const logical = logicalCell(typed);
|
|
2023
|
+
if (isGridCell(logical)) return { cell: logical, help: `Write "${logical}": layout words follow the deck's direction, so the sides are "start" and "end", not "left" and "right".` };
|
|
2024
|
+
const halves = logical.split(":");
|
|
2025
|
+
if (halves.length > 2 || halves.some((half) => half === "")) return void 0;
|
|
2026
|
+
const words2 = halves.map((half) => half.split("+"));
|
|
2027
|
+
if (!words2.every((list) => list.every((word) => GRID_ROWS.includes(word) || GRID_COLUMNS.includes(word)))) return void 0;
|
|
2028
|
+
const isRows = (list) => list.every((word) => GRID_ROWS.includes(word)), isColumns = (list) => list.every((word) => GRID_COLUMNS.includes(word));
|
|
2029
|
+
if (words2.some((list) => !isRows(list) && !isColumns(list))) return { help: 'A cell does not mix rows (top, middle, bottom) and columns (start, center, end) in one half: write rows, a colon, then columns, such as "top:start" or "middle+bottom:center+end".' };
|
|
2030
|
+
if (words2.length === 2 && isColumns(words2[0]) && isRows(words2[1])) {
|
|
2031
|
+
const swapped = `${halves[1]}:${halves[0]}`;
|
|
2032
|
+
return isGridCell(swapped) ? { cell: swapped, help: `Rows come before the colon and columns after it: write "${swapped}".` } : { help: 'Rows come before the colon and columns after it, such as "top:start" or "middle+bottom:center+end".' };
|
|
2033
|
+
}
|
|
2034
|
+
if (words2.length === 2 && (!isRows(words2[0]) || !isColumns(words2[1]))) return { help: 'A cell with a colon names rows before it and columns after it, such as "top:start" or "middle+bottom:center+end".' };
|
|
2035
|
+
const order = (list, vocabulary2) => [...new Set(list)].map((word) => vocabulary2.indexOf(word)).sort((x, y) => x - y);
|
|
2036
|
+
const hasRows = words2.length === 2 || isRows(words2[0]), hasColumns = words2.length === 2 || isColumns(words2[0]);
|
|
2037
|
+
const rows3 = hasRows ? order(words2[0], GRID_ROWS) : [], columns2 = hasColumns ? order(words2[words2.length - 1], GRID_COLUMNS) : [];
|
|
2038
|
+
const adjacent = (indexes) => indexes.every((index, at3) => at3 === 0 || index === indexes[at3 - 1] + 1);
|
|
2039
|
+
if (hasRows && !adjacent(rows3) || hasColumns && !adjacent(columns2))
|
|
2040
|
+
return { help: 'A span covers adjacent rows or columns: "top+bottom" and "start+end" skip the middle one. Write "top+middle+bottom" or "start+center+end", or use one cell for each part.' };
|
|
2041
|
+
const canonical = (indexes, vocabulary2) => indexes.map((index) => vocabulary2[index]).join("+");
|
|
2042
|
+
const cell = words2.length === 2 ? `${canonical(rows3, GRID_ROWS)}:${canonical(columns2, GRID_COLUMNS)}` : hasRows ? canonical(rows3, GRID_ROWS) : canonical(columns2, GRID_COLUMNS);
|
|
2043
|
+
return isGridCell(cell) ? { cell, help: `Write "${cell}": the names of a span go in reading order (top, middle, bottom; start, center, end), rows before the colon and columns after it.` } : void 0;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
// src/content-walk.ts
|
|
2047
|
+
function isRecord2(value) {
|
|
2048
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2049
|
+
}
|
|
2050
|
+
function pathFor(parentPath, key) {
|
|
2051
|
+
return parentPath === "/" ? `/${key}` : `${parentPath}/${key.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
2052
|
+
}
|
|
1987
2053
|
function visitContentPayloads(slide, slidePath, visit) {
|
|
1988
2054
|
const walk2 = (payload, path, depth, ancestors) => {
|
|
1989
2055
|
visit(payload, path);
|
|
@@ -1991,19 +2057,15 @@ function visitContentPayloads(slide, slidePath, visit) {
|
|
|
1991
2057
|
const nested = [...ancestors, payload];
|
|
1992
2058
|
const blocksPath = pathFor(path, "blocks");
|
|
1993
2059
|
payload.blocks.forEach((block, index) => {
|
|
1994
|
-
if (
|
|
2060
|
+
if (isRecord2(block)) walk2(block, `${blocksPath}/${index}`, depth + 1, nested);
|
|
1995
2061
|
});
|
|
1996
2062
|
};
|
|
1997
2063
|
if (Array.isArray(slide.blocks)) {
|
|
1998
2064
|
const blocksPath = pathFor(slidePath, "blocks");
|
|
1999
2065
|
slide.blocks.forEach((block, index) => {
|
|
2000
|
-
if (
|
|
2066
|
+
if (isRecord2(block)) walk2(block, `${blocksPath}/${index}`, 0, []);
|
|
2001
2067
|
});
|
|
2002
2068
|
}
|
|
2003
|
-
for (const key of promotedRegionKeys) {
|
|
2004
|
-
const region = slide[key];
|
|
2005
|
-
if (isRecord(region)) walk2(region, pathFor(slidePath, key), 0, []);
|
|
2006
|
-
}
|
|
2007
2069
|
}
|
|
2008
2070
|
|
|
2009
2071
|
// src/furniture-fields.ts
|
|
@@ -2098,13 +2160,13 @@ function formatFurnitureDate(iso, pattern) {
|
|
|
2098
2160
|
|
|
2099
2161
|
// src/deck-metadata.ts
|
|
2100
2162
|
function recordsOf(value) {
|
|
2101
|
-
return (Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value]).filter(
|
|
2163
|
+
return (Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value]).filter(isRecord2);
|
|
2102
2164
|
}
|
|
2103
2165
|
function speakersOf(presentation) {
|
|
2104
|
-
return
|
|
2166
|
+
return isRecord2(presentation) ? recordsOf(presentation.speaker) : [];
|
|
2105
2167
|
}
|
|
2106
2168
|
function organizationsOf(presentation) {
|
|
2107
|
-
return
|
|
2169
|
+
return isRecord2(presentation) ? recordsOf(presentation.organization) : [];
|
|
2108
2170
|
}
|
|
2109
2171
|
function primarySpeaker(presentation) {
|
|
2110
2172
|
return speakersOf(presentation)[0];
|
|
@@ -2141,18 +2203,18 @@ function logoReferenceName(reference, shape = reference.shape) {
|
|
|
2141
2203
|
return `organization${reference.organization !== void 0 ? `.${reference.organization}` : ""}.logo${shape && shape !== "full" ? `.${shape}` : ""}`;
|
|
2142
2204
|
}
|
|
2143
2205
|
function organizationIndex(presentation, id) {
|
|
2144
|
-
if (!
|
|
2206
|
+
if (!isRecord2(presentation)) return -1;
|
|
2145
2207
|
const raw = presentation.organization;
|
|
2146
2208
|
const list = Array.isArray(raw) ? raw : [raw];
|
|
2147
|
-
if (id !== void 0) return list.findIndex((entry) =>
|
|
2148
|
-
const primary = list.findIndex((entry) =>
|
|
2149
|
-
return primary >= 0 ? primary : list.findIndex((entry) =>
|
|
2209
|
+
if (id !== void 0) return list.findIndex((entry) => isRecord2(entry) && entry.id === id);
|
|
2210
|
+
const primary = list.findIndex((entry) => isRecord2(entry) && entry.role === "primary");
|
|
2211
|
+
return primary >= 0 ? primary : list.findIndex((entry) => isRecord2(entry));
|
|
2150
2212
|
}
|
|
2151
2213
|
var usable = (value) => {
|
|
2152
|
-
const source = typeof value === "string" ? value :
|
|
2214
|
+
const source = typeof value === "string" ? value : isRecord2(value) ? value.src : void 0;
|
|
2153
2215
|
return typeof source === "string" && source.trim().length > 0;
|
|
2154
2216
|
};
|
|
2155
|
-
var isAsset = (value) => typeof value === "string" ||
|
|
2217
|
+
var isAsset = (value) => typeof value === "string" || isRecord2(value) && "src" in value;
|
|
2156
2218
|
function shapeChain(shape) {
|
|
2157
2219
|
const chain = [shape, "full", "wordmark", "stacked", "icon"];
|
|
2158
2220
|
return chain.filter((entry, index) => chain.indexOf(entry) === index);
|
|
@@ -2160,7 +2222,7 @@ function shapeChain(shape) {
|
|
|
2160
2222
|
function pickOrganizationLogo(logo, shape, onDark, root) {
|
|
2161
2223
|
if (logo === void 0 || logo === null) return null;
|
|
2162
2224
|
if (isAsset(logo)) return usable(logo) ? { source: logo, path: `${root}.logo`, variant: "default" } : null;
|
|
2163
|
-
if (!
|
|
2225
|
+
if (!isRecord2(logo)) return null;
|
|
2164
2226
|
const tones = onDark ? ["onDark", "onLight"] : ["onLight", "onDark"];
|
|
2165
2227
|
for (const candidate of shapeChain(shape)) {
|
|
2166
2228
|
const entry = logo[candidate];
|
|
@@ -2169,7 +2231,7 @@ function pickOrganizationLogo(logo, shape, onDark, root) {
|
|
|
2169
2231
|
if (usable(entry)) return { source: entry, path: `${root}.logo.${candidate}`, variant: "default" };
|
|
2170
2232
|
continue;
|
|
2171
2233
|
}
|
|
2172
|
-
if (!
|
|
2234
|
+
if (!isRecord2(entry)) continue;
|
|
2173
2235
|
for (const tone of tones) if (usable(entry[tone])) return { source: entry[tone], path: `${root}.logo.${candidate}.${tone}`, variant: tone };
|
|
2174
2236
|
}
|
|
2175
2237
|
return null;
|
|
@@ -2204,8 +2266,8 @@ function resolveLogo(presentation, slide, options = {}) {
|
|
|
2204
2266
|
}
|
|
2205
2267
|
const slideIndex = Number.isSafeInteger(options.slideIndex) && options.slideIndex >= 0 ? options.slideIndex : 0;
|
|
2206
2268
|
const levels = [
|
|
2207
|
-
[
|
|
2208
|
-
[
|
|
2269
|
+
[isRecord2(slide) && isRecord2(slide.design) ? slide.design.logo : void 0, `slides.${slideIndex}.design.logo`],
|
|
2270
|
+
[isRecord2(presentation) && isRecord2(presentation.design) ? presentation.design.logo : void 0, "design.logo"]
|
|
2209
2271
|
];
|
|
2210
2272
|
for (const [value, path] of levels) {
|
|
2211
2273
|
if (value === false) return null;
|
|
@@ -2234,7 +2296,7 @@ function slideTokenFollows(text2) {
|
|
|
2234
2296
|
return slideTokenAhead.test(text2);
|
|
2235
2297
|
}
|
|
2236
2298
|
function checkValues(values) {
|
|
2237
|
-
if (!
|
|
2299
|
+
if (!isRecord2(values)) throw new TypeError("Slide variable values must be an object with slideNumber and slideCount.");
|
|
2238
2300
|
if (!Number.isSafeInteger(values.slideNumber) || values.slideNumber < 1) throw new RangeError("slideNumber must be a positive safe integer.");
|
|
2239
2301
|
if (values.slideCount !== void 0 && (!Number.isSafeInteger(values.slideCount) || values.slideCount < 1)) throw new RangeError("slideCount must be a positive safe integer.");
|
|
2240
2302
|
}
|
|
@@ -2298,13 +2360,13 @@ function substitute(value, values, root, logos = {}) {
|
|
|
2298
2360
|
}
|
|
2299
2361
|
return changed2 ? out2 : value;
|
|
2300
2362
|
}
|
|
2301
|
-
if (!
|
|
2363
|
+
if (!isRecord2(value)) return value;
|
|
2302
2364
|
let changed = false;
|
|
2303
2365
|
const out = {};
|
|
2304
2366
|
for (const [key, entry] of Object.entries(value)) {
|
|
2305
2367
|
let next = entry;
|
|
2306
2368
|
if (skippedKeys.has(key)) next = entry;
|
|
2307
|
-
else if (root && key === "design" &&
|
|
2369
|
+
else if (root && key === "design" && isRecord2(entry)) {
|
|
2308
2370
|
const design = {};
|
|
2309
2371
|
let designChanged = false;
|
|
2310
2372
|
for (const [designKey, designEntry] of Object.entries(entry)) {
|
|
@@ -2320,7 +2382,7 @@ function substitute(value, values, root, logos = {}) {
|
|
|
2320
2382
|
return changed ? out : value;
|
|
2321
2383
|
}
|
|
2322
2384
|
function resolveSlideVariables(slide, values) {
|
|
2323
|
-
if (!
|
|
2385
|
+
if (!isRecord2(slide)) return slide;
|
|
2324
2386
|
const full = { slideNumber: values?.slideNumber, ...values?.slideCount !== void 0 ? { slideCount: values.slideCount } : {}, section: slide.section };
|
|
2325
2387
|
checkValues(full);
|
|
2326
2388
|
const logos = values.presentation !== void 0 ? { presentation: values.presentation, darkBackground: values.darkBackground === true } : {};
|
|
@@ -2333,7 +2395,7 @@ function usesSlideBuiltin(value, name) {
|
|
|
2333
2395
|
const visit = (entry) => {
|
|
2334
2396
|
if (typeof entry === "string") return entry.includes("{{") && pattern.test(entry);
|
|
2335
2397
|
if (Array.isArray(entry)) return entry.some(visit);
|
|
2336
|
-
if (!
|
|
2398
|
+
if (!isRecord2(entry)) return false;
|
|
2337
2399
|
for (const [key, child] of Object.entries(entry)) if (!skippedKeys.has(key) && visit(child)) return true;
|
|
2338
2400
|
return false;
|
|
2339
2401
|
};
|
|
@@ -2374,7 +2436,7 @@ var SAMPLES = {
|
|
|
2374
2436
|
var hasOwn = (value, key) => Object.hasOwn(value, key);
|
|
2375
2437
|
var clone2 = (value) => value === void 0 ? value : JSON.parse(JSON.stringify(value));
|
|
2376
2438
|
function isTemplate(presentation) {
|
|
2377
|
-
return
|
|
2439
|
+
return isRecord2(presentation) && presentation.template === true;
|
|
2378
2440
|
}
|
|
2379
2441
|
function isKind(value) {
|
|
2380
2442
|
return typeof value === "string" && VARIABLE_KINDS.includes(value);
|
|
@@ -2388,7 +2450,7 @@ function coerceVariableValue(kind2, raw) {
|
|
|
2388
2450
|
if (typeof raw === "string") return { ok: true, value: raw };
|
|
2389
2451
|
if (typeof raw === "number" && Number.isFinite(raw)) return { ok: true, value: String(raw) };
|
|
2390
2452
|
if (typeof raw === "boolean") return { ok: true, value: String(raw) };
|
|
2391
|
-
if (Array.isArray(raw) && raw.every((run) => typeof run === "string" ||
|
|
2453
|
+
if (Array.isArray(raw) && raw.every((run) => typeof run === "string" || isRecord2(run) && typeof run.text === "string")) return { ok: true, value: clone2(raw) };
|
|
2392
2454
|
return fail("expected text: a string or an array of text runs");
|
|
2393
2455
|
}
|
|
2394
2456
|
case "number": {
|
|
@@ -2408,7 +2470,7 @@ function coerceVariableValue(kind2, raw) {
|
|
|
2408
2470
|
}
|
|
2409
2471
|
case "image": {
|
|
2410
2472
|
if (typeof raw === "string" && raw.trim()) return { ok: true, value: raw.trim() };
|
|
2411
|
-
if (
|
|
2473
|
+
if (isRecord2(raw) && typeof raw.src === "string" && raw.src.trim()) return { ok: true, value: clone2(raw) };
|
|
2412
2474
|
return fail("expected an image source: a string or an object with src");
|
|
2413
2475
|
}
|
|
2414
2476
|
case "url":
|
|
@@ -2431,7 +2493,7 @@ function isProvided(kind2, raw) {
|
|
|
2431
2493
|
return true;
|
|
2432
2494
|
}
|
|
2433
2495
|
function variableDeclarations(presentation) {
|
|
2434
|
-
if (!
|
|
2496
|
+
if (!isRecord2(presentation) || !isRecord2(presentation.variables)) return [];
|
|
2435
2497
|
const out = [];
|
|
2436
2498
|
for (const [id, entry] of Object.entries(presentation.variables)) {
|
|
2437
2499
|
if (!idPattern.test(id)) continue;
|
|
@@ -2440,7 +2502,7 @@ function variableDeclarations(presentation) {
|
|
|
2440
2502
|
if (hexPattern.test(entry)) out.push({ id, kind: "color", path, required: true, value: entry });
|
|
2441
2503
|
continue;
|
|
2442
2504
|
}
|
|
2443
|
-
if (!
|
|
2505
|
+
if (!isRecord2(entry) || !isKind(entry.type)) continue;
|
|
2444
2506
|
const kind2 = entry.type;
|
|
2445
2507
|
const declaration = { id, kind: kind2, path, required: entry.required !== false };
|
|
2446
2508
|
const value = entry.value !== void 0 ? coerceVariableValue(kind2, entry.value) : void 0;
|
|
@@ -2457,7 +2519,7 @@ function variableDeclarations(presentation) {
|
|
|
2457
2519
|
function usesBuiltins(value, root = true) {
|
|
2458
2520
|
if (typeof value === "string") return value.length >= 6 && builtinUsePattern.test(value);
|
|
2459
2521
|
if (Array.isArray(value)) return value.some((entry) => usesBuiltins(entry, false));
|
|
2460
|
-
if (!
|
|
2522
|
+
if (!isRecord2(value)) return false;
|
|
2461
2523
|
for (const [key, entry] of Object.entries(value)) {
|
|
2462
2524
|
if (skippedKeys2.has(key) || root && skippedRootKeys.has(key)) continue;
|
|
2463
2525
|
if (usesBuiltins(entry, false)) return true;
|
|
@@ -2542,7 +2604,7 @@ function sampleValue(declaration) {
|
|
|
2542
2604
|
}
|
|
2543
2605
|
function plainText(value) {
|
|
2544
2606
|
if (typeof value === "string") return value;
|
|
2545
|
-
if (Array.isArray(value)) return value.map((run) => typeof run === "string" ? run :
|
|
2607
|
+
if (Array.isArray(value)) return value.map((run) => typeof run === "string" ? run : isRecord2(run) && typeof run.text === "string" ? run.text : "").join("");
|
|
2546
2608
|
return "";
|
|
2547
2609
|
}
|
|
2548
2610
|
var ADDRESS_KEYS = /* @__PURE__ */ new Set(["href", "url", "link", "src", "id", "alt", "altText"]);
|
|
@@ -2583,7 +2645,7 @@ function inlineText(effective, format, path, context) {
|
|
|
2583
2645
|
return formatted.text;
|
|
2584
2646
|
}
|
|
2585
2647
|
case "image":
|
|
2586
|
-
return
|
|
2648
|
+
return isRecord2(value) ? String(value.src) : String(value);
|
|
2587
2649
|
case "list":
|
|
2588
2650
|
return value.join(format ?? ", ");
|
|
2589
2651
|
}
|
|
@@ -2599,7 +2661,7 @@ function builtinFields(root) {
|
|
|
2599
2661
|
}
|
|
2600
2662
|
function present(value) {
|
|
2601
2663
|
if (typeof value === "string") return value.trim() === "" ? void 0 : value;
|
|
2602
|
-
if (
|
|
2664
|
+
if (isRecord2(value)) return typeof value.src === "string" && value.src.trim() ? value : void 0;
|
|
2603
2665
|
return void 0;
|
|
2604
2666
|
}
|
|
2605
2667
|
function builtinSource(name, doc) {
|
|
@@ -2794,7 +2856,7 @@ function subtreeVariables(value, path, context, found = /* @__PURE__ */ new Map(
|
|
|
2794
2856
|
return found;
|
|
2795
2857
|
}
|
|
2796
2858
|
if (Array.isArray(value)) for (const [index, entry] of value.entries()) subtreeVariables(entry, `${path}/${index}`, context, found);
|
|
2797
|
-
else if (
|
|
2859
|
+
else if (isRecord2(value)) {
|
|
2798
2860
|
for (const [key, entry] of Object.entries(value)) if (!skippedKeys2.has(key)) subtreeVariables(entry, pathFor(path, key), context, found);
|
|
2799
2861
|
}
|
|
2800
2862
|
return found;
|
|
@@ -2809,7 +2871,7 @@ function anchoredIds(value, path, context) {
|
|
|
2809
2871
|
const shapes = context.doc.slides?.[Number(path.split("/")[2])]?.shapes;
|
|
2810
2872
|
const own3 = /* @__PURE__ */ new Set();
|
|
2811
2873
|
const collect = (node, depth) => {
|
|
2812
|
-
if (
|
|
2874
|
+
if (isRecord2(node) && depth < 64) {
|
|
2813
2875
|
own3.add(node.id);
|
|
2814
2876
|
if (Array.isArray(node.blocks)) for (const child of node.blocks) collect(child, depth + 1);
|
|
2815
2877
|
}
|
|
@@ -2858,7 +2920,7 @@ function walk(value, path, parentIsArray, context) {
|
|
|
2858
2920
|
});
|
|
2859
2921
|
return changed ? out : value;
|
|
2860
2922
|
}
|
|
2861
|
-
if (
|
|
2923
|
+
if (isRecord2(value)) {
|
|
2862
2924
|
if (omittedGroup(value, path, context) && !context.shape) return OMIT2;
|
|
2863
2925
|
let changed = false;
|
|
2864
2926
|
const entries = [];
|
|
@@ -2943,7 +3005,7 @@ function plan(presentation, values, options) {
|
|
|
2943
3005
|
}
|
|
2944
3006
|
function rebuildVariables(presentation, built, keepAll) {
|
|
2945
3007
|
const source = presentation.variables;
|
|
2946
|
-
if (!
|
|
3008
|
+
if (!isRecord2(source)) return void 0;
|
|
2947
3009
|
const out = [];
|
|
2948
3010
|
for (const [id, entry] of Object.entries(source)) {
|
|
2949
3011
|
const effective = built.context.effective.get(id);
|
|
@@ -2961,7 +3023,7 @@ function rebuildVariables(presentation, built, keepAll) {
|
|
|
2961
3023
|
out.push([id, entry]);
|
|
2962
3024
|
continue;
|
|
2963
3025
|
}
|
|
2964
|
-
const base =
|
|
3026
|
+
const base = isRecord2(entry) ? entry : {};
|
|
2965
3027
|
const { example: _example, required: _required, label: _label, ...rest } = base;
|
|
2966
3028
|
out.push([id, { ...rest, type: "color", value: color }]);
|
|
2967
3029
|
}
|
|
@@ -2972,9 +3034,9 @@ function slideSectionDiagnostics(presentation, uses) {
|
|
|
2972
3034
|
if (!paths.length || !Array.isArray(presentation.slides)) return [];
|
|
2973
3035
|
const out = [];
|
|
2974
3036
|
presentation.slides.forEach((slide, index) => {
|
|
2975
|
-
if (!
|
|
3037
|
+
if (!isRecord2(slide) || typeof slide.section === "string" && slide.section !== "") return;
|
|
2976
3038
|
const own3 = `/slides/${index}/`;
|
|
2977
|
-
const design =
|
|
3039
|
+
const design = isRecord2(slide.design) ? slide.design : {};
|
|
2978
3040
|
const inherited = ["header", "footer"].filter((kind2) => design[kind2] === void 0).map((kind2) => `/design/${kind2}/`);
|
|
2979
3041
|
const where = paths.find((path) => path.startsWith(own3) || inherited.some((prefix) => path.startsWith(prefix)));
|
|
2980
3042
|
if (where === void 0) return;
|
|
@@ -3006,8 +3068,8 @@ function finish(presentation, built, options) {
|
|
|
3006
3068
|
return { presentation: result, diagnostics, unfilled: built.unfilled, examplesUsed: built.examplesUsed, complete };
|
|
3007
3069
|
}
|
|
3008
3070
|
function resolveVariables(presentation, values = {}, options = {}) {
|
|
3009
|
-
if (!
|
|
3010
|
-
if (!
|
|
3071
|
+
if (!isRecord2(presentation)) throw new TypeError("resolveVariables expects a presentation object.");
|
|
3072
|
+
if (!isRecord2(values)) throw new TypeError("resolveVariables values must be an object keyed by variable id.");
|
|
3011
3073
|
const built = plan(presentation, values, options);
|
|
3012
3074
|
if (!built.context.content && built.providedColors.size === 0 && built.context.diagnostics.length === 0) {
|
|
3013
3075
|
return { presentation, diagnostics: [], unfilled: built.unfilled, examplesUsed: [], complete: built.unfilled.length === 0 };
|
|
@@ -3030,8 +3092,8 @@ function instantiateForValidation(presentation, values = {}, template) {
|
|
|
3030
3092
|
return finish(presentation, plan(presentation, values, options), options);
|
|
3031
3093
|
}
|
|
3032
3094
|
function listVariables(presentation, values = {}) {
|
|
3033
|
-
if (!
|
|
3034
|
-
const built = plan(presentation,
|
|
3095
|
+
if (!isRecord2(presentation)) return [];
|
|
3096
|
+
const built = plan(presentation, isRecord2(values) ? values : {}, { examples: false, partial: true });
|
|
3035
3097
|
built.context.shape = true;
|
|
3036
3098
|
built.context.content = true;
|
|
3037
3099
|
walk(presentation, "", false, built.context);
|
|
@@ -3048,7 +3110,7 @@ function listVariables(presentation, values = {}) {
|
|
|
3048
3110
|
var SLIDE_SCOPED_LABELS = { "slide.number": "Slide number", "slide.section": "Section", "deck.slideCount": "Slide count" };
|
|
3049
3111
|
var FIELD_LABELS = { name: "name", legalName: "legal name", tagline: "tagline", domain: "domain", email: "email", phone: "phone", logo: "logo", title: "title", bio: "bio", photo: "photo", description: "description", author: "author" };
|
|
3050
3112
|
function listBuiltinVariables(presentation) {
|
|
3051
|
-
if (!
|
|
3113
|
+
if (!isRecord2(presentation)) return [];
|
|
3052
3114
|
const names2 = [];
|
|
3053
3115
|
for (const field of Object.keys(DECK_FIELDS)) names2.push({ name: `deck.${field}`, label: `Deck ${FIELD_LABELS[field]}` });
|
|
3054
3116
|
for (const field of Object.keys(SPEAKER_FIELDS)) names2.push({ name: `speaker.${field}`, label: `Speaker ${FIELD_LABELS[field]}` });
|
|
@@ -3072,7 +3134,7 @@ function listBuiltinVariables(presentation) {
|
|
|
3072
3134
|
}
|
|
3073
3135
|
const slides = Array.isArray(presentation.slides) ? presentation.slides : [];
|
|
3074
3136
|
for (const name of SLIDE_SCOPED_BUILTINS) {
|
|
3075
|
-
const available = name !== "slide.section" || slides.some((slide) =>
|
|
3137
|
+
const available = name !== "slide.section" || slides.some((slide) => isRecord2(slide) && typeof slide.section === "string" && slide.section !== "");
|
|
3076
3138
|
out.push({ name, kind: "text", label: SLIDE_SCOPED_LABELS[name], scope: "slide", available, uses: built.context.uses.filter((use) => use.id === name) });
|
|
3077
3139
|
}
|
|
3078
3140
|
const logoReferences = [{ reference: {}, label: "Organization" }];
|
|
@@ -3763,7 +3825,7 @@ var engineDefaultsSource = {
|
|
|
3763
3825
|
"line-with-markers"
|
|
3764
3826
|
]
|
|
3765
3827
|
};
|
|
3766
|
-
var engineVocabulariesSource = { "chartTypes": ["100pct-stacked-area", "100pct-stacked-bar", "100pct-stacked-column", "area", "bar", "box-and-whisker", "column", "combo", "doughnut", "filled-radar", "funnel", "histogram", "line", "line-with-markers", "pareto", "pie", "radar", "radar-with-markers", "scatter", "stacked-area", "stacked-bar", "stacked-column", "stacked-line", "stacked-line-with-markers", "treemap", "waterfall", "world"], "socialPlatforms": { "linkedin": { "baseUrl": "https://linkedin.com", "profileUrlPattern": "https://linkedin.com/in/{handle}", "companyUrlPattern": "https://linkedin.com/company/{handle}", "handlePrefix": "" }, "x": { "baseUrl": "https://x.com", "profileUrlPattern": "https://x.com/{handle}", "handlePrefix": "@" }, "github": { "baseUrl": "https://github.com", "profileUrlPattern": "https://github.com/{handle}", "companyUrlPattern": "https://github.com/{handle}", "handlePrefix": "" }, "youtube": { "baseUrl": "https://youtube.com", "profileUrlPattern": "https://youtube.com/@{handle}", "handlePrefix": "@" }, "instagram": { "baseUrl": "https://instagram.com", "profileUrlPattern": "https://instagram.com/{handle}", "handlePrefix": "@" }, "facebook": { "baseUrl": "https://facebook.com", "profileUrlPattern": "https://facebook.com/{handle}", "companyUrlPattern": "https://facebook.com/{handle}", "handlePrefix": "" }, "tiktok": { "baseUrl": "https://tiktok.com", "profileUrlPattern": "https://tiktok.com/@{handle}", "handlePrefix": "@" }, "threads": { "baseUrl": "https://threads.net", "profileUrlPattern": "https://threads.net/@{handle}", "handlePrefix": "@" }, "mastodon": { "baseUrl": "https://mastodon.social", "profileUrlPattern": "https://mastodon.social/@{handle}", "handlePrefix": "@" }, "bluesky": { "baseUrl": "https://bsky.app", "profileUrlPattern": "https://bsky.app/profile/{handle}", "handlePrefix": "" } }, "languages": [{ "tag": "af", "script": "Latn", "direction": "ltr", "ooxmlLang": "af-ZA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sq", "script": "Latn", "direction": "ltr", "ooxmlLang": "sq-AL", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "am", "script": "Ethi", "direction": "ltr", "ooxmlLang": "am-ET", "fonts": { "powerpoint": { "major": "Nyala", "minor": "Nyala" }, "google": { "major": "Noto Sans Ethiopic", "minor": "Noto Sans Ethiopic" } } }, { "tag": "ar", "script": "Arab", "direction": "rtl", "ooxmlLang": "ar-SA", "fonts": { "powerpoint": { "major": "Arabic Typesetting", "minor": "Arabic Typesetting" }, "google": { "major": "Noto Naskh Arabic", "minor": "Noto Naskh Arabic" } }, "timelineStatusWords": { "done": "\u0645\u0643\u062A\u0645\u0644", "current": "\u062D\u0627\u0644\u064A", "planned": "\u0645\u062E\u0637\u0637" } }, { "tag": "hy", "script": "Armn", "direction": "ltr", "ooxmlLang": "hy-AM", "fonts": { "powerpoint": { "major": "Sylfaen", "minor": "Sylfaen" }, "google": { "major": "Noto Sans Armenian", "minor": "Noto Sans Armenian" } } }, { "tag": "ay", "script": "Latn", "direction": "ltr", "ooxmlLang": "ay-BO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "az", "script": "Latn", "direction": "ltr", "ooxmlLang": "az-Latn-AZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "bn", "script": "Beng", "direction": "ltr", "ooxmlLang": "bn-BD", "fonts": { "powerpoint": { "major": "Shonar Bangla", "minor": "Shonar Bangla" }, "google": { "major": "Noto Sans Bengali", "minor": "Noto Sans Bengali" } } }, { "tag": "ber-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "tzm-Latn-DZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "bs-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "bs-Latn-BA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "bg", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "bg-BG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "ca", "script": "Latn", "direction": "ltr", "ooxmlLang": "ca-ES", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ceb", "script": "Latn", "direction": "ltr", "ooxmlLang": "ceb-PH", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "zh-Hans", "script": "Hans", "direction": "ltr", "ooxmlLang": "zh-CN", "fonts": { "powerpoint": { "major": "Microsoft YaHei", "minor": "Microsoft YaHei" }, "google": { "major": "Noto Sans SC", "minor": "Noto Sans SC" } }, "timelineStatusWords": { "done": "\u5DF2\u5B8C\u6210", "current": "\u5F53\u524D", "planned": "\u8BA1\u5212" } }, { "tag": "zh-Hant", "script": "Hant", "direction": "ltr", "ooxmlLang": "zh-TW", "fonts": { "powerpoint": { "major": "Microsoft JhengHei", "minor": "Microsoft JhengHei" }, "google": { "major": "Noto Sans TC", "minor": "Noto Sans TC" } }, "timelineStatusWords": { "done": "\u5DF2\u5B8C\u6210", "current": "\u76EE\u524D", "planned": "\u8A08\u756B" } }, { "tag": "ctg", "script": "Beng", "direction": "ltr", "ooxmlLang": "bn-BD", "fonts": { "powerpoint": { "major": "Vrinda", "minor": "Vrinda" }, "google": { "major": "Noto Sans Bengali", "minor": "Noto Sans Bengali" } } }, { "tag": "hr", "script": "Latn", "direction": "ltr", "ooxmlLang": "hr-HR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "cs", "script": "Latn", "direction": "ltr", "ooxmlLang": "cs-CZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Dokon\u010Deno", "current": "Aktu\xE1ln\xED", "planned": "Pl\xE1nov\xE1no" } }, { "tag": "da", "script": "Latn", "direction": "ltr", "ooxmlLang": "da-DK", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Udf\xF8rt", "current": "Aktuelt", "planned": "Planlagt" } }, { "tag": "nl", "script": "Latn", "direction": "ltr", "ooxmlLang": "nl-NL", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Afgerond", "current": "Huidig", "planned": "Gepland" } }, { "tag": "en", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-US", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Done", "current": "Current", "planned": "Planned" } }, { "tag": "en-AU", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-AU", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-CA", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-CA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-GB", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-GB", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-IN", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-IN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-US", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-US", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "et", "script": "Latn", "direction": "ltr", "ooxmlLang": "et-EE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "fil", "script": "Latn", "direction": "ltr", "ooxmlLang": "fil-PH", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "fi", "script": "Latn", "direction": "ltr", "ooxmlLang": "fi-FI", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Valmis", "current": "Nykyinen", "planned": "Suunniteltu" } }, { "tag": "fr", "script": "Latn", "direction": "ltr", "ooxmlLang": "fr-FR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Termin\xE9", "current": "En cours", "planned": "Pr\xE9vu" } }, { "tag": "ff", "script": "Latn", "direction": "ltr", "ooxmlLang": "ff-Latn-SN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "gl", "script": "Latn", "direction": "ltr", "ooxmlLang": "gl-ES", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ka", "script": "Geor", "direction": "ltr", "ooxmlLang": "ka-GE", "fonts": { "powerpoint": { "major": "Sylfaen", "minor": "Sylfaen" }, "google": { "major": "Noto Sans Georgian", "minor": "Noto Sans Georgian" } } }, { "tag": "de", "script": "Latn", "direction": "ltr", "ooxmlLang": "de-DE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Abgeschlossen", "current": "Aktuell", "planned": "Geplant" } }, { "tag": "el", "script": "Grek", "direction": "ltr", "ooxmlLang": "el-GR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } }, "timelineStatusWords": { "done": "\u039F\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5", "current": "\u03A4\u03C1\u03AD\u03C7\u03BF\u03BD", "planned": "\u03A0\u03C1\u03BF\u03B3\u03C1\u03B1\u03BC\u03BC\u03B1\u03C4\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF" } }, { "tag": "gu", "script": "Gujr", "direction": "ltr", "ooxmlLang": "gu-IN", "fonts": { "powerpoint": { "major": "Shruti", "minor": "Shruti" }, "google": { "major": "Noto Sans Gujarati", "minor": "Noto Sans Gujarati" } } }, { "tag": "ha", "script": "Latn", "direction": "ltr", "ooxmlLang": "ha-Latn-NG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "he", "script": "Hebr", "direction": "rtl", "ooxmlLang": "he-IL", "fonts": { "powerpoint": { "major": "David", "minor": "David" }, "google": { "major": "Noto Sans Hebrew", "minor": "Noto Sans Hebrew" } }, "timelineStatusWords": { "done": "\u05D4\u05D5\u05E9\u05DC\u05DD", "current": "\u05E0\u05D5\u05DB\u05D7\u05D9", "planned": "\u05DE\u05EA\u05D5\u05DB\u05E0\u05DF" } }, { "tag": "hi", "script": "Deva", "direction": "ltr", "ooxmlLang": "hi-IN", "fonts": { "powerpoint": { "major": "Mangal", "minor": "Mangal" }, "google": { "major": "Noto Sans Devanagari", "minor": "Noto Sans Devanagari" } }, "timelineStatusWords": { "done": "\u092A\u0942\u0930\u094D\u0923", "current": "\u0935\u0930\u094D\u0924\u092E\u093E\u0928", "planned": "\u0928\u093F\u092F\u094B\u091C\u093F\u0924" } }, { "tag": "hu", "script": "Latn", "direction": "ltr", "ooxmlLang": "hu-HU", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ig", "script": "Latn", "direction": "ltr", "ooxmlLang": "ig-NG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "id", "script": "Latn", "direction": "ltr", "ooxmlLang": "id-ID", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Selesai", "current": "Saat ini", "planned": "Direncanakan" } }, { "tag": "it", "script": "Latn", "direction": "ltr", "ooxmlLang": "it-IT", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Completato", "current": "Attuale", "planned": "Pianificato" } }, { "tag": "ja", "script": "Jpan", "direction": "ltr", "ooxmlLang": "ja-JP", "fonts": { "powerpoint": { "major": "Meiryo", "minor": "Meiryo" }, "google": { "major": "Noto Sans JP", "minor": "Noto Sans JP" } }, "timelineStatusWords": { "done": "\u5B8C\u4E86", "current": "\u73FE\u5728", "planned": "\u4E88\u5B9A" } }, { "tag": "kn", "script": "Knda", "direction": "ltr", "ooxmlLang": "kn-IN", "fonts": { "powerpoint": { "major": "Tunga", "minor": "Tunga" }, "google": { "major": "Noto Sans Kannada", "minor": "Noto Sans Kannada" } } }, { "tag": "kk", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "kk-KZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "km", "script": "Khmr", "direction": "ltr", "ooxmlLang": "km-KH", "fonts": { "powerpoint": { "major": "DaunPenh", "minor": "DaunPenh" }, "google": { "major": "Noto Sans Khmer", "minor": "Noto Sans Khmer" } } }, { "tag": "rw", "script": "Latn", "direction": "ltr", "ooxmlLang": "rw-RW", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ko", "script": "Kore", "direction": "ltr", "ooxmlLang": "ko-KR", "fonts": { "powerpoint": { "major": "Malgun Gothic", "minor": "Malgun Gothic" }, "google": { "major": "Noto Sans KR", "minor": "Noto Sans KR" } }, "timelineStatusWords": { "done": "\uC644\uB8CC", "current": "\uD604\uC7AC", "planned": "\uC608\uC815" } }, { "tag": "kmr", "script": "Latn", "direction": "ltr", "ooxmlLang": "kmr-TR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "lv", "script": "Latn", "direction": "ltr", "ooxmlLang": "lv-LV", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "lt", "script": "Latn", "direction": "ltr", "ooxmlLang": "lt-LT", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "mk", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "mk-MK", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "mg", "script": "Latn", "direction": "ltr", "ooxmlLang": "mg-MG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "zsm", "script": "Latn", "direction": "ltr", "ooxmlLang": "ms-MY", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ml", "script": "Mlym", "direction": "ltr", "ooxmlLang": "ml-IN", "fonts": { "powerpoint": { "major": "Kartika", "minor": "Kartika" }, "google": { "major": "Noto Sans Malayalam", "minor": "Noto Sans Malayalam" } } }, { "tag": "mi", "script": "Latn", "direction": "ltr", "ooxmlLang": "mi-NZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "mr", "script": "Deva", "direction": "ltr", "ooxmlLang": "mr-IN", "fonts": { "powerpoint": { "major": "Mangal", "minor": "Mangal" }, "google": { "major": "Noto Sans Devanagari", "minor": "Noto Sans Devanagari" } } }, { "tag": "mn", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "mn-MN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans Mongolian", "minor": "Noto Sans Mongolian" } } }, { "tag": "ne", "script": "Deva", "direction": "ltr", "ooxmlLang": "ne-NP", "fonts": { "powerpoint": { "major": "Mangal", "minor": "Mangal" }, "google": { "major": "Noto Sans Devanagari", "minor": "Noto Sans Devanagari" } } }, { "tag": "no", "script": "Latn", "direction": "ltr", "ooxmlLang": "nb-NO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Fullf\xF8rt", "current": "N\xE5v\xE6rende", "planned": "Planlagt" } }, { "tag": "or", "script": "Orya", "direction": "ltr", "ooxmlLang": "or-IN", "fonts": { "powerpoint": { "major": "Kalinga", "minor": "Kalinga" }, "google": { "major": "Noto Sans Oriya", "minor": "Noto Sans Oriya" } } }, { "tag": "om", "script": "Latn", "direction": "ltr", "ooxmlLang": "om-ET", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ps", "script": "Arab", "direction": "rtl", "ooxmlLang": "ps-AF", "fonts": { "powerpoint": { "major": "Arial Black", "minor": "Arial" }, "google": { "major": "Noto Naskh Arabic", "minor": "Noto Naskh Arabic" } } }, { "tag": "fa", "script": "Arab", "direction": "rtl", "ooxmlLang": "fa-IR", "fonts": { "powerpoint": { "major": "Arabic Typesetting", "minor": "Arabic Typesetting" }, "google": { "major": "Noto Naskh Arabic", "minor": "Noto Naskh Arabic" } } }, { "tag": "pl", "script": "Latn", "direction": "ltr", "ooxmlLang": "pl-PL", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Uko\u0144czono", "current": "Obecnie", "planned": "Zaplanowano" } }, { "tag": "pt", "script": "Latn", "direction": "ltr", "ooxmlLang": "pt-BR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Conclu\xEDdo", "current": "Atual", "planned": "Planejado" } }, { "tag": "pa-Guru", "script": "Guru", "direction": "ltr", "ooxmlLang": "pa-IN", "fonts": { "powerpoint": { "major": "Raavi", "minor": "Raavi" }, "google": { "major": "Noto Sans Gurmukhi", "minor": "Noto Sans Gurmukhi" } } }, { "tag": "pa-Arab", "script": "Arab", "direction": "rtl", "ooxmlLang": "pa-Arab-PK", "fonts": { "powerpoint": { "major": "Arial Black", "minor": "Arial" }, "google": { "major": "Noto Nastaliq Urdu", "minor": "Noto Nastaliq Urdu" } } }, { "tag": "ro", "script": "Latn", "direction": "ltr", "ooxmlLang": "ro-RO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ru", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "ru-RU", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } }, "timelineStatusWords": { "done": "\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E", "current": "\u0421\u0435\u0439\u0447\u0430\u0441", "planned": "\u0417\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043E" } }, { "tag": "sr-Cyrl", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "sr-Cyrl-RS", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "sr-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "sr-Latn-RS", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sn", "script": "Latn", "direction": "ltr", "ooxmlLang": "sn-Latn-ZW", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sk", "script": "Latn", "direction": "ltr", "ooxmlLang": "sk-SK", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sl", "script": "Latn", "direction": "ltr", "ooxmlLang": "sl-SI", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "so", "script": "Latn", "direction": "ltr", "ooxmlLang": "so-SO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "es", "script": "Latn", "direction": "ltr", "ooxmlLang": "es-ES", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Completado", "current": "Actual", "planned": "Previsto" } }, { "tag": "sw", "script": "Latn", "direction": "ltr", "ooxmlLang": "sw-KE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sv", "script": "Latn", "direction": "ltr", "ooxmlLang": "sv-SE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Klart", "current": "Aktuellt", "planned": "Planerat" } }, { "tag": "tl", "script": "Latn", "direction": "ltr", "ooxmlLang": "fil-PH", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "tg", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "tg-Cyrl-TJ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "ta", "script": "Taml", "direction": "ltr", "ooxmlLang": "ta-IN", "fonts": { "powerpoint": { "major": "Latha", "minor": "Latha" }, "google": { "major": "Noto Sans Tamil", "minor": "Noto Sans Tamil" } } }, { "tag": "te", "script": "Telu", "direction": "ltr", "ooxmlLang": "te-IN", "fonts": { "powerpoint": { "major": "Gautami", "minor": "Gautami" }, "google": { "major": "Noto Sans Telugu", "minor": "Noto Sans Telugu" } } }, { "tag": "th", "script": "Thai", "direction": "ltr", "ooxmlLang": "th-TH", "fonts": { "powerpoint": { "major": "Angsana New", "minor": "Angsana New" }, "google": { "major": "Noto Sans Thai", "minor": "Noto Sans Thai" } }, "timelineStatusWords": { "done": "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27", "current": "\u0E1B\u0E31\u0E08\u0E08\u0E38\u0E1A\u0E31\u0E19", "planned": "\u0E27\u0E32\u0E07\u0E41\u0E1C\u0E19\u0E44\u0E27\u0E49" } }, { "tag": "tr", "script": "Latn", "direction": "ltr", "ooxmlLang": "tr-TR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Tamamland\u0131", "current": "G\xFCncel", "planned": "Planland\u0131" } }, { "tag": "uk", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "uk-UA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } }, "timelineStatusWords": { "done": "\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E", "current": "\u0417\u0430\u0440\u0430\u0437", "planned": "\u0417\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u043E" } }, { "tag": "ur", "script": "Arab", "direction": "rtl", "ooxmlLang": "ur-PK", "fonts": { "powerpoint": { "major": "Arabic Typesetting", "minor": "Arabic Typesetting" }, "google": { "major": "Noto Nastaliq Urdu", "minor": "Noto Nastaliq Urdu" } } }, { "tag": "uz-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "uz-Latn-UZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "vi-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "vi-VN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Ho\xE0n t\u1EA5t", "current": "Hi\u1EC7n t\u1EA1i", "planned": "D\u1EF1 ki\u1EBFn" } }, { "tag": "xh", "script": "Latn", "direction": "ltr", "ooxmlLang": "xh-ZA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "yo", "script": "Latn", "direction": "ltr", "ooxmlLang": "yo-NG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "zu", "script": "Latn", "direction": "ltr", "ooxmlLang": "zu-ZA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }] };
|
|
3828
|
+
var engineVocabulariesSource = { "chartTypes": ["100pct-stacked-area", "100pct-stacked-bar", "100pct-stacked-column", "area", "bar", "box-and-whisker", "column", "combo", "doughnut", "filled-radar", "funnel", "histogram", "line", "line-with-markers", "pareto", "pie", "radar", "radar-with-markers", "scatter", "stacked-area", "stacked-bar", "stacked-column", "stacked-line", "stacked-line-with-markers", "treemap", "waterfall", "world"], "socialPlatforms": { "linkedin": { "baseUrl": "https://linkedin.com", "profileUrlPattern": "https://linkedin.com/in/{handle}", "companyUrlPattern": "https://linkedin.com/company/{handle}", "handlePrefix": "" }, "x": { "baseUrl": "https://x.com", "profileUrlPattern": "https://x.com/{handle}", "handlePrefix": "@" }, "github": { "baseUrl": "https://github.com", "profileUrlPattern": "https://github.com/{handle}", "companyUrlPattern": "https://github.com/{handle}", "handlePrefix": "" }, "youtube": { "baseUrl": "https://youtube.com", "profileUrlPattern": "https://youtube.com/@{handle}", "handlePrefix": "@" }, "instagram": { "baseUrl": "https://instagram.com", "profileUrlPattern": "https://instagram.com/{handle}", "handlePrefix": "@" }, "facebook": { "baseUrl": "https://facebook.com", "profileUrlPattern": "https://facebook.com/{handle}", "companyUrlPattern": "https://facebook.com/{handle}", "handlePrefix": "" }, "tiktok": { "baseUrl": "https://tiktok.com", "profileUrlPattern": "https://tiktok.com/@{handle}", "handlePrefix": "@" }, "threads": { "baseUrl": "https://threads.net", "profileUrlPattern": "https://threads.net/@{handle}", "handlePrefix": "@" }, "mastodon": { "baseUrl": "https://mastodon.social", "profileUrlPattern": "https://mastodon.social/@{handle}", "handlePrefix": "@" }, "bluesky": { "baseUrl": "https://bsky.app", "profileUrlPattern": "https://bsky.app/profile/{handle}", "handlePrefix": "" } }, "languages": [{ "tag": "af", "script": "Latn", "direction": "ltr", "ooxmlLang": "af-ZA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sq", "script": "Latn", "direction": "ltr", "ooxmlLang": "sq-AL", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "am", "script": "Ethi", "direction": "ltr", "ooxmlLang": "am-ET", "fonts": { "powerpoint": { "major": "Ebrima", "minor": "Ebrima" }, "google": { "major": "Noto Sans Ethiopic", "minor": "Noto Sans Ethiopic" } } }, { "tag": "ar", "script": "Arab", "direction": "rtl", "ooxmlLang": "ar-SA", "fonts": { "powerpoint": { "major": "Times New Roman", "minor": "Arial" }, "google": { "major": "Noto Naskh Arabic", "minor": "Noto Naskh Arabic" } }, "timelineStatusWords": { "done": "\u0645\u0643\u062A\u0645\u0644", "current": "\u062D\u0627\u0644\u064A", "planned": "\u0645\u062E\u0637\u0637" } }, { "tag": "hy", "script": "Armn", "direction": "ltr", "ooxmlLang": "hy-AM", "fonts": { "powerpoint": { "major": "Sylfaen", "minor": "Sylfaen" }, "google": { "major": "Noto Sans Armenian", "minor": "Noto Sans Armenian" } } }, { "tag": "ay", "script": "Latn", "direction": "ltr", "ooxmlLang": "ay-BO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "az", "script": "Latn", "direction": "ltr", "ooxmlLang": "az-Latn-AZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "bn", "script": "Beng", "direction": "ltr", "ooxmlLang": "bn-BD", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Bengali", "minor": "Noto Sans Bengali" } } }, { "tag": "ber-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "tzm-Latn-DZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "bs-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "bs-Latn-BA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "bg", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "bg-BG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "ca", "script": "Latn", "direction": "ltr", "ooxmlLang": "ca-ES", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ceb", "script": "Latn", "direction": "ltr", "ooxmlLang": "ceb-PH", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "zh-Hans", "script": "Hans", "direction": "ltr", "ooxmlLang": "zh-CN", "fonts": { "powerpoint": { "major": "Microsoft YaHei", "minor": "Microsoft YaHei" }, "google": { "major": "Noto Sans SC", "minor": "Noto Sans SC" } }, "timelineStatusWords": { "done": "\u5DF2\u5B8C\u6210", "current": "\u5F53\u524D", "planned": "\u8BA1\u5212" } }, { "tag": "zh-Hant", "script": "Hant", "direction": "ltr", "ooxmlLang": "zh-TW", "fonts": { "powerpoint": { "major": "Microsoft JhengHei", "minor": "Microsoft JhengHei" }, "google": { "major": "Noto Sans TC", "minor": "Noto Sans TC" } }, "timelineStatusWords": { "done": "\u5DF2\u5B8C\u6210", "current": "\u76EE\u524D", "planned": "\u8A08\u756B" } }, { "tag": "ctg", "script": "Beng", "direction": "ltr", "ooxmlLang": "bn-BD", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Bengali", "minor": "Noto Sans Bengali" } } }, { "tag": "hr", "script": "Latn", "direction": "ltr", "ooxmlLang": "hr-HR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "cs", "script": "Latn", "direction": "ltr", "ooxmlLang": "cs-CZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Dokon\u010Deno", "current": "Aktu\xE1ln\xED", "planned": "Pl\xE1nov\xE1no" } }, { "tag": "da", "script": "Latn", "direction": "ltr", "ooxmlLang": "da-DK", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Udf\xF8rt", "current": "Aktuelt", "planned": "Planlagt" } }, { "tag": "nl", "script": "Latn", "direction": "ltr", "ooxmlLang": "nl-NL", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Afgerond", "current": "Huidig", "planned": "Gepland" } }, { "tag": "en", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-US", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Done", "current": "Current", "planned": "Planned" } }, { "tag": "en-AU", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-AU", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-CA", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-CA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-GB", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-GB", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-IN", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-IN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "en-US", "script": "Latn", "direction": "ltr", "ooxmlLang": "en-US", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "et", "script": "Latn", "direction": "ltr", "ooxmlLang": "et-EE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "fil", "script": "Latn", "direction": "ltr", "ooxmlLang": "fil-PH", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "fi", "script": "Latn", "direction": "ltr", "ooxmlLang": "fi-FI", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Valmis", "current": "Nykyinen", "planned": "Suunniteltu" } }, { "tag": "fr", "script": "Latn", "direction": "ltr", "ooxmlLang": "fr-FR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Termin\xE9", "current": "En cours", "planned": "Pr\xE9vu" } }, { "tag": "ff", "script": "Latn", "direction": "ltr", "ooxmlLang": "ff-Latn-SN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "gl", "script": "Latn", "direction": "ltr", "ooxmlLang": "gl-ES", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ka", "script": "Geor", "direction": "ltr", "ooxmlLang": "ka-GE", "fonts": { "powerpoint": { "major": "Sylfaen", "minor": "Sylfaen" }, "google": { "major": "Noto Sans Georgian", "minor": "Noto Sans Georgian" } } }, { "tag": "de", "script": "Latn", "direction": "ltr", "ooxmlLang": "de-DE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Abgeschlossen", "current": "Aktuell", "planned": "Geplant" } }, { "tag": "el", "script": "Grek", "direction": "ltr", "ooxmlLang": "el-GR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } }, "timelineStatusWords": { "done": "\u039F\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5", "current": "\u03A4\u03C1\u03AD\u03C7\u03BF\u03BD", "planned": "\u03A0\u03C1\u03BF\u03B3\u03C1\u03B1\u03BC\u03BC\u03B1\u03C4\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF" } }, { "tag": "gu", "script": "Gujr", "direction": "ltr", "ooxmlLang": "gu-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Gujarati", "minor": "Noto Sans Gujarati" } } }, { "tag": "ha", "script": "Latn", "direction": "ltr", "ooxmlLang": "ha-Latn-NG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "he", "script": "Hebr", "direction": "rtl", "ooxmlLang": "he-IL", "fonts": { "powerpoint": { "major": "Segoe UI", "minor": "Segoe UI" }, "google": { "major": "Noto Sans Hebrew", "minor": "Noto Sans Hebrew" } }, "timelineStatusWords": { "done": "\u05D4\u05D5\u05E9\u05DC\u05DD", "current": "\u05E0\u05D5\u05DB\u05D7\u05D9", "planned": "\u05DE\u05EA\u05D5\u05DB\u05E0\u05DF" } }, { "tag": "hi", "script": "Deva", "direction": "ltr", "ooxmlLang": "hi-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Devanagari", "minor": "Noto Sans Devanagari" } }, "timelineStatusWords": { "done": "\u092A\u0942\u0930\u094D\u0923", "current": "\u0935\u0930\u094D\u0924\u092E\u093E\u0928", "planned": "\u0928\u093F\u092F\u094B\u091C\u093F\u0924" } }, { "tag": "hu", "script": "Latn", "direction": "ltr", "ooxmlLang": "hu-HU", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ig", "script": "Latn", "direction": "ltr", "ooxmlLang": "ig-NG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "id", "script": "Latn", "direction": "ltr", "ooxmlLang": "id-ID", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Selesai", "current": "Saat ini", "planned": "Direncanakan" } }, { "tag": "it", "script": "Latn", "direction": "ltr", "ooxmlLang": "it-IT", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Completato", "current": "Attuale", "planned": "Pianificato" } }, { "tag": "ja", "script": "Jpan", "direction": "ltr", "ooxmlLang": "ja-JP", "fonts": { "powerpoint": { "major": "Yu Gothic", "minor": "Yu Gothic" }, "google": { "major": "Noto Sans JP", "minor": "Noto Sans JP" } }, "timelineStatusWords": { "done": "\u5B8C\u4E86", "current": "\u73FE\u5728", "planned": "\u4E88\u5B9A" } }, { "tag": "kn", "script": "Knda", "direction": "ltr", "ooxmlLang": "kn-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Kannada", "minor": "Noto Sans Kannada" } } }, { "tag": "kk", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "kk-KZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "km", "script": "Khmr", "direction": "ltr", "ooxmlLang": "km-KH", "fonts": { "powerpoint": { "major": "Leelawadee UI", "minor": "Leelawadee UI" }, "google": { "major": "Noto Sans Khmer", "minor": "Noto Sans Khmer" } } }, { "tag": "rw", "script": "Latn", "direction": "ltr", "ooxmlLang": "rw-RW", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ko", "script": "Kore", "direction": "ltr", "ooxmlLang": "ko-KR", "fonts": { "powerpoint": { "major": "Malgun Gothic", "minor": "Malgun Gothic" }, "google": { "major": "Noto Sans KR", "minor": "Noto Sans KR" } }, "timelineStatusWords": { "done": "\uC644\uB8CC", "current": "\uD604\uC7AC", "planned": "\uC608\uC815" } }, { "tag": "kmr", "script": "Latn", "direction": "ltr", "ooxmlLang": "kmr-TR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "lv", "script": "Latn", "direction": "ltr", "ooxmlLang": "lv-LV", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "lt", "script": "Latn", "direction": "ltr", "ooxmlLang": "lt-LT", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "mk", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "mk-MK", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "mg", "script": "Latn", "direction": "ltr", "ooxmlLang": "mg-MG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "zsm", "script": "Latn", "direction": "ltr", "ooxmlLang": "ms-MY", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ml", "script": "Mlym", "direction": "ltr", "ooxmlLang": "ml-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Malayalam", "minor": "Noto Sans Malayalam" } } }, { "tag": "mi", "script": "Latn", "direction": "ltr", "ooxmlLang": "mi-NZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "mr", "script": "Deva", "direction": "ltr", "ooxmlLang": "mr-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Devanagari", "minor": "Noto Sans Devanagari" } } }, { "tag": "mn", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "mn-MN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans Mongolian", "minor": "Noto Sans Mongolian" } } }, { "tag": "ne", "script": "Deva", "direction": "ltr", "ooxmlLang": "ne-NP", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Devanagari", "minor": "Noto Sans Devanagari" } } }, { "tag": "no", "script": "Latn", "direction": "ltr", "ooxmlLang": "nb-NO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Fullf\xF8rt", "current": "N\xE5v\xE6rende", "planned": "Planlagt" } }, { "tag": "or", "script": "Orya", "direction": "ltr", "ooxmlLang": "or-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Oriya", "minor": "Noto Sans Oriya" } } }, { "tag": "om", "script": "Latn", "direction": "ltr", "ooxmlLang": "om-ET", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ps", "script": "Arab", "direction": "rtl", "ooxmlLang": "ps-AF", "fonts": { "powerpoint": { "major": "Times New Roman", "minor": "Arial" }, "google": { "major": "Noto Naskh Arabic", "minor": "Noto Naskh Arabic" } } }, { "tag": "fa", "script": "Arab", "direction": "rtl", "ooxmlLang": "fa-IR", "fonts": { "powerpoint": { "major": "Times New Roman", "minor": "Arial" }, "google": { "major": "Noto Naskh Arabic", "minor": "Noto Naskh Arabic" } } }, { "tag": "pl", "script": "Latn", "direction": "ltr", "ooxmlLang": "pl-PL", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Uko\u0144czono", "current": "Obecnie", "planned": "Zaplanowano" } }, { "tag": "pt", "script": "Latn", "direction": "ltr", "ooxmlLang": "pt-BR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Conclu\xEDdo", "current": "Atual", "planned": "Planejado" } }, { "tag": "pa-Guru", "script": "Guru", "direction": "ltr", "ooxmlLang": "pa-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Gurmukhi", "minor": "Noto Sans Gurmukhi" } } }, { "tag": "pa-Arab", "script": "Arab", "direction": "rtl", "ooxmlLang": "pa-Arab-PK", "fonts": { "powerpoint": { "major": "Times New Roman", "minor": "Arial" }, "google": { "major": "Noto Nastaliq Urdu", "minor": "Noto Nastaliq Urdu" } } }, { "tag": "ro", "script": "Latn", "direction": "ltr", "ooxmlLang": "ro-RO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "ru", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "ru-RU", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } }, "timelineStatusWords": { "done": "\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E", "current": "\u0421\u0435\u0439\u0447\u0430\u0441", "planned": "\u0417\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043E" } }, { "tag": "sr-Cyrl", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "sr-Cyrl-RS", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "sr-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "sr-Latn-RS", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sn", "script": "Latn", "direction": "ltr", "ooxmlLang": "sn-Latn-ZW", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sk", "script": "Latn", "direction": "ltr", "ooxmlLang": "sk-SK", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sl", "script": "Latn", "direction": "ltr", "ooxmlLang": "sl-SI", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "so", "script": "Latn", "direction": "ltr", "ooxmlLang": "so-SO", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "es", "script": "Latn", "direction": "ltr", "ooxmlLang": "es-ES", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Completado", "current": "Actual", "planned": "Previsto" } }, { "tag": "sw", "script": "Latn", "direction": "ltr", "ooxmlLang": "sw-KE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "sv", "script": "Latn", "direction": "ltr", "ooxmlLang": "sv-SE", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Klart", "current": "Aktuellt", "planned": "Planerat" } }, { "tag": "tl", "script": "Latn", "direction": "ltr", "ooxmlLang": "fil-PH", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "tg", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "tg-Cyrl-TJ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } } }, { "tag": "ta", "script": "Taml", "direction": "ltr", "ooxmlLang": "ta-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Tamil", "minor": "Noto Sans Tamil" } } }, { "tag": "te", "script": "Telu", "direction": "ltr", "ooxmlLang": "te-IN", "fonts": { "powerpoint": { "major": "Nirmala UI", "minor": "Nirmala UI" }, "google": { "major": "Noto Sans Telugu", "minor": "Noto Sans Telugu" } } }, { "tag": "th", "script": "Thai", "direction": "ltr", "ooxmlLang": "th-TH", "fonts": { "powerpoint": { "major": "Leelawadee UI", "minor": "Leelawadee UI" }, "google": { "major": "Noto Sans Thai", "minor": "Noto Sans Thai" } }, "timelineStatusWords": { "done": "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27", "current": "\u0E1B\u0E31\u0E08\u0E08\u0E38\u0E1A\u0E31\u0E19", "planned": "\u0E27\u0E32\u0E07\u0E41\u0E1C\u0E19\u0E44\u0E27\u0E49" } }, { "tag": "tr", "script": "Latn", "direction": "ltr", "ooxmlLang": "tr-TR", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Tamamland\u0131", "current": "G\xFCncel", "planned": "Planland\u0131" } }, { "tag": "uk", "script": "Cyrl", "direction": "ltr", "ooxmlLang": "uk-UA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Noto Sans", "minor": "Noto Sans" } }, "timelineStatusWords": { "done": "\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E", "current": "\u0417\u0430\u0440\u0430\u0437", "planned": "\u0417\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u043E" } }, { "tag": "ur", "script": "Arab", "direction": "rtl", "ooxmlLang": "ur-PK", "fonts": { "powerpoint": { "major": "Times New Roman", "minor": "Arial" }, "google": { "major": "Noto Nastaliq Urdu", "minor": "Noto Nastaliq Urdu" } } }, { "tag": "uz-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "uz-Latn-UZ", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "vi-Latn", "script": "Latn", "direction": "ltr", "ooxmlLang": "vi-VN", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } }, "timelineStatusWords": { "done": "Ho\xE0n t\u1EA5t", "current": "Hi\u1EC7n t\u1EA1i", "planned": "D\u1EF1 ki\u1EBFn" } }, { "tag": "xh", "script": "Latn", "direction": "ltr", "ooxmlLang": "xh-ZA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "yo", "script": "Latn", "direction": "ltr", "ooxmlLang": "yo-NG", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }, { "tag": "zu", "script": "Latn", "direction": "ltr", "ooxmlLang": "zu-ZA", "fonts": { "powerpoint": { "major": "Aptos Display", "minor": "Aptos" }, "google": { "major": "Roboto", "minor": "Roboto" } } }] };
|
|
3767
3829
|
|
|
3768
3830
|
// src/engine-vocabularies.ts
|
|
3769
3831
|
var ENGINE_DEFAULT_THEME = engineDefaultsSource.theme;
|
|
@@ -4624,10 +4686,10 @@ function tableHighlightColor(surface, accent, text2) {
|
|
|
4624
4686
|
const fill = (normalizeHexColor(surface) ?? "#FFFFFF").slice(0, 7);
|
|
4625
4687
|
const ink = (normalizeHexColor(text2) ?? textColorForFill(fill, "#000000")).slice(0, 7);
|
|
4626
4688
|
const from = opaqueChannels(fill), to = opaqueChannels((normalizeHexColor(accent) ?? "#000000").slice(0, 7)) ?? [0, 0, 0];
|
|
4627
|
-
const
|
|
4689
|
+
const plain3 = colorContrast(ink, fill) ?? 0;
|
|
4628
4690
|
for (let percent = Math.round(TABLE_HIGHLIGHT_MIX * 100); percent >= 1; percent--) {
|
|
4629
4691
|
const tint = mixChannels(from, to, percent / 100), contrast3 = colorContrast(ink, tint) ?? 0;
|
|
4630
|
-
if (contrast3 >= 4.5 || contrast3 >=
|
|
4692
|
+
if (contrast3 >= 4.5 || contrast3 >= plain3) return tint;
|
|
4631
4693
|
}
|
|
4632
4694
|
return fill.toUpperCase();
|
|
4633
4695
|
}
|
|
@@ -5861,9 +5923,9 @@ function areaEnd(shape, j, row, text2, m, geometry) {
|
|
|
5861
5923
|
};
|
|
5862
5924
|
const near2 = bounds(0), far = bounds(room);
|
|
5863
5925
|
if (Math.abs(near2.bottom - near2.top) < m.textHeight || Math.abs(far.bottom - far.top) < m.textHeight) return void 0;
|
|
5864
|
-
const middle = bounds(room / 2),
|
|
5926
|
+
const middle = bounds(room / 2), center2 = (middle.top + middle.bottom) / 2;
|
|
5865
5927
|
const boxWidth = width + m.fontPx * 0.3;
|
|
5866
|
-
return { series: j, row, text: text2, align: toLeft ? "left" : "right", box: { x: toLeft ? edgeX + m.fontPx * 0.1 : edgeX - m.fontPx * 0.1 - boxWidth, y:
|
|
5928
|
+
return { series: j, row, text: text2, align: toLeft ? "left" : "right", box: { x: toLeft ? edgeX + m.fontPx * 0.1 : edgeX - m.fontPx * 0.1 - boxWidth, y: center2 - m.lineHeight / 2, width: boxWidth, height: m.lineHeight } };
|
|
5867
5929
|
}
|
|
5868
5930
|
function stackMarks(chart, data, axis2, plot, geometry, edge = false) {
|
|
5869
5931
|
const shape = segments(chart, data, axis2, plot, edge);
|
|
@@ -5894,9 +5956,9 @@ function placeStackNames(chart, data, axis2, box, plotInset, geometry, relaxed =
|
|
|
5894
5956
|
if (!shape) return void 0;
|
|
5895
5957
|
const { fontPx, textHeight, lineHeight } = metrics(box, geometry.scale, geometry.minFontSize);
|
|
5896
5958
|
const rtl = geometry.direction === "rtl", last = data.rows.length - 1;
|
|
5897
|
-
const
|
|
5959
|
+
const center2 = shape.pointX(last, rtl), reach = shape.kind === "bar" ? shape.band / 3 : 0;
|
|
5898
5960
|
const lead = shape.spaced ? fontPx * 0.6 : fontPx * 0.25;
|
|
5899
|
-
const start = rtl ?
|
|
5961
|
+
const start = rtl ? center2 - reach - lead : center2 + reach + lead;
|
|
5900
5962
|
const swatch = fontPx * 0.6;
|
|
5901
5963
|
const placed = shape.series.map((_, j) => {
|
|
5902
5964
|
const point = shape.stacks[j][last], name = label3(data.columns[j + 1]), bold = focus?.includes(j) === true && !stableNameWidths(chart);
|
|
@@ -5905,18 +5967,18 @@ function placeStackNames(chart, data, axis2, box, plotInset, geometry, relaxed =
|
|
|
5905
5967
|
return { j, name, bold, y, width };
|
|
5906
5968
|
});
|
|
5907
5969
|
const order = [...placed].sort((a, b) => a.y - b.y || b.j - a.j);
|
|
5908
|
-
const
|
|
5970
|
+
const centers = order.map((entry) => entry.y);
|
|
5909
5971
|
const top = plot.y + textHeight / 2, bottom = plot.y + plot.height - textHeight / 2;
|
|
5910
5972
|
if ((order.length - 1) * textHeight > bottom - top + 1e-6) return void 0;
|
|
5911
|
-
for (let index = 0; index <
|
|
5912
|
-
for (let index =
|
|
5913
|
-
for (let index = 0; index <
|
|
5914
|
-
if (!relaxed && order.some((entry, index) => Math.abs(
|
|
5973
|
+
for (let index = 0; index < centers.length; index++) centers[index] = Math.max(centers[index], index ? centers[index - 1] + textHeight : top);
|
|
5974
|
+
for (let index = centers.length - 1; index >= 0; index--) centers[index] = Math.min(centers[index], index === centers.length - 1 ? bottom : centers[index + 1] - textHeight);
|
|
5975
|
+
for (let index = 0; index < centers.length; index++) centers[index] = Math.max(centers[index], index ? centers[index - 1] + textHeight : top);
|
|
5976
|
+
if (!relaxed && order.some((entry, index) => Math.abs(centers[index] - entry.y) > textHeight + 1e-6)) return void 0;
|
|
5915
5977
|
const entries = order.map((entry, index) => ({
|
|
5916
5978
|
series: entry.j,
|
|
5917
5979
|
name: entry.name,
|
|
5918
5980
|
...entry.bold ? { bold: true } : {},
|
|
5919
|
-
box: { x: rtl ? start - entry.width : start, y:
|
|
5981
|
+
box: { x: rtl ? start - entry.width : start, y: centers[index] - lineHeight / 2, width: entry.width, height: lineHeight }
|
|
5920
5982
|
}));
|
|
5921
5983
|
if (!relaxed && entries.some((entry) => entry.box.x < box.x - 0.5 || entry.box.x + entry.box.width > box.x + box.width + 0.5)) return void 0;
|
|
5922
5984
|
return entries.sort((a, b) => a.series - b.series);
|
|
@@ -6172,9 +6234,9 @@ function categoryLabelReserve(labels, plot, cap, leftLimit, m) {
|
|
|
6172
6234
|
}
|
|
6173
6235
|
return { n, reserve: m.lineHeight + (rows3 - 1) * lineH };
|
|
6174
6236
|
};
|
|
6175
|
-
let
|
|
6176
|
-
for (let n = 1; n <= count && !
|
|
6177
|
-
|
|
6237
|
+
let plain3;
|
|
6238
|
+
for (let n = 1; n <= count && !plain3; n++) plain3 = horizontal(n);
|
|
6239
|
+
plain3 ??= { n: count, reserve: m.lineHeight };
|
|
6178
6240
|
const rotated = (angle) => {
|
|
6179
6241
|
const sin = angle === 90 ? 1 : Math.SQRT1_2, cos = angle === 90 ? 0 : Math.SQRT1_2;
|
|
6180
6242
|
const n = Math.max(1, Math.ceil(lineH / sin / band - 1e-9));
|
|
@@ -6187,7 +6249,7 @@ function categoryLabelReserve(labels, plot, cap, leftLimit, m) {
|
|
|
6187
6249
|
const reserve = Math.max(m.lineHeight, m.fontPx * 0.25 + extent2);
|
|
6188
6250
|
return reserve > cap + 1e-6 ? void 0 : { n, reserve };
|
|
6189
6251
|
};
|
|
6190
|
-
const options = [
|
|
6252
|
+
const options = [plain3, rotated(45), rotated(90)].filter((option) => option !== void 0);
|
|
6191
6253
|
return (options.find((option) => option.n === 1) ?? options.reduce((best, option) => option.n < best.n ? option : best)).reserve;
|
|
6192
6254
|
}
|
|
6193
6255
|
function chartPlotInset(chart, resolved2, composed, geometry) {
|
|
@@ -6421,13 +6483,13 @@ function placeEndLabels(chart, data, axis2, box, plotInset, geometry, relaxed =
|
|
|
6421
6483
|
return { j, name: entry.name, text: text2, bold, y: at3(stacks[j][last].to), width: (bold && geometry.bold ? geometry.bold(text2, fontPx) : geometry.measure(text2, fontPx)) + fontPx * 0.5 };
|
|
6422
6484
|
});
|
|
6423
6485
|
const order = [...placed].sort((a, b) => a.y - b.y || a.j - b.j);
|
|
6424
|
-
const
|
|
6486
|
+
const centers = order.map((entry) => entry.y);
|
|
6425
6487
|
const top = plot.y, bottom = plot.y + plot.height - textHeight / 2;
|
|
6426
6488
|
if ((order.length - 1) * textHeight > bottom - top + 1e-6) return void 0;
|
|
6427
|
-
for (let index = 0; index <
|
|
6428
|
-
for (let index =
|
|
6429
|
-
for (let index = 0; index <
|
|
6430
|
-
if (!relaxed && order.some((entry, index) => Math.abs(
|
|
6489
|
+
for (let index = 0; index < centers.length; index++) centers[index] = Math.max(centers[index], index ? centers[index - 1] + textHeight : top);
|
|
6490
|
+
for (let index = centers.length - 1; index >= 0; index--) centers[index] = Math.min(centers[index], index === centers.length - 1 ? bottom : centers[index + 1] - textHeight);
|
|
6491
|
+
for (let index = 0; index < centers.length; index++) centers[index] = Math.max(centers[index], index ? centers[index - 1] + textHeight : top);
|
|
6492
|
+
if (!relaxed && order.some((entry, index) => Math.abs(centers[index] - entry.y) > textHeight + 1e-6)) return void 0;
|
|
6431
6493
|
const entries = order.map((entry, index) => ({
|
|
6432
6494
|
series: entry.j,
|
|
6433
6495
|
name: entry.name,
|
|
@@ -6435,7 +6497,7 @@ function placeEndLabels(chart, data, axis2, box, plotInset, geometry, relaxed =
|
|
|
6435
6497
|
...entry.bold ? { bold: true } : {},
|
|
6436
6498
|
row: last,
|
|
6437
6499
|
point: { x, y: entry.y },
|
|
6438
|
-
box: { x: rtl ? x - gap - entry.width : x + gap, y:
|
|
6500
|
+
box: { x: rtl ? x - gap - entry.width : x + gap, y: centers[index] - lineHeight / 2, width: entry.width, height: lineHeight }
|
|
6439
6501
|
}));
|
|
6440
6502
|
return entries.sort((a, b) => a.series - b.series);
|
|
6441
6503
|
}
|
|
@@ -7050,9 +7112,9 @@ function waterfallLabelReserve(names2, widthOf, plot, font, scale2, maximum) {
|
|
|
7050
7112
|
}
|
|
7051
7113
|
return { n, reserve: line2 + (rows3 - 1) * textHeight };
|
|
7052
7114
|
};
|
|
7053
|
-
let
|
|
7054
|
-
for (let n = 1; n <= labels.length && !
|
|
7055
|
-
|
|
7115
|
+
let plain3;
|
|
7116
|
+
for (let n = 1; n <= labels.length && !plain3; n++) plain3 = horizontal(n);
|
|
7117
|
+
plain3 ??= { n: labels.length, reserve: line2 };
|
|
7056
7118
|
const rotated = (angle) => {
|
|
7057
7119
|
const sin = angle === 90 ? 1 : Math.SQRT1_2, cos = angle === 90 ? 0 : Math.SQRT1_2, n = Math.max(1, Math.ceil(textHeight / sin / band - 1e-9));
|
|
7058
7120
|
let extent2 = 0;
|
|
@@ -7064,7 +7126,7 @@ function waterfallLabelReserve(names2, widthOf, plot, font, scale2, maximum) {
|
|
|
7064
7126
|
const reserve = Math.max(line2, font * 0.25 + extent2);
|
|
7065
7127
|
return reserve > maximum + 1e-6 ? void 0 : { n, reserve };
|
|
7066
7128
|
};
|
|
7067
|
-
const options = [
|
|
7129
|
+
const options = [plain3, rotated(45), rotated(90)].filter((value) => value !== void 0);
|
|
7068
7130
|
return options.find((option) => option.n === 1) ?? options.reduce((best, option) => option.n < best.n ? option : best);
|
|
7069
7131
|
}
|
|
7070
7132
|
function waterfallAxis(chart, data, geometry, layer) {
|
|
@@ -7103,10 +7165,10 @@ function waterfallAxis(chart, data, geometry, layer) {
|
|
|
7103
7165
|
}
|
|
7104
7166
|
|
|
7105
7167
|
// src/image-aspect.ts
|
|
7106
|
-
var
|
|
7168
|
+
var isRecord3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
7107
7169
|
function sourceOf(value) {
|
|
7108
7170
|
if (typeof value === "string") return value;
|
|
7109
|
-
return
|
|
7171
|
+
return isRecord3(value) && typeof value.src === "string" ? value.src : void 0;
|
|
7110
7172
|
}
|
|
7111
7173
|
var PREFIX_BYTES = 64 * 1024;
|
|
7112
7174
|
var JPEG_PREFIX_BYTES = 1024 * 1024;
|
|
@@ -7226,7 +7288,7 @@ function readDimensions(source) {
|
|
|
7226
7288
|
}
|
|
7227
7289
|
function intrinsicImageSize(value, assets) {
|
|
7228
7290
|
let source = sourceOf(value);
|
|
7229
|
-
for (let hop = 0; source?.startsWith("asset:") && hop < 8; hop++) source = sourceOf(
|
|
7291
|
+
for (let hop = 0; source?.startsWith("asset:") && hop < 8; hop++) source = sourceOf(isRecord3(assets) ? assets[source.slice(6)] : void 0);
|
|
7230
7292
|
if (!source?.startsWith("data:")) return void 0;
|
|
7231
7293
|
if (!cache3.has(source)) {
|
|
7232
7294
|
if (cache3.size >= CACHE_ENTRIES) cache3.delete(cache3.keys().next().value);
|
|
@@ -7241,16 +7303,20 @@ function intrinsicImageAspect(value, assets) {
|
|
|
7241
7303
|
}
|
|
7242
7304
|
|
|
7243
7305
|
// src/design-hints.ts
|
|
7244
|
-
var DESIGN_HINT_KEYS = ["titleAlignment", "
|
|
7245
|
-
var THEME_DESIGN_KEYS = ["titleAlignment", "
|
|
7306
|
+
var DESIGN_HINT_KEYS = ["titleAlignment", "titlePosition", "contentAlignment", "contentBox", "imageFit", "listBullet", "listStyle", "mirror"];
|
|
7307
|
+
var THEME_DESIGN_KEYS = ["titleAlignment", "titlePosition", "contentAlignment", "contentBox", "imageFit", "listBullet", "listStyle"];
|
|
7308
|
+
var REMOVED_DESIGN_KEYS = Object.freeze({
|
|
7309
|
+
contentDirection: `OPF 0.35 removed design.contentDirection. Delete it: the engine now composes the slide. For a specific arrangement, set the slide's composition (mode "row" or "column", and weights); in a layout record, a region's flow "row" or "column" says it.`,
|
|
7310
|
+
chartPrimary: `OPF 0.35 removed design.chartPrimary. Delete it: the engine now composes the slide. For a specific arrangement, set the slide's composition (mode and weights), such as a chart on one side: mode "row", weights [3, 2], the chart first in blocks.`
|
|
7311
|
+
});
|
|
7312
|
+
var TITLE_POSITIONS = ["top", "start"];
|
|
7246
7313
|
var itemAlignment = (value) => value === "start" ? "left" : value === "end" ? "right" : value === "center" ? "center" : void 0;
|
|
7247
7314
|
var ALIGNMENTS = ["start", "center", "end"];
|
|
7248
7315
|
var VALUES = {
|
|
7249
7316
|
titleAlignment: ALIGNMENTS,
|
|
7317
|
+
titlePosition: TITLE_POSITIONS,
|
|
7250
7318
|
contentAlignment: ALIGNMENTS,
|
|
7251
7319
|
contentBox: "boolean",
|
|
7252
|
-
contentDirection: ["horizontal", "vertical"],
|
|
7253
|
-
chartPrimary: ["none", "top", "bottom", "start", "end"],
|
|
7254
7320
|
imageFit: ["cover", "contain", "stretch", "auto"],
|
|
7255
7321
|
listBullet: ["character", "image", "none"],
|
|
7256
7322
|
listStyle: ["stack", "rows"],
|
|
@@ -7286,16 +7352,16 @@ function visualReadingOrder(items, direction = "ltr") {
|
|
|
7286
7352
|
}
|
|
7287
7353
|
function readingRows(items) {
|
|
7288
7354
|
const index = new Map(items.map((item, i) => [item, i]));
|
|
7289
|
-
const
|
|
7355
|
+
const center2 = (item) => item.box.y + item.box.height / 2;
|
|
7290
7356
|
const tall = items.filter((item) => {
|
|
7291
|
-
const inside2 = items.filter((other) => other !== item &&
|
|
7357
|
+
const inside2 = items.filter((other) => other !== item && center2(other) >= item.box.y && center2(other) <= item.box.y + item.box.height);
|
|
7292
7358
|
return inside2.some((a) => inside2.some((b) => a.box.y + a.box.height <= b.box.y));
|
|
7293
7359
|
});
|
|
7294
7360
|
const rest = items.filter((item) => !tall.includes(item));
|
|
7295
7361
|
const rows3 = rowsOf(rest.length ? rest : items, index);
|
|
7296
7362
|
if (rest.length) {
|
|
7297
7363
|
for (const item of tall) {
|
|
7298
|
-
const spanned = rows3.filter((row) => row.some((other) =>
|
|
7364
|
+
const spanned = rows3.filter((row) => row.some((other) => center2(other) >= item.box.y && center2(other) <= item.box.y + item.box.height));
|
|
7299
7365
|
if (!spanned.length) {
|
|
7300
7366
|
const at3 = rows3.findIndex((row) => Math.min(...row.map((other) => other.box.y)) > item.box.y);
|
|
7301
7367
|
rows3.splice(at3 < 0 ? rows3.length : at3, 0, [item]);
|
|
@@ -7312,8 +7378,8 @@ function rowsOf(items, index) {
|
|
|
7312
7378
|
const sorted = [...items].sort((a, b) => a.box.y - b.box.y || a.box.x - b.box.x || index.get(a) - index.get(b));
|
|
7313
7379
|
const rows3 = [];
|
|
7314
7380
|
for (const item of sorted) {
|
|
7315
|
-
const
|
|
7316
|
-
const row = rows3.find((candidate) =>
|
|
7381
|
+
const center2 = item.box.y + item.box.height / 2;
|
|
7382
|
+
const row = rows3.find((candidate) => center2 >= candidate.top && center2 <= candidate.bottom);
|
|
7317
7383
|
if (row) {
|
|
7318
7384
|
row.items.push(item);
|
|
7319
7385
|
row.top = Math.min(row.top, item.box.y);
|
|
@@ -7326,8 +7392,8 @@ function rowsOf(items, index) {
|
|
|
7326
7392
|
|
|
7327
7393
|
// src/layout-template.ts
|
|
7328
7394
|
var REGION_KINDS = ["text", "list", "image", "video", "chart", "table", "code", "metric", "quote", "timeline", "diagram", "shape", "group"];
|
|
7329
|
-
var REGION_ROLES = ["primary", "
|
|
7330
|
-
var REGION_FLOWS = ["
|
|
7395
|
+
var REGION_ROLES = ["primary", "media", "supporting"];
|
|
7396
|
+
var REGION_FLOWS = ["auto", "grid", "row", "column"];
|
|
7331
7397
|
var REGION_ANCHORS = ["top", "middle", "bottom"];
|
|
7332
7398
|
var HEADING_AREAS = ["title", "subtitle"];
|
|
7333
7399
|
var RESERVED_REGION_NAMES = ["title", "subtitle", "tag", "auto", "start", "center", "end", "top", "middle", "bottom"];
|
|
@@ -7335,7 +7401,6 @@ var MAX_TEMPLATE_TRACKS = 12;
|
|
|
7335
7401
|
var MAX_REGION_ENTRIES = 12;
|
|
7336
7402
|
var MAX_REGION_DEPTH = 3;
|
|
7337
7403
|
var MAX_REGION_BLOCKS = 12;
|
|
7338
|
-
var AUTO_LAYOUT = "auto";
|
|
7339
7404
|
var OPFLayoutTemplateError = class extends RangeError {
|
|
7340
7405
|
constructor(issues) {
|
|
7341
7406
|
super(`The layout template is invalid: ${issues.map((issue) => `${issue.path || "/"}: ${issue.message}`).join("; ")}`);
|
|
@@ -7352,6 +7417,8 @@ var headingNames = new Set(HEADING_AREAS);
|
|
|
7352
7417
|
var positive = (value) => typeof value === "number" && Number.isFinite(value) && value > 0;
|
|
7353
7418
|
var validSize = (value) => value === "auto" || positive(value) && value <= 100;
|
|
7354
7419
|
var EPSILON = 1e-9;
|
|
7420
|
+
var singleBlockRegion = (region) => region.max === 1;
|
|
7421
|
+
var regionListColumns = (region) => region.arrangement === void 0 || region.arrangement === "numbered";
|
|
7355
7422
|
function isLayoutTemplate(layout) {
|
|
7356
7423
|
return Object.hasOwn(record12(layout), "regions");
|
|
7357
7424
|
}
|
|
@@ -7359,7 +7426,7 @@ function layoutRegion(name, value, inherited) {
|
|
|
7359
7426
|
const entry = record12(value);
|
|
7360
7427
|
const accepts2 = Array.isArray(entry.accepts) ? [...new Set(entry.accepts.filter((kind2) => REGION_KINDS.includes(kind2)))] : [...REGION_KINDS];
|
|
7361
7428
|
const flow = REGION_FLOWS.includes(entry.flow) ? entry.flow : "auto";
|
|
7362
|
-
const max = Number.isInteger(entry.max) && entry.max >= 1 && entry.max <= MAX_REGION_BLOCKS ? entry.max :
|
|
7429
|
+
const max = Number.isInteger(entry.max) && entry.max >= 1 && entry.max <= MAX_REGION_BLOCKS ? entry.max : 6;
|
|
7363
7430
|
return {
|
|
7364
7431
|
name,
|
|
7365
7432
|
accepts: accepts2,
|
|
@@ -7367,15 +7434,14 @@ function layoutRegion(name, value, inherited) {
|
|
|
7367
7434
|
flow,
|
|
7368
7435
|
max,
|
|
7369
7436
|
bleed: entry.bleed === true,
|
|
7370
|
-
listColumns: entry.listColumns === "auto" ? "auto" : 1,
|
|
7371
7437
|
...entry.metrics === "tile" ? { metrics: "tile" } : {},
|
|
7372
|
-
...entry.
|
|
7373
|
-
...isArrangement(entry.arrangement) ? { arrangement: entry.arrangement } : {},
|
|
7374
|
-
...entry.arrangement === "pyramid" && entry.pyramidDirection === "down" ? { pyramidDirection: "down" } : {},
|
|
7438
|
+
...isRegionArrangement(entry.arrangement) ? { arrangement: entry.arrangement } : {},
|
|
7375
7439
|
anchor: REGION_ANCHORS.includes(entry.anchor) ? entry.anchor : inherited ?? "top",
|
|
7376
7440
|
empty: entry.empty === "keep" ? "keep" : "collapse"
|
|
7377
7441
|
};
|
|
7378
7442
|
}
|
|
7443
|
+
var regionSequence = (region) => isSequenceArrangement(region.arrangement) ? region.arrangement : void 0;
|
|
7444
|
+
var regionDiagram = (region) => isArrangement(region.arrangement) ? region.arrangement : void 0;
|
|
7379
7445
|
var anchorOf = (value) => REGION_ANCHORS.includes(value) ? value : void 0;
|
|
7380
7446
|
var isSplitEntry = (entry) => entry.name === void 0 && (entry.regions !== void 0 || entry.direction !== void 0);
|
|
7381
7447
|
function layoutEntries(layout) {
|
|
@@ -7471,7 +7537,6 @@ function parse2(layout) {
|
|
|
7471
7537
|
} else {
|
|
7472
7538
|
if (reserved.has(name)) add("layout-region", `${at3}/name`, `'${name}' is reserved and cannot name a body region (reserved: ${RESERVED_REGION_NAMES.join(", ")})`);
|
|
7473
7539
|
else if (!NAME.test(name)) add("layout-region", `${at3}/name`, `'${name}' is not a region name (lowercase letters, digits and hyphens, starting with a letter)`);
|
|
7474
|
-
if (entry.flow === "none" && entry.max !== void 0 && entry.max !== 1) add("layout-region", `${at3}/max`, `a region with flow "none" holds one block; max must be 1, not ${JSON.stringify(entry.max)}`);
|
|
7475
7540
|
anchorCheck(`${at3}/anchor`, entry.anchor);
|
|
7476
7541
|
const found = layoutRegion(name, entry, inherited);
|
|
7477
7542
|
if (!found.accepts.length) add("layout-region", `${at3}/accepts`, `region '${name}' accepts no content kind`);
|
|
@@ -7518,7 +7583,7 @@ function parse2(layout) {
|
|
|
7518
7583
|
order(children);
|
|
7519
7584
|
const stackAnchor = anchorOf(value.anchor);
|
|
7520
7585
|
const stack = direction === "column" && children.length > 0 && children.every((node) => node.size === "auto") && stackAnchor !== void 0 && stackAnchor !== "top" ? stackAnchor : void 0;
|
|
7521
|
-
const overflowRegion = typeof value.overflowRegion === "string" ? value.overflowRegion : regions.find((entry) => entry.role === "primary" && entry
|
|
7586
|
+
const overflowRegion = typeof value.overflowRegion === "string" ? value.overflowRegion : regions.find((entry) => entry.role === "primary" && !singleBlockRegion(entry))?.name;
|
|
7522
7587
|
return {
|
|
7523
7588
|
issues,
|
|
7524
7589
|
template: {
|
|
@@ -7606,6 +7671,46 @@ function compile(root) {
|
|
|
7606
7671
|
function layoutTemplateIssues(layout) {
|
|
7607
7672
|
return isLayoutTemplate(layout) ? parse2(layout).issues : [];
|
|
7608
7673
|
}
|
|
7674
|
+
var TITLE_BESIDE_SHARE = [2, 3];
|
|
7675
|
+
function titleBesideTemplate(plan2) {
|
|
7676
|
+
const heading = (name) => headingNames.has(name);
|
|
7677
|
+
const headingRow = plan2.grid.map((row) => row.every(heading));
|
|
7678
|
+
if (plan2.grid.some((row, index) => !headingRow[index] && row.some(heading))) return void 0;
|
|
7679
|
+
const body = plan2.grid.filter((_, index) => !headingRow[index]);
|
|
7680
|
+
if (!body.length) return void 0;
|
|
7681
|
+
const total = plan2.columns.reduce((sum, size) => sum + size, 0);
|
|
7682
|
+
const [title, rest] = TITLE_BESIDE_SHARE;
|
|
7683
|
+
const columns2 = wholeWeights([total * title / rest, ...plan2.columns]);
|
|
7684
|
+
const grid = body.map((row) => ["title", ...row]);
|
|
7685
|
+
const bounds = /* @__PURE__ */ new Map();
|
|
7686
|
+
for (const [r, row] of grid.entries()) for (const [c, name] of row.entries()) {
|
|
7687
|
+
const found = bounds.get(name);
|
|
7688
|
+
if (!found) bounds.set(name, { top: r, left: c, bottom: r, right: c });
|
|
7689
|
+
else {
|
|
7690
|
+
found.top = Math.min(found.top, r);
|
|
7691
|
+
found.left = Math.min(found.left, c);
|
|
7692
|
+
found.bottom = Math.max(found.bottom, r);
|
|
7693
|
+
found.right = Math.max(found.right, c);
|
|
7694
|
+
}
|
|
7695
|
+
}
|
|
7696
|
+
const areaOf = (name) => {
|
|
7697
|
+
const box = bounds.get(name);
|
|
7698
|
+
return { name, row: box.top, column: box.left, rowSpan: box.bottom - box.top + 1, columnSpan: box.right - box.left + 1, heading: heading(name) };
|
|
7699
|
+
};
|
|
7700
|
+
const order = plan2.title ? plan2.areas.map((area2) => area2.name).filter((name) => name !== "subtitle") : ["title", ...plan2.areas.map((area2) => area2.name)];
|
|
7701
|
+
const { headingAnchors, ...rest2 } = plan2;
|
|
7702
|
+
const anchors = headingAnchors?.title !== void 0 ? { title: headingAnchors.title } : void 0;
|
|
7703
|
+
return {
|
|
7704
|
+
...rest2,
|
|
7705
|
+
rows: plan2.rows.filter((_, index) => !headingRow[index]),
|
|
7706
|
+
columns: columns2,
|
|
7707
|
+
grid,
|
|
7708
|
+
areas: order.map(areaOf),
|
|
7709
|
+
title: true,
|
|
7710
|
+
subtitle: false,
|
|
7711
|
+
...anchors ? { headingAnchors: anchors } : {}
|
|
7712
|
+
};
|
|
7713
|
+
}
|
|
7609
7714
|
function layoutTemplate(layout) {
|
|
7610
7715
|
const parsed = parse2(layout);
|
|
7611
7716
|
if (!parsed.template) throw new OPFLayoutTemplateError(parsed.issues);
|
|
@@ -8096,7 +8201,6 @@ function stackedText(value) {
|
|
|
8096
8201
|
var FIELDS = ["text", "items", "bullets", "image", "video", "chart", "table", "code", "metric", "quote", "timeline", "diagram", "shape", "path"];
|
|
8097
8202
|
var FIELD_KINDS = { text: "text", bullets: "text", items: "list", image: "image", video: "video", chart: "chart", table: "table", code: "code", metric: "metric", quote: "quote", shape: "shape", path: "shape", timeline: "timeline", diagram: "diagram" };
|
|
8098
8203
|
var IMAGE_EDGES = ["start", "end", "top", "bottom"];
|
|
8099
|
-
var PROMOTED_REGION_KEY = /^(top|middle|bottom)(\+(top|middle|bottom))*(:(start|center|end)(\+(start|center|end))*)?$|^(start|center|end)(\+(start|center|end))*$/;
|
|
8100
8204
|
var record14 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
8101
8205
|
var empty = (value) => value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0;
|
|
8102
8206
|
function blockKind(block) {
|
|
@@ -8127,7 +8231,7 @@ function regionAccepts(region, block) {
|
|
|
8127
8231
|
function placedImageBlocks(slide) {
|
|
8128
8232
|
const value = record14(slide);
|
|
8129
8233
|
const placed = /* @__PURE__ */ new Set();
|
|
8130
|
-
if (!Array.isArray(value.blocks) ||
|
|
8234
|
+
if (!Array.isArray(value.blocks) || cellBlocks(value)) return placed;
|
|
8131
8235
|
const used = /* @__PURE__ */ new Set();
|
|
8132
8236
|
value.blocks.forEach((block, index) => {
|
|
8133
8237
|
const host = record14(block);
|
|
@@ -8161,14 +8265,13 @@ function rootNodes(slide, slideIndex = 0) {
|
|
|
8161
8265
|
}
|
|
8162
8266
|
function regionRoleRank(role, kind2) {
|
|
8163
8267
|
const media = kind2 === "image" || kind2 === "video";
|
|
8164
|
-
return media ? { media: 0, primary: 1,
|
|
8268
|
+
return media ? { media: 0, primary: 1, supporting: 2 }[role] : { primary: 0, supporting: 1, media: 2 }[role];
|
|
8165
8269
|
}
|
|
8166
8270
|
function bindRegions(slide, layout, options = {}) {
|
|
8167
8271
|
const template = layoutTemplate(layout);
|
|
8168
8272
|
const value = record14(slide), index = options.slideIndex ?? 0;
|
|
8169
8273
|
const regions = template.regions.map((region) => ({ name: region.name, blocks: [], overflow: [] }));
|
|
8170
8274
|
const result = { regions, below: [], diagnostics: [] };
|
|
8171
|
-
if (Object.keys(value).some((key) => PROMOTED_REGION_KEY.test(key))) return result;
|
|
8172
8275
|
const byName = new Map(template.regions.map((region, order2) => [region.name, { region, binding: regions[order2], order: order2 }]));
|
|
8173
8276
|
const room = (name) => {
|
|
8174
8277
|
const entry = byName.get(name);
|
|
@@ -8183,7 +8286,7 @@ function bindRegions(slide, layout, options = {}) {
|
|
|
8183
8286
|
continue;
|
|
8184
8287
|
}
|
|
8185
8288
|
const target = byName.get(pin2), pinPath = `${node.path}.region`;
|
|
8186
|
-
if (!target) result.diagnostics.push({ code: "region-unknown", path: pinPath, region: pin2, message: `The layout has no region '${pin2}'; the block is placed by its kind instead.` });
|
|
8289
|
+
if (!target) result.diagnostics.push({ code: "region-unknown", path: pinPath, region: pin2, message: `The layout has no region '${pin2}'; the block is placed by its kind instead.${isGridCell(pin2) ? ` '${pin2}' is a cell of a slide without a layout.` : ""}` });
|
|
8187
8290
|
else if (!regionAccepts(target.region, node.value)) result.diagnostics.push({ code: "region-kind", path: pinPath, region: pin2, message: `Region '${pin2}' does not accept ${node.kind} content (it accepts ${target.region.accepts.join(", ")}); the block is placed by its kind instead.` });
|
|
8188
8291
|
else if (!room(pin2)) result.diagnostics.push({ code: "region-full", path: pinPath, region: pin2, message: `Region '${pin2}' already holds its ${target.region.max} block${target.region.max === 1 ? "" : "s"}; the block is placed by its kind instead.` });
|
|
8189
8292
|
else {
|
|
@@ -8464,7 +8567,7 @@ function collapseAreas(grid, empty2, heading, absorbs = () => true) {
|
|
|
8464
8567
|
if (joined.has(name)) continue;
|
|
8465
8568
|
const own3 = rect(name);
|
|
8466
8569
|
if (!own3) continue;
|
|
8467
|
-
const
|
|
8570
|
+
const neighbor = (side) => {
|
|
8468
8571
|
const cells = [];
|
|
8469
8572
|
if (side === "start" || side === "end") {
|
|
8470
8573
|
const column = side === "start" ? own3.column - 1 : own3.column + own3.columnSpan;
|
|
@@ -8486,7 +8589,7 @@ function collapseAreas(grid, empty2, heading, absorbs = () => true) {
|
|
|
8486
8589
|
let target;
|
|
8487
8590
|
for (const body of [true, false]) {
|
|
8488
8591
|
for (const side of sides) {
|
|
8489
|
-
const candidate =
|
|
8592
|
+
const candidate = neighbor(side);
|
|
8490
8593
|
if (candidate !== void 0 && heading(candidate) !== body) {
|
|
8491
8594
|
target = candidate;
|
|
8492
8595
|
break;
|
|
@@ -8675,7 +8778,7 @@ function groupBinding(binding, template, nodes, options = {}) {
|
|
|
8675
8778
|
}
|
|
8676
8779
|
const moved = /* @__PURE__ */ new Set();
|
|
8677
8780
|
for (const region of template.regions) {
|
|
8678
|
-
if (region
|
|
8781
|
+
if (singleBlockRegion(region)) continue;
|
|
8679
8782
|
const list = units.get(region.name);
|
|
8680
8783
|
const foreign = list.filter((unit2) => !unplaced.has(unit2[0].path) && !regionAccepts(region, payloadOf.get(unit2[0].path)));
|
|
8681
8784
|
const own3 = list.length - foreign.length;
|
|
@@ -8698,19 +8801,19 @@ function groupBinding(binding, template, nodes, options = {}) {
|
|
|
8698
8801
|
below = below.filter((unit2) => {
|
|
8699
8802
|
const block = unit2[0];
|
|
8700
8803
|
if (!unplaced.has(block.path)) return true;
|
|
8701
|
-
const target = homeOf(block).find((region) => units.get(region.name).length < (region
|
|
8804
|
+
const target = homeOf(block).find((region) => units.get(region.name).length < (singleBlockRegion(region) ? JOINED_FIXED_MAX : MAX_REGION_BLOCKS));
|
|
8702
8805
|
if (!target) return true;
|
|
8703
8806
|
units.get(target.name).push(unit2);
|
|
8704
|
-
if (target
|
|
8807
|
+
if (singleBlockRegion(target) || units.get(target.name).length <= target.max) unplaced.delete(block.path);
|
|
8705
8808
|
joined.add(target.name);
|
|
8706
8809
|
return false;
|
|
8707
8810
|
});
|
|
8708
8811
|
const rects = areaRects(template.grid);
|
|
8709
8812
|
for (const name of joined) {
|
|
8710
8813
|
const region = regionByName.get(name).region;
|
|
8711
|
-
if (region
|
|
8814
|
+
if (!singleBlockRegion(region)) continue;
|
|
8712
8815
|
const rect = rects.get(name);
|
|
8713
|
-
const siblings = template.regions.filter((other) => other
|
|
8816
|
+
const siblings = template.regions.filter((other) => singleBlockRegion(other) && other.role === region.role && rects.get(other.name)?.row === rect.row && rects.get(other.name)?.rowSpan === rect.rowSpan);
|
|
8714
8817
|
const lead = siblings[0];
|
|
8715
8818
|
if (siblings.length > 1) {
|
|
8716
8819
|
const members = siblings.flatMap((other) => units.get(other.name));
|
|
@@ -8936,13 +9039,31 @@ function resolveReference(document, kind2, reference, options = {}) {
|
|
|
8936
9039
|
var KIND_NOUNS = {
|
|
8937
9040
|
layouts: "Layout",
|
|
8938
9041
|
themes: "Theme",
|
|
8939
|
-
colorSchemes: "
|
|
9042
|
+
colorSchemes: "Color scheme",
|
|
8940
9043
|
fontSchemes: "Font scheme",
|
|
8941
9044
|
narratives: "Narrative",
|
|
8942
9045
|
audiences: "Audience",
|
|
8943
9046
|
purposes: "Purpose",
|
|
8944
9047
|
tones: "Tone"
|
|
8945
9048
|
};
|
|
9049
|
+
var removedLayoutAuto = (kind2, reference) => kind2 === "layouts" && reference === "auto";
|
|
9050
|
+
var RENAMED_LAYOUTS = Object.freeze({ flow: "process", "vertical-flow": "vertical-process", "agenda-split": "agenda" });
|
|
9051
|
+
var RENAMED_TITLE_POSITIONS = Object.freeze({ "agenda-split": "start" });
|
|
9052
|
+
function renamedLayoutTitlePosition(kind2, reference) {
|
|
9053
|
+
const parsed = kind2 === "layouts" ? parseReference(reference) : void 0;
|
|
9054
|
+
if (!parsed || parsed.group !== void 0 && parsed.group !== "default" || !Object.hasOwn(RENAMED_TITLE_POSITIONS, parsed.id)) return void 0;
|
|
9055
|
+
return RENAMED_TITLE_POSITIONS[parsed.id];
|
|
9056
|
+
}
|
|
9057
|
+
var RENAMED_LAYOUTS_CHANGE_DRAWING = /* @__PURE__ */ new Set(["flow", "agenda-split"]);
|
|
9058
|
+
function renamedLayoutChangesDrawing(kind2, reference) {
|
|
9059
|
+
const parsed = kind2 === "layouts" ? parseReference(reference) : void 0;
|
|
9060
|
+
return parsed !== void 0 && (parsed.group === void 0 || parsed.group === "default") && RENAMED_LAYOUTS_CHANGE_DRAWING.has(parsed.id);
|
|
9061
|
+
}
|
|
9062
|
+
function renamedLayout(kind2, reference) {
|
|
9063
|
+
const parsed = kind2 === "layouts" ? parseReference(reference) : void 0;
|
|
9064
|
+
if (!parsed || parsed.group !== void 0 && parsed.group !== "default" || !Object.hasOwn(RENAMED_LAYOUTS, parsed.id)) return void 0;
|
|
9065
|
+
return `${parsed.group !== void 0 ? "default:" : ""}${RENAMED_LAYOUTS[parsed.id]}`;
|
|
9066
|
+
}
|
|
8946
9067
|
function unresolvedReference(document, kind2, reference, path, options = {}) {
|
|
8947
9068
|
const parsed = parseReference(reference);
|
|
8948
9069
|
const group = parsed?.group ?? "default";
|
|
@@ -8950,6 +9071,8 @@ function unresolvedReference(document, kind2, reference, path, options = {}) {
|
|
|
8950
9071
|
const noun = KIND_NOUNS[kind2];
|
|
8951
9072
|
const where = parsed?.group !== void 0 && !catalogGroupDeclared(document, parsed.group) ? `the document declares no catalogs.${parsed.group} group` : group === "custom" ? "it is not in catalogs.custom" : group === "default" && groupsOf(document).default === false ? "it is not in catalogs.custom and catalogs.default is false" : source === void 0 ? `it is not embedded in catalogs.${group === "default" ? "custom or catalogs.default" : group} and no catalog is registered for it` : `it is not embedded in catalogs.${group === "default" ? "custom or catalogs.default" : group} and the catalog registered for ${source} ${registeredCatalog(source, options) ? "has no such record" : "is not registered"}`;
|
|
8952
9073
|
const fallback = kind2 === "layouts" ? "automatic" : "engine-default";
|
|
9074
|
+
const renamed = renamedLayout(kind2, reference), position = renamedLayoutTitlePosition(kind2, reference);
|
|
9075
|
+
const removed = removedLayoutAuto(kind2, reference) ? `OPF 0.35 removed layout 'auto' (omit layout for automatic composition)` : renamed !== void 0 ? `OPF 0.35 removed layout '${reference}' (use '${renamed}'${position ? ` with design.titlePosition '${position}'` : ""})` : where;
|
|
8953
9076
|
return {
|
|
8954
9077
|
code: "unresolved-reference",
|
|
8955
9078
|
kind: kind2,
|
|
@@ -8958,7 +9081,7 @@ function unresolvedReference(document, kind2, reference, path, options = {}) {
|
|
|
8958
9081
|
group,
|
|
8959
9082
|
...source !== void 0 ? { source } : {},
|
|
8960
9083
|
fallback,
|
|
8961
|
-
message: `${noun} '${reference}' resolves nowhere: ${
|
|
9084
|
+
message: `${noun} '${reference}' resolves nowhere: ${removed}; ${fallback === "automatic" ? "the slide composes automatically" : "the engine default is used"}.`
|
|
8962
9085
|
};
|
|
8963
9086
|
}
|
|
8964
9087
|
var pushReference = (sites, kind2, value, path, group) => {
|
|
@@ -9002,7 +9125,7 @@ function catalogReferenceSites(document, options = {}) {
|
|
|
9002
9125
|
if (options.slides !== false && Array.isArray(deck.slides))
|
|
9003
9126
|
deck.slides.forEach((slide, index) => {
|
|
9004
9127
|
if (!isRec(slide)) return;
|
|
9005
|
-
|
|
9128
|
+
pushReference(sites, "layouts", slide.layout, ["slides", index, "layout"]);
|
|
9006
9129
|
languageSites(sites, slide.language, ["slides", index, "language"]);
|
|
9007
9130
|
designSites(sites, slide.design, ["slides", index, "design"]);
|
|
9008
9131
|
});
|
|
@@ -9119,6 +9242,53 @@ function resolveFontScheme(document, reference, path, options = {}) {
|
|
|
9119
9242
|
return { scheme, diagnostics };
|
|
9120
9243
|
}
|
|
9121
9244
|
|
|
9245
|
+
// src/language-inference.ts
|
|
9246
|
+
var RTL_SCRIPTS = [
|
|
9247
|
+
["ar", /(?=\p{L})\p{Script=Arabic}/gu],
|
|
9248
|
+
["he", /(?=\p{L})\p{Script=Hebrew}/gu]
|
|
9249
|
+
];
|
|
9250
|
+
var LETTERS = /\p{L}/gu;
|
|
9251
|
+
function plain2(value) {
|
|
9252
|
+
if (typeof value === "string") return value;
|
|
9253
|
+
if (Array.isArray(value)) return value.map((run) => typeof run === "string" ? run : isRecord2(run) && typeof run.text === "string" ? run.text : "").join("");
|
|
9254
|
+
if (isRecord2(value) && value.text !== void 0) return plain2(value.text);
|
|
9255
|
+
return "";
|
|
9256
|
+
}
|
|
9257
|
+
function slideText(slide) {
|
|
9258
|
+
const parts = [plain2(slide.title), plain2(slide.subtitle), plain2(slide.tag)];
|
|
9259
|
+
const payload = (node) => {
|
|
9260
|
+
parts.push(plain2(node.text));
|
|
9261
|
+
for (const field of ["items", "bullets"]) {
|
|
9262
|
+
const list = node[field];
|
|
9263
|
+
if (!Array.isArray(list)) continue;
|
|
9264
|
+
for (const entry of list) {
|
|
9265
|
+
parts.push(plain2(entry));
|
|
9266
|
+
if (isRecord2(entry)) parts.push(plain2(entry.description));
|
|
9267
|
+
}
|
|
9268
|
+
}
|
|
9269
|
+
const table = isRecord2(node.table) ? node.table : void 0;
|
|
9270
|
+
for (const cell of Array.isArray(table?.columns) ? table.columns : []) parts.push(isRecord2(cell) && typeof cell.name === "string" ? cell.name : plain2(isRecord2(cell) && "value" in cell ? cell.value : cell));
|
|
9271
|
+
for (const row of Array.isArray(table?.rows) ? table.rows : []) for (const cell of Array.isArray(row) ? row : []) parts.push(plain2(isRecord2(cell) && "value" in cell ? cell.value : cell));
|
|
9272
|
+
};
|
|
9273
|
+
payload(slide);
|
|
9274
|
+
visitContentPayloads(slide, "", (node) => payload(node));
|
|
9275
|
+
return parts.join("\n");
|
|
9276
|
+
}
|
|
9277
|
+
function languageOfText(document, slideIndex) {
|
|
9278
|
+
const slides = Array.isArray(document.slides) ? document.slides : [];
|
|
9279
|
+
const chosen = slideIndex === void 0 ? slides : [slides[slideIndex]];
|
|
9280
|
+
let text2 = "";
|
|
9281
|
+
for (const slide of chosen) if (isRecord2(slide)) text2 += `${slideText(slide)}
|
|
9282
|
+
`;
|
|
9283
|
+
if (!text2.trim()) return void 0;
|
|
9284
|
+
const letters = text2.match(LETTERS)?.length ?? 0;
|
|
9285
|
+
if (!letters) return void 0;
|
|
9286
|
+
for (const [language, pattern] of RTL_SCRIPTS) {
|
|
9287
|
+
if ((text2.match(pattern)?.length ?? 0) * 2 > letters) return language;
|
|
9288
|
+
}
|
|
9289
|
+
return void 0;
|
|
9290
|
+
}
|
|
9291
|
+
|
|
9122
9292
|
// src/script-fonts.ts
|
|
9123
9293
|
function normalizeLanguageFamily(value) {
|
|
9124
9294
|
if (value === "latin") return "latin";
|
|
@@ -9258,14 +9428,14 @@ function resolveLanguage(reference) {
|
|
|
9258
9428
|
if (!known2 && !inferScript(value)) return void 0;
|
|
9259
9429
|
return { tag: value, ...known2 ? { known: known2 } : {}, overrides: {} };
|
|
9260
9430
|
}
|
|
9261
|
-
if (!
|
|
9431
|
+
if (!isRecord2(reference)) return void 0;
|
|
9262
9432
|
const tag = text(reference.bcp47);
|
|
9263
9433
|
if (!tag || !splitTag(tag)) return void 0;
|
|
9264
9434
|
const known = matchLanguageTag(tag);
|
|
9265
9435
|
return { tag, ...known ? { known } : {}, overrides: reference };
|
|
9266
9436
|
}
|
|
9267
9437
|
function pairFamilies(value) {
|
|
9268
|
-
if (!
|
|
9438
|
+
if (!isRecord2(value)) return void 0;
|
|
9269
9439
|
const major = text(value.major);
|
|
9270
9440
|
const minor = text(value.minor);
|
|
9271
9441
|
const heading = major ?? minor;
|
|
@@ -9286,7 +9456,7 @@ function schemeServesLanguage(scheme, tag, script) {
|
|
|
9286
9456
|
});
|
|
9287
9457
|
}
|
|
9288
9458
|
function resolveScriptFonts(input, options = {}) {
|
|
9289
|
-
const document =
|
|
9459
|
+
const document = isRecord2(input) ? input : {};
|
|
9290
9460
|
if (options.slideIndex !== void 0) {
|
|
9291
9461
|
const slides2 = Array.isArray(document.slides) ? document.slides : [];
|
|
9292
9462
|
if (!Number.isInteger(options.slideIndex) || options.slideIndex < 0 || options.slideIndex >= slides2.length) {
|
|
@@ -9299,12 +9469,13 @@ function resolveScriptFonts(input, options = {}) {
|
|
|
9299
9469
|
const fromOption = options.language !== void 0 ? resolveLanguage(options.language) : void 0;
|
|
9300
9470
|
const slides = Array.isArray(document.slides) ? document.slides : [];
|
|
9301
9471
|
const slide = options.slideIndex === void 0 ? void 0 : slides[options.slideIndex];
|
|
9302
|
-
const authoredLanguage =
|
|
9472
|
+
const authoredLanguage = isRecord2(slide) && slide.language !== void 0 ? slide.language : document.language;
|
|
9303
9473
|
const fromDocument = fromOption ? void 0 : resolveLanguage(authoredLanguage);
|
|
9474
|
+
const fromText = fromOption || authoredLanguage !== void 0 ? void 0 : resolveLanguage(languageOfText(document, options.slideIndex));
|
|
9304
9475
|
const requestedDefault = text(options.defaultLanguage);
|
|
9305
9476
|
const fallbackTag = requestedDefault && splitTag(requestedDefault) ? requestedDefault : "en-US";
|
|
9306
|
-
const language = fromOption ?? fromDocument ?? resolveLanguage(fallbackTag) ?? { tag: fallbackTag, overrides: {} };
|
|
9307
|
-
const languageSource = fromOption ? "option" : fromDocument ? "document" : "default";
|
|
9477
|
+
const language = fromOption ?? fromDocument ?? fromText ?? resolveLanguage(fallbackTag) ?? { tag: fallbackTag, overrides: {} };
|
|
9478
|
+
const languageSource = fromOption ? "option" : fromDocument ? "document" : fromText ? "text" : "default";
|
|
9308
9479
|
const overrides = language.overrides;
|
|
9309
9480
|
const known = language.known;
|
|
9310
9481
|
const bcp47 = canonicalTag(language.tag);
|
|
@@ -9353,7 +9524,7 @@ function resolveScriptFonts(input, options = {}) {
|
|
|
9353
9524
|
};
|
|
9354
9525
|
}
|
|
9355
9526
|
function resolveSlideDirection(presentation, slideIndex) {
|
|
9356
|
-
if (!
|
|
9527
|
+
if (!isRecord2(presentation)) return "ltr";
|
|
9357
9528
|
try {
|
|
9358
9529
|
return resolveScriptFonts(presentation, Number.isInteger(slideIndex) ? { slideIndex } : {}).direction;
|
|
9359
9530
|
} catch {
|
|
@@ -9585,7 +9756,7 @@ var UNITS = /* @__PURE__ */ new Set([
|
|
|
9585
9756
|
"Mill.",
|
|
9586
9757
|
"Mld",
|
|
9587
9758
|
"Mld.",
|
|
9588
|
-
// Arabic and Hebrew: million, billion,
|
|
9759
|
+
// Arabic and Hebrew: million, billion, kilometer, kilogram.
|
|
9589
9760
|
"\u0645\u0644\u064A\u0648\u0646",
|
|
9590
9761
|
"\u0645\u0644\u064A\u0627\u0631",
|
|
9591
9762
|
"\u0643\u0645",
|
|
@@ -9651,7 +9822,7 @@ var codePointAt = (text2, index) => {
|
|
|
9651
9822
|
const point = text2.codePointAt(index);
|
|
9652
9823
|
return point === void 0 ? void 0 : String.fromCodePoint(point);
|
|
9653
9824
|
};
|
|
9654
|
-
var
|
|
9825
|
+
var LETTERS2 = /^[\p{L}\p{M}\u00b2\u00b3/.]+/u;
|
|
9655
9826
|
function lineMayStartAt(text2, index) {
|
|
9656
9827
|
const before = codePointBefore(text2, index), at3 = codePointAt(text2, index);
|
|
9657
9828
|
if (before === void 0 || at3 === void 0) return true;
|
|
@@ -9663,7 +9834,7 @@ function lineMayStartAt(text2, index) {
|
|
|
9663
9834
|
if (isDigit(before) && (SYMBOL_UNITS.includes(at3) || CJK_UNITS.includes(at3))) return false;
|
|
9664
9835
|
if (RATIO_SLASHES.has(at3) && isDigit(before) || RATIO_SLASHES.has(before) && isDigit(at3) && isDigit(beforeThat)) return false;
|
|
9665
9836
|
if (isDigit(before) && /^\p{L}$/u.test(at3)) {
|
|
9666
|
-
const unit2 =
|
|
9837
|
+
const unit2 = LETTERS2.exec(text2.slice(index, index + 16))?.[0].replace(TRAILING, "");
|
|
9667
9838
|
if (unit2 && UNITS.has(unit2)) return false;
|
|
9668
9839
|
}
|
|
9669
9840
|
return true;
|
|
@@ -10501,7 +10672,6 @@ function chooseConnectorSites(route, fromSites, toSites, options = {}) {
|
|
|
10501
10672
|
return best && { from: best.from, to: best.to, geometry: best.geometry };
|
|
10502
10673
|
}
|
|
10503
10674
|
var OVERLAY_LAYERS = ["front", "back"];
|
|
10504
|
-
var REGION_KEY = /^(?:(?:top|middle|bottom)(?:\+(?:middle|bottom))*(?::(?:start|center|end)(?:\+(?:center|end))*)?|(?:start|center|end)(?:\+(?:center|end))*)$/;
|
|
10505
10675
|
function slideBlockIds(slide, slidePath) {
|
|
10506
10676
|
const ids = /* @__PURE__ */ new Map();
|
|
10507
10677
|
const walk2 = (payload, path, depth) => {
|
|
@@ -10515,7 +10685,7 @@ function slideBlockIds(slide, slidePath) {
|
|
|
10515
10685
|
if (Array.isArray(value.blocks)) value.blocks.forEach((block, index) => {
|
|
10516
10686
|
if (block !== null && typeof block === "object") walk2(record17(block), `${slidePath}.blocks.${index}`, 0);
|
|
10517
10687
|
});
|
|
10518
|
-
for (const key of Object.keys(value)) if (
|
|
10688
|
+
for (const key of Object.keys(value)) if (isGridCell(key) && value[key] !== null && typeof value[key] === "object" && !Array.isArray(value[key])) walk2(record17(value[key]), `${slidePath}.${key}`, 0);
|
|
10519
10689
|
return ids;
|
|
10520
10690
|
}
|
|
10521
10691
|
function blockTarget(composition, blockPath) {
|
|
@@ -11606,9 +11776,9 @@ function codeLineRuns(tokens, start, end, source) {
|
|
|
11606
11776
|
var distance2 = (a, b) => Math.hypot(...channels(a).map((value, index) => value - channels(b)[index]));
|
|
11607
11777
|
var FALLBACK = { keyword: "#C4B5FD", string: "#86EFAC", number: "#FCD34D", function: "#93C5FD", type: "#67E8F9", property: "#F9A8D4", comment: "#94A3B8" };
|
|
11608
11778
|
function codeSyntaxPalette(theme = {}, options = {}) {
|
|
11609
|
-
const background = normalize(options.background) ?? CODE_PANEL_BACKGROUND,
|
|
11779
|
+
const background = normalize(options.background) ?? CODE_PANEL_BACKGROUND, plain3 = normalize(options.foreground) ?? CODE_PANEL_FOREGROUND;
|
|
11610
11780
|
const minimum = options.minimumContrast ?? CODE_SYNTAX_MIN_CONTRAST;
|
|
11611
|
-
const palette = { plain: legible(
|
|
11781
|
+
const palette = { plain: legible(plain3, background, minimum) };
|
|
11612
11782
|
const taken = [palette.plain];
|
|
11613
11783
|
const slots = [["keyword", theme.primary], ["string", theme.accent], ["number", theme.secondary], ["comment", theme.mutedText], ["function", void 0], ["type", void 0], ["property", void 0]];
|
|
11614
11784
|
for (const [kind2, themed] of slots) {
|
|
@@ -11941,28 +12111,27 @@ var CAPTION_MAX_RATIO = 0.35;
|
|
|
11941
12111
|
var FOOTNOTE_MAX_RATIO = 0.35;
|
|
11942
12112
|
var CAPTIONABLE_FIELDS = Object.freeze(["image", "chart", "table", "video", "diagram"]);
|
|
11943
12113
|
var record18 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
11944
|
-
var
|
|
12114
|
+
var isRecord4 = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
11945
12115
|
var round6 = (value) => Math.round(value * 1e6) / 1e6 || value;
|
|
11946
|
-
var regionKey = /^(top|middle|bottom|start|center|end)([+:]|$)/;
|
|
11947
12116
|
var TEXT_FIELDS = ["text", "items", "bullets"];
|
|
11948
12117
|
var HEADING_FIELDS = ["tag", "title", "subtitle"];
|
|
11949
12118
|
function annotationText(value) {
|
|
11950
12119
|
if (typeof value === "string") return value;
|
|
11951
12120
|
if (Array.isArray(value)) return value.map((run) => typeof run === "string" ? run : record18(run).text ?? "").join("");
|
|
11952
|
-
if (
|
|
12121
|
+
if (isRecord4(value) && value.text !== void 0) return annotationText(value.text);
|
|
11953
12122
|
return value === void 0 || value === null ? "" : String(value);
|
|
11954
12123
|
}
|
|
11955
12124
|
function captionSettings(value) {
|
|
11956
12125
|
if (value === void 0 || value === null) return void 0;
|
|
11957
12126
|
if (typeof value === "string" || Array.isArray(value)) return { text: value, position: "below", align: "start" };
|
|
11958
|
-
if (!
|
|
12127
|
+
if (!isRecord4(value) || value.text === void 0) return void 0;
|
|
11959
12128
|
return { text: value.text, position: value.position === "above" ? "above" : "below", align: value.align === "center" || value.align === "end" ? value.align : "start" };
|
|
11960
12129
|
}
|
|
11961
12130
|
function walkCitationRuns(slide, basePath, visit) {
|
|
11962
12131
|
const runs = (value2, path) => {
|
|
11963
12132
|
if (!Array.isArray(value2)) return;
|
|
11964
12133
|
value2.forEach((run, index) => {
|
|
11965
|
-
if (!
|
|
12134
|
+
if (!isRecord4(run) || typeof run.text !== "string") return;
|
|
11966
12135
|
const cite = run.cite === void 0 ? [] : Array.isArray(run.cite) ? run.cite.filter((id) => typeof id === "string") : typeof run.cite === "string" ? [run.cite] : [];
|
|
11967
12136
|
const footnote = typeof run.footnote === "string" || Array.isArray(run.footnote) ? run.footnote : void 0;
|
|
11968
12137
|
if (!cite.length && footnote === void 0) return;
|
|
@@ -11973,7 +12142,7 @@ function walkCitationRuns(slide, basePath, visit) {
|
|
|
11973
12142
|
if (!Array.isArray(items)) return;
|
|
11974
12143
|
items.forEach((item, index) => {
|
|
11975
12144
|
if (Array.isArray(item)) runs(item, `${path}.${index}`);
|
|
11976
|
-
else if (
|
|
12145
|
+
else if (isRecord4(item)) {
|
|
11977
12146
|
runs(item.text, `${path}.${index}.text`);
|
|
11978
12147
|
runs(item.description, `${path}.${index}.description`);
|
|
11979
12148
|
}
|
|
@@ -11993,13 +12162,18 @@ function walkCitationRuns(slide, basePath, visit) {
|
|
|
11993
12162
|
if (field === "text") runs(payload.text, `${path}.text`);
|
|
11994
12163
|
else list(payload[field], `${path}.${field}`);
|
|
11995
12164
|
}
|
|
11996
|
-
if (
|
|
12165
|
+
if (isRecord4(payload.quote)) runs(payload.quote.text, `${path}.quote.text`);
|
|
11997
12166
|
};
|
|
11998
12167
|
const value = record18(slide);
|
|
11999
12168
|
for (const field of HEADING_FIELDS) runs(value[field], `${basePath}.${field}`);
|
|
12000
|
-
const
|
|
12001
|
-
if (
|
|
12002
|
-
for (const key of
|
|
12169
|
+
const cells = cellsInReadingOrder(Object.keys(value).filter(isGridCell).map((cell) => ({ cell })));
|
|
12170
|
+
if (cells.length) {
|
|
12171
|
+
for (const key of cells) host(value[key], `${basePath}.${key}`, 0);
|
|
12172
|
+
return;
|
|
12173
|
+
}
|
|
12174
|
+
const placed = cellBlocks(value);
|
|
12175
|
+
if (placed) {
|
|
12176
|
+
for (const cell of cellsInReadingOrder(placed)) for (const entry of placed) if (entry.cell === cell) host(entry.block, `${basePath}.blocks.${entry.index}`, 0);
|
|
12003
12177
|
return;
|
|
12004
12178
|
}
|
|
12005
12179
|
if (Array.isArray(value.blocks)) {
|
|
@@ -12013,7 +12187,7 @@ function walkCitationRuns(slide, basePath, visit) {
|
|
|
12013
12187
|
var citationMarkerText = (numbers) => numbers.join(",");
|
|
12014
12188
|
function referenceList(presentation) {
|
|
12015
12189
|
const list = record18(presentation).references;
|
|
12016
|
-
return Array.isArray(list) ? list.filter((item) =>
|
|
12190
|
+
return Array.isArray(list) ? list.filter((item) => isRecord4(item) && typeof item.id === "string") : [];
|
|
12017
12191
|
}
|
|
12018
12192
|
function numberSlide(slide, slideIndex, references, numbering) {
|
|
12019
12193
|
const markers = /* @__PURE__ */ new Map(), marked = [], used = /* @__PURE__ */ new Map();
|
|
@@ -12086,10 +12260,10 @@ function runInHeading(text2) {
|
|
|
12086
12260
|
return [{ text: label6[1], bold: true }, label6[2]];
|
|
12087
12261
|
}
|
|
12088
12262
|
function layoutCaption(value, box, path, options) {
|
|
12089
|
-
const
|
|
12090
|
-
if (!
|
|
12091
|
-
const settings = options.nameDetail ? { ...
|
|
12092
|
-
const alignment =
|
|
12263
|
+
const plain3 = captionSettings(value);
|
|
12264
|
+
if (!plain3) return void 0;
|
|
12265
|
+
const settings = options.nameDetail ? { ...plain3, text: splitCaptionName(plain3.text) } : plain3;
|
|
12266
|
+
const alignment = plain3.align === "center" ? "center" : plain3.align === "end" ? "right" : "left";
|
|
12093
12267
|
const fontSize = Math.max(options.minFontSize, CAPTION_FONT_RATIO * 25 * options.scale), gap = fontSize * 0.4;
|
|
12094
12268
|
const maxHeight = Math.max(fontSize * 1.22, box.height * CAPTION_MAX_RATIO);
|
|
12095
12269
|
const diagnostics = [];
|
|
@@ -13624,7 +13798,7 @@ function documentIcons(input) {
|
|
|
13624
13798
|
};
|
|
13625
13799
|
const slide = (value, path) => {
|
|
13626
13800
|
payload(value, path, 0);
|
|
13627
|
-
if (isRec3(value)) for (const key of
|
|
13801
|
+
if (isRec3(value)) for (const key of gridCells) payload(value[key], `${path}.${key}`, 1);
|
|
13628
13802
|
};
|
|
13629
13803
|
if (isRec3(input) && Array.isArray(input.slides)) input.slides.forEach((value, index) => {
|
|
13630
13804
|
slide(value, `slides.${index}`);
|
|
@@ -13871,7 +14045,7 @@ function iconColors(roles, dark) {
|
|
|
13871
14045
|
var LAYOUT_BODY_KINDS = ["text", "list", "image", "video", "chart", "table", "code", "metric", "quote", "timeline", "diagram", "shape"];
|
|
13872
14046
|
function layoutStructure(layout) {
|
|
13873
14047
|
if (!isLayoutTemplate(layout)) return "";
|
|
13874
|
-
return layoutEntries(layout).map((entry) => entry.region ? `${entry.name} (${entry.region.flow}: ${entry.region.accepts.join(", ")})` : entry.name).join(", ");
|
|
14048
|
+
return layoutEntries(layout).map((entry) => entry.region ? `${entry.name} (${entry.region.flow}${entry.region.max === 1 ? ", max 1" : ""}: ${entry.region.accepts.join(", ")})` : entry.name).join(", ");
|
|
13875
14049
|
}
|
|
13876
14050
|
function layoutContent(layout) {
|
|
13877
14051
|
const areas = isLayoutTemplate(layout) ? layoutEntries(layout) : [];
|
|
@@ -14332,13 +14506,13 @@ function linesSplitWord(source, lines) {
|
|
|
14332
14506
|
return joined !== source.replace(/\s+/gu, " ").trim();
|
|
14333
14507
|
}
|
|
14334
14508
|
function listSplitWords(result) {
|
|
14335
|
-
const
|
|
14509
|
+
const plain3 = (value) => typeof value === "string" ? value : Array.isArray(value) ? value.map((run) => typeof run === "string" ? run : String(record19(run).text ?? "")).join("") : "";
|
|
14336
14510
|
let count = 0;
|
|
14337
14511
|
for (const item of result.items) {
|
|
14338
14512
|
if (!item.text || !("listEntries" in item.text)) continue;
|
|
14339
14513
|
for (const entry of item.text.listEntries) {
|
|
14340
|
-
if (linesSplitWord(
|
|
14341
|
-
if (entry.description && linesSplitWord(
|
|
14514
|
+
if (linesSplitWord(plain3(entry.value), entry.text.lines)) count++;
|
|
14515
|
+
if (entry.description && linesSplitWord(plain3(entry.descriptionValue), entry.description.lines)) count++;
|
|
14342
14516
|
}
|
|
14343
14517
|
}
|
|
14344
14518
|
return count;
|
|
@@ -16188,9 +16362,9 @@ var LIST_DISPLAY_RULE = 0.14;
|
|
|
16188
16362
|
var LIST_DISPLAY_GAP = 0.3;
|
|
16189
16363
|
var STEP_BADGE = 1.75;
|
|
16190
16364
|
var STEP_BADGE_GAP = 0.4;
|
|
16191
|
-
var
|
|
16192
|
-
var
|
|
16193
|
-
var
|
|
16365
|
+
var STEP_PROCESS_MIN = 2;
|
|
16366
|
+
var STEP_PROCESS_MAX = 8;
|
|
16367
|
+
var STEP_PROCESS_CHARACTERS = 24;
|
|
16194
16368
|
var LIST_MARKERS = ["\u2022", "\u2013"];
|
|
16195
16369
|
function contentNominalSize(field) {
|
|
16196
16370
|
return field === "items" || field === "bullets" ? LIST_NOMINAL_SIZE : field === "table" ? TABLE_NOMINAL_SIZE : PROSE_NOMINAL_SIZE;
|
|
@@ -16204,8 +16378,8 @@ function fitList(input, box, requestedSize = contentNominalSize("items"), minFon
|
|
|
16204
16378
|
const runs = (value2) => typeof value2 === "string" ? [value2] : value2;
|
|
16205
16379
|
if (!Array.isArray(runs(text2)) || description !== void 0 && !Array.isArray(runs(description))) throw new TypeError("List text and descriptions must be strings or text runs.");
|
|
16206
16380
|
const base = options.style.path ? `${options.style.path}.${index}` : void 0;
|
|
16207
|
-
const
|
|
16208
|
-
const direction = options.direction === "rtl" ? paragraphDirection(
|
|
16381
|
+
const plain3 = (value2) => typeof value2 === "string" ? value2 : value2.map((run) => typeof run === "string" ? run : run.text).join("");
|
|
16382
|
+
const direction = options.direction === "rtl" ? paragraphDirection(plain3(text2), "rtl") : void 0;
|
|
16209
16383
|
return { index, level, direction, value: text2, descriptionValue: description, textPath: base ? base + (object2 ? ".text" : "") : void 0, descriptionPath: base ? base + ".description" : void 0, runs: runs(text2), descriptionRuns: description === void 0 ? void 0 : runs(description) };
|
|
16210
16384
|
});
|
|
16211
16385
|
const numbers = options.numbering === void 0 ? void 0 : listNumbers(input, options.numbering);
|
|
@@ -16672,6 +16846,8 @@ function composeLayoutAreas(layout, options = {}) {
|
|
|
16672
16846
|
const result = composeSlide(slide, { ...compose, layout: kept, [LAYOUT_MASTER]: true });
|
|
16673
16847
|
const areas = template.areas.map((area2) => {
|
|
16674
16848
|
if (area2.heading) {
|
|
16849
|
+
const joined = area2.name === "subtitle" && !result.headingAreas?.some((entry) => entry.name === "subtitle") ? result.headingAreas?.find((entry) => entry.name === "title")?.parts?.subtitle : void 0;
|
|
16850
|
+
if (joined) return { name: area2.name, heading: true, box: { ...joined } };
|
|
16675
16851
|
const found = result.headingAreas?.find((entry) => entry.name === area2.name);
|
|
16676
16852
|
return { name: area2.name, heading: true, box: found ? { ...found.box } : { x: 0, y: 0, width: 0, height: 0 }, ...found?.parts ? { parts: found.parts } : {} };
|
|
16677
16853
|
}
|
|
@@ -16696,7 +16872,7 @@ var EMPHASIS_TAKEAWAY_MAX_CHARACTERS = 120;
|
|
|
16696
16872
|
var EMPHASIS_NOTE_LINES = 3;
|
|
16697
16873
|
var NOTE_PEER_RATIO = [0.6, 1.6];
|
|
16698
16874
|
var NOTE_PEER_WORDS = 6;
|
|
16699
|
-
var
|
|
16875
|
+
var verdictRegion = (template) => template.regions.some((region) => region.name === "first") && template.regions.some((region) => region.name === "aside") ? "aside" : void 0;
|
|
16700
16876
|
var FIGURE_ROW_MIN = 2;
|
|
16701
16877
|
var FIGURE_ROW_MAX = 4;
|
|
16702
16878
|
var FIGURE_WORDS = 4;
|
|
@@ -16781,7 +16957,7 @@ function bodyReadability(result, options) {
|
|
|
16781
16957
|
}
|
|
16782
16958
|
var RULES = /* @__PURE__ */ Symbol("opf.rules");
|
|
16783
16959
|
var FIRED = /* @__PURE__ */ Symbol("opf.fired");
|
|
16784
|
-
var GUARDED_RULES = ["half-steps", "nested-gaps", "empty-columns", "centered-column", "region-measure", "mixed-cards", "short-row", "metric-start", "metric-figure", "quote-beside", "quote-card", "emphasis-band", "featured-card", "pull-quote", "timeline-status", "metric-tiles", "long-text-rows", "reading-measure", "lead-stack", "paragraph-columns", "bar-chart-share", "metric-display", "eyebrow", "list-rows", "pair-rows", "step-badges", "numerals", "delta-pill", "check-tiles", "tier-cards", "pillar-words", "icons", "icon-chips", "icon-cards", "text-tiles", "title-rule", "statement-message", "display-message", "table-note", "compact-grid", "portraits", "heading-tracks", "note-band", "figure-row", "run-in", "layout-first", "closing-lead", "placed-tiles"];
|
|
16960
|
+
var GUARDED_RULES = ["half-steps", "nested-gaps", "empty-columns", "centered-column", "region-measure", "mixed-cards", "short-row", "metric-start", "metric-figure", "quote-beside", "quote-card", "emphasis-band", "featured-card", "pull-quote", "timeline-status", "metric-tiles", "long-text-rows", "reading-measure", "lead-stack", "paragraph-columns", "bar-chart-share", "list-words", "metric-display", "eyebrow", "list-rows", "pair-rows", "step-badges", "numerals", "delta-pill", "check-tiles", "tier-cards", "pillar-words", "icons", "icon-chips", "icon-cards", "text-tiles", "title-rule", "statement-message", "display-message", "table-note", "compact-grid", "portraits", "heading-tracks", "note-band", "figure-row", "run-in", "layout-first", "closing-lead", "placed-tiles"];
|
|
16785
16961
|
var NO_RULES = /* @__PURE__ */ new Set();
|
|
16786
16962
|
var DRAWING_RULES = ["featured-card", "delta-pill", "check-tiles", "icons", "icon-chips"];
|
|
16787
16963
|
var NO_DRAWING = /* @__PURE__ */ Symbol("opf.noDrawing");
|
|
@@ -16809,6 +16985,7 @@ var PLACED_TILE_ITEMS = /* @__PURE__ */ new WeakSet();
|
|
|
16809
16985
|
var ICON_AGENDAS = /* @__PURE__ */ new WeakMap();
|
|
16810
16986
|
var AGENDA_STARTS = /* @__PURE__ */ Symbol("opf.agendaStarts");
|
|
16811
16987
|
var NO_STEPS = /* @__PURE__ */ Symbol("opf.noSteps");
|
|
16988
|
+
var NO_STEP_PROCESS = /* @__PURE__ */ Symbol("opf.noStepProcess");
|
|
16812
16989
|
var NO_NOTE_BAND = /* @__PURE__ */ Symbol("opf.noNoteBand");
|
|
16813
16990
|
var NOTE_BANDS = /* @__PURE__ */ new WeakSet();
|
|
16814
16991
|
function picturesShrink(next, base) {
|
|
@@ -16923,18 +17100,18 @@ function growBody(input, options, result) {
|
|
|
16923
17100
|
return done(smallest(further) > smallest(grown) + FONT_GRID_EPSILON ? further : grown);
|
|
16924
17101
|
}
|
|
16925
17102
|
const lines = (item) => item.text ? "richLines" in item.text ? item.text.richLines.length : item.text.lines.length : 0;
|
|
16926
|
-
const spread = attempt({ [NO_COMPACT_GRID]: true }),
|
|
17103
|
+
const spread = attempt({ [NO_COMPACT_GRID]: true }), plain3 = spread ? climb(spread, { [NO_COMPACT_GRID]: true }, 3, () => true) : void 0, reference = plain3 ?? result;
|
|
16927
17104
|
if (spread && !stepsOf.has(spread)) stepsOf.set(spread, { [NO_COMPACT_GRID]: true });
|
|
16928
17105
|
const keepsLines = (grown) => grown.items.every((item) => {
|
|
16929
17106
|
const was = reference.items.find((entry) => entry.path === item.path);
|
|
16930
17107
|
return !was || lines(item) <= lines(was);
|
|
16931
17108
|
});
|
|
16932
|
-
const floorSize =
|
|
17109
|
+
const floorSize = plain3 ? smallest(plain3) : smallest(result);
|
|
16933
17110
|
for (const accept of [keepsLines, () => true]) {
|
|
16934
17111
|
const grown = climb(result, { [GRID_GROW]: true }, COMPACT_GRID_STEPS, accept);
|
|
16935
17112
|
if (smallest(grown) >= floorSize - FONT_GRID_EPSILON) return done(grown);
|
|
16936
17113
|
}
|
|
16937
|
-
return
|
|
17114
|
+
return plain3 && plain3 !== result ? done(plain3) : void 0;
|
|
16938
17115
|
}
|
|
16939
17116
|
var OVERLAY_ONTO = /* @__PURE__ */ Symbol("opf.overlayOnto");
|
|
16940
17117
|
var PROSE_REFLOW = /* @__PURE__ */ Symbol("opf.proseReflow");
|
|
@@ -17028,7 +17205,74 @@ function growMixedCode(input, options, result) {
|
|
|
17028
17205
|
}
|
|
17029
17206
|
return result;
|
|
17030
17207
|
}
|
|
17208
|
+
var PATH_KEY = /(?:^|[a-z])(?:path|Path|paths|Paths)$|^ref$|^at$/;
|
|
17209
|
+
var AUTHORED_KEYS = /* @__PURE__ */ new Set(["value", "payload", "host"]);
|
|
17210
|
+
function cellComposition(input, options) {
|
|
17211
|
+
if (options.layout !== null && typeof options.layout === "object") return void 0;
|
|
17212
|
+
const source = record19(input), placed = cellBlocks(source);
|
|
17213
|
+
if (!placed) return void 0;
|
|
17214
|
+
const { blocks: _blocks, ...slide } = source;
|
|
17215
|
+
const base = `slides.${options.slideIndex ?? 0}`, single = /* @__PURE__ */ new Map(), many = /* @__PURE__ */ new Map();
|
|
17216
|
+
const authored = ({ block }) => {
|
|
17217
|
+
const { region: _region, ...rest } = block;
|
|
17218
|
+
return rest;
|
|
17219
|
+
};
|
|
17220
|
+
for (const cell of cellsInReadingOrder(placed)) {
|
|
17221
|
+
const entries = placed.filter((entry) => entry.cell === cell);
|
|
17222
|
+
if (entries.length === 1) {
|
|
17223
|
+
slide[cell] = authored(entries[0]);
|
|
17224
|
+
single.set(cell, entries[0].index);
|
|
17225
|
+
} else {
|
|
17226
|
+
slide[cell] = { blocks: entries.map(authored) };
|
|
17227
|
+
many.set(cell, entries.map((entry) => entry.index));
|
|
17228
|
+
}
|
|
17229
|
+
}
|
|
17230
|
+
const escape = (text2) => text2.replace(/[.+]/g, (match) => `\\${match}`);
|
|
17231
|
+
const pattern = new RegExp(`^${escape(base)}\\.(${[...single.keys(), ...many.keys()].map(escape).join("|")})(?=\\.|$)(\\.blocks\\.(\\d+)(?=\\.|$))?`);
|
|
17232
|
+
const path = (value) => value.replace(pattern, (whole, cell, nested, index) => {
|
|
17233
|
+
const own3 = single.get(cell);
|
|
17234
|
+
if (own3 !== void 0) return `${base}.blocks.${own3}${nested ?? ""}`;
|
|
17235
|
+
const block = index !== void 0 ? many.get(cell)?.[Number(index)] : void 0;
|
|
17236
|
+
return block !== void 0 ? `${base}.blocks.${block}` : whole;
|
|
17237
|
+
});
|
|
17238
|
+
return { slide, path };
|
|
17239
|
+
}
|
|
17240
|
+
function rewritePaths(value, path, authored, seen = /* @__PURE__ */ new WeakSet()) {
|
|
17241
|
+
if (value === null || typeof value !== "object" || seen.has(value) || authored.has(value)) return;
|
|
17242
|
+
seen.add(value);
|
|
17243
|
+
if (Array.isArray(value)) {
|
|
17244
|
+
for (const entry of value) rewritePaths(entry, path, authored, seen);
|
|
17245
|
+
return;
|
|
17246
|
+
}
|
|
17247
|
+
const target = value;
|
|
17248
|
+
for (const key of Object.keys(target)) {
|
|
17249
|
+
if (AUTHORED_KEYS.has(key)) continue;
|
|
17250
|
+
const entry = target[key];
|
|
17251
|
+
if (typeof entry === "string") {
|
|
17252
|
+
if (PATH_KEY.test(key)) {
|
|
17253
|
+
const next = path(entry);
|
|
17254
|
+
if (next !== entry) target[key] = next;
|
|
17255
|
+
}
|
|
17256
|
+
} else if (Array.isArray(entry) && PATH_KEY.test(key) && entry.some((item) => typeof item === "string")) target[key] = entry.map((item) => typeof item === "string" ? path(item) : item);
|
|
17257
|
+
else rewritePaths(entry, path, authored, seen);
|
|
17258
|
+
}
|
|
17259
|
+
}
|
|
17260
|
+
function authoredObjects(value, into = /* @__PURE__ */ new WeakSet(), depth = 0) {
|
|
17261
|
+
if (value === null || typeof value !== "object" || into.has(value) || depth > 64) return into;
|
|
17262
|
+
into.add(value);
|
|
17263
|
+
for (const entry of Array.isArray(value) ? value : Object.values(value)) authoredObjects(entry, into, depth + 1);
|
|
17264
|
+
return into;
|
|
17265
|
+
}
|
|
17031
17266
|
function composeSlide(input, options = {}) {
|
|
17267
|
+
const own3 = record19(input);
|
|
17268
|
+
if (Object.keys(own3).some(isGridCell)) input = Object.fromEntries(Object.entries(own3).filter(([key]) => !isGridCell(key)));
|
|
17269
|
+
const cells = cellComposition(input, options);
|
|
17270
|
+
if (!cells) return composeGrid(input, options);
|
|
17271
|
+
const result = composeGrid(cells.slide, options);
|
|
17272
|
+
rewritePaths(result, cells.path, authoredObjects(input));
|
|
17273
|
+
return result;
|
|
17274
|
+
}
|
|
17275
|
+
function composeGrid(input, options) {
|
|
17032
17276
|
if (options.textMeasurement) options = { ...options, textMeasurement: memoizedMeasurement(options.textMeasurement) };
|
|
17033
17277
|
const probe = options[TIGHT_DISPLAY] !== void 0 || options.fill === false ? void 0 : { differs: false };
|
|
17034
17278
|
if (probe) tightProbes.push(probe);
|
|
@@ -17071,29 +17315,29 @@ function composeSlideBody(input, options) {
|
|
|
17071
17315
|
if (options[RULES] !== void 0) return composeArranged(input, options);
|
|
17072
17316
|
const result = settled(input, options);
|
|
17073
17317
|
if (!result.steps) return withPictureScrim(input, options, result);
|
|
17074
|
-
const plainOptions = { ...options, [NO_STEPS]: true },
|
|
17075
|
-
const floor = snapFontSizeUp((
|
|
17318
|
+
const plainOptions = { ...options, [NO_STEPS]: true }, plain3 = settled(input, plainOptions);
|
|
17319
|
+
const floor = snapFontSizeUp((plain3.composition.minFontSize ?? 16) * Math.min(plain3.width, plain3.height) / 720);
|
|
17076
17320
|
const own3 = record19(record19(input).composition);
|
|
17077
17321
|
if (own3.maxFontSize !== void 0) {
|
|
17078
17322
|
const { maxFontSize: _cap, ...rest } = own3, free = { ...record19(input), composition: rest };
|
|
17079
17323
|
const freeResult = settled(free, options), freePlain = settled(free, plainOptions);
|
|
17080
|
-
return withPictureScrim(input, options, freeResult.steps && stepsRead(freePlain, freeResult, options, floor) && !tilesShrink(freeResult, freePlain, options) ? result :
|
|
17324
|
+
return withPictureScrim(input, options, freeResult.steps && stepsRead(freePlain, freeResult, options, floor) && !tilesShrink(freeResult, freePlain, options) ? result : plain3);
|
|
17081
17325
|
}
|
|
17082
|
-
return withPictureScrim(input, options, stepsRead(
|
|
17326
|
+
return withPictureScrim(input, options, stepsRead(plain3, result, options, floor) && !tilesShrink(result, plain3, options) ? result : plain3);
|
|
17083
17327
|
}
|
|
17084
|
-
function tilesShrink(tiled,
|
|
17085
|
-
return PLACED_TILES.has(tiled) && shrinks(tiled,
|
|
17328
|
+
function tilesShrink(tiled, plain3, options) {
|
|
17329
|
+
return PLACED_TILES.has(tiled) && shrinks(tiled, plain3, options);
|
|
17086
17330
|
}
|
|
17087
17331
|
function settled(input, options) {
|
|
17088
17332
|
const result = settle(input, options, guardedCompose(input, options));
|
|
17089
17333
|
if (!NOTE_BANDS.has(result) || options[NO_NOTE_BAND] === true) return result;
|
|
17090
|
-
const plainOptions = { ...options, [NO_NOTE_BAND]: true },
|
|
17334
|
+
const plainOptions = { ...options, [NO_NOTE_BAND]: true }, plain3 = settle(input, plainOptions, guardedCompose(input, plainOptions));
|
|
17091
17335
|
const notePath = `${result.emphasis.path}.text`, sizeOf = (composed) => composed.items.find((item) => item.path === notePath)?.text?.fontSize ?? 0;
|
|
17092
|
-
const plainNote = sizeOf(
|
|
17336
|
+
const plainNote = sizeOf(plain3), holds = (composed) => NOTE_BANDS.has(composed) && sizeOf(composed) >= plainNote - FONT_GRID_EPSILON && !shrinks(composed, plain3, options);
|
|
17093
17337
|
if (holds(result)) return result;
|
|
17094
|
-
if (sizeOf(result) >= plainNote - FONT_GRID_EPSILON) return
|
|
17338
|
+
if (sizeOf(result) >= plainNote - FONT_GRID_EPSILON) return plain3;
|
|
17095
17339
|
const sized = { ...options, [EMPHASIS_SIZE]: plainNote }, larger = settle(input, sized, guardedCompose(input, sized));
|
|
17096
|
-
return holds(larger) ? larger :
|
|
17340
|
+
return holds(larger) ? larger : plain3;
|
|
17097
17341
|
}
|
|
17098
17342
|
function textInkBox(item, measurement) {
|
|
17099
17343
|
const fit = item.text;
|
|
@@ -17198,13 +17442,13 @@ function withCards(input, options, result) {
|
|
|
17198
17442
|
function guardedDrawing(input, options) {
|
|
17199
17443
|
const result = guardedRules(input, options);
|
|
17200
17444
|
if (options[NO_DRAWING] === true || !(result.emphasis?.source === "featured" || result.items.some((item) => item.metricLayout?.deltaPill) || result.steps?.some((step) => step.form === "tiles") || result.icons?.length)) return result;
|
|
17201
|
-
const
|
|
17202
|
-
const scale2 = Math.min(
|
|
17203
|
-
const atFloor = (composed) => bodyReadability(composed, options).sizes.some((entry) => entry.atFloor), plainFloor = atFloor(
|
|
17445
|
+
const plain3 = guardedRules(input, { ...options, [NO_DRAWING]: true }), used = KEPT_RULES.get(plain3);
|
|
17446
|
+
const scale2 = Math.min(plain3.width, plain3.height) / 720, floor = snapFontSizeUp((plain3.composition.minFontSize ?? 16) * scale2), before = trackQuality(plain3, options);
|
|
17447
|
+
const atFloor = (composed) => bodyReadability(composed, options).sizes.some((entry) => entry.atFloor), plainFloor = atFloor(plain3);
|
|
17204
17448
|
const keeps = (composed) => readsAsWell(before, trackQuality(composed, options), floor) && atFloor(composed) === plainFloor;
|
|
17205
17449
|
if (keeps(result)) return result;
|
|
17206
|
-
let best =
|
|
17207
|
-
KEPT_RULES.set(
|
|
17450
|
+
let best = plain3, rules = new Set([...used?.rules ?? NO_RULES].filter((rule) => !DRAWING_RULES.includes(rule)));
|
|
17451
|
+
KEPT_RULES.set(plain3, { rules, seeds: used?.seeds ?? {} });
|
|
17208
17452
|
for (const rule of DRAWING_RULES) {
|
|
17209
17453
|
const next = /* @__PURE__ */ new Set([...rules, rule]);
|
|
17210
17454
|
let trial;
|
|
@@ -17271,10 +17515,10 @@ function guardedRules(input, options) {
|
|
|
17271
17515
|
keptRules = NO_RULES;
|
|
17272
17516
|
if (drewIcons) {
|
|
17273
17517
|
const plainFired = /* @__PURE__ */ new Set(), withoutIcons = new Set([...CORE_RULES].filter((rule) => rule !== "icons" && rule !== "icon-chips"));
|
|
17274
|
-
const
|
|
17275
|
-
if (readsWell(
|
|
17518
|
+
const plain3 = attempt(ruled(withoutIcons, { ...seeds, [FIRED]: plainFired }));
|
|
17519
|
+
if (readsWell(plain3)) {
|
|
17276
17520
|
kept = withoutIcons;
|
|
17277
|
-
result =
|
|
17521
|
+
result = plain3;
|
|
17278
17522
|
keptRules = withoutIcons;
|
|
17279
17523
|
}
|
|
17280
17524
|
candidates = /* @__PURE__ */ new Set([...fired, ...plainFired, "icons", "icon-chips"]);
|
|
@@ -17335,19 +17579,19 @@ function evenLines(fit, words2) {
|
|
|
17335
17579
|
return Math.min(...widths) >= EVEN_LINE_SHARE * Math.max(...widths) && words2.slice(0, -1).every((line2) => !DANGLING_WORD.test(line2));
|
|
17336
17580
|
}
|
|
17337
17581
|
function guardedCompose(input, options) {
|
|
17338
|
-
const
|
|
17339
|
-
if (!used || !
|
|
17582
|
+
const plain3 = guardedCore(input, options), used = KEPT_RULES.get(plain3);
|
|
17583
|
+
if (!used || !plain3.items.some((item) => item.metricLayout)) return plain3;
|
|
17340
17584
|
const fired = /* @__PURE__ */ new Set();
|
|
17341
17585
|
let figured;
|
|
17342
17586
|
try {
|
|
17343
17587
|
figured = composeArranged(input, { ...options, [RULES]: /* @__PURE__ */ new Set([...used.rules, "metric-figure"]), [FIRED]: fired, ...used.seeds });
|
|
17344
17588
|
} catch (error) {
|
|
17345
|
-
if (error instanceof OPFCompositionError) return
|
|
17589
|
+
if (error instanceof OPFCompositionError) return plain3;
|
|
17346
17590
|
throw error;
|
|
17347
17591
|
}
|
|
17348
|
-
const scale2 = Math.min(
|
|
17349
|
-
if (!fired.has("metric-figure") || !readsAsWellFigure(trackQuality(
|
|
17350
|
-
const pulled = PULL_SIZES.get(
|
|
17592
|
+
const scale2 = Math.min(plain3.width, plain3.height) / 720, floor = snapFontSizeUp((plain3.composition.minFontSize ?? 16) * scale2);
|
|
17593
|
+
if (!fired.has("metric-figure") || !readsAsWellFigure(trackQuality(plain3, options), trackQuality(figured, options), floor)) return plain3;
|
|
17594
|
+
const pulled = PULL_SIZES.get(plain3);
|
|
17351
17595
|
if (pulled) PULL_SIZES.set(figured, pulled);
|
|
17352
17596
|
KEPT_RULES.set(figured, { rules: /* @__PURE__ */ new Set([...used.rules, "metric-figure"]), seeds: used.seeds });
|
|
17353
17597
|
return figured;
|
|
@@ -17366,6 +17610,7 @@ function messageWords(value) {
|
|
|
17366
17610
|
function bodyPayloads(slide) {
|
|
17367
17611
|
const empty2 = (value) => value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0;
|
|
17368
17612
|
const payloads = [];
|
|
17613
|
+
if (cellBlocks(slide)) return payloads;
|
|
17369
17614
|
for (const host of [slide, ...Array.isArray(slide.blocks) ? slide.blocks.map(record19) : []]) {
|
|
17370
17615
|
if (host !== slide && !empty2(host.blocks)) return void 0;
|
|
17371
17616
|
for (const field of fields) if (!empty2(host[field])) payloads.push({ field, host });
|
|
@@ -17453,7 +17698,7 @@ function settle(input, options, result) {
|
|
|
17453
17698
|
const grown = growBody(input, options, result);
|
|
17454
17699
|
if (grown) return grown;
|
|
17455
17700
|
if (REGION_MEASURED.has(result) && bodyFill(result, options)) {
|
|
17456
|
-
const
|
|
17701
|
+
const plain3 = { ...options, [NO_REGION_MEASURE]: true }, wide = growBody(input, plain3, guardedCompose(input, plain3));
|
|
17457
17702
|
if (wide) return wide;
|
|
17458
17703
|
}
|
|
17459
17704
|
const kpis = kpiColumn(input, options, result);
|
|
@@ -17532,10 +17777,10 @@ function composeVariant(input, options, before, floor) {
|
|
|
17532
17777
|
throw error;
|
|
17533
17778
|
}
|
|
17534
17779
|
};
|
|
17535
|
-
let
|
|
17780
|
+
let plain3 = null;
|
|
17536
17781
|
const unruled = () => {
|
|
17537
|
-
if (
|
|
17538
|
-
return
|
|
17782
|
+
if (plain3 === null) plain3 = compose(NO_RULES);
|
|
17783
|
+
return plain3;
|
|
17539
17784
|
};
|
|
17540
17785
|
const portraitsRead = (next) => {
|
|
17541
17786
|
if (!fired.has("portraits")) return true;
|
|
@@ -17830,8 +18075,8 @@ function drawnQuality(result, options) {
|
|
|
17830
18075
|
}
|
|
17831
18076
|
return quality;
|
|
17832
18077
|
}
|
|
17833
|
-
function stepsRead(
|
|
17834
|
-
return readsAsWell(trackQuality(
|
|
18078
|
+
function stepsRead(plain3, steps, options, floor) {
|
|
18079
|
+
return readsAsWell(trackQuality(plain3, options), trackQuality(steps, options), floor) || readsAsWell(drawnQuality(plain3, options), drawnQuality(steps, options), floor);
|
|
17835
18080
|
}
|
|
17836
18081
|
function readsAsWell(before, after, floor) {
|
|
17837
18082
|
if (after.overflows > before.overflows || after.splitWords > before.splitWords || after.splitValues.size > before.splitValues.size || after.narrow > before.narrow || after.measure < before.measure - 0.01 || after.shortPlots > before.shortPlots) return false;
|
|
@@ -17918,7 +18163,7 @@ function automaticTracks(input, options, base) {
|
|
|
17918
18163
|
}
|
|
17919
18164
|
return { ...best.result, items, track: { kind: "picture", edge: physical(edge2), size: best.size, path: blockPath } };
|
|
17920
18165
|
}
|
|
17921
|
-
if (pictures.length || leaf("video").length || charts.length !== 1
|
|
18166
|
+
if (pictures.length || leaf("video").length || charts.length !== 1) return base;
|
|
17922
18167
|
const chartOf = (result) => result.items.find((item) => item.field === "chart");
|
|
17923
18168
|
const chart = chartOf(base);
|
|
17924
18169
|
if (!chart || !shortPlot(chart, bodyHeight(base), scale2)) return base;
|
|
@@ -17931,7 +18176,6 @@ function automaticTracks(input, options, base) {
|
|
|
17931
18176
|
}
|
|
17932
18177
|
return base;
|
|
17933
18178
|
}
|
|
17934
|
-
var CHART_PRIMARY_SIDES = /* @__PURE__ */ new Set(["top", "bottom", "start", "end", "left", "right"]);
|
|
17935
18179
|
function composeLayout(input, options = {}) {
|
|
17936
18180
|
const slide = record19(input), layout = record19(options.layout);
|
|
17937
18181
|
const recomposing = options[RECOMPOSE] === true;
|
|
@@ -17949,10 +18193,12 @@ function composeLayout(input, options = {}) {
|
|
|
17949
18193
|
const recordTemplate = !recomposing && isLayoutTemplate(layout) ? layoutTemplate(layout) : void 0;
|
|
17950
18194
|
const statement = recordTemplate && ruleOn("statement-message") ? statementMessage(slide, recordTemplate, options.fill !== false) : void 0;
|
|
17951
18195
|
if (statement) fire("statement-message");
|
|
17952
|
-
const
|
|
18196
|
+
const statementPlan = recordTemplate && statement === "body" ? statementTemplate(recordTemplate) : recordTemplate;
|
|
18197
|
+
const hints = resolveDesignHints({ slide, layout, theme: { design: options.themeDesign }, presentation: options.presentation, slideIndex: options.slideIndex, deck: { titleAlignment: options.titleAlignment, contentAlignment: options.contentAlignment, contentBox: options.contentBox } });
|
|
18198
|
+
const titleStart = hints.titlePosition === "start" && width >= height && !recomposing;
|
|
18199
|
+
const template = statementPlan && titleStart ? titleBesideTemplate(statementPlan) ?? statementPlan : statementPlan;
|
|
17953
18200
|
const messageField = options.fill !== false ? oneMessageField(slide) : void 0;
|
|
17954
18201
|
const messageNode = (node) => messageField !== void 0 && node.field === messageField && !node.children && node.caption === void 0;
|
|
17955
|
-
const hints = resolveDesignHints({ slide, layout, theme: { design: options.themeDesign }, presentation: options.presentation, slideIndex: options.slideIndex, deck: { titleAlignment: options.titleAlignment, contentAlignment: options.contentAlignment, contentBox: options.contentBox } });
|
|
17956
18202
|
const hasCards = hints.contentBox ?? false;
|
|
17957
18203
|
const composition = { ...record19(layout.composition), ...record19(slide.composition) };
|
|
17958
18204
|
assertComposition(composition);
|
|
@@ -18030,8 +18276,8 @@ function composeLayout(input, options = {}) {
|
|
|
18030
18276
|
const surfaceRun = (run) => {
|
|
18031
18277
|
const color = run && typeof run === "object" ? run.color : void 0;
|
|
18032
18278
|
const own3 = colorTransform(color), base = own3 ? own3.color : color;
|
|
18033
|
-
const
|
|
18034
|
-
const drawn = color !== void 0 && color !== "" && options.resolveRunColor ? normalize(options.resolveRunColor(color)) : own3 &&
|
|
18279
|
+
const plain3 = base === "primary" ? normalize(slideRoles.primary) : normalize(base);
|
|
18280
|
+
const drawn = color !== void 0 && color !== "" && options.resolveRunColor ? normalize(options.resolveRunColor(color)) : own3 && plain3 ? normalize(applyColorTransform(plain3, own3)) : plain3;
|
|
18035
18281
|
if (!onMessageSurface || !surfaceBackground || !drawn || (colorContrast(drawn, surfaceBackground) ?? 0) >= SCRIM_TARGET_CONTRAST) return run;
|
|
18036
18282
|
return { ...run, color: legible(drawn, surfaceBackground, SCRIM_TARGET_CONTRAST) };
|
|
18037
18283
|
};
|
|
@@ -18423,13 +18669,16 @@ function composeLayout(input, options = {}) {
|
|
|
18423
18669
|
}
|
|
18424
18670
|
let y = logo ? logo.box.y + logo.box.height + gap : headingTop;
|
|
18425
18671
|
const headingArea = headingSpan ?? area2;
|
|
18426
|
-
const
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18672
|
+
const headingFields = ["tag", "title", "subtitle"].filter((field) => slide[field] && !(Array.isArray(slide[field]) && !annotationText(slide[field])));
|
|
18673
|
+
let besideTitle;
|
|
18674
|
+
if (!useTemplate && !regions.length && titleStart && hasBodyPayload && headingFields.length && options[LAYOUT_MASTER] !== true) {
|
|
18675
|
+
const contentWidth = area2.right - area2.left - padding * 2, share2 = TITLE_BESIDE_SHARE[0] / (TITLE_BESIDE_SHARE[0] + TITLE_BESIDE_SHARE[1]);
|
|
18676
|
+
const titleWidth = Math.max(scale2, (contentWidth - gap) * share2), right = rtl !== (hints.mirror === true);
|
|
18677
|
+
besideTitle = { x: right ? area2.right - padding - titleWidth : area2.left + padding, y, width: titleWidth, height: Math.max(scale2, bodyBottom - y) };
|
|
18678
|
+
if (right) area2.right -= titleWidth + gap;
|
|
18679
|
+
else area2.left += titleWidth + gap;
|
|
18680
|
+
}
|
|
18681
|
+
const headingItems = useTemplate ? [] : besideTitle ? headingGroup(headingFields, besideTitle.x, y, besideTitle.width) : headingGroup(headingFields, headingArea.left + padding, y, headingArea.right - headingArea.left - padding * 2, hasBodyPayload ? "split" : void 0);
|
|
18433
18682
|
for (const item of headingItems) {
|
|
18434
18683
|
if (furniture && item.box.y + item.box.height > bodyBottom + 0.01) diagnostics.push({ code: "text-overflow", path: item.path, message: "Repeated furniture leaves too little room for this heading. Change the header/footer or slide design." });
|
|
18435
18684
|
items.push(item);
|
|
@@ -18445,6 +18694,14 @@ function composeLayout(input, options = {}) {
|
|
|
18445
18694
|
if (item.text) item.text = translateTextFit(item.text, shift);
|
|
18446
18695
|
}
|
|
18447
18696
|
y = last.box.y + last.box.height + gap;
|
|
18697
|
+
} else if (besideTitle) {
|
|
18698
|
+
const last = headingItems[headingItems.length - 1];
|
|
18699
|
+
const shift = Math.max(0, (besideTitle.y + besideTitle.height - (last.box.y + last.box.height)) / 2);
|
|
18700
|
+
if (shift) for (const item of headingItems) {
|
|
18701
|
+
item.box.y += shift;
|
|
18702
|
+
if (item.text) item.text = translateTextFit(item.text, shift);
|
|
18703
|
+
}
|
|
18704
|
+
y = besideTitle.y;
|
|
18448
18705
|
} else y += gap * 0.5;
|
|
18449
18706
|
}
|
|
18450
18707
|
for (const entry of underHeadings) entry.region = { ...entry.region, y: round9(y), height: Math.max(scale2, entry.region.y + entry.region.height - round9(y)) };
|
|
@@ -18483,7 +18740,7 @@ function composeLayout(input, options = {}) {
|
|
|
18483
18740
|
const plainBlock = (host) => host.text !== void 0 && host.caption === void 0 && host.emphasis === void 0 && !Array.isArray(host.blocks) && fields.every((field) => field === "text" || host[field] === void 0);
|
|
18484
18741
|
const listBlock = (host) => (host.items !== void 0 || host.bullets !== void 0) && host.caption === void 0 && host.emphasis === void 0 && !Array.isArray(host.blocks) && fields.every((field) => field === "items" || field === "bullets" || host[field] === void 0);
|
|
18485
18742
|
const groupBlock = (host) => Array.isArray(host.blocks) && host.emphasis === void 0;
|
|
18486
|
-
const sequence = template?.regions.some((region) => region
|
|
18743
|
+
const sequence = template?.regions.some((region) => regionSequence(region) !== void 0) === true;
|
|
18487
18744
|
const label6 = (host) => plainBlock(host) && isLabelText(host.text);
|
|
18488
18745
|
const mark = (labelBase, owner, value) => {
|
|
18489
18746
|
const labelPath = `${labelBase}.text`;
|
|
@@ -18551,15 +18808,15 @@ function composeLayout(input, options = {}) {
|
|
|
18551
18808
|
}
|
|
18552
18809
|
const figures = flowed.slice(0, -1).map((entry) => metricOnly(entry.block));
|
|
18553
18810
|
if (figures.every((count) => count > 0) && figures.reduce((sum, count) => sum + count, 0) >= 2) return true;
|
|
18554
|
-
|
|
18555
|
-
|
|
18811
|
+
const verdict = template ? verdictRegion(template) : void 0;
|
|
18812
|
+
if (verdict === void 0) return false;
|
|
18813
|
+
const bound = bindRegions(slide, layout, { slideIndex: options.slideIndex ?? 0 }).regions.find((region) => region.name === verdict && region.blocks.length);
|
|
18556
18814
|
return bound?.blocks.length === 1 && bound.blocks[0].block === last.index;
|
|
18557
18815
|
};
|
|
18558
18816
|
const autoEmphasis = (() => {
|
|
18559
18817
|
if (!(ruleOn("emphasis-band") || ruleOn("note-band")) || options[LAYOUT_MASTER] === true || regions.length || !Array.isArray(slide.blocks) || authoredEmphasis(slide.blocks)) return void 0;
|
|
18560
18818
|
const own3 = record19(slide.composition);
|
|
18561
18819
|
if (own3.mode !== void 0 && own3.mode !== "auto" || own3.weights !== void 0 || own3.columns !== void 0) return void 0;
|
|
18562
|
-
if (!useTemplate && CHART_PRIMARY_SIDES.has(hints.chartPrimary) && slide.blocks.some((block) => record19(block).chart !== void 0)) return void 0;
|
|
18563
18820
|
const flowed = slide.blocks.flatMap((block, index) => placedBlocks.has(index) || emptyHost(record19(block)) || eyebrowBlocks.has(index) ? [] : [{ block, index }]);
|
|
18564
18821
|
const last = flowed[flowed.length - 1];
|
|
18565
18822
|
if (flowed.length < 2 || !last || eyebrowOf.has(path + ".blocks." + last.index)) return void 0;
|
|
@@ -18974,7 +19231,8 @@ function composeLayout(input, options = {}) {
|
|
|
18974
19231
|
if (laid.deltaPill) fire("delta-pill");
|
|
18975
19232
|
return laid;
|
|
18976
19233
|
};
|
|
18977
|
-
const stepUnits = /* @__PURE__ */ new WeakSet(), stepPaths = /* @__PURE__ */ new Set(),
|
|
19234
|
+
const stepUnits = /* @__PURE__ */ new WeakSet(), stepPaths = /* @__PURE__ */ new Set(), stepProcesses = /* @__PURE__ */ new Map(), stepProcessCells = /* @__PURE__ */ new Map();
|
|
19235
|
+
const isStepProcess = (path2) => [...stepProcesses.values()].includes(path2);
|
|
18978
19236
|
const stepBand = (size) => STEP_BADGE * size * (1 + STEP_BADGE_GAP);
|
|
18979
19237
|
const metricTiles = /* @__PURE__ */ new WeakSet(), tileFloors = options[TILE_FLOORS];
|
|
18980
19238
|
const timelineHints = /* @__PURE__ */ new WeakMap();
|
|
@@ -19155,7 +19413,7 @@ function composeLayout(input, options = {}) {
|
|
|
19155
19413
|
};
|
|
19156
19414
|
const WEIGHTED_DEMAND_RATIO = 2.5, WEIGHTED_SHARES = [0.55, 0.6, 0.65, 0.7];
|
|
19157
19415
|
const BAR_CHART_MIN_SHARE = 0.4, HORIZONTAL_BAR_CHARTS = /* @__PURE__ */ new Set(["bar", "stacked-bar", "100pct-stacked-bar"]);
|
|
19158
|
-
const TABLE_MAX_SHARE = 0.65,
|
|
19416
|
+
const TABLE_MAX_SHARE = 0.65, TABLE_NEIGHBOR_REDUCTION = 4;
|
|
19159
19417
|
const tableCardInset = () => hasCards ? 2 * CARD_INSET * scale2 : 0;
|
|
19160
19418
|
const tableRowWeights = (nodes, count, cols, area3, rowGap, settings) => {
|
|
19161
19419
|
if (!autoComposition() || settings.weights?.length || count < 2 || cols !== count || nodes.length !== count) return void 0;
|
|
@@ -19169,10 +19427,59 @@ function composeLayout(input, options = {}) {
|
|
|
19169
19427
|
if (want <= equal[index].width + scale2) return void 0;
|
|
19170
19428
|
const others = nodes.flatMap((_, other) => other === index ? [] : [other]);
|
|
19171
19429
|
const weightsAt = (width2) => nodes.map((_, other) => other === index ? width2 : (total - width2) / others.length);
|
|
19172
|
-
const
|
|
19173
|
-
const baseline =
|
|
19174
|
-
for (let width2 = want; width2 > from + scale2; width2 -= step) if (
|
|
19175
|
-
return least > equal[index].width + scale2 &&
|
|
19430
|
+
const neighbors = (width2) => others.reduce((sum, other) => sum + scoreNode(nodes[other], gridGeometry(count, area3, cols, rowGap, weightsAt(width2), false).boxes[other], settings), 0);
|
|
19431
|
+
const baseline = neighbors(equal[index].width), from = Math.max(least, equal[index].width), step = (want - from) / 4;
|
|
19432
|
+
for (let width2 = want; width2 > from + scale2; width2 -= step) if (neighbors(width2) <= baseline + TABLE_NEIGHBOR_REDUCTION) return weightsAt(width2);
|
|
19433
|
+
return least > equal[index].width + scale2 && neighbors(least) < baseline + 1e3 ? weightsAt(least) : void 0;
|
|
19434
|
+
};
|
|
19435
|
+
const LIST_WORD_STEPS = 96;
|
|
19436
|
+
const listWordFit = (node, width2, height2, settings) => {
|
|
19437
|
+
const box = payloadBox({ x: 0, y: 0, width: width2, height: height2 }), prose = proseMeasure(node, box.width), values = node.value;
|
|
19438
|
+
const { icons: _icons, iconScale: _iconScale, ...bare } = listOptionsFor(node.field, node.path, node.payload.numbering, node.value);
|
|
19439
|
+
const chipped = node.field === "items" && node.payload.numbering === void 0 && !badgeLists.has(node.path) && values.some((entry) => (record19(entry).level ?? 0) === 0 && resolvedIcon(record19(entry).icon) !== void 0);
|
|
19440
|
+
const listOptions = chipped ? { ...bare, icons: true, iconScale: ICON_CHIP } : bare, area3 = { ...box, width: prose.width };
|
|
19441
|
+
const fit = fitList(values, area3, prose.size, snapFontSizeUp((settings.minFontSize ?? 16) * scale2), listOptions), atStart = fitList(values, area3, prose.size, prose.size, listOptions);
|
|
19442
|
+
return { size: fit.fontSize, cuts: fit.listEntries.some(blockCutsWord) || atStart.listEntries.some(blockCutsWord), overflow: fit.overflow };
|
|
19443
|
+
};
|
|
19444
|
+
const rowTextCost = (node, box, settings) => {
|
|
19445
|
+
const penalties = { cellProportions: 0, fontReduction: 0, textOverflow: 0, tableOverflow: 0, smallCells: 0, narrowMeasure: 0 };
|
|
19446
|
+
scoreNode(node, box, settings, penalties);
|
|
19447
|
+
return penalties.fontReduction + penalties.textOverflow + penalties.tableOverflow;
|
|
19448
|
+
};
|
|
19449
|
+
const wordRowWeights = (nodes, area3, rowGap, settings, weights) => {
|
|
19450
|
+
const count = nodes.length;
|
|
19451
|
+
if (count < 2 || !ruleOn("list-words")) return void 0;
|
|
19452
|
+
const listLeaf = (node) => !node.children && node.caption === void 0 && (node.field === "items" || node.field === "bullets") && Array.isArray(node.value) && node.value.length > 0;
|
|
19453
|
+
const cells = gridGeometry(count, area3, count, rowGap, weights, false).boxes;
|
|
19454
|
+
const cutting = nodes.flatMap((node, index) => {
|
|
19455
|
+
if (!listLeaf(node)) return [];
|
|
19456
|
+
const fit = listWordFit(node, cells[index].width, cells[index].height, settings);
|
|
19457
|
+
return fit.cuts ? [{ index, fit }] : [];
|
|
19458
|
+
});
|
|
19459
|
+
if (!cutting.length) return void 0;
|
|
19460
|
+
const total = cells.reduce((sum, cell) => sum + cell.width, 0), step = total / LIST_WORD_STEPS, widths = cells.map((cell) => cell.width);
|
|
19461
|
+
for (const { index, fit } of cutting) {
|
|
19462
|
+
let found;
|
|
19463
|
+
for (let width2 = widths[index] + step; width2 <= total + 1e-6 && found === void 0; width2 += step) {
|
|
19464
|
+
const at3 = listWordFit(nodes[index], width2, cells[index].height, settings);
|
|
19465
|
+
if (!at3.cuts && at3.size >= fit.size - FONT_GRID_EPSILON) found = width2;
|
|
19466
|
+
}
|
|
19467
|
+
if (found === void 0) return void 0;
|
|
19468
|
+
widths[index] = found;
|
|
19469
|
+
}
|
|
19470
|
+
const wide = new Set(cutting.map((entry) => entry.index)), others = nodes.flatMap((_, index) => wide.has(index) ? [] : [index]);
|
|
19471
|
+
const given = others.reduce((sum, index) => sum + cells[index].width, 0), left = total - cutting.reduce((sum, { index }) => sum + widths[index], 0);
|
|
19472
|
+
if (others.length && left > scale2) {
|
|
19473
|
+
for (const index of others) widths[index] = cells[index].width * left / given;
|
|
19474
|
+
const rebalanced = gridGeometry(count, area3, count, rowGap, widths, false).boxes;
|
|
19475
|
+
if (others.every((index) => rowTextCost(nodes[index], rebalanced[index], settings) <= rowTextCost(nodes[index], cells[index], settings) + FONT_GRID_EPSILON)) return widths;
|
|
19476
|
+
}
|
|
19477
|
+
const stacked = stackedBoxes(nodes, area3, rowGap, settings);
|
|
19478
|
+
const holds = cutting.every(({ index, fit }) => {
|
|
19479
|
+
const at3 = listWordFit(nodes[index], stacked[index].width, stacked[index].height, settings);
|
|
19480
|
+
return !at3.cuts && !at3.overflow && at3.size >= fit.size - FONT_GRID_EPSILON;
|
|
19481
|
+
});
|
|
19482
|
+
return holds && others.every((index) => rowTextCost(nodes[index], stacked[index], settings) <= rowTextCost(nodes[index], cells[index], settings) + FONT_GRID_EPSILON) ? "stack" : void 0;
|
|
19176
19483
|
};
|
|
19177
19484
|
const proseRowWeights = (nodes, equalWidths, cards, settings) => {
|
|
19178
19485
|
const prose = (node) => !node.children && node.caption === void 0 && (node.field === "text" || node.field === "items" || node.field === "bullets");
|
|
@@ -19288,7 +19595,7 @@ function composeLayout(input, options = {}) {
|
|
|
19288
19595
|
if (!sized[index]) contentSized.delete(node);
|
|
19289
19596
|
});
|
|
19290
19597
|
} else boxes = gridGeometry(count, area3, cols, between, (cols === count ? autoRowWeights(nodes, count, cols, area3, between, settings) : void 0) ?? [], false).boxes;
|
|
19291
|
-
const
|
|
19598
|
+
const plain3 = splitFill(nodes, boxes, area3, settings), fill = cols === count && plain3 < SPLIT_FILL ? splitFill(nodes, boxes, area3, settings, true) : plain3;
|
|
19292
19599
|
const penalties = { cellProportions: 0, fontReduction: 0, textOverflow: 0, tableOverflow: 0, smallCells: 0, narrowMeasure: 0 };
|
|
19293
19600
|
nodes.forEach((node, index) => {
|
|
19294
19601
|
scoreNode(node, boxes[index], settings, penalties);
|
|
@@ -19408,14 +19715,28 @@ function composeLayout(input, options = {}) {
|
|
|
19408
19715
|
spannedContainer = false;
|
|
19409
19716
|
if (paragraphs) cols = paragraphs.shape.columns;
|
|
19410
19717
|
else if (lead) cols = 2;
|
|
19718
|
+
let wordWeights;
|
|
19719
|
+
if (!paragraphs && !lead && !hasRegions && !team && settings.weights?.length && cols === count && count === nodes.length && count > 1) {
|
|
19720
|
+
const whole = wordRowWeights(nodes, area3, actualGap, settings, settings.weights);
|
|
19721
|
+
if (whole === "stack") {
|
|
19722
|
+
fire("list-words");
|
|
19723
|
+
const { weights: _weights, columns: _columns, ...stacked } = settings;
|
|
19724
|
+
arrange(nodes, area3, { ...stacked, mode: "column" }, reserved2, actualGap, containerPath, recorded);
|
|
19725
|
+
return;
|
|
19726
|
+
}
|
|
19727
|
+
if (whole) {
|
|
19728
|
+
fire("list-words");
|
|
19729
|
+
wordWeights = whole;
|
|
19730
|
+
}
|
|
19731
|
+
}
|
|
19411
19732
|
if (recorded && !decided) decisions?.push({
|
|
19412
19733
|
path: containerPath,
|
|
19413
19734
|
mode: hasRegions ? "regions" : mode,
|
|
19414
|
-
reason: hasRegions ? "promoted-regions" : settings === rootSettings &&
|
|
19735
|
+
reason: hasRegions ? "promoted-regions" : settings === rootSettings && chartSplit ? "chart-primary" : paragraphs ? "paragraph-columns" : lead ? "lead-stack" : splitChoice ? "split-fill" : mode === "auto" ? "lowest-score" : "configured-mode",
|
|
19415
19736
|
...hasRegions ? {} : { selectedColumns: cols },
|
|
19416
19737
|
candidates: candidates ?? []
|
|
19417
19738
|
});
|
|
19418
|
-
const grid = gridGeometry(count, area3, cols, actualGap, (mode === "auto" && !hasRegions ? autoRowWeights(nodes, count, cols, area3, actualGap, settings) : mode === "row" && !hasRegions ? tableRowWeights(nodes, count, cols, area3, actualGap, settings) : void 0) ?? settings.weights ?? [], mode === "column");
|
|
19739
|
+
const grid = gridGeometry(count, area3, cols, actualGap, wordWeights ?? (mode === "auto" && !hasRegions ? autoRowWeights(nodes, count, cols, area3, actualGap, settings) : mode === "row" && !hasRegions ? tableRowWeights(nodes, count, cols, area3, actualGap, settings) : void 0) ?? settings.weights ?? [], mode === "column");
|
|
19419
19740
|
if (!paragraphs && !lead && mode === "auto" && !hasRegions && count === nodes.length && cols > 1 && count % cols !== 0 && !settings.weights?.length && ruleOn("short-row") && !nodes.every((node) => !node.children && (node.field === "image" || node.field === "video")) && !team) {
|
|
19420
19741
|
const first = count - count % cols, short = count - first, cell = (area3.width - grid.gap * (short - 1)) / short;
|
|
19421
19742
|
for (let k = 0; k < short; k++) grid.boxes[first + k] = { ...grid.boxes[first + k], x: area3.x + k * (cell + grid.gap), width: cell };
|
|
@@ -19468,7 +19789,7 @@ function composeLayout(input, options = {}) {
|
|
|
19468
19789
|
if (stack.length > 1) peerSets.push(stack);
|
|
19469
19790
|
};
|
|
19470
19791
|
let regionTag, templateCell = false;
|
|
19471
|
-
const directionName = (
|
|
19792
|
+
const directionName = (direction) => ({ LR: "left to right", RL: "right to left", TB: "top to bottom", TD: "top to bottom", BT: "bottom to top" })[direction] ?? direction;
|
|
19472
19793
|
const composeDiagram = (node, box, settings, anchor) => {
|
|
19473
19794
|
const floor = snapFontSizeUp((settings.minFontSize ?? 16) * scale2), nominal = Math.max(floor, DIAGRAM_NOMINAL_SIZE * scale2);
|
|
19474
19795
|
const measure = diagramMeasure(options.textMeasurement, options.fontFamilies?.body ?? "sans-serif", options.fontFamilies?.code ?? FALLBACK_CODE_FAMILY);
|
|
@@ -19889,11 +20210,12 @@ function composeLayout(input, options = {}) {
|
|
|
19889
20210
|
const values = node.value;
|
|
19890
20211
|
if (!Array.isArray(values) || values.length < 2) return void 0;
|
|
19891
20212
|
const own3 = node.payload.columns;
|
|
19892
|
-
const mode = own3 === "auto" || own3 === 1 || own3 === 2 || own3 === 3 ? own3 : regionMode;
|
|
20213
|
+
const mode = own3 === "auto" || own3 === 1 || own3 === 2 || own3 === 3 ? own3 : regionMode === "guarded" ? "auto" : regionMode;
|
|
19893
20214
|
const layoutFirst = mode === void 0 && own3 === void 0 && values.length > LIST_WHOLE_ENTRIES && ruleOn("layout-first") && !badgeLists.has(node.path) && values.every((entry) => entry === null || typeof entry !== "object" || Array.isArray(entry) || record19(entry).description === void 0 && record19(entry).icon === void 0) && !ownRunSizes(values) && (function lists(nodes) {
|
|
19894
20215
|
return nodes.reduce((sum, child) => sum + (child.children ? lists(child.children) : child.field === "items" || child.field === "bullets" ? 1 : 0), 0);
|
|
19895
20216
|
})(pending) === 1;
|
|
19896
20217
|
if (mode === void 0 && !layoutFirst || mode === 1) return void 0;
|
|
20218
|
+
const regionDefault = own3 === void 0 && regionMode === "guarded", regionColumns = own3 === void 0 && (regionMode === "guarded" || regionMode === "auto");
|
|
19897
20219
|
if (mode === "auto" && values.length <= LIST_WHOLE_ENTRIES) return void 0;
|
|
19898
20220
|
const start = contentNominalSize(node.field) * scale2, floor = snapFontSizeUp((settings.minFontSize ?? 16) * scale2);
|
|
19899
20221
|
const numbering = badgeLists.has(node.path) ? badgeNumbering(node.path, node.payload.numbering) : node.payload.numbering;
|
|
@@ -19961,11 +20283,17 @@ function composeLayout(input, options = {}) {
|
|
|
19961
20283
|
fire("layout-first");
|
|
19962
20284
|
return capped(best.columns);
|
|
19963
20285
|
}
|
|
20286
|
+
const asLarge = (columns2) => {
|
|
20287
|
+
if (!regionColumns) return columns2;
|
|
20288
|
+
const one = fitList(values, box, start, floor, listOptions), size = Math.min(...columns2.map((column) => column.text.fontSize));
|
|
20289
|
+
if (!one.overflow && columns2.some((column) => column.text.overflow) && (regionDefault || one.fontSize >= size - FONT_GRID_EPSILON)) return void 0;
|
|
20290
|
+
return !regionDefault || size >= Math.min(one.fontSize, cap) - FONT_GRID_EPSILON ? columns2 : void 0;
|
|
20291
|
+
};
|
|
19964
20292
|
if (mode === "auto") {
|
|
19965
20293
|
if (!fitList(values, box, start, start, listOptions).overflow) return void 0;
|
|
19966
20294
|
for (const count2 of counts) {
|
|
19967
20295
|
const columns2 = split2(count2, start, start);
|
|
19968
|
-
if (columns2.every((column) => !column.text.overflow)) return capped(columns2);
|
|
20296
|
+
if (columns2.every((column) => !column.text.overflow)) return asLarge(capped(columns2));
|
|
19969
20297
|
}
|
|
19970
20298
|
}
|
|
19971
20299
|
const shared = (count2) => {
|
|
@@ -19979,8 +20307,8 @@ function composeLayout(input, options = {}) {
|
|
|
19979
20307
|
best ??= results.at(-1);
|
|
19980
20308
|
const whole = fitList(values, box, start, floor, listOptions);
|
|
19981
20309
|
const measured = whole.fontSize * PROSE_MEASURE_CHARS * AVERAGE_CHARACTER_EM >= box.width - 0.5;
|
|
19982
|
-
if (best === void 0 || !whole.overflow && whole.fontSize > best[0].text.fontSize * (measured ? 1 : 1.1) + FONT_GRID_EPSILON) return void 0;
|
|
19983
|
-
return capped(best);
|
|
20310
|
+
if (best === void 0 || !whole.overflow && whole.fontSize > best[0].text.fontSize * (measured || regionDefault ? 1 : 1.1) + FONT_GRID_EPSILON) return void 0;
|
|
20311
|
+
return asLarge(capped(best));
|
|
19984
20312
|
}
|
|
19985
20313
|
const count = counts.at(-1);
|
|
19986
20314
|
if (count === void 0) return void 0;
|
|
@@ -20138,6 +20466,11 @@ function composeLayout(input, options = {}) {
|
|
|
20138
20466
|
if (step > size + 1e-9) return step;
|
|
20139
20467
|
}
|
|
20140
20468
|
};
|
|
20469
|
+
const textBesideChart = (node) => {
|
|
20470
|
+
const plain3 = (entry) => entry.emphasis === void 0 && !entry.eyebrow && !entry.cardCell;
|
|
20471
|
+
const leaf = node.children?.length === 1 && !node.synthetic && plain3(node) && record19(node.payload).icon === void 0 ? node.children[0] : node;
|
|
20472
|
+
return !leaf.children && leaf.field === "text" && leaf.caption === void 0 && plain3(leaf) ? leaf : void 0;
|
|
20473
|
+
};
|
|
20141
20474
|
const fillLone = (node, cell, settings, cards) => {
|
|
20142
20475
|
if (!node.fills || node.field !== "quote" || quotePortrait(node, payloadBox(cell, cards)) === void 0) return fillLoneBlock(node, cell, settings, cards);
|
|
20143
20476
|
let lone;
|
|
@@ -20229,7 +20562,7 @@ function composeLayout(input, options = {}) {
|
|
|
20229
20562
|
const words2 = node.field === "text" && !cited ? messageWords(node.value) : Infinity;
|
|
20230
20563
|
if (words2 <= SHORT_MESSAGE_WORDS && ruleOn("display-message")) {
|
|
20231
20564
|
const today = (words2 <= SHORT_TEXT_WORDS ? HEADING_DISPLAY_SIZES.title : MESSAGE_DISPLAY_SIZE) * scale2;
|
|
20232
|
-
const reached = chosen ?? start, cap = Math.max(today, messageNode(node) ? (messageCeiling("statement", node.value) ?? 0) * scale2 : 0),
|
|
20565
|
+
const reached = chosen ?? start, cap = Math.max(today, messageNode(node) ? (messageCeiling("statement", node.value) ?? 0) * scale2 : 0), plain3 = { growth: proseGrowth.get(node), best };
|
|
20233
20566
|
displayTexts.add(node.path);
|
|
20234
20567
|
messageTexts.add(node.path);
|
|
20235
20568
|
let shown, lastLines;
|
|
@@ -20254,9 +20587,9 @@ function composeLayout(input, options = {}) {
|
|
|
20254
20587
|
if (shown === void 0) {
|
|
20255
20588
|
displayTexts.delete(node.path);
|
|
20256
20589
|
messageTexts.delete(node.path);
|
|
20257
|
-
if (
|
|
20258
|
-
else proseGrowth.set(node,
|
|
20259
|
-
best =
|
|
20590
|
+
if (plain3.growth === void 0) proseGrowth.delete(node);
|
|
20591
|
+
else proseGrowth.set(node, plain3.growth);
|
|
20592
|
+
best = plain3.best;
|
|
20260
20593
|
} else {
|
|
20261
20594
|
proseGrowth.set(node, shown);
|
|
20262
20595
|
loneGrowth = true;
|
|
@@ -20324,7 +20657,7 @@ function composeLayout(input, options = {}) {
|
|
|
20324
20657
|
return { size, band: eyebrowBand(node.eyebrow, width2, size) };
|
|
20325
20658
|
};
|
|
20326
20659
|
const groupRoot = (nodes) => {
|
|
20327
|
-
if (useTemplate || regions.length || !Array.isArray(slide.blocks) ||
|
|
20660
|
+
if (useTemplate || regions.length || !Array.isArray(slide.blocks) || chartSplit || modeFor(rootSettings) !== "auto" || rootSettings.columns !== void 0 || rootSettings.weights?.length) return void 0;
|
|
20328
20661
|
const blockOf = (node) => node.children ? node.path : node.path.slice(0, node.path.lastIndexOf("."));
|
|
20329
20662
|
if (new Set(nodes.map(blockOf)).size !== nodes.length || slide.blocks.some((block) => record19(block).region !== void 0)) return void 0;
|
|
20330
20663
|
const grouping = nodes.map((node) => node.children ? { kind: "group", group: true } : node.eyebrow ? { kind: EYEBROW_TEXT_KIND } : { kind: kind(node.field), ...node.field === "text" ? { length: textLength(node.value) } : {} });
|
|
@@ -20503,7 +20836,7 @@ function composeLayout(input, options = {}) {
|
|
|
20503
20836
|
const longTextUnit = (unit2) => !unit2.children && unit2.caption === void 0 && unit2.field === "text" && textLength(unit2.value) >= LONG_TEXT_CHARS;
|
|
20504
20837
|
const longTextRows = (grouped, plan2) => {
|
|
20505
20838
|
const own3 = record19(slide.composition);
|
|
20506
|
-
if (!hasCards ||
|
|
20839
|
+
if (!hasCards || plan2.regions.some((region) => region.flow === "row") || grouped.belowUnits.length || ["mode", "columns", "weights"].some((key2) => own3[key2] !== void 0)) return { binding: grouped };
|
|
20507
20840
|
const longBlock = (unit2) => {
|
|
20508
20841
|
const host = unit2.length === 1 && unit2[0].block !== void 0 ? record19(slide.blocks?.[unit2[0].block]) : void 0;
|
|
20509
20842
|
return !!host && host.caption === void 0 && typeof host.text !== "undefined" && fields.every((field) => field === "text" || host[field] === void 0) && textLength(host.text) >= LONG_TEXT_CHARS;
|
|
@@ -20561,6 +20894,16 @@ function composeLayout(input, options = {}) {
|
|
|
20561
20894
|
};
|
|
20562
20895
|
const templateRegions = [], headingAreas = [];
|
|
20563
20896
|
const requestedTemplateGap = gap;
|
|
20897
|
+
const stepProcess = (units) => {
|
|
20898
|
+
const unit2 = units.length === 1 ? units[0] : void 0;
|
|
20899
|
+
if (!unit2 || unit2.children || unit2.caption !== void 0 || unit2.field !== "items" && unit2.field !== "bullets" || unit2.payload.numbering !== void 0) return void 0;
|
|
20900
|
+
const values = Array.isArray(unit2.value) ? unit2.value : [];
|
|
20901
|
+
if (values.length < STEP_PROCESS_MIN || values.length > STEP_PROCESS_MAX) return void 0;
|
|
20902
|
+
return values.every((value) => {
|
|
20903
|
+
const object2 = record19(value), text2 = flatten(typeof value === "object" && value !== null && !Array.isArray(value) ? object2.text : value).trim();
|
|
20904
|
+
return (object2.level ?? 0) === 0 && object2.description === void 0 && object2.icon === void 0 && text2.length > 0 && text2.length <= STEP_PROCESS_CHARACTERS && text2.split(/\s+/u).length <= 2;
|
|
20905
|
+
}) ? unit2 : void 0;
|
|
20906
|
+
};
|
|
20564
20907
|
const markSteps = (sequence, units) => {
|
|
20565
20908
|
const leaf = (unit2) => !unit2.children && unit2.caption === void 0, isList = (unit2) => unit2.field === "items" || unit2.field === "bullets";
|
|
20566
20909
|
const entries = (unit2) => Array.isArray(unit2.value) ? unit2.value : [];
|
|
@@ -20591,12 +20934,7 @@ function composeLayout(input, options = {}) {
|
|
|
20591
20934
|
return;
|
|
20592
20935
|
}
|
|
20593
20936
|
if (units.length === 1 && badgeList(units[0])) {
|
|
20594
|
-
|
|
20595
|
-
const short = values.length >= STEP_FLOW_MIN && values.length <= STEP_FLOW_MAX && values.every((value) => {
|
|
20596
|
-
const object2 = record19(value), text2 = flatten(typeof value === "object" && !Array.isArray(value) ? object2.text : value).trim();
|
|
20597
|
-
return object2.description === void 0 && text2.length > 0 && text2.length <= STEP_FLOW_CHARACTERS && text2.split(/\s+/u).length <= 2;
|
|
20598
|
-
});
|
|
20599
|
-
(short ? stepFlows : badgeLists).add(unit2.path);
|
|
20937
|
+
badgeLists.add(units[0].path);
|
|
20600
20938
|
fire("step-badges");
|
|
20601
20939
|
return;
|
|
20602
20940
|
}
|
|
@@ -20632,6 +20970,11 @@ function composeLayout(input, options = {}) {
|
|
|
20632
20970
|
const bound = autoSurface || pullItem || eyebrowBlocks.size ? { ...slide, blocks: slide.blocks.map((block, index) => unbound(index) ? {} : block) } : slide;
|
|
20633
20971
|
const { binding, region: longTextRegion } = (!ruleOn("long-text-rows") ? (grouped) => ({ binding: grouped, region: void 0 }) : longTextRows)(groupBinding(bindRegions(bound, layout, { slideIndex: options.slideIndex ?? 0 }), plan2, rootNodes(bound, options.slideIndex ?? 0), { join: options[UNJOINED] !== true, labeled: new Set(eyebrowOf.keys()) }), plan2);
|
|
20634
20972
|
for (const entry of binding.diagnostics) diagnostics.push({ code: entry.code, path: entry.path, message: entry.message, ...entry.region !== void 0 ? { region: entry.region } : {} });
|
|
20973
|
+
const regionNames2 = new Set(plan2.regions.map((region) => region.name));
|
|
20974
|
+
slide.blocks?.forEach((block, index) => {
|
|
20975
|
+
const pin2 = record19(block).region;
|
|
20976
|
+
if (unbound(index) && typeof pin2 === "string" && !regionNames2.has(pin2)) diagnostics.push({ code: "region-unknown", path: `${path}.blocks.${index}.region`, region: pin2, message: `The layout has no region '${pin2}'; the block is placed by its kind instead.` });
|
|
20977
|
+
});
|
|
20635
20978
|
const blockUnit = (bound2) => {
|
|
20636
20979
|
const host = bound2.block !== void 0 ? record19(slide.blocks[bound2.block]) : { ...Object.fromEntries((bound2.fields ?? []).map((field) => [field, slide[field]])), ...Object.fromEntries(["type", "caption", "numbering"].filter((key) => slide[key] !== void 0).map((key) => [key, slide[key]])) };
|
|
20637
20980
|
const parts = collect(host, bound2.block !== void 0 ? `${path}.blocks.${bound2.block}` : path);
|
|
@@ -20645,7 +20988,7 @@ function composeLayout(input, options = {}) {
|
|
|
20645
20988
|
const cellWidth = (frame.width - requestedTemplateGap * (shape.columns - 1)) / shape.columns - (hasCards && !soleRegion.bleed ? 2 * Math.min(CARD_INSET * scale2, frame.width / 4) : 0);
|
|
20646
20989
|
return units.some((unit2) => isLong(unit2, cellWidth));
|
|
20647
20990
|
};
|
|
20648
|
-
const closingUnits = soleRegion && soleRegion.flow === "auto" && soleRegion.role === "supporting" && !binding.arrangements.has(soleRegion.name)
|
|
20991
|
+
const closingUnits = soleRegion && soleRegion.flow === "auto" && !singleBlockRegion(soleRegion) && soleRegion.role === "supporting" && !binding.arrangements.has(soleRegion.name) ? contents.get(soleRegion.name) ?? [] : [];
|
|
20649
20992
|
if (closingUnits.length >= LEAD_STACK_MIN && closingUnits.length <= JOINED_FIXED_MAX && ruleOn("closing-lead") && closingUnits.every((unit2) => proseLeaf(unit2) && unit2.field === "text" && unit2.emphasis === void 0 && !unit2.eyebrow) && !similarParagraphs(closingUnits) && !leadStackPlan(closingUnits) && closingStacks(closingUnits) && new Set(gridFlowShape(closingUnits.length - 1, frame.width >= frame.height).perRow).size === 1) {
|
|
20650
20993
|
binding.arrangements.set(soleRegion.name, "lead");
|
|
20651
20994
|
fire("closing-lead");
|
|
@@ -20657,7 +21000,7 @@ function composeLayout(input, options = {}) {
|
|
|
20657
21000
|
lead.auto = true;
|
|
20658
21001
|
lead.lone = true;
|
|
20659
21002
|
}
|
|
20660
|
-
if (region.flow === "auto") for (const unit2 of units) {
|
|
21003
|
+
if (region.flow === "auto" && !singleBlockRegion(region)) for (const unit2 of units) {
|
|
20661
21004
|
unit2.auto = true;
|
|
20662
21005
|
unit2.lone = units.length === 1 || unit2 === lead;
|
|
20663
21006
|
}
|
|
@@ -20670,27 +21013,36 @@ function composeLayout(input, options = {}) {
|
|
|
20670
21013
|
fire("metric-tiles");
|
|
20671
21014
|
}
|
|
20672
21015
|
}
|
|
20673
|
-
|
|
20674
|
-
|
|
21016
|
+
const sequence = regionSequence(region), short = sequence === "steps" && options[NO_STEP_PROCESS] !== true ? stepProcess(units) : void 0;
|
|
21017
|
+
if (short) stepProcesses.set(region.name, short.path);
|
|
21018
|
+
else if (sequence && ruleOn("step-badges")) markSteps(sequence, units);
|
|
21019
|
+
else if (!sequence) markPairs(units);
|
|
20675
21020
|
}
|
|
20676
21021
|
const body = plan2.regions.flatMap((region) => (contents.get(region.name) ?? []).filter((unit2) => !headings.has(unit2.field)).map((unit2) => ({ unit: unit2, region })));
|
|
20677
21022
|
if (body.length === 1 && !binding.belowUnits.length) {
|
|
20678
21023
|
const { unit: unit2, region } = body[0], values = Array.isArray(unit2.value) ? unit2.value : [];
|
|
20679
|
-
const list = !unit2.children && unit2.caption === void 0 && (unit2.field === "items" || unit2.field === "bullets") && !badgeLists.has(unit2.path)
|
|
20680
|
-
if (list && !region.
|
|
21024
|
+
const list = !unit2.children && unit2.caption === void 0 && (unit2.field === "items" || unit2.field === "bullets") && !badgeLists.has(unit2.path);
|
|
21025
|
+
if (list && !region.arrangement && ruleOn("numerals") && unit2.payload.numbering !== void 0 && values.length >= 2 && values.length <= NUMERAL_TAKEAWAYS && values.every((entry) => (record19(entry).level ?? 0) === 0)) {
|
|
20681
21026
|
badgeLists.add(unit2.path);
|
|
20682
21027
|
numeralLists.set(unit2.path, "display");
|
|
20683
21028
|
fire("numerals");
|
|
20684
21029
|
}
|
|
20685
|
-
if (list && !region
|
|
21030
|
+
if (list && !regionDiagram(region) && values.length >= 2 && values.every((entry) => pairEntry(entry) === "term") && 2 * values.filter((entry) => flatten(record19(entry).text).trim().split(/\s+/u).length === 1).length > values.length) termLists.add(unit2.path);
|
|
20686
21031
|
}
|
|
20687
21032
|
const BELOW = "(below)";
|
|
20688
21033
|
const belowUnits = binding.belowUnits.map(unitOf);
|
|
20689
|
-
const belowRegion = { name: BELOW, accepts: [], role: "supporting", flow: "auto", max: belowUnits.length, bleed: false,
|
|
21034
|
+
const belowRegion = { name: BELOW, accepts: [], role: "supporting", flow: "auto", max: belowUnits.length, bleed: false, anchor: "top", empty: "collapse" };
|
|
21035
|
+
const listColumnsOf = (region) => region.name === BELOW || !regionListColumns(region) ? 1 : region.accepts[0] === "list" ? "auto" : "guarded";
|
|
20690
21036
|
const unitsOf = (name) => name === BELOW ? belowUnits : contents.get(name) ?? [];
|
|
20691
21037
|
const bodyUnits = [...contents.values()].flat().concat(belowUnits);
|
|
20692
21038
|
const loneUnit = options.fill !== false && plan2.stack === void 0 && bodyUnits.length === 1 && !bodyUnits[0].children ? bodyUnits[0] : void 0;
|
|
20693
21039
|
if (loneUnit) loneUnit.fills = true;
|
|
21040
|
+
else if (options.fill !== false && plan2.stack === void 0 && bodyUnits.length === 2 && !belowUnits.length) {
|
|
21041
|
+
const chart = bodyUnits.findIndex((unit2) => !unit2.children && unit2.field === "chart"), other = chart >= 0 ? bodyUnits[1 - chart] : void 0;
|
|
21042
|
+
const region = other && plan2.regions.find((entry) => (contents.get(entry.name) ?? []).includes(other));
|
|
21043
|
+
const text2 = region && singleBlockRegion(region) && !region.arrangement ? textBesideChart(other) : void 0;
|
|
21044
|
+
if (text2) text2.fills = true;
|
|
21045
|
+
}
|
|
20694
21046
|
if (plan2.stack !== void 0 && bodySteps) {
|
|
20695
21047
|
for (const unit2 of bodyUnits) if (!unit2.children && unit2.field === "quote") growthOf.set(unit2, TYPE_SCALE_RATIO ** bodySteps);
|
|
20696
21048
|
}
|
|
@@ -20811,18 +21163,17 @@ function composeLayout(input, options = {}) {
|
|
|
20811
21163
|
const spanWidth = (rect) => columnX[rect.column + rect.columnSpan - 1] + widths[rect.column + rect.columnSpan - 1] - columnX[rect.column];
|
|
20812
21164
|
const titleRect = rects.get("title");
|
|
20813
21165
|
const titleMode = hasBodyPayload && plan2.stack === void 0 && titleRect && rowSizes.slice(titleRect.row, titleRect.row + titleRect.rowSpan).every((size) => size === "auto") ? plan2.subtitle ? "step" : "split" : void 0;
|
|
20814
|
-
const headingsAlone = () => plan2.regions.every((region) => region.role !== "primary"
|
|
20815
|
-
const masterRule = options[LAYOUT_MASTER] === true ? !plan2.regions.some((region) => region.role === "primary"
|
|
21166
|
+
const headingsAlone = () => plan2.regions.every((region) => region.role !== "primary" || !unitsOf(region.name).length) && !belowUnits.length;
|
|
21167
|
+
const masterRule = options[LAYOUT_MASTER] === true ? !plan2.regions.some((region) => region.role === "primary") : void 0;
|
|
20816
21168
|
const headingItemsAt = (fields2, x, y2, areaWidth) => headingGroup(fields2, x, y2, areaWidth, fields2.includes("title") ? titleMode : void 0, plan2.titleRule === true && (masterRule ?? (headingsAlone() || statement === "title")) && ruleOn("title-rule"));
|
|
20817
21169
|
const groupHeight = (list) => list.length ? list.at(-1).box.y + list.at(-1).box.height - (groupRules.get(list)?.y ?? list[0].box.y) : 0;
|
|
20818
21170
|
const arrangementOf = (region, units, cell) => {
|
|
20819
21171
|
if (region.name === longTextRegion) return "column";
|
|
20820
21172
|
if (units.length > 1 && units.every((unit2) => tierGroups.has(unit2.path))) return "row";
|
|
20821
21173
|
if (units.length && units.every((unit2) => personParts.has(unit2.path))) return (portraitMode === "top" || teamAvatar) && units.length <= PORTRAIT_TOP_MAX ? "row" : "grid";
|
|
20822
|
-
|
|
20823
|
-
|
|
20824
|
-
|
|
20825
|
-
if (flow === "none" || flow === "column") return "column";
|
|
21174
|
+
if (region.flow === "row") return "row";
|
|
21175
|
+
const flow = singleBlockRegion(region) && units.length <= 1 ? "column" : region.flow;
|
|
21176
|
+
if (flow === "column") return "column";
|
|
20826
21177
|
if (flow === "grid") return "grid";
|
|
20827
21178
|
const shape = gridFlowShape(units.length, cell.width >= cell.height);
|
|
20828
21179
|
const cards = hasCards && !region.bleed;
|
|
@@ -20831,7 +21182,7 @@ function composeLayout(input, options = {}) {
|
|
|
20831
21182
|
};
|
|
20832
21183
|
const LIST_GRID_COLUMN_EMS = 7.5;
|
|
20833
21184
|
const listGridOf = (region, units, areaWidth, landscape = true) => {
|
|
20834
|
-
if (units.length < 2 ||
|
|
21185
|
+
if (units.length < 2 || region.flow === "row") return void 0;
|
|
20835
21186
|
if (!units.every((unit2) => !unit2.children && unit2.caption === void 0 && (unit2.field === "items" || unit2.field === "bullets"))) return void 0;
|
|
20836
21187
|
if (units.every((unit2) => pairRowLabels.has(unit2.path))) return listGridShape(units.length, 1);
|
|
20837
21188
|
let columns2 = landscape ? 4 : units.length <= 3 ? 1 : 2;
|
|
@@ -20871,7 +21222,7 @@ function composeLayout(input, options = {}) {
|
|
|
20871
21222
|
};
|
|
20872
21223
|
const joinedLayout = (region, units, cell, cards) => {
|
|
20873
21224
|
const hint = binding.arrangements.get(region.name), landscape = cell.width >= cell.height;
|
|
20874
|
-
if (!hint || units.length < 2 ||
|
|
21225
|
+
if (!hint || units.length < 2 || region.flow === "row") return void 0;
|
|
20875
21226
|
if (hint === "row") {
|
|
20876
21227
|
const across = movedAcross(units, cell.width, cards), shape = flowShape(across ? "row" : "column", units.length, true);
|
|
20877
21228
|
return { shape, boxes: across ? gridBoxes(units.length, cell, units.length, gap2, movedWidths(units, cell.width, cards), false) : stackedBoxes(units, cell, gap2, composition, cards, region.anchor) };
|
|
@@ -20915,11 +21266,11 @@ function composeLayout(input, options = {}) {
|
|
|
20915
21266
|
const units = unitsOf(name), region = name === BELOW ? belowRegion : regionOf.get(name);
|
|
20916
21267
|
if (!units.length) {
|
|
20917
21268
|
if (region.empty !== "keep" || atFloor) return 0;
|
|
20918
|
-
const lines = 2 * (region.flow === "auto" ? LEAD_NOMINAL_SIZE * scale2 : startSize) * 1.22;
|
|
21269
|
+
const lines = 2 * (region.flow === "auto" && !singleBlockRegion(region) ? LEAD_NOMINAL_SIZE * scale2 : startSize) * 1.22;
|
|
20919
21270
|
return lines + (hasCards && !region.bleed ? 2 * Math.min(CARD_INSET * scale2, areaWidth / 4, lines / 8) : 0);
|
|
20920
21271
|
}
|
|
20921
21272
|
if (timelineBands(units)) return stackHeight(bandRows(units, areaWidth, 1, hasCards && !region.bleed, atFloor));
|
|
20922
|
-
const fixed =
|
|
21273
|
+
const fixed = region.flow === "row" || name === longTextRegion || listGridOf(region, units, areaWidth) !== void 0 || binding.arrangements.get(name) === "mosaic" || binding.arrangements.get(name) === "row";
|
|
20923
21274
|
const paragraphs = fixed ? void 0 : paragraphColumns(units, { x: 0, y: 0, width: areaWidth, height: frame.height }, hasCards && !region.bleed, composition);
|
|
20924
21275
|
if (paragraphs) return paragraphNeed(units, paragraphs, areaWidth, hasCards && !region.bleed, composition, atFloor);
|
|
20925
21276
|
const leading = fixed || region.flow === "grid" ? void 0 : leadStack(units);
|
|
@@ -21147,11 +21498,8 @@ function composeLayout(input, options = {}) {
|
|
|
21147
21498
|
placeHeadings("title", titleFields);
|
|
21148
21499
|
if (plan2.subtitle) placeHeadings("subtitle", subtitleFields);
|
|
21149
21500
|
const slideComposition = record19(slide.composition);
|
|
21150
|
-
const overridden = ["mode", "columns", "weights"].some((key) => slideComposition[key] !== void 0) ? plan2.regions.find((region) => region.role === "primary" && region
|
|
21151
|
-
|
|
21152
|
-
const directed = region.name === overridden ? slideComposition.mode ?? "auto" : directedArrangement(region);
|
|
21153
|
-
if (directed) regionDirections.set(region.name, directed);
|
|
21154
|
-
}
|
|
21501
|
+
const overridden = ["mode", "columns", "weights"].some((key) => slideComposition[key] !== void 0) ? plan2.regions.find((region) => region.role === "primary" && !singleBlockRegion(region))?.name : void 0;
|
|
21502
|
+
if (overridden !== void 0) regionDirections.set(overridden, slideComposition.mode ?? "auto");
|
|
21155
21503
|
const settings = { ...composition };
|
|
21156
21504
|
const HUG_FILL = 0.45, UNEQUAL_PAYLOADS = 1.5, fillSpace = requestedTemplateGap * CARD_FILL_SPACE, underFilled = bodySteps > 0 || options[CENTER] === true;
|
|
21157
21505
|
const hugHeight = (units, cells2, estimate) => Math.min(estimate, Math.max(...units.map((unit2, index) => {
|
|
@@ -21203,13 +21551,13 @@ function composeLayout(input, options = {}) {
|
|
|
21203
21551
|
const filled = units.length === 1 && !region.bleed ? fillLone(units[0], cell, settings, cards) : void 0;
|
|
21204
21552
|
if (filled) {
|
|
21205
21553
|
const first = items.length;
|
|
21206
|
-
placeNode(units[0], filled, settings, cards, region
|
|
21554
|
+
placeNode(units[0], filled, settings, cards, listColumnsOf(region), void 0, region.anchor);
|
|
21207
21555
|
leafItems.push(...range(first, items.length));
|
|
21208
21556
|
return arrangementOf(region, units, cell);
|
|
21209
21557
|
}
|
|
21210
21558
|
const bands2 = timelineBands(units), bandColumnCount = bands2 ? bandColumns(units, cell, cards) : 1;
|
|
21211
21559
|
const listGrid = bands2 ? void 0 : listGridOf(region, units, cell.width, cell.width >= cell.height);
|
|
21212
|
-
const own3 = bands2 || listGrid ||
|
|
21560
|
+
const own3 = bands2 || listGrid || region.flow === "row" || region.name === longTextRegion || binding.arrangements.get(region.name) === "mosaic" || binding.arrangements.get(region.name) === "row" ? void 0 : region;
|
|
21213
21561
|
const paragraphs = own3 ? paragraphColumns(units, cell, cards, settings) : void 0;
|
|
21214
21562
|
const lead = own3 && !paragraphs && region.flow !== "grid" ? leadStack(units) : void 0;
|
|
21215
21563
|
const joined = bands2 || listGrid || paragraphs || lead ? void 0 : joinedLayout(region, units, cell, cards);
|
|
@@ -21261,7 +21609,7 @@ function composeLayout(input, options = {}) {
|
|
|
21261
21609
|
const stack = [];
|
|
21262
21610
|
units.forEach((unit2, index) => {
|
|
21263
21611
|
const first = items.length;
|
|
21264
|
-
placeNode(unit2, boxes[index], settings, cards, listGrid ? 1 : region
|
|
21612
|
+
placeNode(unit2, boxes[index], settings, cards, listGrid ? 1 : listColumnsOf(region), region.anchor === "top" || stacked || planned[index] ? void 0 : referenceHeights[index], region.anchor, !cards || bands2 ? void 0 : planned[index] ? frames[index] : !stacked ? cellBoxes[index] : units.length === 1 ? cell : void 0);
|
|
21265
21613
|
if (!unit2.children) {
|
|
21266
21614
|
leafItems.push(...range(first, items.length));
|
|
21267
21615
|
stack.push(...range(first, items.length));
|
|
@@ -21307,7 +21655,8 @@ function composeLayout(input, options = {}) {
|
|
|
21307
21655
|
for (const region of plan2.regions) {
|
|
21308
21656
|
const units = unitsOf(region.name), bound2 = binding.regions.find((entry) => entry.name === region.name);
|
|
21309
21657
|
const rect = rects.get(region.name);
|
|
21310
|
-
let cell = rect && !region.bleed ? region
|
|
21658
|
+
let cell = rect && !region.bleed ? regionDiagram(region) ? physical(logical(rect)) : regionCell(rect) : physical(logical(rect ?? ownRects.get(region.name)));
|
|
21659
|
+
if (rect && !region.bleed && stepProcesses.has(region.name)) stepProcessCells.set(region.name, roundBox5(physical(logical(rect))));
|
|
21311
21660
|
const areaBox = region.bleed && rect ? roundBox5(cell) : void 0;
|
|
21312
21661
|
if (region.bleed && rect && cell.width > 0) cell = bleed(cell);
|
|
21313
21662
|
else if (rect && loneUnit && units[0] === loneUnit && plan2.regions.every((other) => other === region || empty2.has(other.name))) cell = { ...cell, height: Math.max(cell.height, frame.y + frame.height - cell.y) };
|
|
@@ -21692,21 +22041,12 @@ function composeLayout(input, options = {}) {
|
|
|
21692
22041
|
}
|
|
21693
22042
|
};
|
|
21694
22043
|
const ownMode = record19(slide.composition).mode;
|
|
21695
|
-
const direction = recomposing && hints.sources.contentDirection === "layout" ? void 0 : hints.contentDirection;
|
|
21696
|
-
const directionMode = direction === "vertical" ? "column" : direction === "horizontal" ? "row" : "auto";
|
|
21697
|
-
const directedArrangement = (region) => direction !== void 0 && region.flow !== "none" ? direction === "horizontal" ? "row" : "column" : void 0;
|
|
21698
22044
|
const regionDirections = /* @__PURE__ */ new Map();
|
|
21699
22045
|
const chartTrack = options[CHART_TRACK];
|
|
21700
|
-
const chartHint = chartTrack?.edge ?? (hints.chartPrimary === "start" ? "left" : hints.chartPrimary === "end" ? "right" : hints.chartPrimary);
|
|
21701
|
-
const chartSide = chartHint === "left" || chartHint === "right" || chartHint === "top" || chartHint === "bottom" ? chartHint : void 0;
|
|
21702
22046
|
const chartIndex = pending.findIndex((node) => !node.children && node.field === "chart");
|
|
21703
|
-
const
|
|
21704
|
-
const firstChart =
|
|
21705
|
-
|
|
21706
|
-
const why = useTemplate ? "the slide's layout template places the chart in its regions (a template says this with a chart-beside region)" : regions.length ? "the slide's promoted regions place its blocks" : "the slide's own composition.mode arranges its body";
|
|
21707
|
-
diagnostics.push({ code: "arrangement-adapted", path: hints.paths.chartPrimary, message: `design.chartPrimary "${hints.chartPrimary}" is not applied on this slide: ${why}.` });
|
|
21708
|
-
}
|
|
21709
|
-
const rootSettings = chartPrimary ? { ...composition, mode: chartPrimary === "left" || chartPrimary === "right" ? "row" : "column", weights: chartTrack ? firstChart ? [chartTrack.share, 1 - chartTrack.share] : [1 - chartTrack.share, chartTrack.share] : firstChart ? [3, 2] : [2, 3], columns: void 0 } : { ...composition, mode: composition.mode ?? directionMode };
|
|
22047
|
+
const chartSplit = chartTrack !== void 0 && !useTemplate && !regions.length && chartIndex >= 0 && pending.some((node) => node.children || node.field !== "chart") ? chartTrack.edge : void 0;
|
|
22048
|
+
const firstChart = chartSplit === "left" || chartSplit === "top";
|
|
22049
|
+
const rootSettings = chartSplit ? { ...composition, mode: chartSplit === "left" || chartSplit === "right" ? "row" : "column", weights: firstChart ? [chartTrack.share, 1 - chartTrack.share] : [1 - chartTrack.share, chartTrack.share], columns: void 0 } : { ...composition, mode: composition.mode ?? "auto" };
|
|
21710
22050
|
const underChart = options[TIMELINE_UNDER_CHART] === true && !useTemplate && !regions.length && pending.length === 2 && pending.every((node) => !node.children) ? { chart: pending.find((node) => node.field === "chart"), timeline: pending.find((node) => node.field === "timeline") } : void 0;
|
|
21711
22051
|
const noteSplit = options[TABLE_NOTE];
|
|
21712
22052
|
const tableNoteNodes = noteSplit && ruleOn("table-note") && !useTemplate && !regions.length && pending.length === 2 && pending.every((node) => !node.children && node.caption === void 0 && node.emphasis === void 0 && !node.eyebrow && !node.region) && pending.filter((node) => node.field === "table").length === 1 && pending.filter((node) => node.field === "text").length === 1 ? { table: pending.find((node) => node.field === "table"), note: pending.find((node) => node.field === "text") } : void 0;
|
|
@@ -21734,46 +22074,18 @@ function composeLayout(input, options = {}) {
|
|
|
21734
22074
|
timelineHints.set(underChart.timeline, { horizontal: true });
|
|
21735
22075
|
const band = measureTimeline(underChart.timeline, { x: 0, y: 0, width: contentBox.width, height: 1e6 }, composition, "role", void 0, true).bounds.height + scale2;
|
|
21736
22076
|
arrange([underChart.chart, underChart.timeline], contentBox, { ...composition, mode: "column", weights: [Math.max(scale2, contentBox.height - gap - band), band], columns: void 0 }, 0);
|
|
21737
|
-
} else if (
|
|
22077
|
+
} else if (chartSplit) {
|
|
21738
22078
|
const primary = pending[chartIndex], rest = pending.filter((_, index) => index !== chartIndex);
|
|
21739
|
-
const support = { field: "blocks", type: "group", value: rest.map((node) => node.payload), path, payload: {}, children: rest, composition: chartTrack
|
|
21740
|
-
const first = items.length;
|
|
22079
|
+
const support = { field: "blocks", type: "group", value: rest.map((node) => node.payload), path, payload: {}, children: rest, composition: chartTrack.mode ? { mode: chartTrack.mode } : ownMode ? { mode: ownMode } : {}, synthetic: true };
|
|
21741
22080
|
arrange(firstChart ? [primary, support] : [support, primary], contentBox, rootSettings, 0);
|
|
21742
|
-
const beside = items.slice(first).filter((item) => item.field !== "chart");
|
|
21743
|
-
const lone = !chartTrack && beside.length === 1 && beside[0].field === "text" && typeof beside[0].value === "string" && beside[0].text && !beside[0].frameBox && !beside[0].emphasis && !("richLines" in beside[0].text) ? beside[0] : void 0;
|
|
21744
|
-
if (lone) {
|
|
21745
|
-
const heightOf = (fit) => fit.placement?.height ?? fit.lines.length * fit.lineHeight, text2 = contentText("text", lone.value) ?? "";
|
|
21746
|
-
const message = messageWords(lone.value) <= SHORT_MESSAGE_WORDS;
|
|
21747
|
-
let best = lone.text;
|
|
21748
|
-
const grow = (cap, lines) => {
|
|
21749
|
-
for (let size = best.fontSize; ; ) {
|
|
21750
|
-
const step = scaleAbove(size, composition.minFontSize ?? 16);
|
|
21751
|
-
if (step > Math.min(cap * scale2, capOf(rootSettings) + FONT_GRID_EPSILON) + 1e-9) break;
|
|
21752
|
-
const fit = fitPlacedText("text", lone.value, text2, lone.box, step, step, lone.path, lone.alignment);
|
|
21753
|
-
if (fit.overflow || fit.fontSize < step - 1e-9 || heightOf(fit) > LONE_TARGET * lone.box.height || fit.lines.length > lines || ruleOn("reading-measure") && underMeasure("text", lone.value, lone.box.width, step)) break;
|
|
21754
|
-
best = fit;
|
|
21755
|
-
size = step;
|
|
21756
|
-
}
|
|
21757
|
-
};
|
|
21758
|
-
if (heightOf(best) < LONE_FILL * lone.box.height) {
|
|
21759
|
-
grow(LONE_DISPLAY_SIZES.text, Infinity);
|
|
21760
|
-
if (message) grow(MESSAGE_DISPLAY_SIZE, MESSAGE_DISPLAY_LINES);
|
|
21761
|
-
}
|
|
21762
|
-
lone.text = best;
|
|
21763
|
-
}
|
|
21764
|
-
if (!chartTrack && beside.length && beside.every((item) => item.field === "text" && item.text && !item.frameBox && !item.emphasis && !("listEntries" in item.text) && !("richLines" in item.text))) {
|
|
21765
|
-
const inkBottom = (item) => item.box.y + ("richLines" in item.text ? item.text.height : item.text.placement?.height ?? item.text.lines.length * item.text.lineHeight);
|
|
21766
|
-
const top = Math.min(...beside.map((item) => item.box.y)), bottom = Math.max(...beside.map((item) => item.box.y + item.box.height)), ink = Math.max(...beside.map(inkBottom)) - top;
|
|
21767
|
-
const dy = round9((bottom - top - ink) / 2);
|
|
21768
|
-
if (dy > 0.5) for (const item of beside) {
|
|
21769
|
-
item.box = { ...item.box, y: item.box.y + dy, height: Math.max(scale2, item.box.height - dy) };
|
|
21770
|
-
item.text = translateTextFit(item.text, dy);
|
|
21771
|
-
}
|
|
21772
|
-
}
|
|
21773
22081
|
} else {
|
|
21774
22082
|
const grouped = groupRoot(pending), roots = grouped?.nodes ?? pending;
|
|
21775
22083
|
if (!regions.length) growBodyUnits(pending);
|
|
21776
22084
|
if (roots.length === 1 && !roots[0].children) roots[0].fills = true;
|
|
22085
|
+
else if (!regions.length && roots.length === 2 && (rootSettings.mode === "row" || rootSettings.mode === "column") && rootSettings.weights?.length === 2) {
|
|
22086
|
+
const chart = roots.findIndex((node) => !node.children && node.field === "chart"), text2 = chart >= 0 ? textBesideChart(roots[1 - chart]) : void 0;
|
|
22087
|
+
if (text2) text2.fills = true;
|
|
22088
|
+
}
|
|
21777
22089
|
if (grouped?.settings) arrange(grouped.nodes, contentBox, grouped.settings, 0, gap);
|
|
21778
22090
|
else arrange(grouped?.nodes ?? pending, contentBox, rootSettings, 0);
|
|
21779
22091
|
}
|
|
@@ -21923,17 +22235,9 @@ function composeLayout(input, options = {}) {
|
|
|
21923
22235
|
const numberOf = (number2) => ({ value: number2.value, style: number2.style, suffix: number2.suffix });
|
|
21924
22236
|
const connector = (badges) => badges.length > 1 ? { connector: { x1: badges[0].cx, y1: badges[0].cy, x2: badges.at(-1).cx, y2: badges.at(-1).cy } } : {};
|
|
21925
22237
|
for (const region of template.regions) {
|
|
21926
|
-
const members = items.filter((item) => item.region === region.name && !headings.has(item.field))
|
|
21927
|
-
if (!region
|
|
22238
|
+
const members = items.filter((item) => item.region === region.name && !headings.has(item.field));
|
|
22239
|
+
if (!regionSequence(region) && !members.some((item) => numeralLists.has(item.path))) continue;
|
|
21928
22240
|
for (const item of members) {
|
|
21929
|
-
if (stepFlows.has(item.path)) {
|
|
21930
|
-
const flow = stepFlow(item, region.name, lineWidth);
|
|
21931
|
-
if (flow) {
|
|
21932
|
-
result.push(flow);
|
|
21933
|
-
drawn.push(item.box);
|
|
21934
|
-
}
|
|
21935
|
-
continue;
|
|
21936
|
-
}
|
|
21937
22241
|
const fits = item.listColumns?.length ? item.listColumns.map((column) => column.text) : item.text && "listEntries" in item.text ? [item.text] : [];
|
|
21938
22242
|
for (const fit of fits) {
|
|
21939
22243
|
const badges = fit.listEntries.flatMap((entry) => entry.badge ? [badgeOf(entry.textPath ?? item.path, entry.badge.cx, entry.badge.cy, entry.badge.diameter, entry.badge.label, entry.badge.fontSize, entry.marker.number && item.payload.numbering !== void 0 ? { path: item.path, index: entry.index, number: numberOf(entry.marker.number) } : void 0, entry.badge.numeral)] : []);
|
|
@@ -21962,7 +22266,7 @@ function composeLayout(input, options = {}) {
|
|
|
21962
22266
|
}
|
|
21963
22267
|
}
|
|
21964
22268
|
const composed2 = templateRegions.find((entry) => entry.name === region.name);
|
|
21965
|
-
const extents =
|
|
22269
|
+
const extents = result.filter((entry) => entry.region === region.name).flatMap((entry) => entry.badges.map((badge) => badge.numeral ?? { x: badge.cx - badge.radius, y: badge.cy - badge.radius, width: 2 * badge.radius, height: 2 * badge.radius }));
|
|
21966
22270
|
if (composed2 && extents.length) {
|
|
21967
22271
|
const box = composed2.box, x = Math.min(box.x, ...extents.map((extent2) => extent2.x)), y2 = Math.min(box.y, ...extents.map((extent2) => extent2.y));
|
|
21968
22272
|
composed2.box = roundBox5({ x, y: y2, width: Math.max(box.x + box.width, ...extents.map((extent2) => extent2.x + extent2.width)) - x, height: Math.max(box.y + box.height, ...extents.map((extent2) => extent2.y + extent2.height)) - y2 });
|
|
@@ -21970,46 +22274,9 @@ function composeLayout(input, options = {}) {
|
|
|
21970
22274
|
}
|
|
21971
22275
|
return result;
|
|
21972
22276
|
};
|
|
21973
|
-
const stepFlow = (item, region, lineWidth) => {
|
|
21974
|
-
const values = item.value, fit = item.text, size = fit.fontSize, area3 = templateRegions.find((entry) => entry.name === region)?.box ?? item.box;
|
|
21975
|
-
const listOptions = { ...richOptions(styleFor(item.field, item.path)), bullet: "none" };
|
|
21976
|
-
const single = (index, box) => {
|
|
21977
|
-
const own0 = `${item.path}.0`, ownPath = `${item.path}.${index}`, marker = listOptions.citationMarker;
|
|
21978
|
-
const entryOptions = marker ? { ...listOptions, citationMarker: (run) => marker(run === own0 || run.startsWith(`${own0}.`) ? ownPath + run.slice(own0.length) : run) } : listOptions;
|
|
21979
|
-
const own3 = fitList([values[index]], box, size, size, entryOptions), object2 = typeof values[index] === "object" && !Array.isArray(values[index]);
|
|
21980
|
-
return { ...own3, listEntries: own3.listEntries.map((entry) => ({ ...entry, index, textPath: `${item.path}.${index}${object2 ? ".text" : ""}`, descriptionPath: `${item.path}.${index}.description` })) };
|
|
21981
|
-
};
|
|
21982
|
-
const measured = values.map((_, index) => single(index, { x: 0, y: 0, width: 1e5, height: 1e5 }).listEntries[0]);
|
|
21983
|
-
if (!fit.listEntries.length || measured.some((entry) => entry.text.richLines.length !== 1)) return void 0;
|
|
21984
|
-
const widths = measured.map((entry) => entry.text.richLines[0].width), lineHeight = Math.max(...measured.map((entry) => entry.text.height));
|
|
21985
|
-
const padX = 0.9 * size, padY = 0.6 * size, slot = 2.4 * size, count = values.length, room = area3.width - slot * (count - 1);
|
|
21986
|
-
const equal = count * (Math.max(...widths) + 2 * padX) <= room;
|
|
21987
|
-
if (!equal && widths.reduce((sum, width2) => sum + width2 + 2 * padX, 0) > room) return void 0;
|
|
21988
|
-
const chipWidths = widths.map((width2) => equal ? room / count : width2 + 2 * padX), chipHeight = lineHeight + 2 * padY;
|
|
21989
|
-
const middle = fit.listEntries[0].textBox.y + fit.height / 2, y2 = middle - chipHeight / 2;
|
|
21990
|
-
const total = chipWidths.reduce((sum, width2) => sum + width2, 0) + slot * (count - 1);
|
|
21991
|
-
let start = area3.x + (area3.width - total) / 2;
|
|
21992
|
-
const chips = [], columns2 = [];
|
|
21993
|
-
for (let index = 0; index < count; index++) {
|
|
21994
|
-
const width2 = chipWidths[index], x = rtl ? area3.x + area3.width - (start - area3.x) - width2 : start;
|
|
21995
|
-
start += width2 + slot;
|
|
21996
|
-
const box = { x: x + (width2 - widths[index]) / 2 - 1, y: y2 + padY, width: widths[index] + 2, height: lineHeight };
|
|
21997
|
-
const text2 = single(index, box);
|
|
21998
|
-
if (text2.overflow || text2.listEntries[0].text.richLines.length !== 1) return void 0;
|
|
21999
|
-
chips.push({ path: text2.listEntries[0].textPath, box: { x, y: y2, width: width2, height: chipHeight }, radius: CARD_RADIUS * scale2 });
|
|
22000
|
-
columns2.push({ box, start: index, end: index + 1, text: text2 });
|
|
22001
|
-
}
|
|
22002
|
-
const arrows = chips.slice(1).map((chip, index) => {
|
|
22003
|
-
const previous = chips[index], left = rtl ? chip.box.x + chip.box.width : previous.box.x + previous.box.width, right = rtl ? previous.box.x : chip.box.x, tall = 0.6 * size;
|
|
22004
|
-
return { box: { x: left + 0.5 * size, y: y2 + (chipHeight - tall) / 2, width: Math.max(scale2, right - left - size), height: tall }, direction: rtl ? "left" : "right" };
|
|
22005
|
-
});
|
|
22006
|
-
item.listColumns = columns2;
|
|
22007
|
-
item.text = mergeListColumns(columns2);
|
|
22008
|
-
item.box = { x: Math.min(...chips.map((chip) => chip.box.x)), y: y2, width: total, height: chipHeight };
|
|
22009
|
-
return { form: "flow", region, path: item.path, badges: [], chips, arrows, lineWidth };
|
|
22010
|
-
};
|
|
22011
22277
|
const fallbackListAreas = /* @__PURE__ */ new Map();
|
|
22012
|
-
const arrangedList = (item,
|
|
22278
|
+
const arrangedList = (item, arrangement, area3, candidate = false) => {
|
|
22279
|
+
const kind2 = arrangement === "inverted-pyramid" ? "pyramid" : arrangement, pyramidDirection = arrangement === "inverted-pyramid" ? "down" : "up";
|
|
22013
22280
|
const values = item.value, fit = item.text, base = fit.fontSize, count = values.length;
|
|
22014
22281
|
const tree = kind2 === "org-chart" || kind2 === "hierarchy", measured = tree || kind2 === "venn";
|
|
22015
22282
|
const overlapAt = kind2 === "venn" && record19(values[count - 1]).overlap === true ? count - 1 : -1, sets = overlapAt < 0 ? count : count - 1;
|
|
@@ -22066,13 +22333,13 @@ function composeLayout(input, options = {}) {
|
|
|
22066
22333
|
const widest = Math.max(0, ...columns2.flatMap((column) => column.text.listEntries[0].text.richLines.map((line2) => line2.width)));
|
|
22067
22334
|
return { columns: columns2, margin, margins: [left, top2, right, bottom], lines, stable, fill, ink, widest };
|
|
22068
22335
|
};
|
|
22069
|
-
const role = LIST_NOMINAL_SIZE * scale2, floor = measured ? base : Math.min(base, role), step = 4 / 3 * scale2, top = Math.min(capOf(item.composition), Math.max(base, snapFontSizeDown(role * ARRANGEMENT_GROWTH)));
|
|
22336
|
+
const role = LIST_NOMINAL_SIZE * scale2, floor = measured || candidate ? base : Math.min(base, role), step = 4 / 3 * scale2, top = Math.min(capOf(item.composition), Math.max(base, snapFontSizeDown(role * ARRANGEMENT_GROWTH)));
|
|
22070
22337
|
const sized = (design2) => {
|
|
22071
22338
|
let fallback;
|
|
22072
22339
|
const minimum = design2.minimumSize ?? floor;
|
|
22073
22340
|
if (minimum > top + FONT_GRID_EPSILON) return void 0;
|
|
22074
|
-
for (let
|
|
22075
|
-
const at3 = Math.max(
|
|
22341
|
+
for (let candidate2 = top; ; candidate2 = snapFontSizeDown(candidate2 - step)) {
|
|
22342
|
+
const at3 = Math.max(candidate2, minimum), nodes = design2.fitNodes ? design2.fitNodes(at3) : design2.nodes;
|
|
22076
22343
|
const current = nodes ? { ...design2, nodes } : void 0, attempt = current ? place2(current, at3) : void 0;
|
|
22077
22344
|
if (attempt && (design2.design !== "smartart" || attempt.stable.every(Boolean))) return { design: current, placed: attempt, size: at3 };
|
|
22078
22345
|
if (attempt && !fallback) fallback = { design: current, placed: attempt, size: at3 };
|
|
@@ -22186,7 +22453,7 @@ function composeLayout(input, options = {}) {
|
|
|
22186
22453
|
largest: true,
|
|
22187
22454
|
refit: (need) => linearDesign(kind2, area3, count, gap, rtl, lines, need, compact),
|
|
22188
22455
|
...compact ? { last: true } : {},
|
|
22189
|
-
layout: { design: kind2 === "chevrons" ? "chevron-rows" : kind2 === "
|
|
22456
|
+
layout: { design: kind2 === "chevrons" ? "chevron-rows" : kind2 === "process" ? "flow-rows" : "vertical-flow-columns", area: area3, gap, rtl, lines, ...compact ? { compact: true } : {} }
|
|
22190
22457
|
});
|
|
22191
22458
|
}
|
|
22192
22459
|
} else if (count === MATRIX_ENTRIES) {
|
|
@@ -22207,8 +22474,7 @@ function composeLayout(input, options = {}) {
|
|
|
22207
22474
|
continue;
|
|
22208
22475
|
}
|
|
22209
22476
|
const unavailable = design2.design !== "smartart" ? void 0 : smartArtUnavailable({
|
|
22210
|
-
kind:
|
|
22211
|
-
pyramidDirection,
|
|
22477
|
+
kind: arrangement,
|
|
22212
22478
|
count,
|
|
22213
22479
|
frame: design2.frame,
|
|
22214
22480
|
rtl: rtl || script.rtl,
|
|
@@ -22231,6 +22497,7 @@ function composeLayout(input, options = {}) {
|
|
|
22231
22497
|
chosen = outside;
|
|
22232
22498
|
skipped = void 0;
|
|
22233
22499
|
}
|
|
22500
|
+
if (!chosen && candidate) return void 0;
|
|
22234
22501
|
if (!chosen) {
|
|
22235
22502
|
diagnostics.push({ code: "arrangement-adapted", path: item.path, message: `The entries of the ${kind2 === "chevrons" ? "row of chevrons" : kind2.replace("-", " ")} do not fit its ${SMART_ART_NAMES[kind2].nodes} at the list's size, so they are drawn as a list.` });
|
|
22236
22503
|
fillRegionWithList(item, area3, top);
|
|
@@ -22255,8 +22522,7 @@ function composeLayout(input, options = {}) {
|
|
|
22255
22522
|
item.box = { ...design.frame };
|
|
22256
22523
|
const textPaths = placed2.columns.map((column) => column.text.listEntries[0].textPath);
|
|
22257
22524
|
return {
|
|
22258
|
-
kind:
|
|
22259
|
-
...kind2 === "pyramid" && pyramidDirection === "down" ? { pyramidDirection } : {},
|
|
22525
|
+
kind: arrangement,
|
|
22260
22526
|
design: design.design,
|
|
22261
22527
|
region: item.region ?? "",
|
|
22262
22528
|
path: item.path,
|
|
@@ -22286,7 +22552,8 @@ function composeLayout(input, options = {}) {
|
|
|
22286
22552
|
return word.test(before) && word.test(after) && !everywhere.test(before) && !everywhere.test(after);
|
|
22287
22553
|
});
|
|
22288
22554
|
}
|
|
22289
|
-
const arrangedBlocks = (members,
|
|
22555
|
+
const arrangedBlocks = (members, arrangement, area3) => {
|
|
22556
|
+
const kind2 = arrangement === "inverted-pyramid" ? "pyramid" : arrangement, pyramidDirection = arrangement === "inverted-pyramid" ? "down" : "up";
|
|
22290
22557
|
const count = members.length, role = LIST_NOMINAL_SIZE * scale2, step = 4 / 3 * scale2, primaryLine = ARRANGEMENT_LINE_POINTS / 0.75 * scale2, radius = CARD_RADIUS * scale2;
|
|
22291
22558
|
const bases = members.map((member) => member.text.fontSize), floor = Math.min(role, ...bases), top = Math.min(...members.map((member) => capOf(member.composition)), Math.max(...bases, snapFontSizeDown(role * ARRANGEMENT_GROWTH)));
|
|
22292
22559
|
const designs = [];
|
|
@@ -22363,8 +22630,7 @@ function composeLayout(input, options = {}) {
|
|
|
22363
22630
|
member.alignment = rtl ? "right" : "left";
|
|
22364
22631
|
}
|
|
22365
22632
|
return {
|
|
22366
|
-
kind:
|
|
22367
|
-
...kind2 === "pyramid" && pyramidDirection === "down" ? { pyramidDirection } : {},
|
|
22633
|
+
kind: arrangement,
|
|
22368
22634
|
design: design.design,
|
|
22369
22635
|
region: members[0].region ?? "",
|
|
22370
22636
|
path: members[0].path,
|
|
@@ -22400,30 +22666,47 @@ function composeLayout(input, options = {}) {
|
|
|
22400
22666
|
item.text = placed2;
|
|
22401
22667
|
item.box = box;
|
|
22402
22668
|
};
|
|
22669
|
+
let stepProcessMissed = false;
|
|
22403
22670
|
const arrangedLists = () => {
|
|
22404
22671
|
const result = [];
|
|
22405
22672
|
for (const region of template.regions) {
|
|
22406
|
-
|
|
22673
|
+
const short = regionDiagram(region) ? void 0 : stepProcesses.get(region.name);
|
|
22674
|
+
if (short) {
|
|
22675
|
+
const item2 = items.find((entry) => entry.path === short && entry.region === region.name), area4 = stepProcessCells.get(region.name);
|
|
22676
|
+
if (!item2 || !area4 || item2.listColumns || item2.caption || item2.frameBox || !item2.text || !("listEntries" in item2.text) || item2.text.overflow) continue;
|
|
22677
|
+
const arranged2 = arrangedList(item2, "process", area4, true);
|
|
22678
|
+
if (!arranged2) {
|
|
22679
|
+
stepProcessMissed = true;
|
|
22680
|
+
continue;
|
|
22681
|
+
}
|
|
22682
|
+
result.push(arranged2);
|
|
22683
|
+
const composed2 = templateRegions.find((entry) => entry.name === region.name);
|
|
22684
|
+
if (composed2) composed2.box = roundBox5(area4);
|
|
22685
|
+
continue;
|
|
22686
|
+
}
|
|
22687
|
+
const arrangement = regionDiagram(region);
|
|
22688
|
+
if (!arrangement) continue;
|
|
22689
|
+
const kind2 = arrangement === "inverted-pyramid" ? "pyramid" : arrangement;
|
|
22407
22690
|
const members = items.filter((item2) => item2.region === region.name && !headings.has(item2.field)), item = members.length === 1 ? members[0] : void 0;
|
|
22408
22691
|
const lists = members.filter((member) => (member.field === "items" || member.field === "bullets") && !member.listColumns && !member.caption && member.text && "listEntries" in member.text && !member.text.overflow);
|
|
22409
|
-
if (members.length > 1 && !["org-chart", "hierarchy", "venn"].includes(
|
|
22410
|
-
const arranged2 = arrangedBlocks(members,
|
|
22692
|
+
if (members.length > 1 && !["org-chart", "hierarchy", "venn"].includes(kind2) && lists.length === members.length && members.length <= (kind2 === "matrix" ? ARRANGEMENT_CARDS_MAX : ARRANGEMENT_MAX[kind2])) {
|
|
22693
|
+
const arranged2 = arrangedBlocks(members, arrangement, templateRegions.find((entry) => entry.name === region.name)?.box ?? members[0].box);
|
|
22411
22694
|
if (arranged2) result.push(arranged2);
|
|
22412
22695
|
continue;
|
|
22413
22696
|
}
|
|
22414
22697
|
if (!item || item.field !== "items" && item.field !== "bullets" || item.listColumns || item.caption || item.frameBox || !item.text || !("listEntries" in item.text)) continue;
|
|
22415
22698
|
const values = Array.isArray(item.value) ? item.value : [];
|
|
22416
22699
|
if (!values.length) continue;
|
|
22417
|
-
const tree =
|
|
22700
|
+
const tree = kind2 === "org-chart" || kind2 === "hierarchy";
|
|
22418
22701
|
const topology = tree ? arrangementTree(values) : void 0;
|
|
22419
22702
|
const overlaps = values.filter((value) => record19(value).overlap === true).length, sets = values.length - overlaps;
|
|
22420
|
-
const reason = topology && !topology.ok ? topology.reason : item.payload.numbering !== void 0 ? "a numbered list" : !tree && values.some((value) => (record19(value).level ?? 0) !== 0) ? "nested entries" : region.arrangement !== "org-chart" && values.some((value) => record19(value).assistant === true) ? "an assistant (org chart only)" : region.arrangement !== "venn" && overlaps ? "an overlap label (Venn only)" : overlaps > 1 ? "more than one overlap label" : overlaps && record19(values.at(-1)).overlap !== true ? "an overlap label that is not last" : overlaps && sets < 2 ? "an overlap label with fewer than two sets" : values.some((value) => record19(value).description !== void 0) ? "descriptions" : values.some((value) => record19(value).icon !== void 0) ? "icons" :
|
|
22703
|
+
const reason = topology && !topology.ok ? topology.reason : item.payload.numbering !== void 0 ? "a numbered list" : !tree && values.some((value) => (record19(value).level ?? 0) !== 0) ? "nested entries" : region.arrangement !== "org-chart" && values.some((value) => record19(value).assistant === true) ? "an assistant (org chart only)" : region.arrangement !== "venn" && overlaps ? "an overlap label (Venn only)" : overlaps > 1 ? "more than one overlap label" : overlaps && record19(values.at(-1)).overlap !== true ? "an overlap label that is not last" : overlaps && sets < 2 ? "an overlap label with fewer than two sets" : values.some((value) => record19(value).description !== void 0) ? "descriptions" : values.some((value) => record19(value).icon !== void 0) ? "icons" : kind2 !== "matrix" && sets > ARRANGEMENT_MAX[kind2] ? `more than ${ARRANGEMENT_MAX[kind2]} ${SMART_ART_NAMES[kind2].nodes}` : values.length > ARRANGEMENT_CARDS_MAX ? `more than ${ARRANGEMENT_CARDS_MAX} entries` : void 0;
|
|
22421
22704
|
if (reason) {
|
|
22422
|
-
diagnostics.push({ code: "arrangement-adapted", path: item.path, message: `${
|
|
22705
|
+
diagnostics.push({ code: "arrangement-adapted", path: item.path, message: `${kind2 === "chevrons" ? "A row of chevrons" : `A ${kind2.replace("-", " ")}`} draws a list of one level of short entries; this list has ${reason}, so it is drawn as a list.` });
|
|
22423
22706
|
continue;
|
|
22424
22707
|
}
|
|
22425
22708
|
const area3 = templateRegions.find((entry) => entry.name === region.name)?.box ?? item.box;
|
|
22426
|
-
const arranged = arrangedList(item,
|
|
22709
|
+
const arranged = arrangedList(item, arrangement, area3);
|
|
22427
22710
|
if (arranged) result.push(arranged);
|
|
22428
22711
|
}
|
|
22429
22712
|
return result;
|
|
@@ -22475,12 +22758,13 @@ function composeLayout(input, options = {}) {
|
|
|
22475
22758
|
if (useTemplate) pairRules();
|
|
22476
22759
|
const steps = useTemplate ? stepSequences() : [];
|
|
22477
22760
|
const arrangements = useTemplate ? arrangedLists() : [];
|
|
22761
|
+
if (stepProcessMissed) return composeLayout(input, { ...options, [NO_STEP_PROCESS]: true });
|
|
22478
22762
|
const checkTiles = () => {
|
|
22479
22763
|
const own3 = record19(slide.design);
|
|
22480
22764
|
if (!ruleOn("check-tiles") || options.darkBackground !== true || own3.variant === void 0 && own3.background === void 0 || listBullet !== void 0 || options[LAYOUT_MASTER] === true || surface) return void 0;
|
|
22481
22765
|
const body = items.filter((item2) => !headings.has(item2.field));
|
|
22482
22766
|
const item = body.length === 1 ? body[0] : void 0;
|
|
22483
|
-
if (!item || item.field !== "bullets" && item.field !== "items" || item.payload.numbering !== void 0 || item.listColumns || item.caption || item.frameBox ||
|
|
22767
|
+
if (!item || item.field !== "bullets" && item.field !== "items" || item.payload.numbering !== void 0 || item.listColumns || item.caption || item.frameBox || isStepProcess(item.path) || badgeLists.has(item.path) || !item.text || !("listEntries" in item.text) || item.field === "items" && iconList(item.value, void 0)) return void 0;
|
|
22484
22768
|
const values = Array.isArray(item.value) ? item.value : [];
|
|
22485
22769
|
const texts = values.map((value) => {
|
|
22486
22770
|
const object2 = record19(value);
|
|
@@ -22540,7 +22824,7 @@ function composeLayout(input, options = {}) {
|
|
|
22540
22824
|
const figureRows = () => {
|
|
22541
22825
|
const body = items.filter((item) => !headings.has(item.field) && !item.eyebrow && !(item.emphasis && surface && surface.shape !== "card"));
|
|
22542
22826
|
for (const item of items) {
|
|
22543
|
-
if (!figureRowOf(item.field, item.value, item.payload, item.caption) || item.listColumns ||
|
|
22827
|
+
if (!figureRowOf(item.field, item.value, item.payload, item.caption) || item.listColumns || isStepProcess(item.path) || badgeLists.has(item.path) || stepPaths.has(item.path) || pillarWords.has(item.path) || numeralLists.has(item.path) || termLists.has(item.path) || pairRowLabels.has(item.path) || pairGrid.has(item.path) || !item.text || !("listEntries" in item.text)) continue;
|
|
22544
22828
|
const values = item.value, size = item.text.fontSize, count = values.length, box = item.box;
|
|
22545
22829
|
const width2 = (box.width - gap * (count - 1)) / count;
|
|
22546
22830
|
if (width2 < 4 * size) continue;
|
|
@@ -22627,7 +22911,7 @@ function composeLayout(input, options = {}) {
|
|
|
22627
22911
|
if (!ruleOn("icon-cards") || options[LAYOUT_MASTER] === true || surface) return void 0;
|
|
22628
22912
|
const body = items.filter((item2) => !headings.has(item2.field) && !item2.eyebrow);
|
|
22629
22913
|
const item = body.length === 1 ? body[0] : void 0;
|
|
22630
|
-
if (!item || item.field !== "items" || item.listColumns || item.caption || item.frameBox || item.emphasis ||
|
|
22914
|
+
if (!item || item.field !== "items" || item.listColumns || item.caption || item.frameBox || item.emphasis || !item.text || !("listEntries" in item.text)) return void 0;
|
|
22631
22915
|
if (cardsArrangement(item) === "column") return void 0;
|
|
22632
22916
|
const values = Array.isArray(item.value) ? item.value : [];
|
|
22633
22917
|
if (values.length < ICON_CARD_MIN || values.length > ICON_CARD_MAX) return void 0;
|
|
@@ -22676,7 +22960,7 @@ function composeLayout(input, options = {}) {
|
|
|
22676
22960
|
const place2 = (start2) => {
|
|
22677
22961
|
const placed2 = at3(start2 + lift), cy = top ? start2 + chip / 2 : start2 + lift + center2, cx = rtl ? inner.x + inner.width - chip / 2 : inner.x + chip / 2;
|
|
22678
22962
|
const marker = { text: "", x: rtl ? x + width2 : x, y: placed2.textBox.y + (placed2.text.richLines[0]?.baseline ?? size), fontSize: size, style: resolveTextStyle(labelStyle, options.textMeasurement), indent: 0, none: true, ...rtl ? { anchor: "end" } : {} };
|
|
22679
|
-
const
|
|
22963
|
+
const direction = rtl ? paragraphDirection(label6, "rtl") : void 0;
|
|
22680
22964
|
const entry = {
|
|
22681
22965
|
index,
|
|
22682
22966
|
level: 0,
|
|
@@ -22689,7 +22973,7 @@ function composeLayout(input, options = {}) {
|
|
|
22689
22973
|
...placed2.description && placed2.descriptionBox ? { description: placed2.description, descriptionBox: placed2.descriptionBox } : {},
|
|
22690
22974
|
marker,
|
|
22691
22975
|
icon: { cx, cy, diameter: chip },
|
|
22692
|
-
...
|
|
22976
|
+
...direction ? { direction } : {}
|
|
22693
22977
|
};
|
|
22694
22978
|
const directions = [...placed2.text.directions ?? [], ...placed2.description?.directions ?? []];
|
|
22695
22979
|
const text2 = { listEntries: [entry], lines: [...placed2.text.lines, ...placed2.description?.lines ?? []], fontSize: size, lineHeight: size * 1.22, height: placed2.bottom - placed2.textBox.y, overflow: false, ...rtl ? { directions } : {} };
|
|
@@ -23022,8 +23306,8 @@ function composeLayout(input, options = {}) {
|
|
|
23022
23306
|
node = record19(Array.isArray(node.blocks) ? node.blocks[Number(steps2[++index])] : void 0);
|
|
23023
23307
|
}
|
|
23024
23308
|
if (weighted) return "its block, at the share `composition.weights` gives it,";
|
|
23025
|
-
|
|
23026
|
-
return
|
|
23309
|
+
if (owner?.region !== void 0) return `its block, in the region \`${owner.region}\`,`;
|
|
23310
|
+
return regionParts(steps2[0] ?? "") ? `its block, in the cell \`${steps2[0]}\` of the slide's grid,` : "the slide";
|
|
23027
23311
|
};
|
|
23028
23312
|
const iconDiagnostics = [], drawnIcons = new Set(icons.map((icon) => icon.path));
|
|
23029
23313
|
for (const found of documentIcons(slide)) {
|
|
@@ -23055,31 +23339,21 @@ function composeLayout(input, options = {}) {
|
|
|
23055
23339
|
}
|
|
23056
23340
|
for (const group of groups2) for (const box of [group.box, group.contentBox]) for (const key of ["x", "y", "width", "height"]) box[key] = round9(box[key]);
|
|
23057
23341
|
const readingTemplate = recordTemplate ?? (recomposing && isLayoutTemplate(layout) ? layoutTemplate(layout) : void 0);
|
|
23058
|
-
const readingRegion = (region) => ["org-chart", "hierarchy", "venn"].includes(region.arrangement ?? "")
|
|
23342
|
+
const readingRegion = (region) => ["org-chart", "hierarchy", "venn", "inverted-pyramid"].includes(region.arrangement ?? "");
|
|
23059
23343
|
const cappedListFallback = (item) => fallbackListAreas.has(item.path) && ruleOn("layout-first") && item.payload.columns === void 0 && Array.isArray(item.value) && item.value.length > LIST_WHOLE_ENTRIES && !ownRunSizes(item.value) && capOf(item.composition) < contentNominalSize(item.field) * scale2 - FONT_GRID_EPSILON;
|
|
23060
23344
|
if (readingTemplate && (readingTemplate.regions.some(readingRegion) || items.some(cappedListFallback))) {
|
|
23061
|
-
const regionColumns = /* @__PURE__ */ new Map();
|
|
23062
|
-
const collectColumns = (entries) => {
|
|
23063
|
-
if (!Array.isArray(entries)) return;
|
|
23064
|
-
for (const value of entries) {
|
|
23065
|
-
const entry = record19(value);
|
|
23066
|
-
if (typeof entry.name === "string" && (entry.listColumns === "auto" || entry.listColumns === 1)) regionColumns.set(entry.name, entry.listColumns);
|
|
23067
|
-
else if (entry.name === void 0) collectColumns(entry.regions);
|
|
23068
|
-
}
|
|
23069
|
-
};
|
|
23070
|
-
collectColumns(layout.regions);
|
|
23071
23345
|
const readable = (fit) => fit.listEntries.every((entry) => [entry.text, entry.description].every((text2) => !text2 || !blockCutsWord({ ...entry, text: text2 }) && text2.richLines.every((line2) => line2.fragments.map((fragment) => fragment.text).join("").trim().length <= PROSE_MEASURE_CHARS)));
|
|
23072
23346
|
for (const item of items) {
|
|
23073
|
-
if (!["items", "bullets"].includes(item.field) || !item.text || !("listEntries" in item.text) || item.text.overflow || item.caption || stepPaths.has(item.path)
|
|
23347
|
+
if (!["items", "bullets"].includes(item.field) || !item.text || !("listEntries" in item.text) || item.text.overflow || item.caption || stepPaths.has(item.path)) continue;
|
|
23074
23348
|
const listRegions = readingTemplate.regions.filter((region2) => region2.accepts.includes("list"));
|
|
23075
23349
|
const region = readingTemplate.regions.find((region2) => region2.name === (item.region ?? item.payload.region)) ?? (listRegions.length === 1 ? listRegions[0] : void 0);
|
|
23076
23350
|
const requiredMeasure = region ? readingRegion(region) : !readingTemplate.regions.some((region2) => region2.accepts.includes("list") && !readingRegion(region2));
|
|
23077
|
-
if (!requiredMeasure && !
|
|
23351
|
+
if (!requiredMeasure && !cappedListFallback(item)) continue;
|
|
23078
23352
|
if (arrangements.some((arrangement) => arrangement.path === item.path || arrangement.nodes.some((node) => node.path === item.path || node.path?.startsWith(item.path + ".")))) continue;
|
|
23079
23353
|
const current = item.text;
|
|
23080
23354
|
if (readable(current)) continue;
|
|
23081
23355
|
const values = item.value, area3 = fallbackListAreas.get(item.path) ?? item.box, ownColumns = item.payload.columns;
|
|
23082
|
-
const mode = ownColumns === "auto" || ownColumns === 1 || ownColumns === 2 || ownColumns === 3 ? ownColumns :
|
|
23356
|
+
const mode = ownColumns === "auto" || ownColumns === 1 || ownColumns === 2 || ownColumns === 3 ? ownColumns : void 0;
|
|
23083
23357
|
const counts = typeof mode === "number" ? [mode] : [1, 2, 3].filter((count) => count <= values.length);
|
|
23084
23358
|
const listOptions = { ...listOptionsFor(item.field, item.path, item.payload.numbering, values), ...values.length > 1 ? { heading: false } : {} }, numbering = listOptions.numbering;
|
|
23085
23359
|
const cap = options.fill === false || ownRunSizes(values) ? current.fontSize : Math.max(current.fontSize, Math.min(ARRANGEMENT_GROWTH * contentNominalSize(item.field) * scale2, capOf(item.composition)));
|
|
@@ -23242,7 +23516,7 @@ function composeLayout(input, options = {}) {
|
|
|
23242
23516
|
if (placedTiled) PLACED_TILES.add(composed);
|
|
23243
23517
|
if (iconAgendas.size) ICON_AGENDAS.set(composed, iconAgendas);
|
|
23244
23518
|
if (headingMessage) HEADING_MESSAGES.add(composed);
|
|
23245
|
-
if (
|
|
23519
|
+
if (statementPlan !== recordTemplate) STATEMENT_BODIES.add(composed);
|
|
23246
23520
|
if (statement === "title") STATEMENT_TITLES.add(composed);
|
|
23247
23521
|
if (headingOffScale) HEADINGS_OFF_SCALE.add(composed);
|
|
23248
23522
|
return composed;
|
|
@@ -23268,4 +23542,4 @@ function resolveCanvasDimensions(input) {
|
|
|
23268
23542
|
return { width, height };
|
|
23269
23543
|
}
|
|
23270
23544
|
|
|
23271
|
-
export { ARRANGEMENTS, ARRANGEMENT_CARDS_MAX, ARRANGEMENT_GROWTH, ARRANGEMENT_LINE_POINTS, ARRANGEMENT_MAX, ARRANGEMENT_TEXT_MARGIN, ARROW_ADJUST, ASCII_QUOTE_MARKS, AUTO_FIT_MIN_KEPT, AUTO_LAYOUT, BODY_LINE_PITCH, BUILT_IN_MASKS, CALM_PICTURE_SPREAD, CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CARD_BORDER_MIX, CARD_FILL_SPACE, CARD_INSET, CARD_RADIUS, CARD_SURFACE_MIN_CONTRAST, CARD_SURFACE_MIX, CARD_TEXT_MARGIN, CARD_TEXT_MIN_CONTRAST, CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CELL_CARD_INSET, CHART_AXIS_MAX_OVERSHOOT, CHART_BAR_GAP_WIDTH, CHART_CONTEXT_FOCUS_DIFFERENCE, CHART_CONTEXT_LABELED_MIN_CONTRAST, CHART_CONTEXT_MIN_CONTRAST, CHART_DARK_SERIES_MIN_CONTRAST, CHART_EMPHASIS_MIN_CONTRAST, CHART_EMPHASIS_MIN_LIGHTNESS_STEP, CHART_HEADER_LEGEND_ROWS, CHART_HEADER_MAX_LEGEND, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_LABELED_ZERO_SHARE, CHART_LEAD_LIGHTNESS_STEP, CHART_LONE_MAX_HEIGHT_RATIO, CHART_MAX_HEIGHT_RATIO, CHART_MAX_INTERVALS, CHART_MAX_PLOT_ASPECT, CHART_MIN_PLOT_PX, CHART_MIN_PLOT_SHARE, CHART_MIN_TICK_SPACING_PX, CHART_RADAR_MAX_HEIGHT_RATIO, CHART_REFERENCE_TYPES, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_SERIES_SOFT_MIX, CHART_SERIES_TIER_SIZE, CHART_SERIES_TINT_MIX, CHART_SLICE_LABEL_MIN_RADIUS, CHART_SLICE_MAX_SHIFT, CHART_SLICE_SEPARATOR_PX, CHART_TEXT_FLOOR_PX, CHART_TEXT_PX, CHART_TYPES, CHART_VALUE_LIST_MAX_ROWS, CHART_VALUE_LIST_SMALL_SLICE, CHECK_TILE_MAX, CHECK_TILE_MAX_CHARACTERS, CHECK_TILE_MAX_LINES, CHECK_TILE_MIN, CHEVRON_ADJUST, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_NOMINAL_SIZE, CODE_PANEL_BACKGROUND, CODE_PANEL_DARK_SHADE, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, CONNECTOR_ROUTES, CONNECTOR_STANDOFF, CONNECTOR_STROKE_COLOR, CONNECTOR_STROKE_WIDTH, CYCLE_ARROW, CYCLE_ARROW_ADJUST, CYCLE_ARROW_LIGHTEN, CYCLE_DIAMETER, CYCLE_RADIUS, CYCLE_RING_MARGIN, CYCLE_RING_NODE, CYCLE_TWO, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT, DEFAULT_SHAPE_STYLE, DEFAULT_VARIABLE_DATE_FORMAT, DESIGN_HINT_KEYS, DIAGRAM_BORDER_MIN_CONTRAST, DIAGRAM_LINE_MIN_CONTRAST, DIAGRAM_NOMINAL_SIZE, DIAGRAM_SECONDARY_FLOOR, DIAGRAM_SHAPE_FAMILIES, DIAGRAM_SURFACE_ALT_MIX, DIAGRAM_SURFACE_MIX, DIAGRAM_SYNTAXES, DISPLAY_LINE_PITCH, DISPLAY_SIZE_FACTOR, DISPLAY_TRACKING, DOT_LAYOUT_ENGINES, DOT_SHAPES, EMPHASIS_BAND_MAX_CHARACTERS, EMPHASIS_BAND_MAX_SHARE, EMPHASIS_NOTE_LINES, EMPHASIS_PILL_MAX_CHARACTERS, EMPHASIS_PILL_SIZE, EMPHASIS_SURFACE_MIN_CONTRAST, EMPHASIS_TAKEAWAY_MAX_CHARACTERS, EMPHASIS_TEXT_MIN_CONTRAST, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, EYEBROW_GAP, EYEBROW_LABEL_CHARS, EYEBROW_LABEL_WORDS, EYEBROW_MAX_SIZE, EYEBROW_MIN_SIZE, EYEBROW_SHARE, EYEBROW_TAG_SIZE, EYEBROW_TEXT_KIND, EYEBROW_TRACKING, FEATURED_LABEL_MAX_CHARACTERS, FEATURED_LABEL_MAX_WORDS, FEATURED_MARK_MAX_CHARACTERS, FEATURED_MAX_CELLS, FIGURE_CEILING, FIGURE_ROW_MAX, FIGURE_ROW_MIN, FIGURE_WORDS, FLOW_ROUND_ADJUST, FONT_SIZE_GRID_PER_PX, FOOTNOTE_MAX_RATIO, FURNITURE_GAP, FURNITURE_IMAGE_SHARE, FURNITURE_ZONE_GUTTER, GROUPED_LABEL_CODE, HALF_STEPPED, HEADING_AREAS, HEADING_DISPLAY_SIZES, HISTOGRAM_LABEL_SLOT, HISTOGRAM_MIN_BINS, ICON_CARD_DESCRIPTION, ICON_CARD_DESCRIPTION_CHARACTERS, ICON_CARD_FILL, ICON_CARD_LABEL_CHARACTERS, ICON_CARD_LABEL_WORDS, ICON_CARD_MAX, ICON_CARD_MIN, ICON_CHIP, ICON_CHIP_COMPACT, ICON_CHIP_GAP, ICON_CHIP_TINT, ICON_GLYPH, ICON_MIN_CONTRAST, ICON_VIEWBOX, JOINED_FIXED_MAX, LANGUAGES, LAYOUT_BODY_KINDS, LEAD_NOMINAL_SIZE, LINEAR_ARRANGEMENTS, LINEAR_TEXT_MARGINS, LIST_ACCENT_RULE_WIDTH, LIST_DISPLAY_GAP, LIST_DISPLAY_RULE, LIST_DISPLAY_SCALE, LIST_HEADING_SCALE, LIST_MARKERS, LIST_NOMINAL_SIZE, LIST_NUMERAL_GAP, LIST_NUMERAL_SCALE, LIST_QUESTION_LINES, LIST_ROWS_GAP, LIST_ROWS_LABEL_SHARE, LIST_ROWS_SPREAD, LIST_RULE_WIDTH, LIST_WHOLE_ENTRIES, LOGO_SHAPES, LONE_DISPLAY_SIZES, LONE_FILL, LONE_METRIC_TARGET, LONE_TARGET, MATRIX_BACKGROUND_LIGHTEN, MATRIX_ENTRIES, MATRIX_GAP, MATRIX_INSET, MATRIX_QUADRANT, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_REGION_BLOCKS, MAX_REGION_DEPTH, MAX_REGION_ENTRIES, MAX_ROMAN_VALUE, MAX_TEMPLATE_TRACKS, MESSAGE_CEILINGS, MESSAGE_DISPLAY_LINES, MESSAGE_DISPLAY_SIZE, METRIC_BAND_MIN_COLUMN, METRIC_BAND_RATIO, METRIC_BAND_VALUE_SHARE, METRIC_DISPLAY_HEIGHT, METRIC_DISPLAY_SIZES, METRIC_DISPLAY_WIDTH, METRIC_ICON_TEXT, METRIC_PILL_PAD_X, METRIC_PILL_PAD_Y, METRIC_PILL_RISE, METRIC_ROLE_VALUE_SIZE, METRIC_TILE_VALUE_SHARE, METRIC_TREND_ARROW_GAP, METRIC_TREND_ARROW_SIZE, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, METRIC_UNIT_GAP, METRIC_UNIT_SHARE, METRIC_VALUE_MIN_CONTRAST, MIN_MEASURE_CHARS, MM_PER_PX, MOVED_ROW_MAX, NEUTRAL_SHARES, NOTE_PEER_RATIO, NOTE_PEER_WORDS, NUMBERING_STYLES, NUMBERING_SUFFIXES, NUMBERING_SYSTEMS, NUMBER_GROUPING_MIN, NUMBER_LOCALES, NUMBER_LOCALE_SOURCE, NUMBER_SEPARATOR_OVERRIDES, NUMERAL_SHAPES, NUMERAL_TAKEAWAYS, OPFCatalogsOptionError, OPFCompositionError, OPFLayoutTemplateError, OPFUnresolvedReferenceError, OPFVariableError, OPF_ARROW_LENGTH, OPF_ARROW_ROOM, OPF_ARROW_THICKNESS, OPF_CHEVRON_DEPTH, OPF_COLUMN_ARROW_LENGTH, OPF_COLUMN_ARROW_THICKNESS, OPF_COLUMN_ROOM, OPF_LAYOUT_DESIGNS, OPF_LAYOUT_KIND, OPF_LAYOUT_MAX, OPF_LINES_MAX, OVERLAY_ANCHOR_SHARE, OVERLAY_BODY_SHARE, OVERLAY_EDGES, OVERLAY_LAYERS, PAIR_ARROW_HEIGHT, PAIR_ARROW_MARGIN, PAIR_ARROW_WIDTH, PAIR_FIGURE_KINDS, PAIR_GRID_ANSWER, PAIR_GRID_MIN, PAIR_GRID_QUESTION, PAIR_LENGTH_RATIO, PANEL_SCRIM_LIMIT, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, PICTURE_PANEL_SHARES, PICTURE_STROKE_WIDTH, PICTURE_TEXT_COLUMNS, PICTURE_TEXT_PLACEMENTS, PILLAR_MAX, PILLAR_WORD_MAX, PLACED_TILE_LINES, PLACED_TILE_SHARE, PLANTUML_DIAGRAMS, PORTRAIT_FOCUS_Y, PORTRAIT_GAP, PORTRAIT_MIN, PORTRAIT_MODES, PORTRAIT_SIDE_CHARS, PORTRAIT_SIDE_FILL, PORTRAIT_SIDE_MAX, PORTRAIT_SIDE_SHARE, PORTRAIT_SIDE_SHARES, PORTRAIT_TALLEST, PORTRAIT_TEXT_SIZE, PORTRAIT_TOP_MAX, PORTRAIT_WIDEST, PROMOTED_REGION_KEY, PROSE_NOMINAL_SIZE, PYRAMID_MAX_ASPECT, PYRAMID_STEPS_ASPECT, PYRAMID_STEPS_SHARE, PYRAMID_TEXT_WIDTH, PositionRangeError, QUOTE_MARK, QUOTE_MARKS, QUOTE_NOMINAL_SIZE, QUOTE_PORTRAIT_GAP, QUOTE_PORTRAIT_MIN_WIDTH, QUOTE_PORTRAIT_SHARE, QUOTE_PORTRAIT_STEP, QUOTE_PULL_LINES, QUOTE_PULL_MAX_CHARACTERS, QUOTE_PULL_PREFIX, QUOTE_PULL_ROLE_SEPARATOR, QUOTE_PULL_RULE, QUOTE_SOURCE_SEPARATOR, RADAR_BOTTOM_LEGEND_GAIN, REGION_ANCHORS, REGION_FLOWS, REGION_KINDS, REGION_ROLES, RESERVED_REGION_NAMES, ROUND_RECT_ADJUST, ROW_LABEL_CHARS, ROW_LABEL_WORDS, RUN_IN_HEADING_CHARS, SALIENT_LIMIT, SCRIM_FADE, SCRIM_MARGIN, SCRIM_TARGET_CONTRAST, SHAPE_BLOCK_KEYS, SHAPE_EFFECT_KEYS, SHAPE_PADDING, SHAPE_PRESETS, SHAPE_STROKE_WIDTH, SHAPE_STYLES, SHORT_MESSAGE_WORDS, SHORT_TEXT_WORDS, SLIDE_SCOPED_BUILTINS, SMALL_CHART_MAX_POINTS, SMALL_CHART_MAX_SERIES, SMART_ART_DOMAIN, SMART_ART_LAYOUTS, SMART_ART_NAMES, SMART_ART_OPF_DOMAIN, SMART_ART_SCALES, SOCIAL_PLATFORMS, STEP_BADGE, STEP_BADGE_GAP, STEP_FLOW_CHARACTERS, STEP_FLOW_MAX, STEP_FLOW_MIN, STUB_LINE_SHARE, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, TABLE_HIGHLIGHT_MIX, TABLE_NOMINAL_SIZE, TABLE_NUMERIC_SHARE, TEAM_AVATAR, TERM_WORDS, TEXT_ONLY_LABELS, TEXT_TILE_CHARACTERS, TEXT_TILE_LINES, TEXT_TILE_MARKER, TEXT_TILE_MAX, TEXT_TILE_MIN, THEME_DESIGN_KEYS, TIER_MAX, TIER_VALUE_SIZES, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_STATUS_WORDS, TIMELINE_TEXT_MIN_CONTRAST, TITLE_RULE_SIZE, VARIABLE_KINDS, alignBarRows, allocateRows, annotationText, applyColorTransform, applyHslTransforms, applyLuminance, arrangementPaint, arrangementTree, asciiDigits, autoImageFit, bindNoBreak, bindRegions, blockKind, capitalsLabel, captionSettings, cardGridColumns, cardNodes, catalogGroupDeclared, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartAxisFraction, chartAxisScale, chartBarGeometry, chartBarSeriesOffset, chartCategoriesInTime, chartColorForFill, chartComboAxes, chartContextColor, chartContextColors, chartDoughnut, chartDrawDiagnostics, chartDrawPlan, chartEmphasisColors, chartEndLabels, chartFocusContextColors, chartHeader, chartHeaderCaption, chartHighlightColors, chartHighlightMarks, chartHistogram, chartIntervalsFor, chartLabelText, chartLayer, chartLayerDataLabels, chartNumber, chartNumberFixesByCell, chartNumberLanguage, chartNumericAxes, chartOptionSupport, chartOptionTarget, chartPaletteForFill, chartPlotBox, chartPlotInset, chartRadarLayout, chartReferenceSources, chartReferences, chartRingLabels, chartSchemeSeries, chartSeriesLabelColor, chartSeriesPalette, chartSeriesStrokes, chartSliceLabels, chartSlicePlan, chartSlideFocus, chartSoftColors, chartStack, chartTextSize, chartTitleFocus, chartValueAxis, chartValueAxisHidden, chartValueList, chartWaterfall, chartWaterfallColors, checkCatalogsOption, checkDiagram, checkMarkPoints, chevronNodes, chooseConnectorSites, choosePictureText, citationMarkerText, clrMapAttributes, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeHighlightSlice, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForRoles, codeSyntaxPaletteForScheme, coerceVariableValue, collectCitations, colorContrast, colorMapFor, colorTransform, composeLayoutAreas, composeShape, composeSlide, compositeLayoutDefinition, connectorAdjustPreset, connectorRoute, coverKept, cycleAspect, cycleFrame, cycleLoop, cycleNodes, cycleRing, datasetDiagnostics, deckBackgroundIsChosen, deckBackgroundIsFixed, defaultImageFocus, defaultSlideBackground, diagramPalette, diagramPayload, diagramsPending, displayDepth, displayFrom, displayTracks, documentIcons, dotToMermaid, dottedPath, embedIcons, embeddedCopy, emphasisSurface, endLabelText, ensureDiagrams, ensureIcons, ensureShapes, evaluateLayoutDefinition, eyebrowCaps, eyebrowLabel, eyebrowSize, featuredCells, figureList, figureText, fitImage, fitList, fitRichText, fitText, flowNodes, focusHits, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, formatNumber, formatPercentNumber, formatVariableNumber, frameToSlide, fromExcelNumberFormat, grayOfLuminance, gridFlowShape, groupBinding, groupNumber, groupingNode, groupsAxisTicks, groupsDataRange, groupsThousands, hasBuiltinDependency, hasContentVariables, hasOverlayShapes, histogramBins, histogramEdgeDecimals, histogramEdgeFormat, histogramEdgeText, horizontalBarPlot, iconColors, iconFromSvg, iconIssue, iconPathCommands, iconPathData, iconsPending, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, instantiateForValidation, intrinsicImageAspect, intrinsicImageSize, isColorVariant, isDarkColor, isDatasetRef, isFixedBackground, isLabelText, isLayoutTemplate, isLinearArrangement, isOverlayConnector, isPlaceLabel, isPresetShape, isRecord, isShapeBlock, isSupportedNumberingSystem, isTemplate, isTimeFieldTitle, isWrappedInQuoteMarks, isXYChartType, isolateNumbers, itemAlignment, itemizeScripts, languageInEffect, layoutArrangement, layoutCaption, layoutCode, layoutColorVariant, layoutContent, layoutDiagram, layoutEntries, layoutFootnotes, layoutFurniture, layoutMetric, layoutQuote, layoutRegion, layoutStructure, layoutTable, layoutTemplate, layoutTemplateIssues, layoutTimeline, layoutVariantApplies, layoutVariantKind, layoutWatermark, lineMayStartAt, linePitch, linearDesign, linearMargins, linearNodes, listBuiltinVariables, listColumnBreaks, listGridShape, listNumberLabel, listNumbers, listVariables, localizeDigits, localizeNumberParts, localizeNumberText, localizePatternNumber, lonePayload, luminanceGrid, majorityKind, markLabelColor, markQuote, matrixNodes, matrixQuadrants, matrixSquare, maxIntervalsFor, measureMonospaceText, measureText, measureTextOutline, messageCeiling, messageCharacters, messageWords, metricPillFill, metricTrendColor, metricTrendMark, metricTrendPoints, metricValueColor, monthOf, nativeTreeGeometry, nearIconNames, niceScale, nodeWidthAt, normalizeColorVariant, normalizeHexColor, normalizeLanguageFamily, numberFormatError, numberLocale, numberRanges, numberingAtLevel, numberingFindings, numberingStyleDraws, numberingSystemExtension, numberingSystemOf, numeralScripts, numeralShapePrefix, numericText, oneMessageField, opfLayoutGeometry, opfSmartArtUnavailable, overlayIssues, overlaysDrawBody, paintDiagram, paintDiagramGroup, pairEntry, paragraphDirection, paragraphDirectionAt, paretoPlan, parseIconReference, parseReference, pathFor, patternBitmap, patternRuns, physicalAlignment, pictureOverlay, pictureScrims, placeEndLabels, placeIconCommands, placeReferences, placeStackNames, placeTextLines, placedImageBlocks, plainLanguageTag, plantumlToMermaid, pointerPath, presetAspect, presetMask, presetTextRect, promotedRegionKeys, provenanceOf, pyramidFrame, pyramidNodes, pyramidSteps, questionText, quoteLanguage, quoteMarksFor, readableSchemeColor, readingRows, recordReferenceSites, rectSites, referencesSlide, refreshChartMarks, refreshEndLabels, regionAccepts, regionRoleRank, registeredCatalog, relatedName, repeatedPairs, representablePositionBox, resolveCanvasDimensions, resolveChartColors, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveDesignRecords, resolveFontFamilies, resolveFontScheme, resolveIcon, resolveLogo, resolveNumbering, resolvePatternPreset, resolveReference, resolveScriptFonts, resolveSlideDirection, resolveSlideVariables, resolveSocialProfile, resolveTableData, resolveTextStyle, resolveVariables, restackForRows, rightArrowPoints, rootNodes, rowLabel, runInHeading, sampledGrays, sampledWeight, scorePictureText, scottBinCount, scrimGeometry, scrimOpacity, scriptFontRole, scriptOfCharacter, shapeIssues, shapeSites, shapeStyleLook, shapeTextColor, shapesPending, shareHeights, shareSiblingChartAxes, shareSiblingPlots, sliceNumberedItems, slideBlockIds, slideCitations, slideFocusSources, slideTokenSpans, smallChart, smartArtScript, smartArtUnavailable, snapFontSizeDown, snapFontSizeUp, softenChartPalette, stackCategoryValues, stackedText, statementMessage, stubLine, styledText, suggestChartNumberFix, supportedNumberingSystems, surfaceAltColor, tableCellDisplayValue, tableGrid, tableHighlightColor, tableHighlightRows, tableKeyText, tableRowBoundaries, tableSlideFocus, textColorForFill, textInkBox, textLength, textWidthMeasurer, timelineMarkerShapes, timelineStatusWordsFor, timelineTextColor, toExcelNumberFormat, tokenizeCode, trackingWidth, translatePathData, turnedShapeBox, unbindNoBreak, unresolvedReference, unusedDatasets, unwrapQuoteMarks, usesSlideBuiltin, variableDeclarations, vennNodes, verticalFlowNodes, visitContentPayloads, visualReadingOrder, walkCitationRuns, waterfallLabelText, waterfallRoles, waterfallSignedFormat, waterfallSteps, wrapText };
|
|
23545
|
+
export { ARRANGEMENTS, ARRANGEMENT_CARDS_MAX, ARRANGEMENT_GROWTH, ARRANGEMENT_LINE_POINTS, ARRANGEMENT_MAX, ARRANGEMENT_TEXT_MARGIN, ARROW_ADJUST, ASCII_QUOTE_MARKS, AUTO_FIT_MIN_KEPT, BODY_LINE_PITCH, BUILT_IN_MASKS, CALM_PICTURE_SPREAD, CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CARD_BORDER_MIX, CARD_FILL_SPACE, CARD_INSET, CARD_RADIUS, CARD_SURFACE_MIN_CONTRAST, CARD_SURFACE_MIX, CARD_TEXT_MARGIN, CARD_TEXT_MIN_CONTRAST, CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CELL_CARD_INSET, CHART_AXIS_MAX_OVERSHOOT, CHART_BAR_GAP_WIDTH, CHART_CONTEXT_FOCUS_DIFFERENCE, CHART_CONTEXT_LABELED_MIN_CONTRAST, CHART_CONTEXT_MIN_CONTRAST, CHART_DARK_SERIES_MIN_CONTRAST, CHART_EMPHASIS_MIN_CONTRAST, CHART_EMPHASIS_MIN_LIGHTNESS_STEP, CHART_HEADER_LEGEND_ROWS, CHART_HEADER_MAX_LEGEND, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_LABELED_ZERO_SHARE, CHART_LEAD_LIGHTNESS_STEP, CHART_LONE_MAX_HEIGHT_RATIO, CHART_MAX_HEIGHT_RATIO, CHART_MAX_INTERVALS, CHART_MAX_PLOT_ASPECT, CHART_MIN_PLOT_PX, CHART_MIN_PLOT_SHARE, CHART_MIN_TICK_SPACING_PX, CHART_RADAR_MAX_HEIGHT_RATIO, CHART_REFERENCE_TYPES, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_SERIES_SOFT_MIX, CHART_SERIES_TIER_SIZE, CHART_SERIES_TINT_MIX, CHART_SLICE_LABEL_MIN_RADIUS, CHART_SLICE_MAX_SHIFT, CHART_SLICE_SEPARATOR_PX, CHART_TEXT_FLOOR_PX, CHART_TEXT_PX, CHART_TYPES, CHART_VALUE_LIST_MAX_ROWS, CHART_VALUE_LIST_SMALL_SLICE, CHECK_TILE_MAX, CHECK_TILE_MAX_CHARACTERS, CHECK_TILE_MAX_LINES, CHECK_TILE_MIN, CHEVRON_ADJUST, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_NOMINAL_SIZE, CODE_PANEL_BACKGROUND, CODE_PANEL_DARK_SHADE, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, CONNECTOR_ROUTES, CONNECTOR_STANDOFF, CONNECTOR_STROKE_COLOR, CONNECTOR_STROKE_WIDTH, CYCLE_ARROW, CYCLE_ARROW_ADJUST, CYCLE_ARROW_LIGHTEN, CYCLE_DIAMETER, CYCLE_RADIUS, CYCLE_RING_MARGIN, CYCLE_RING_NODE, CYCLE_TWO, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT, DEFAULT_SHAPE_STYLE, DEFAULT_VARIABLE_DATE_FORMAT, DESIGN_HINT_KEYS, DIAGRAM_BORDER_MIN_CONTRAST, DIAGRAM_LINE_MIN_CONTRAST, DIAGRAM_NOMINAL_SIZE, DIAGRAM_SECONDARY_FLOOR, DIAGRAM_SHAPE_FAMILIES, DIAGRAM_SURFACE_ALT_MIX, DIAGRAM_SURFACE_MIX, DIAGRAM_SYNTAXES, DISPLAY_LINE_PITCH, DISPLAY_SIZE_FACTOR, DISPLAY_TRACKING, DOT_LAYOUT_ENGINES, DOT_SHAPES, EMPHASIS_BAND_MAX_CHARACTERS, EMPHASIS_BAND_MAX_SHARE, EMPHASIS_NOTE_LINES, EMPHASIS_PILL_MAX_CHARACTERS, EMPHASIS_PILL_SIZE, EMPHASIS_SURFACE_MIN_CONTRAST, EMPHASIS_TAKEAWAY_MAX_CHARACTERS, EMPHASIS_TEXT_MIN_CONTRAST, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, EYEBROW_GAP, EYEBROW_LABEL_CHARS, EYEBROW_LABEL_WORDS, EYEBROW_MAX_SIZE, EYEBROW_MIN_SIZE, EYEBROW_SHARE, EYEBROW_TAG_SIZE, EYEBROW_TEXT_KIND, EYEBROW_TRACKING, FEATURED_LABEL_MAX_CHARACTERS, FEATURED_LABEL_MAX_WORDS, FEATURED_MARK_MAX_CHARACTERS, FEATURED_MAX_CELLS, FIGURE_CEILING, FIGURE_ROW_MAX, FIGURE_ROW_MIN, FIGURE_WORDS, FLOW_ROUND_ADJUST, FONT_SIZE_GRID_PER_PX, FOOTNOTE_MAX_RATIO, FURNITURE_GAP, FURNITURE_IMAGE_SHARE, FURNITURE_ZONE_GUTTER, GROUPED_LABEL_CODE, HALF_STEPPED, HEADING_AREAS, HEADING_DISPLAY_SIZES, HISTOGRAM_LABEL_SLOT, HISTOGRAM_MIN_BINS, ICON_CARD_DESCRIPTION, ICON_CARD_DESCRIPTION_CHARACTERS, ICON_CARD_FILL, ICON_CARD_LABEL_CHARACTERS, ICON_CARD_LABEL_WORDS, ICON_CARD_MAX, ICON_CARD_MIN, ICON_CHIP, ICON_CHIP_COMPACT, ICON_CHIP_GAP, ICON_CHIP_TINT, ICON_GLYPH, ICON_MIN_CONTRAST, ICON_VIEWBOX, JOINED_FIXED_MAX, LANGUAGES, LAYOUT_BODY_KINDS, LEAD_NOMINAL_SIZE, LINEAR_ARRANGEMENTS, LINEAR_TEXT_MARGINS, LIST_ACCENT_RULE_WIDTH, LIST_DISPLAY_GAP, LIST_DISPLAY_RULE, LIST_DISPLAY_SCALE, LIST_HEADING_SCALE, LIST_MARKERS, LIST_NOMINAL_SIZE, LIST_NUMERAL_GAP, LIST_NUMERAL_SCALE, LIST_QUESTION_LINES, LIST_ROWS_GAP, LIST_ROWS_LABEL_SHARE, LIST_ROWS_SPREAD, LIST_RULE_WIDTH, LIST_WHOLE_ENTRIES, LOGO_SHAPES, LONE_DISPLAY_SIZES, LONE_FILL, LONE_METRIC_TARGET, LONE_TARGET, MATRIX_BACKGROUND_LIGHTEN, MATRIX_ENTRIES, MATRIX_GAP, MATRIX_INSET, MATRIX_QUADRANT, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_REGION_BLOCKS, MAX_REGION_DEPTH, MAX_REGION_ENTRIES, MAX_ROMAN_VALUE, MAX_TEMPLATE_TRACKS, MESSAGE_CEILINGS, MESSAGE_DISPLAY_LINES, MESSAGE_DISPLAY_SIZE, METRIC_BAND_MIN_COLUMN, METRIC_BAND_RATIO, METRIC_BAND_VALUE_SHARE, METRIC_DISPLAY_HEIGHT, METRIC_DISPLAY_SIZES, METRIC_DISPLAY_WIDTH, METRIC_ICON_TEXT, METRIC_PILL_PAD_X, METRIC_PILL_PAD_Y, METRIC_PILL_RISE, METRIC_ROLE_VALUE_SIZE, METRIC_TILE_VALUE_SHARE, METRIC_TREND_ARROW_GAP, METRIC_TREND_ARROW_SIZE, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, METRIC_UNIT_GAP, METRIC_UNIT_SHARE, METRIC_VALUE_MIN_CONTRAST, MIN_MEASURE_CHARS, MM_PER_PX, MOVED_ROW_MAX, NEUTRAL_SHARES, NOTE_PEER_RATIO, NOTE_PEER_WORDS, NUMBERING_STYLES, NUMBERING_SUFFIXES, NUMBERING_SYSTEMS, NUMBER_GROUPING_MIN, NUMBER_LOCALES, NUMBER_LOCALE_SOURCE, NUMBER_SEPARATOR_OVERRIDES, NUMERAL_SHAPES, NUMERAL_TAKEAWAYS, OPFCatalogsOptionError, OPFCompositionError, OPFLayoutTemplateError, OPFUnresolvedReferenceError, OPFVariableError, OPF_ARROW_LENGTH, OPF_ARROW_ROOM, OPF_ARROW_THICKNESS, OPF_CHEVRON_DEPTH, OPF_COLUMN_ARROW_LENGTH, OPF_COLUMN_ARROW_THICKNESS, OPF_COLUMN_ROOM, OPF_LAYOUT_DESIGNS, OPF_LAYOUT_KIND, OPF_LAYOUT_MAX, OPF_LINES_MAX, OVERLAY_ANCHOR_SHARE, OVERLAY_BODY_SHARE, OVERLAY_EDGES, OVERLAY_LAYERS, PAIR_ARROW_HEIGHT, PAIR_ARROW_MARGIN, PAIR_ARROW_WIDTH, PAIR_FIGURE_KINDS, PAIR_GRID_ANSWER, PAIR_GRID_MIN, PAIR_GRID_QUESTION, PAIR_LENGTH_RATIO, PANEL_SCRIM_LIMIT, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, PICTURE_PANEL_SHARES, PICTURE_STROKE_WIDTH, PICTURE_TEXT_COLUMNS, PICTURE_TEXT_PLACEMENTS, PILLAR_MAX, PILLAR_WORD_MAX, PLACED_TILE_LINES, PLACED_TILE_SHARE, PLANTUML_DIAGRAMS, PORTRAIT_FOCUS_Y, PORTRAIT_GAP, PORTRAIT_MIN, PORTRAIT_MODES, PORTRAIT_SIDE_CHARS, PORTRAIT_SIDE_FILL, PORTRAIT_SIDE_MAX, PORTRAIT_SIDE_SHARE, PORTRAIT_SIDE_SHARES, PORTRAIT_TALLEST, PORTRAIT_TEXT_SIZE, PORTRAIT_TOP_MAX, PORTRAIT_WIDEST, PROSE_NOMINAL_SIZE, PYRAMID_MAX_ASPECT, PYRAMID_STEPS_ASPECT, PYRAMID_STEPS_SHARE, PYRAMID_TEXT_WIDTH, PositionRangeError, QUOTE_MARK, QUOTE_MARKS, QUOTE_NOMINAL_SIZE, QUOTE_PORTRAIT_GAP, QUOTE_PORTRAIT_MIN_WIDTH, QUOTE_PORTRAIT_SHARE, QUOTE_PORTRAIT_STEP, QUOTE_PULL_LINES, QUOTE_PULL_MAX_CHARACTERS, QUOTE_PULL_PREFIX, QUOTE_PULL_ROLE_SEPARATOR, QUOTE_PULL_RULE, QUOTE_SOURCE_SEPARATOR, RADAR_BOTTOM_LEGEND_GAIN, REGION_ANCHORS, REGION_ARRANGEMENTS, REGION_FLOWS, REGION_KINDS, REGION_ROLES, REMOVED_DESIGN_KEYS, RESERVED_REGION_NAMES, ROUND_RECT_ADJUST, ROW_LABEL_CHARS, ROW_LABEL_WORDS, RUN_IN_HEADING_CHARS, SALIENT_LIMIT, SCRIM_FADE, SCRIM_MARGIN, SCRIM_TARGET_CONTRAST, SEQUENCE_ARRANGEMENTS, SHAPE_BLOCK_KEYS, SHAPE_EFFECT_KEYS, SHAPE_PADDING, SHAPE_PRESETS, SHAPE_STROKE_WIDTH, SHAPE_STYLES, SHORT_MESSAGE_WORDS, SHORT_TEXT_WORDS, SLIDE_SCOPED_BUILTINS, SMALL_CHART_MAX_POINTS, SMALL_CHART_MAX_SERIES, SMART_ART_DOMAIN, SMART_ART_LAYOUTS, SMART_ART_NAMES, SMART_ART_OPF_DOMAIN, SMART_ART_SCALES, SOCIAL_PLATFORMS, STEP_BADGE, STEP_BADGE_GAP, STEP_PROCESS_CHARACTERS, STEP_PROCESS_MAX, STEP_PROCESS_MIN, STUB_LINE_SHARE, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, TABLE_HIGHLIGHT_MIX, TABLE_NOMINAL_SIZE, TABLE_NUMERIC_SHARE, TEAM_AVATAR, TERM_WORDS, TEXT_ONLY_LABELS, TEXT_TILE_CHARACTERS, TEXT_TILE_LINES, TEXT_TILE_MARKER, TEXT_TILE_MAX, TEXT_TILE_MIN, THEME_DESIGN_KEYS, TIER_MAX, TIER_VALUE_SIZES, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_STATUS_WORDS, TIMELINE_TEXT_MIN_CONTRAST, TITLE_BESIDE_SHARE, TITLE_POSITIONS, TITLE_RULE_SIZE, VARIABLE_KINDS, alignBarRows, allocateRows, annotationText, applyColorTransform, applyHslTransforms, applyLuminance, arrangementPaint, arrangementTree, asciiDigits, autoImageFit, bindNoBreak, bindRegions, blockKind, capitalsLabel, captionSettings, cardGridColumns, cardNodes, catalogGroupDeclared, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, cellBlocks, cellsInReadingOrder, chartAxisFraction, chartAxisScale, chartBarGeometry, chartBarSeriesOffset, chartCategoriesInTime, chartColorForFill, chartComboAxes, chartContextColor, chartContextColors, chartDoughnut, chartDrawDiagnostics, chartDrawPlan, chartEmphasisColors, chartEndLabels, chartFocusContextColors, chartHeader, chartHeaderCaption, chartHighlightColors, chartHighlightMarks, chartHistogram, chartIntervalsFor, chartLabelText, chartLayer, chartLayerDataLabels, chartNumber, chartNumberFixesByCell, chartNumberLanguage, chartNumericAxes, chartOptionSupport, chartOptionTarget, chartPaletteForFill, chartPlotBox, chartPlotInset, chartRadarLayout, chartReferenceSources, chartReferences, chartRingLabels, chartSchemeSeries, chartSeriesLabelColor, chartSeriesPalette, chartSeriesStrokes, chartSliceLabels, chartSlicePlan, chartSlideFocus, chartSoftColors, chartStack, chartTextSize, chartTitleFocus, chartValueAxis, chartValueAxisHidden, chartValueList, chartWaterfall, chartWaterfallColors, checkCatalogsOption, checkDiagram, checkMarkPoints, chevronNodes, chooseConnectorSites, choosePictureText, citationMarkerText, clrMapAttributes, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeHighlightSlice, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForRoles, codeSyntaxPaletteForScheme, coerceVariableValue, collectCitations, colorContrast, colorMapFor, colorTransform, composeLayoutAreas, composeShape, composeSlide, compositeLayoutDefinition, connectorAdjustPreset, connectorRoute, coverKept, cycleAspect, cycleFrame, cycleLoop, cycleNodes, cycleRing, datasetDiagnostics, deckBackgroundIsChosen, deckBackgroundIsFixed, defaultImageFocus, defaultSlideBackground, diagramPalette, diagramPayload, diagramsPending, displayDepth, displayFrom, displayTracks, documentIcons, dotToMermaid, dottedPath, embedIcons, embeddedCopy, emphasisSurface, endLabelText, ensureDiagrams, ensureIcons, ensureShapes, evaluateLayoutDefinition, eyebrowCaps, eyebrowLabel, eyebrowSize, featuredCells, figureList, figureText, fitImage, fitList, fitRichText, fitText, flowNodes, focusHits, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, formatNumber, formatPercentNumber, formatVariableNumber, frameToSlide, fromExcelNumberFormat, grayOfLuminance, gridCellSpan, gridCells, gridFlowShape, groupBinding, groupNumber, groupingNode, groupsAxisTicks, groupsDataRange, groupsThousands, hasBuiltinDependency, hasContentVariables, hasOverlayShapes, histogramBins, histogramEdgeDecimals, histogramEdgeFormat, histogramEdgeText, horizontalBarPlot, iconColors, iconFromSvg, iconIssue, iconPathCommands, iconPathData, iconsPending, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, instantiateForValidation, intrinsicImageAspect, intrinsicImageSize, isArrangement, isColorVariant, isDarkColor, isDatasetRef, isFixedBackground, isGridCell, isLabelText, isLayoutTemplate, isLinearArrangement, isOverlayConnector, isPlaceLabel, isPresetShape, isRecord2 as isRecord, isRegionArrangement, isSequenceArrangement, isShapeBlock, isSupportedNumberingSystem, isTemplate, isTimeFieldTitle, isWrappedInQuoteMarks, isXYChartType, isolateNumbers, itemAlignment, itemizeScripts, languageInEffect, languageOfText, layoutArrangement, layoutCaption, layoutCode, layoutColorVariant, layoutContent, layoutDiagram, layoutEntries, layoutFootnotes, layoutFurniture, layoutMetric, layoutQuote, layoutRegion, layoutStructure, layoutTable, layoutTemplate, layoutTemplateIssues, layoutTimeline, layoutVariantApplies, layoutVariantKind, layoutWatermark, lineMayStartAt, linePitch, linearDesign, linearMargins, linearNodes, listBuiltinVariables, listColumnBreaks, listGridShape, listNumberLabel, listNumbers, listVariables, localizeDigits, localizeNumberParts, localizeNumberText, localizePatternNumber, lonePayload, luminanceGrid, majorityKind, markLabelColor, markQuote, matrixNodes, matrixQuadrants, matrixSquare, maxIntervalsFor, measureMonospaceText, measureText, measureTextOutline, messageCeiling, messageCharacters, messageWords, metricPillFill, metricTrendColor, metricTrendMark, metricTrendPoints, metricValueColor, monthOf, nativeTreeGeometry, nearIconNames, nearestGridCell, niceScale, nodeWidthAt, normalizeColorVariant, normalizeHexColor, normalizeLanguageFamily, numberFormatError, numberLocale, numberRanges, numberingAtLevel, numberingFindings, numberingStyleDraws, numberingSystemExtension, numberingSystemOf, numeralScripts, numeralShapePrefix, numericText, oneMessageField, opfLayoutGeometry, opfSmartArtUnavailable, overlayIssues, overlaysDrawBody, paintDiagram, paintDiagramGroup, pairEntry, paragraphDirection, paragraphDirectionAt, paretoPlan, parseIconReference, parseReference, pathFor, patternBitmap, patternRuns, physicalAlignment, pictureOverlay, pictureScrims, placeEndLabels, placeIconCommands, placeReferences, placeStackNames, placeTextLines, placedImageBlocks, plainLanguageTag, plantumlToMermaid, pointerPath, presetAspect, presetMask, presetTextRect, provenanceOf, pyramidFrame, pyramidNodes, pyramidSteps, questionText, quoteLanguage, quoteMarksFor, readableSchemeColor, readingRows, recordReferenceSites, rectSites, referencesSlide, refreshChartMarks, refreshEndLabels, regionAccepts, regionDiagram, regionListColumns, regionRoleRank, regionSequence, registeredCatalog, relatedName, removedLayoutAuto, renamedLayout, renamedLayoutChangesDrawing, renamedLayoutTitlePosition, repeatedPairs, representablePositionBox, resolveCanvasDimensions, resolveChartColors, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveDesignRecords, resolveFontFamilies, resolveFontScheme, resolveIcon, resolveLogo, resolveNumbering, resolvePatternPreset, resolveReference, resolveScriptFonts, resolveSlideDirection, resolveSlideVariables, resolveSocialProfile, resolveTableData, resolveTextStyle, resolveVariables, restackForRows, rightArrowPoints, rootNodes, rowLabel, runInHeading, sampledGrays, sampledWeight, scorePictureText, scottBinCount, scrimGeometry, scrimOpacity, scriptFontRole, scriptOfCharacter, shapeIssues, shapeSites, shapeStyleLook, shapeTextColor, shapesPending, shareHeights, shareSiblingChartAxes, shareSiblingPlots, sliceNumberedItems, slideBlockIds, slideCitations, slideFocusSources, slideTokenSpans, smallChart, smartArtScript, smartArtUnavailable, snapFontSizeDown, snapFontSizeUp, softenChartPalette, stackCategoryValues, stackedText, statementMessage, stubLine, styledText, suggestChartNumberFix, supportedNumberingSystems, surfaceAltColor, tableCellDisplayValue, tableGrid, tableHighlightColor, tableHighlightRows, tableKeyText, tableRowBoundaries, tableSlideFocus, textColorForFill, textInkBox, textLength, textWidthMeasurer, timelineMarkerShapes, timelineStatusWordsFor, timelineTextColor, titleBesideTemplate, toExcelNumberFormat, tokenizeCode, trackingWidth, translatePathData, turnedShapeBox, unbindNoBreak, unresolvedReference, unusedDatasets, unwrapQuoteMarks, usesSlideBuiltin, variableDeclarations, vennNodes, verticalFlowNodes, visitContentPayloads, visualReadingOrder, walkCitationRuns, waterfallLabelText, waterfallRoles, waterfallSignedFormat, waterfallSteps, wrapText };
|