@openpresentation/opf 0.34.1 → 0.34.2
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/dist/browser.js +18 -18
- package/dist/{catalog-refs-CoIrOdAw.d.ts → catalog-refs-wtuudZTe.d.ts} +12 -3
- package/dist/{catalog-schemas-FjLRPtjB.d.ts → catalog-schemas-CSxuFtsu.d.ts} +1 -1
- package/dist/{chunk-HHVQ2SDT.js → chunk-6MSH3KCZ.js} +1 -1
- package/dist/{chunk-SR6T4LKI.js → chunk-AQ3WR3H7.js} +2 -2
- package/dist/{chunk-X72WPTST.js → chunk-EQCZ2SFD.js} +6 -6
- package/dist/chunk-HSXWDXKM.js +1 -0
- package/dist/{chunk-6PMXVP5G.js → chunk-HX4HEJB4.js} +201 -21
- package/dist/{chunk-MAFJ5O2D.js → chunk-IDYYLJCQ.js} +6 -6
- package/dist/{chunk-CJVKOJ6B.js → chunk-IGT4523S.js} +406 -58
- package/dist/{chunk-XLSWZSQS.js → chunk-KJFCHCWV.js} +2 -2
- package/dist/{chunk-ABA2D6X5.js → chunk-MDAXXFAY.js} +2 -2
- package/dist/{chunk-AGYPRTEC.js → chunk-NMZCPZ3R.js} +3 -3
- package/dist/{chunk-2B6GLT2O.js → chunk-P2X4BBW2.js} +1 -1
- package/dist/{chunk-FCSYIBVR.js → chunk-PHOSM2RA.js} +1 -1
- package/dist/{chunk-MUILZGRY.js → chunk-RM4Z7ZSW.js} +4 -4
- package/dist/{chunk-244OPLAV.js → chunk-UKI43JE6.js} +1 -1
- package/dist/{chunk-AAWHOCXS.js → chunk-V4G3BYPY.js} +2 -2
- package/dist/{chunk-LCT5ZV3Q.js → chunk-VI7VWDTN.js} +17 -1
- package/dist/{chunk-CQXBGZQP.js → chunk-VVPPMHP6.js} +5 -5
- package/dist/{chunk-AEHDXNZX.js → chunk-WBPXRUZT.js} +459 -270
- package/dist/{chunk-L3MCLD3X.js → chunk-XLXCXEVF.js} +2 -2
- package/dist/{composition-CvtvgBDE.d.ts → composition-DF07Ha4R.d.ts} +154 -135
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-CyNRlWGw.d.ts → conversion-52ki0lfZ.d.ts} +9 -7
- package/dist/conversion-F3HSCFOV.js +25 -0
- package/dist/convert.d.ts +2 -2
- package/dist/convert.js +7 -7
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-BVlQZ42f.d.ts → deck-report-C3EsoHC3.d.ts} +3 -3
- package/dist/deck.d.ts +5 -5
- package/dist/deck.js +11 -11
- package/dist/diff.js +4 -4
- package/dist/docs.js +16 -16
- package/dist/example-files/technical/assets/alice.png +0 -0
- package/dist/example-files/technical/assets/context-photo.png +0 -0
- package/dist/example-files/technical/assets/cover-image.png +0 -0
- package/dist/example-files/technical/assets/cover.png +0 -0
- package/dist/example-files/technical/assets/diagram.svg +1 -0
- package/dist/example-files/technical/assets/icon.svg +1 -0
- package/dist/example-files/technical/assets/logo-dark.svg +1 -0
- package/dist/example-files/technical/assets/logo-light.svg +1 -0
- package/dist/example-files/technical/assets/logo.svg +1 -0
- package/dist/example-files/technical/assets/primary-logo.svg +1 -0
- package/dist/example-files/technical/assets/product-shot.png +0 -0
- package/dist/example-files/technical/assets/watermark.png +0 -0
- package/dist/example-files/technical/assets/wordmark.svg +1 -0
- package/dist/examples.js +49 -1
- package/dist/format.js +2 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +12 -12
- package/dist/index.js +21 -21
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +21 -7
- package/dist/node-engine.js +37 -21
- package/dist/{pagination-CZQQYk7L.d.ts → pagination-Do7vNgU-.d.ts} +2 -2
- package/dist/pagination.d.ts +3 -3
- package/dist/pagination.js +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-s9262acV.d.ts → presentation-ANs2WkaS.d.ts} +8 -0
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +3 -3
- package/dist/schemas.js +1 -1
- package/dist/source.d.ts +5 -0
- package/dist/source.js +10 -10
- package/dist/spec/schemas/icon-set.schema.json +5 -0
- package/dist/spec/schemas/opf.schema.json +9 -1
- package/dist/symbol-font-encodings.js +12695 -12736
- package/dist/types.d.ts +2 -2
- package/dist/{validation-types-CYbsUuZ9.d.ts → validation-types-BNS41nzb.d.ts} +2 -2
- package/dist/validator.d.ts +4 -4
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.js +7 -7
- package/package.json +7 -7
- package/dist/chunk-UJZN2ZH6.js +0 -1
- package/dist/conversion-CSQ5EHD2.js +0 -25
|
@@ -7,14 +7,16 @@ function arrangementTree(entries) {
|
|
|
7
7
|
if (!entries.length) return { ok: false, reason: "A tree needs one root entry." };
|
|
8
8
|
const nodes = [], ancestors = [];
|
|
9
9
|
for (const [index, entry] of entries.entries()) {
|
|
10
|
-
const
|
|
11
|
-
const level = explicit === void 0 ? 0 : explicit;
|
|
10
|
+
const object2 = entry !== null && typeof entry === "object" && !Array.isArray(entry) ? entry : void 0;
|
|
11
|
+
const explicit = object2?.level, level = explicit === void 0 ? 0 : explicit, assistant = object2?.assistant === true;
|
|
12
12
|
if (typeof level !== "number" || !Number.isInteger(level) || level < 0) return { ok: false, index, reason: "A tree entry needs a nonnegative integer level." };
|
|
13
13
|
if (index === 0 && level !== 0) return { ok: false, index, reason: "The first tree entry is its level-zero root." };
|
|
14
14
|
if (index > 0 && level === 0) return { ok: false, index, reason: "This tree has more than one root; forests need a reported fallback." };
|
|
15
15
|
if (level > ancestors.length) return { ok: false, index, reason: "The entry skips a parent level; depth may grow by only one level at a time." };
|
|
16
|
+
if (index === 0 && assistant) return { ok: false, index, reason: "The root cannot be an assistant." };
|
|
16
17
|
const parent = level === 0 ? void 0 : ancestors[level - 1];
|
|
17
|
-
|
|
18
|
+
if (parent !== void 0 && nodes[parent]?.assistant) return { ok: false, index, reason: "An assistant has no reports." };
|
|
19
|
+
const node = { index, level, ...parent === void 0 ? {} : { parent }, children: [], ...assistant ? { assistant: true } : {} };
|
|
18
20
|
nodes.push(node);
|
|
19
21
|
if (parent !== void 0) {
|
|
20
22
|
const ancestor = nodes[parent];
|
|
@@ -33,6 +35,11 @@ function nativeTreeGeometry(kind2, frame, entries) {
|
|
|
33
35
|
if (![frame.x, frame.y, frame.width, frame.height].every(Number.isFinite) || frame.width <= 0 || frame.height <= 0) return { ok: false, reason: "A native tree frame needs finite coordinates and positive dimensions." };
|
|
34
36
|
const tree = arrangementTree(entries);
|
|
35
37
|
if (!tree.ok) return tree;
|
|
38
|
+
const assistant = (index) => tree.nodes[index]?.assistant === true;
|
|
39
|
+
if (kind2 === "hierarchy") {
|
|
40
|
+
const at3 = tree.nodes.findIndex((node) => node.assistant);
|
|
41
|
+
if (at3 >= 0) return { ok: false, index: at3, reason: "A hierarchy has no assistants." };
|
|
42
|
+
}
|
|
36
43
|
const org = kind2 === "org-chart", span = org ? 2 : 10 / 9, gap = org ? 0.42 : 1 / 9, stride = org ? 1.42 : 1111 / 1200, height = org ? 1 : 127 / 200, frontX = org ? 0 : 1 / 9, frontY = org ? 0 : 19 / 180;
|
|
37
44
|
const models = [];
|
|
38
45
|
for (let index = tree.nodes.length - 1; index >= 0; index--) {
|
|
@@ -42,12 +49,18 @@ function nativeTreeGeometry(kind2, frame, entries) {
|
|
|
42
49
|
models[index] = { root: 0, nodes: [{ index, x: 0, row: 0 }] };
|
|
43
50
|
continue;
|
|
44
51
|
}
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
const assistants = semantic.children.filter(assistant), reports = semantic.children.filter((child) => !assistant(child)), below = assistants.length;
|
|
53
|
+
const aside = (x2) => assistants.map((child, row) => ({ index: child, x: x2 + span / 2 + gap, row: row + 1 }));
|
|
54
|
+
if (org && index !== 0 && reports.length && reports.every((child) => tree.nodes[child]?.children.length === 0)) {
|
|
55
|
+
models[index] = { root: 0, nodes: [{ index, x: 0, row: 0 }, ...aside(0), ...reports.map((child, row) => ({ index: child, x: 0.5, row: row + 1 + below }))] };
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if (!reports.length) {
|
|
59
|
+
models[index] = { root: 0, nodes: [{ index, x: 0, row: 0 }, ...aside(0)] };
|
|
47
60
|
continue;
|
|
48
61
|
}
|
|
49
62
|
const positions = [], contour = /* @__PURE__ */ new Map(), roots = [];
|
|
50
|
-
for (const child of
|
|
63
|
+
for (const child of reports) {
|
|
51
64
|
const own3 = models[child];
|
|
52
65
|
if (!own3) return { ok: false, index: child, reason: "A child has no native tree geometry." };
|
|
53
66
|
let shift = 0;
|
|
@@ -58,14 +71,14 @@ function nativeTreeGeometry(kind2, frame, entries) {
|
|
|
58
71
|
roots.push(own3.root + shift);
|
|
59
72
|
for (const node of own3.nodes) {
|
|
60
73
|
const x2 = node.x + shift;
|
|
61
|
-
positions.push({ ...node, x: x2, row: node.row + 1 });
|
|
74
|
+
positions.push({ ...node, x: x2, row: node.row + 1 + below });
|
|
62
75
|
contour.set(node.row, Math.max(contour.get(node.row) ?? -Infinity, x2 + span));
|
|
63
76
|
}
|
|
64
77
|
}
|
|
65
78
|
const first = roots[0], last = roots.at(-1);
|
|
66
79
|
if (first === void 0 || last === void 0) return { ok: false, index, reason: "A parent has no placed child." };
|
|
67
80
|
const x = (first + last) / 2;
|
|
68
|
-
positions.unshift({ index, x, row: 0 });
|
|
81
|
+
positions.unshift({ index, x, row: 0 }, ...aside(x));
|
|
69
82
|
const min = Math.min(...positions.map((node) => node.x));
|
|
70
83
|
models[index] = { root: x - min, nodes: positions.map((node) => ({ ...node, x: node.x - min })) };
|
|
71
84
|
}
|
|
@@ -91,12 +104,22 @@ function nativeTreeGeometry(kind2, frame, entries) {
|
|
|
91
104
|
const parent = nodes[child.parent], semantic = tree.nodes[child.parent];
|
|
92
105
|
if (!parent || !semantic) return { ok: false, index: child.index, reason: "A connector lost its semantic parent." };
|
|
93
106
|
const p = parent.background ?? parent.box, c = child.background ?? child.box;
|
|
94
|
-
const
|
|
107
|
+
const reports = semantic.children.filter((index) => !assistant(index));
|
|
108
|
+
if (assistant(child.index)) {
|
|
109
|
+
const from2 = [p.x + p.width / 2, p.y + p.height], to2 = [c.x, c.y + c.height / 2], points2 = [from2, [from2[0], to2[1]], to2];
|
|
110
|
+
connectors.push({ parent: parent.index, child: child.index, box: { x: from2[0], y: from2[1], width: to2[0] - from2[0], height: to2[1] - from2[1] }, points: points2 });
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
const hanging = org && parent.index !== 0 && reports.length > 0 && reports.every((index) => tree.nodes[index]?.children.length === 0);
|
|
95
114
|
const from = hanging ? [p.x + 0.2 * low, p.y + p.height] : [p.x + p.width / 2, p.y + p.height];
|
|
96
115
|
const to = hanging ? [c.x, c.y + c.height / 2] : [c.x + c.width / 2, c.y];
|
|
97
116
|
const width2 = Math.abs(to[0] - from[0]), straight = width2 < 1e-6;
|
|
98
117
|
const box = { x: straight ? from[0] - 4.8 : Math.min(from[0], to[0]), y: from[1], width: straight ? 9.6 : width2, height: to[1] - from[1] };
|
|
99
|
-
const
|
|
118
|
+
const above = Math.max(parent.box.y + parent.box.height, ...semantic.children.filter(assistant).map((index) => {
|
|
119
|
+
const node = nodes[index];
|
|
120
|
+
return node.box.y + node.box.height;
|
|
121
|
+
}));
|
|
122
|
+
const middle = (above + to[1]) / 2;
|
|
100
123
|
const points = hanging ? [from, [from[0], to[1]], to] : [from, [from[0], middle], [to[0], middle], to];
|
|
101
124
|
connectors.push({ parent: parent.index, child: child.index, box, points });
|
|
102
125
|
}
|
|
@@ -2453,9 +2476,31 @@ function formatVariableNumber(value, pattern, language) {
|
|
|
2453
2476
|
return { text: language === void 0 ? `${parts.negative ? "-" : ""}${parts.prefix}${parts.body}${parts.suffix}` : localizePatternNumber(parts, language) };
|
|
2454
2477
|
}
|
|
2455
2478
|
function patternNumberParts(value, pattern) {
|
|
2479
|
+
const sections = pattern.split(";");
|
|
2480
|
+
if (sections.length > 3) return { error: `Number format '${pattern}' has ${sections.length} sections; a format has at most three (positive;negative;zero).` };
|
|
2481
|
+
if (sections.length === 1) return sectionNumberParts(value, pattern, pattern);
|
|
2482
|
+
for (const section of sections) {
|
|
2483
|
+
const checked2 = sectionNumberParts(0, section, pattern);
|
|
2484
|
+
if ("error" in checked2) return checked2;
|
|
2485
|
+
}
|
|
2486
|
+
if (value < 0) return sectionNumberParts(Math.abs(value), sections[1], pattern);
|
|
2487
|
+
if (value === 0 && sections.length === 3) return sectionNumberParts(0, sections[2], pattern);
|
|
2488
|
+
return sectionNumberParts(value, sections[0], pattern);
|
|
2489
|
+
}
|
|
2490
|
+
function hasNumberFormatSections(pattern) {
|
|
2491
|
+
return typeof pattern === "string" && pattern.includes(";");
|
|
2492
|
+
}
|
|
2493
|
+
function numberFormatSectionFor(pattern, value) {
|
|
2494
|
+
const sections = pattern.split(";");
|
|
2495
|
+
if (sections.length === 1) return pattern;
|
|
2496
|
+
if (value < 0) return sections[1] ?? pattern;
|
|
2497
|
+
if (value === 0 && sections.length === 3) return sections[2] ?? pattern;
|
|
2498
|
+
return sections[0] ?? pattern;
|
|
2499
|
+
}
|
|
2500
|
+
function sectionNumberParts(value, pattern, whole) {
|
|
2456
2501
|
const match = /^([^#0,.]*)((?:[#0,]*)(?:\.[#0]+)?)([\s\S]*)$/.exec(pattern);
|
|
2457
2502
|
const numeric = match?.[2] ?? "";
|
|
2458
|
-
if (!match || !/[#0]/.test(numeric)) return { error: `Number format '${
|
|
2503
|
+
if (!match || !/[#0]/.test(numeric)) return { error: `Number format '${whole}' needs a numeric part of '#' and '0' characters.` };
|
|
2459
2504
|
const prefix = match[1] ?? "";
|
|
2460
2505
|
const suffix = match[3] ?? "";
|
|
2461
2506
|
const [integerPattern = "", decimalPattern2 = ""] = numeric.split(".");
|
|
@@ -2463,9 +2508,9 @@ function patternNumberParts(value, pattern) {
|
|
|
2463
2508
|
const minInteger = [...integerPattern].filter((char) => char === "0").length;
|
|
2464
2509
|
const minDecimals = [...decimalPattern2].filter((char) => char === "0").length;
|
|
2465
2510
|
const maxDecimals = decimalPattern2.length;
|
|
2466
|
-
if (maxDecimals > 100) return { error: `Number format '${
|
|
2511
|
+
if (maxDecimals > 100) return { error: `Number format '${whole}' supports at most 100 decimal places.` };
|
|
2467
2512
|
const scaled = prefix.includes("%") || suffix.includes("%") ? value * 100 : value;
|
|
2468
|
-
if (!Number.isFinite(scaled)) return { error: `Number format '${
|
|
2513
|
+
if (!Number.isFinite(scaled)) return { error: `Number format '${whole}' scales the value beyond the finite number range.` };
|
|
2469
2514
|
const absolute = Math.abs(scaled);
|
|
2470
2515
|
let fixed;
|
|
2471
2516
|
const shifted = Number(`${absolute}e${maxDecimals}`);
|
|
@@ -3121,8 +3166,14 @@ function excelInteger(integer) {
|
|
|
3121
3166
|
}
|
|
3122
3167
|
function toExcelNumberFormat(format) {
|
|
3123
3168
|
if (format === void 0 || format === "") return "General";
|
|
3169
|
+
const sections = format.split(";");
|
|
3170
|
+
if (sections.length > 3) return "General";
|
|
3171
|
+
const codes = sections.map(excelSection);
|
|
3172
|
+
return codes.includes(void 0) ? "General" : codes.join(";");
|
|
3173
|
+
}
|
|
3174
|
+
function excelSection(format) {
|
|
3124
3175
|
const parts = formatParts(format);
|
|
3125
|
-
if (!parts) return
|
|
3176
|
+
if (!parts) return void 0;
|
|
3126
3177
|
const percent = { used: false };
|
|
3127
3178
|
const minDecimals = [...parts.decimals].filter((char) => char === "0").length;
|
|
3128
3179
|
const decimals = parts.decimals ? `.${"0".repeat(minDecimals)}${"#".repeat(parts.decimals.length - minDecimals)}` : "";
|
|
@@ -3161,6 +3212,34 @@ function fromExcelNumberFormat(code) {
|
|
|
3161
3212
|
if (typeof code !== "string") return void 0;
|
|
3162
3213
|
const trimmed = code.trim();
|
|
3163
3214
|
if (trimmed === "" || /^general$/i.test(trimmed)) return void 0;
|
|
3215
|
+
const sections = excelSections(code);
|
|
3216
|
+
if (!sections || sections.length > 3) return void 0;
|
|
3217
|
+
const formats = sections.map(fromExcelSection);
|
|
3218
|
+
return formats.includes(void 0) ? void 0 : formats.join(";");
|
|
3219
|
+
}
|
|
3220
|
+
function excelSections(code) {
|
|
3221
|
+
const sections = [];
|
|
3222
|
+
let start = 0;
|
|
3223
|
+
for (let i = 0; i < code.length; i++) {
|
|
3224
|
+
const char = code[i];
|
|
3225
|
+
if (char === '"') {
|
|
3226
|
+
const end = code.indexOf('"', i + 1);
|
|
3227
|
+
if (end < 0) return void 0;
|
|
3228
|
+
i = end;
|
|
3229
|
+
} else if (char === "\\") i++;
|
|
3230
|
+
else if (char === "[") {
|
|
3231
|
+
const end = code.indexOf("]", i + 1);
|
|
3232
|
+
if (end < 0) return void 0;
|
|
3233
|
+
i = end;
|
|
3234
|
+
} else if (char === ";") {
|
|
3235
|
+
sections.push(code.slice(start, i));
|
|
3236
|
+
start = i + 1;
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
sections.push(code.slice(start));
|
|
3240
|
+
return sections;
|
|
3241
|
+
}
|
|
3242
|
+
function fromExcelSection(code) {
|
|
3164
3243
|
const tokens = excelTokens(code);
|
|
3165
3244
|
if (!tokens) return void 0;
|
|
3166
3245
|
const first = tokens.findIndex((token) => token.kind === "placeholder");
|
|
@@ -3183,7 +3262,7 @@ function fromExcelNumberFormat(code) {
|
|
|
3183
3262
|
const suffix = literalText(tokens.slice(last + 1));
|
|
3184
3263
|
const format = `${prefix}${numeric}${suffix}`;
|
|
3185
3264
|
const parts = formatParts(format);
|
|
3186
|
-
if (!parts || parts.prefix !== prefix || parts.suffix !== suffix) return void 0;
|
|
3265
|
+
if (!parts || parts.prefix !== prefix || parts.suffix !== suffix || format.includes(";")) return void 0;
|
|
3187
3266
|
return format;
|
|
3188
3267
|
}
|
|
3189
3268
|
function columnName(column) {
|
|
@@ -5091,6 +5170,10 @@ function chartRingLabels(chart, data) {
|
|
|
5091
5170
|
return rings.length >= 2 ? rings : void 0;
|
|
5092
5171
|
}
|
|
5093
5172
|
function chartLayerDataLabels(resolved2, layer, kind2) {
|
|
5173
|
+
const fit = layer?.doughnut?.labels;
|
|
5174
|
+
if (fit && resolved2.dataLabels !== void 0) {
|
|
5175
|
+
return fit.content === null ? { ...resolved2, dataLabels: void 0, dataLabelsOff: true } : { ...resolved2, dataLabels: { ...resolved2.dataLabels, content: fit.content } };
|
|
5176
|
+
}
|
|
5094
5177
|
if (resolved2.dataLabels !== void 0 || !layer?.small?.labels) return resolved2;
|
|
5095
5178
|
return { ...resolved2, active: true, dataLabels: { content: ["value"], position: kind2 === "line" ? "above" : "outside-end", separator: ", " } };
|
|
5096
5179
|
}
|
|
@@ -5530,10 +5613,11 @@ function waterfallRoles(values) {
|
|
|
5530
5613
|
return roles;
|
|
5531
5614
|
}
|
|
5532
5615
|
function waterfallLabelText(value, format, role, group, language = group?.language) {
|
|
5533
|
-
if (role === "total" || value === 0) return valueLabel(value, format, group, language);
|
|
5616
|
+
if (role === "total" || value === 0 || hasNumberFormatSections(format)) return valueLabel(value, format, group, language);
|
|
5534
5617
|
return `${value > 0 ? "+" : "\u2212"}${valueLabel(Math.abs(value), format, group, language)}`;
|
|
5535
5618
|
}
|
|
5536
5619
|
function waterfallSignedFormat(format) {
|
|
5620
|
+
if (hasNumberFormatSections(format)) return format;
|
|
5537
5621
|
const first = (format && format.trim() ? format : "General").split(";")[0];
|
|
5538
5622
|
return `"+"${first};"\u2212"${first};${first}`;
|
|
5539
5623
|
}
|
|
@@ -5612,11 +5696,53 @@ function chartValueList(chart, data, geometry, options = {}) {
|
|
|
5612
5696
|
function chartDoughnut(chart, data, geometry, layer) {
|
|
5613
5697
|
if (!record7(chart) || !data.ok || data.columns.length < 2 || !data.rows.length) return void 0;
|
|
5614
5698
|
if (typeOf(chart) !== "doughnut") return void 0;
|
|
5615
|
-
const of = (pie2) =>
|
|
5699
|
+
const of = (pie2) => {
|
|
5700
|
+
const doughnut = { pie: pie2, hole: { cx: pie2.x + pie2.width / 2, cy: pie2.y + pie2.height / 2, r: pie2.width / 4 } };
|
|
5701
|
+
const labels = doughnutLabelFit(chart, data, geometry, pie2);
|
|
5702
|
+
return labels ? { ...doughnut, labels } : doughnut;
|
|
5703
|
+
};
|
|
5616
5704
|
if (layer?.valueList) return of(layer.valueList.pie);
|
|
5617
5705
|
const pie = chartCircleSquare(chart, data, geometry, layer);
|
|
5618
5706
|
return pie && of(pie);
|
|
5619
5707
|
}
|
|
5708
|
+
function doughnutLabelFit(chart, data, geometry, pie) {
|
|
5709
|
+
if (!data.ok || data.columns.length !== 2 || !usable2(geometry.box, geometry.scale)) return void 0;
|
|
5710
|
+
const options = resolveChartOptions(chart, chartOptionTarget("doughnut"));
|
|
5711
|
+
const authored = options.dataLabels?.content;
|
|
5712
|
+
if (!options.dataLabels || !authored?.length) return void 0;
|
|
5713
|
+
const values = data.rows.map((row) => chartNumber(row[1]));
|
|
5714
|
+
const total = values.reduce((sum, value) => sum + (value !== null && value > 0 ? value : 0), 0);
|
|
5715
|
+
if (total <= 0) return void 0;
|
|
5716
|
+
const { fontPx, textHeight } = metrics(geometry.box, geometry.scale, geometry.minFontSize);
|
|
5717
|
+
const format = typeof data.formats[1] === "string" && !numberFormatError(data.formats[1]) ? data.formats[1] : void 0;
|
|
5718
|
+
const group = columnGroups(data, 1) ? { language: geometry.language } : void 0;
|
|
5719
|
+
const radius = pie.width / 2, inner = radius / 2, middle = (radius + inner) / 2, cx = pie.x + radius, cy = pie.y + pie.height / 2;
|
|
5720
|
+
const fits = (content) => {
|
|
5721
|
+
let start = -Math.PI / 2;
|
|
5722
|
+
return values.every((value, index) => {
|
|
5723
|
+
if (value === null || value <= 0) return true;
|
|
5724
|
+
const delta = value / total * Math.PI * 2, mid = start + delta / 2;
|
|
5725
|
+
start += delta;
|
|
5726
|
+
const text2 = chartLabelText({ category: label3(data.rows[index]?.[0]), value: valueLabel(value, format, group, geometry.language), percent: formatChartLabelPercent(value / total, geometry.language) }, content, options.dataLabels?.separator);
|
|
5727
|
+
if (!text2) return true;
|
|
5728
|
+
const halfWidth = (geometry.measure(text2, fontPx, 400) + fontPx * 0.5) / 2, halfHeight = textHeight / 2;
|
|
5729
|
+
const x = cx + middle * Math.cos(mid), y = cy + middle * Math.sin(mid);
|
|
5730
|
+
return [[-1, -1], [1, -1], [-1, 1], [1, 1]].every(([sx, sy]) => {
|
|
5731
|
+
const dx = x + sx * halfWidth - cx, dy = y + sy * halfHeight - cy, distance4 = Math.hypot(dx, dy);
|
|
5732
|
+
if (distance4 < inner - 1 || distance4 > radius + 1) return false;
|
|
5733
|
+
if (delta >= Math.PI * 2 - 1e-9) return true;
|
|
5734
|
+
let away = Math.atan2(dy, dx) - mid;
|
|
5735
|
+
while (away > Math.PI) away -= Math.PI * 2;
|
|
5736
|
+
while (away < -Math.PI) away += Math.PI * 2;
|
|
5737
|
+
return Math.abs(away) <= delta / 2 + 1e-9;
|
|
5738
|
+
});
|
|
5739
|
+
});
|
|
5740
|
+
};
|
|
5741
|
+
if (fits(authored)) return void 0;
|
|
5742
|
+
const without = authored.filter((part) => part !== "category");
|
|
5743
|
+
if (without.length && without.length < authored.length && fits(without)) return { content: without, from: [...authored] };
|
|
5744
|
+
return { content: null, from: [...authored] };
|
|
5745
|
+
}
|
|
5620
5746
|
function chartCircleSquare(chart, data, geometry, layer) {
|
|
5621
5747
|
if (!record7(chart) || !data.ok || data.columns.length < 2 || !data.rows.length) return void 0;
|
|
5622
5748
|
const { box, scale: scale2 } = geometry;
|
|
@@ -6561,7 +6687,7 @@ function chartTitleFocus(chart, data, options = {}) {
|
|
|
6561
6687
|
const numbers = titleNumbers(options.text);
|
|
6562
6688
|
const values = data.rows.map((row) => chartNumber(row[1]));
|
|
6563
6689
|
const byValue = values.map((value) => value !== null && numbers.some((number2) => {
|
|
6564
|
-
if (number2.percent && !format.includes("%")) return false;
|
|
6690
|
+
if (number2.percent && !numberFormatSectionFor(format, value).includes("%")) return false;
|
|
6565
6691
|
const target = number2.percent ? number2.value / 100 : number2.value, decimals = number2.percent ? number2.decimals + 2 : number2.decimals;
|
|
6566
6692
|
return Math.abs(Number(value.toFixed(decimals)) - target) < 10 ** -(decimals + 6);
|
|
6567
6693
|
}) ? 0 : -1);
|
|
@@ -7160,6 +7286,29 @@ function visualReadingOrder(items, direction = "ltr") {
|
|
|
7160
7286
|
}
|
|
7161
7287
|
function readingRows(items) {
|
|
7162
7288
|
const index = new Map(items.map((item, i) => [item, i]));
|
|
7289
|
+
const centre = (item) => item.box.y + item.box.height / 2;
|
|
7290
|
+
const tall = items.filter((item) => {
|
|
7291
|
+
const inside2 = items.filter((other) => other !== item && centre(other) >= item.box.y && centre(other) <= item.box.y + item.box.height);
|
|
7292
|
+
return inside2.some((a) => inside2.some((b) => a.box.y + a.box.height <= b.box.y));
|
|
7293
|
+
});
|
|
7294
|
+
const rest = items.filter((item) => !tall.includes(item));
|
|
7295
|
+
const rows3 = rowsOf(rest.length ? rest : items, index);
|
|
7296
|
+
if (rest.length) {
|
|
7297
|
+
for (const item of tall) {
|
|
7298
|
+
const spanned = rows3.filter((row) => row.some((other) => centre(other) >= item.box.y && centre(other) <= item.box.y + item.box.height));
|
|
7299
|
+
if (!spanned.length) {
|
|
7300
|
+
const at3 = rows3.findIndex((row) => Math.min(...row.map((other) => other.box.y)) > item.box.y);
|
|
7301
|
+
rows3.splice(at3 < 0 ? rows3.length : at3, 0, [item]);
|
|
7302
|
+
continue;
|
|
7303
|
+
}
|
|
7304
|
+
const atEnd = spanned.every((row) => row.every((other) => other.box.x + other.box.width <= item.box.x + 1));
|
|
7305
|
+
(atEnd ? spanned[spanned.length - 1] : spanned[0]).push(item);
|
|
7306
|
+
}
|
|
7307
|
+
for (const row of rows3) row.sort((a, b) => index.get(a) - index.get(b));
|
|
7308
|
+
}
|
|
7309
|
+
return rows3;
|
|
7310
|
+
}
|
|
7311
|
+
function rowsOf(items, index) {
|
|
7163
7312
|
const sorted = [...items].sort((a, b) => a.box.y - b.box.y || a.box.x - b.box.x || index.get(a) - index.get(b));
|
|
7164
7313
|
const rows3 = [];
|
|
7165
7314
|
for (const item of sorted) {
|
|
@@ -8898,6 +9047,29 @@ function catalogRecords(document, kind2, options = {}) {
|
|
|
8898
9047
|
function embeddedCopy(record20) {
|
|
8899
9048
|
return Object.fromEntries(Object.entries(rec(record20)).filter(([key]) => key !== "$schema" && key !== "id" && !key.startsWith("x-")).map(([key, value]) => [key, structuredClone(value)]));
|
|
8900
9049
|
}
|
|
9050
|
+
function relatedName(reference, candidate) {
|
|
9051
|
+
const bare = (value) => value.slice(value.lastIndexOf(":") + 1).toLowerCase();
|
|
9052
|
+
const a = bare(reference), b = bare(candidate);
|
|
9053
|
+
if (a === b) return true;
|
|
9054
|
+
const words2 = (value) => value.split(/[^\p{L}\p{N}]+/u).filter((word) => word.length >= 3);
|
|
9055
|
+
const other = new Set(words2(b));
|
|
9056
|
+
if (words2(a).some((word) => other.has(word))) return true;
|
|
9057
|
+
let prefix = 0;
|
|
9058
|
+
while (prefix < a.length && prefix < b.length && a[prefix] === b[prefix]) prefix++;
|
|
9059
|
+
if (prefix >= Math.min(3, a.length, b.length)) return true;
|
|
9060
|
+
if (a.length === b.length && [...a].sort().join("") === [...b].sort().join("")) return true;
|
|
9061
|
+
const pairs = (value) => Array.from({ length: Math.max(0, value.length - 1) }, (_, index) => value.slice(index, index + 2));
|
|
9062
|
+
const left = pairs(a), right = pairs(b), pool = [...right];
|
|
9063
|
+
let shared = 0;
|
|
9064
|
+
for (const pair of left) {
|
|
9065
|
+
const at3 = pool.indexOf(pair);
|
|
9066
|
+
if (at3 >= 0) {
|
|
9067
|
+
shared++;
|
|
9068
|
+
pool.splice(at3, 1);
|
|
9069
|
+
}
|
|
9070
|
+
}
|
|
9071
|
+
return left.length + right.length > 0 && 2 * shared / (left.length + right.length) >= 0.5;
|
|
9072
|
+
}
|
|
8901
9073
|
|
|
8902
9074
|
// src/design-records.ts
|
|
8903
9075
|
var isRec2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -13450,7 +13622,10 @@ function documentIcons(input) {
|
|
|
13450
13622
|
payload(block, `${path}.blocks.${index}`, depth + 1);
|
|
13451
13623
|
});
|
|
13452
13624
|
};
|
|
13453
|
-
const slide = (value, path) =>
|
|
13625
|
+
const slide = (value, path) => {
|
|
13626
|
+
payload(value, path, 0);
|
|
13627
|
+
if (isRec3(value)) for (const key of promotedRegionKeys) payload(value[key], `${path}.${key}`, 1);
|
|
13628
|
+
};
|
|
13454
13629
|
if (isRec3(input) && Array.isArray(input.slides)) input.slides.forEach((value, index) => {
|
|
13455
13630
|
slide(value, `slides.${index}`);
|
|
13456
13631
|
});
|
|
@@ -13491,11 +13666,16 @@ function distance3(a, b) {
|
|
|
13491
13666
|
}
|
|
13492
13667
|
return row[b.length];
|
|
13493
13668
|
}
|
|
13494
|
-
function nearIconNames(name, names2, limit = 5) {
|
|
13495
|
-
const
|
|
13669
|
+
function nearIconNames(name, names2, limit = 5, tags) {
|
|
13670
|
+
const words2 = (text2) => text2.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
|
|
13671
|
+
const wanted = words2(name), scored = [];
|
|
13496
13672
|
for (const candidate of names2) {
|
|
13497
|
-
const
|
|
13498
|
-
|
|
13673
|
+
const own3 = words2(candidate), keywords = new Set((tags?.[candidate] ?? []).flatMap(words2)), edits = distance3(name, candidate);
|
|
13674
|
+
const named = wanted.filter((word) => own3.includes(word)).length, meant = wanted.filter((word) => own3.includes(word) || keywords.has(word)).length;
|
|
13675
|
+
const contained = name.length >= 3 && candidate.includes(name);
|
|
13676
|
+
const tier = contained || wanted.length > 1 && meant === wanted.length && named > 0 ? 0 : named > 0 || meant > 0 ? 1 : edits <= Math.max(2, Math.floor(name.length / 3)) ? 2 : 3;
|
|
13677
|
+
if (tier === 3) continue;
|
|
13678
|
+
scored.push([candidate, tier * 100 + (wanted.length - meant) * 10 + own3.length - named + edits / 10 + Math.abs(candidate.length - name.length) / 1e3]);
|
|
13499
13679
|
}
|
|
13500
13680
|
return scored.sort((a, b) => a[1] - b[1] || a[0].localeCompare(b[0])).slice(0, limit).map(([candidate]) => candidate);
|
|
13501
13681
|
}
|
|
@@ -13518,7 +13698,12 @@ function resolveIcon(document, value, options = {}) {
|
|
|
13518
13698
|
if (icon === void 0) {
|
|
13519
13699
|
const names2 = setNames(set2);
|
|
13520
13700
|
if (Array.isArray(set2.names) && names2.includes(reference.name)) return failed !== void 0 ? { ok: false, code: "icon-unknown", message: failed } : { ok: false, code: "icon-unloaded", message: `The icon ${written} is registered but not loaded yet (ensureIcons).` };
|
|
13521
|
-
const
|
|
13701
|
+
const current = Object.hasOwn(set2.renamed ?? {}, reference.name) ? set2.renamed[reference.name] : void 0;
|
|
13702
|
+
if (current !== void 0 && names2.includes(current)) {
|
|
13703
|
+
const now = `${reference.set}:${current}`;
|
|
13704
|
+
return { ok: false, code: "icon-unknown", message: `${written} was renamed ${now}; the old name does not draw.`, suggestions: [now], renamed: now };
|
|
13705
|
+
}
|
|
13706
|
+
const suggestions = nearIconNames(reference.name, names2, 5, set2.tags);
|
|
13522
13707
|
return { ok: false, code: "icon-unknown", message: `The icon set ${reference.set} has no icon ${reference.name}.`, ...suggestions.length ? { suggestions: suggestions.map((name2) => `${reference.set}:${name2}`) } : {} };
|
|
13523
13708
|
}
|
|
13524
13709
|
const parts = setIconParts(set2, icon);
|
|
@@ -13662,7 +13847,7 @@ function embedIcons(document, options = {}) {
|
|
|
13662
13847
|
const sets = groupFor(entry.source);
|
|
13663
13848
|
const missing2 = [...names2].filter((name) => !(own3 && Object.hasOwn(own3.icons, name)) && Object.hasOwn(source.icons, name)).sort();
|
|
13664
13849
|
if (!missing2.length) continue;
|
|
13665
|
-
const base = isRec3(sets[id]) ? sets[id] : (({ icons: _icons, tags: _tags, licenseText: _text, names: _names, ...rest }) => Object.fromEntries(Object.entries(rest).filter(([key]) => key !== "$schema" && key !== "id" && !key.startsWith("x-"))))(source);
|
|
13850
|
+
const base = isRec3(sets[id]) ? sets[id] : (({ icons: _icons, tags: _tags, licenseText: _text, names: _names, renamed: _renamed, ...rest }) => Object.fromEntries(Object.entries(rest).filter(([key]) => key !== "$schema" && key !== "id" && !key.startsWith("x-"))))(source);
|
|
13666
13851
|
sets[id] = { ...base, icons: { ...isRec3(base.icons) ? base.icons : {}, ...Object.fromEntries(missing2.map((name) => [name, source.icons[name]])) } };
|
|
13667
13852
|
added.push(...missing2.map((name) => `${id}:${name}`));
|
|
13668
13853
|
}
|
|
@@ -14964,7 +15149,7 @@ function layoutMetric(value, box, options = {}) {
|
|
|
14964
15149
|
const valueSize = options.tile ? Math.min(152, Math.max(76, box.height * METRIC_TILE_VALUE_SHARE / scale2)) : 76;
|
|
14965
15150
|
const least = snapFontSizeUp(Math.max(minimum, options.minimumSizes?.[role] ?? 0));
|
|
14966
15151
|
const eyebrow = options.eyebrow === true && role === "label" && !options.tile, caps = eyebrow && eyebrowCaps(text2);
|
|
14967
|
-
const display = role === "value" && options.message && messageCharacters(text2) <= FIGURE_CEILING.characters ? FIGURE_CEILING.size : LONE_DISPLAY_SIZES[role];
|
|
15152
|
+
const display = options.proportional ? Infinity : role === "value" && options.message && messageCharacters(text2) <= FIGURE_CEILING.characters ? FIGURE_CEILING.size : LONE_DISPLAY_SIZES[role];
|
|
14968
15153
|
const nominal = Math.max(Math.min(grownRoleSize(role === "value" ? valueSize : role === "description" ? 20 : role === "trend" ? 18 : eyebrow ? EYEBROW_TAG_SIZE : 23, eyebrow ? void 0 : options.growth, display) * scale2, options.roleSizes?.[role] ?? Infinity), least);
|
|
14969
15154
|
const tracked = caps || role === "label" && capitalsLabel(text2);
|
|
14970
15155
|
const requestedStyle = { fontFamily: (role === "value" ? options.fontFamilies?.heading : eyebrow ? options.fontFamilies?.accent ?? options.fontFamilies?.body : options.fontFamilies?.body) ?? "sans-serif", fontWeight: role === "value" ? 800 : eyebrow ? 700 : role === "description" ? 400 : 500, italic: false, path, ...caps ? { caps: true } : {}, ...tracked ? { tracking: EYEBROW_TRACKING } : {} };
|
|
@@ -16643,18 +16828,40 @@ function shrinks(next, base, options) {
|
|
|
16643
16828
|
}
|
|
16644
16829
|
return false;
|
|
16645
16830
|
}
|
|
16646
|
-
function bodyFill(result) {
|
|
16831
|
+
function bodyFill(result, options = {}) {
|
|
16647
16832
|
if (LEAD_STACKS.has(result) || CARD_GRIDS.has(result)) return void 0;
|
|
16648
16833
|
const body = result.items.filter((item) => !headings.has(item.field) && !item.eyebrow && !(item.emphasis && result.emphasis !== void 0 && result.emphasis.shape !== "card") && !item.quoteLayout?.rule);
|
|
16649
|
-
|
|
16834
|
+
const inBody = (item) => !item.caption && (!result.regions || item.region !== void 0);
|
|
16835
|
+
const prose = body.every((item) => (item.field === "text" || item.field === "items" || item.field === "bullets") && item.text && (!item.listColumns || FIGURE_ROW_ITEMS.has(item)) && inBody(item));
|
|
16836
|
+
const metrics3 = result.items.every((item) => headings.has(item.field) || item.eyebrow || item.field === "metric") && body.every((item) => item.field === "metric" && item.metricLayout && !item.frameBox && !item.metricTile && !item.emphasis && inBody(item));
|
|
16837
|
+
const tableItem = body.find((item) => item.field === "table"), noteItem = body.find((item) => item.field === "text");
|
|
16838
|
+
const tableNote2 = !!result.regions && body.length === 2 && !!tableItem && !!noteItem?.text && !noteItem.frameBox && body.every((item) => !item.emphasis && inBody(item)) && noteItem.box.y >= tableItem.box.y + 1 && noteItem.box.x < tableItem.box.x + tableItem.box.width - 1 && noteItem.box.x + noteItem.box.width > tableItem.box.x + 1;
|
|
16839
|
+
if (body.length < 2 || !(prose || metrics3 || tableNote2)) return void 0;
|
|
16650
16840
|
const height = (fit) => "height" in fit && typeof fit.height === "number" ? fit.height : Math.max(fit.lines.length * fit.lineHeight, fit.placement?.height ?? 0);
|
|
16651
|
-
const
|
|
16841
|
+
const scale2 = Math.min(result.width, result.height) / 720, metricRows = metrics3 ? new Set(body.map((item) => Math.round(item.box.y))).size : 0;
|
|
16842
|
+
const extentOf = (item) => {
|
|
16843
|
+
if (item.metricLayout) {
|
|
16844
|
+
const parts = item.metricLayout.parts.filter((part) => part.visible && part.fit).map((part) => part.box), chips = metricRows > 1 ? (result.icons ?? []).filter((icon) => icon.owner === item.path).map((icon) => icon.chip.cy - icon.chip.radius) : [];
|
|
16845
|
+
return [Math.min(...parts.map((box) => box.y), ...chips), Math.max(...parts.map((box) => box.y + box.height))];
|
|
16846
|
+
}
|
|
16847
|
+
if (item.field === "table") {
|
|
16848
|
+
let table;
|
|
16849
|
+
try {
|
|
16850
|
+
table = layoutTable(item.value, item.box, { scale: scale2, minFontSize: item.composition.minFontSize, fontFamily: options.fontFamilies?.body, ...options.fontFamilies?.code ? { codeFontFamily: options.fontFamilies.code } : {}, textMeasurement: options.textMeasurement, presentation: options.presentation, ...numberLanguage(options), ...item.tableGrowth ? { growth: item.tableGrowth } : {} });
|
|
16851
|
+
} catch {
|
|
16852
|
+
table = void 0;
|
|
16853
|
+
}
|
|
16854
|
+
return [item.box.y, item.box.y + Math.min(item.box.height, table?.height ?? item.box.height)];
|
|
16855
|
+
}
|
|
16856
|
+
return [item.box.y, item.box.y + height(item.text)];
|
|
16857
|
+
};
|
|
16858
|
+
const top = Math.min(...body.map((item) => extentOf(item)[0])), bottom = Math.max(...body.map((item) => extentOf(item)[1]));
|
|
16652
16859
|
const above = result.items.filter((item) => headings.has(item.field) && item.box.y + item.box.height <= top + 1e-6);
|
|
16653
16860
|
const bodyTop = Math.max(result.contentBox.y, ...above.map((item) => item.box.y + item.box.height)), bodyBottom = result.contentBox.y + result.contentBox.height;
|
|
16654
16861
|
if (bodyBottom - bodyTop <= 0) return void 0;
|
|
16655
16862
|
const grows = body.filter((item) => !PLACED_TILE_ITEMS.has(item));
|
|
16656
16863
|
if (!grows.length) return void 0;
|
|
16657
|
-
const extents = grows.map(
|
|
16864
|
+
const extents = grows.map(extentOf).sort((a, b) => a[0] - b[0]);
|
|
16658
16865
|
let covered = 0, reach = -Infinity;
|
|
16659
16866
|
for (const [from, to] of extents) {
|
|
16660
16867
|
if (to > reach) {
|
|
@@ -16671,7 +16878,7 @@ function bodyIcons(input) {
|
|
|
16671
16878
|
}
|
|
16672
16879
|
function growBody(input, options, result) {
|
|
16673
16880
|
if (options.fill === false || options[LAYOUT_MASTER] === true || overflowCount(result) > 0) return void 0;
|
|
16674
|
-
const start = bodyFill(result);
|
|
16881
|
+
const start = bodyFill(result, options);
|
|
16675
16882
|
if (!start) return void 0;
|
|
16676
16883
|
if (start.fill >= LONE_FILL) {
|
|
16677
16884
|
if (!result.steps?.some((entry) => entry.form === "row") || bodyReadability(result, options).sizes.some((entry) => entry.atFloor)) return void 0;
|
|
@@ -16681,7 +16888,7 @@ function growBody(input, options, result) {
|
|
|
16681
16888
|
}
|
|
16682
16889
|
if (bodyReadability(result, options).sizes.some((entry) => entry.atFloor)) return void 0;
|
|
16683
16890
|
if (stackedTemplate(options, result)) return void 0;
|
|
16684
|
-
const smallest = (composed) => Math.min(...composed.items.filter((item) => !headings.has(item.field) && !item.eyebrow && !(item.emphasis && composed.emphasis !== void 0 && composed.emphasis.shape !== "card") && !item.quoteLayout?.rule && !PLACED_TILE_ITEMS.has(item)).map((item) => item.text
|
|
16891
|
+
const smallest = (composed) => Math.min(...composed.items.filter((item) => !headings.has(item.field) && !item.eyebrow && !(item.emphasis && composed.emphasis !== void 0 && composed.emphasis.shape !== "card") && !item.quoteLayout?.rule && !PLACED_TILE_ITEMS.has(item)).map((item) => item.text?.fontSize ?? bodyReadability(composed, options).byPath.get(item.path) ?? Infinity));
|
|
16685
16892
|
const before = trackQuality(result, options), floor = snapFontSizeUp((result.composition.minFontSize ?? 16) * Math.min(result.width, result.height) / 720);
|
|
16686
16893
|
const avatar = portraitQuotes(result) ? { [AVATAR_QUOTES]: true } : {};
|
|
16687
16894
|
const attempt = (extra) => composeVariant(input, { ...options, ...avatar, ...extra }, before, floor);
|
|
@@ -16690,12 +16897,12 @@ function growBody(input, options, result) {
|
|
|
16690
16897
|
const climb = (from, extra, limit, accept) => {
|
|
16691
16898
|
let best = from, steps = 0;
|
|
16692
16899
|
for (let next = 1; next <= limit; next++) {
|
|
16693
|
-
const grown = attempt({ [GROW]: next, ...extra }), fill2 = grown && bodyFill(grown);
|
|
16900
|
+
const grown = attempt({ [GROW]: next, ...extra }), fill2 = grown && bodyFill(grown, options);
|
|
16694
16901
|
if (!grown || !fill2 || overflowCount(grown) > 0 || fill2.fill > LONE_TARGET || smallest(grown) <= smallest(best) + FONT_GRID_EPSILON || shrinks(grown, best, options) || !accept(grown) || bodyReadability(grown, options).splitWords + listSplitWords(grown) > bodyReadability(best, options).splitWords + listSplitWords(best)) break;
|
|
16695
16902
|
best = grown;
|
|
16696
16903
|
steps = next;
|
|
16697
16904
|
}
|
|
16698
|
-
const centered = pulled ? void 0 : attempt({ [GROW]: steps, [CENTER]: true, ...extra }), fill = centered && bodyFill(centered);
|
|
16905
|
+
const centered = pulled ? void 0 : attempt({ [GROW]: steps, [CENTER]: true, ...extra }), fill = centered && bodyFill(centered, options);
|
|
16699
16906
|
if (centered && fill && overflowCount(centered) === 0 && !shrinks(centered, best, options)) {
|
|
16700
16907
|
stepsOf.set(centered, { [GROW]: steps, [CENTER]: true, ...extra });
|
|
16701
16908
|
return centered;
|
|
@@ -16705,7 +16912,7 @@ function growBody(input, options, result) {
|
|
|
16705
16912
|
};
|
|
16706
16913
|
const done = (grown) => !grown || grown === result ? void 0 : portraitQuotes(result) && stepsOf.has(grown) ? withPortraits(input, options, grown, stepsOf.get(grown), before, floor) : grown;
|
|
16707
16914
|
if (!COMPACT_GRIDS.has(result)) {
|
|
16708
|
-
const grown = climb(result, {}, 3, () => true), reached = bodyFill(grown);
|
|
16915
|
+
const grown = climb(result, {}, 3, () => true), reached = bodyFill(grown, options);
|
|
16709
16916
|
const blocks = record19(input).blocks, drawn = bodyIcons(input) || result.steps !== void 0 && !PLACED_TILES.has(result) || Array.isArray(blocks) && (blocks.some((block) => Array.isArray(record19(block).blocks)) || blocks.length >= TEXT_TILE_MIN && blocks.length <= TEXT_TILE_MAX && permitsTextTiles(result.composition));
|
|
16710
16917
|
if (result.regions || !reached || reached.fill >= LONE_FILL || drawn || options[NO_STEPS] === true) return done(grown);
|
|
16711
16918
|
const shapeOf = (composed) => {
|
|
@@ -16749,7 +16956,7 @@ function readableProse(input, options, result) {
|
|
|
16749
16956
|
const after = next.items.find((entry) => entry.path === item.path);
|
|
16750
16957
|
return !item.text || !!after?.text && after.text.fontSize >= item.text.fontSize - FONT_GRID_EPSILON && JSON.stringify(item.textStyle) === JSON.stringify(after.textStyle);
|
|
16751
16958
|
});
|
|
16752
|
-
const oldFill = bodyFill(result), newFill = bodyFill(next);
|
|
16959
|
+
const oldFill = bodyFill(result, options), newFill = bodyFill(next, options);
|
|
16753
16960
|
if (kept && (!oldFill || !!newFill && newFill.fill >= oldFill.fill - 1e-6)) return next;
|
|
16754
16961
|
}
|
|
16755
16962
|
return result;
|
|
@@ -17057,12 +17264,23 @@ function guardedRules(input, options) {
|
|
|
17057
17264
|
if (bandSize !== void 0) seeds[EMPHASIS_SIZE] = Math.max(bandSize, Number(options[EMPHASIS_SIZE] ?? 0));
|
|
17058
17265
|
if (Object.getOwnPropertySymbols(seeds).length) result = attempt(ruled(CORE_RULES, seeds));
|
|
17059
17266
|
let keptRules = CORE_RULES;
|
|
17267
|
+
const drewIcons = (result?.icons?.length ?? 0) > 0;
|
|
17060
17268
|
if (!readsWell(result)) {
|
|
17061
|
-
let kept = NO_RULES;
|
|
17269
|
+
let kept = NO_RULES, candidates = fired;
|
|
17062
17270
|
result = base;
|
|
17063
17271
|
keptRules = NO_RULES;
|
|
17272
|
+
if (drewIcons) {
|
|
17273
|
+
const plainFired = /* @__PURE__ */ new Set(), withoutIcons = new Set([...CORE_RULES].filter((rule) => rule !== "icons" && rule !== "icon-chips"));
|
|
17274
|
+
const plain2 = attempt(ruled(withoutIcons, { ...seeds, [FIRED]: plainFired }));
|
|
17275
|
+
if (readsWell(plain2)) {
|
|
17276
|
+
kept = withoutIcons;
|
|
17277
|
+
result = plain2;
|
|
17278
|
+
keptRules = withoutIcons;
|
|
17279
|
+
}
|
|
17280
|
+
candidates = /* @__PURE__ */ new Set([...fired, ...plainFired, "icons", "icon-chips"]);
|
|
17281
|
+
}
|
|
17064
17282
|
for (const rule of GUARDED_RULES) {
|
|
17065
|
-
if (!
|
|
17283
|
+
if (!candidates.has(rule) || kept.has(rule)) continue;
|
|
17066
17284
|
const rules = /* @__PURE__ */ new Set([...kept, rule]), trial = attempt(ruled(rules, seeds));
|
|
17067
17285
|
if (readsWell(trial)) {
|
|
17068
17286
|
kept = rules;
|
|
@@ -17234,7 +17452,7 @@ function settle(input, options, result) {
|
|
|
17234
17452
|
if (filled) return filled;
|
|
17235
17453
|
const grown = growBody(input, options, result);
|
|
17236
17454
|
if (grown) return grown;
|
|
17237
|
-
if (REGION_MEASURED.has(result) && bodyFill(result)) {
|
|
17455
|
+
if (REGION_MEASURED.has(result) && bodyFill(result, options)) {
|
|
17238
17456
|
const plain2 = { ...options, [NO_REGION_MEASURE]: true }, wide = growBody(input, plain2, guardedCompose(input, plain2));
|
|
17239
17457
|
if (wide) return wide;
|
|
17240
17458
|
}
|
|
@@ -17990,9 +18208,10 @@ function composeLayout(input, options = {}) {
|
|
|
17990
18208
|
const headingCaps = /* @__PURE__ */ new Map();
|
|
17991
18209
|
const loneLabels = /* @__PURE__ */ new Set();
|
|
17992
18210
|
const numeralLists = /* @__PURE__ */ new Map(), pairRowLabels = /* @__PURE__ */ new Map(), pairGrid = /* @__PURE__ */ new Set(), spreadLists = /* @__PURE__ */ new Set();
|
|
18211
|
+
const chiplessLists = /* @__PURE__ */ new Set();
|
|
17993
18212
|
const listOptionsFor = (field, path2, numbering, value) => {
|
|
17994
18213
|
const listed = { ...listOptionsOf(field, path2, numbering, value), ...numberLanguage(options) };
|
|
17995
|
-
const own3 = field === "items" && !badgeLists.has(path2) && !stepHeadings.has(path2) && !numeralLists.has(path2) && iconList(value, numbering) ? { ...listed, icons: true, iconScale: chipScale } : listed;
|
|
18214
|
+
const own3 = field === "items" && !badgeLists.has(path2) && !stepHeadings.has(path2) && !numeralLists.has(path2) && !chiplessLists.has(path2) && iconList(value, numbering) ? { ...listed, icons: true, iconScale: chipScale } : listed;
|
|
17996
18215
|
return own3.rows && spreadLists.has(path2) ? { ...own3, spread: true } : own3;
|
|
17997
18216
|
};
|
|
17998
18217
|
const listOptionsOf = (field, path2, numbering, value) => stepHeadings.has(path2) ? { ...richOptions(styleFor(field, path2)), heading: true, bullet: "none", ...headingCaps.has(path2) ? { headingMax: headingCaps.get(path2) } : {} } : numeralLists.has(path2) ? { ...richOptions(styleFor(field, path2)), numbering: badgeNumbering(path2, numbering), rows: true, numerals: numeralLists.get(path2), ...pairsOf(value, path2) } : badgeLists.has(path2) ? { ...richOptions(styleFor(field, path2)), numbering: badgeNumbering(path2, numbering), badges: true } : pairRowLabels.has(path2) ? { ...richOptions(styleFor(field, path2)), rows: true, pairs: "question", rowLabels: pairRowLabels.get(path2), bullet: "none" } : { ...richOptions(styleFor(field, path2)), heading: true, ...headingCaps.has(path2) ? { headingMax: headingCaps.get(path2) } : {}, ...pillarWords.has(path2) ? { display: true, ...wordCaps.has(path2) ? { displayMax: wordCaps.get(path2) } : {}, ...loneLabels.has(path2) ? { displayRule: "short" } : {} } : {}, ...value !== void 0 ? listRows(value, path2) : {}, ...numbering !== void 0 ? { numbering } : bulletImage ? { bulletImage } : noListBullet ? { bullet: "none" } : {} };
|
|
@@ -18659,9 +18878,18 @@ function composeLayout(input, options = {}) {
|
|
|
18659
18878
|
const focusSources = () => focusTexts ??= slideFocusSources(slide);
|
|
18660
18879
|
const growthOf = /* @__PURE__ */ new WeakMap(), proseGrowth = /* @__PURE__ */ new WeakMap();
|
|
18661
18880
|
let loneGrowth = false;
|
|
18881
|
+
const bodyGrown = /* @__PURE__ */ new WeakSet();
|
|
18662
18882
|
const grownOptions = (node) => {
|
|
18663
18883
|
const growth = growthOf.get(node);
|
|
18664
|
-
return growth !== void 0 && growth > 1 ? { growth } : {};
|
|
18884
|
+
return growth !== void 0 && growth > 1 ? { growth, ...bodyGrown.has(node) ? { proportional: true } : {} } : {};
|
|
18885
|
+
};
|
|
18886
|
+
const growsAsBody = (units) => units.every((unit2) => !unit2.children && unit2.caption === void 0 && unit2.emphasis === void 0 && !unit2.eyebrow) && (units.length >= 2 && units.every((unit2) => unit2.field === "metric") || units.length === 2 && units.filter((unit2) => unit2.field === "table").length === 1 && units.filter((unit2) => unit2.field === "text").length === 1);
|
|
18887
|
+
const growBodyUnits = (units) => {
|
|
18888
|
+
if (!bodySteps || !growsAsBody(units) || options[TABLE_NOTE] !== void 0) return;
|
|
18889
|
+
for (const unit2 of units) if ((unit2.field === "metric" || unit2.field === "table") && !growthOf.has(unit2)) {
|
|
18890
|
+
growthOf.set(unit2, TYPE_SCALE_RATIO ** Math.min(3, bodySteps));
|
|
18891
|
+
bodyGrown.add(unit2);
|
|
18892
|
+
}
|
|
18665
18893
|
};
|
|
18666
18894
|
const measureQuote = (node, box, settings, floorFallback = false, bodySize) => {
|
|
18667
18895
|
const lay = (share2) => layoutQuote(node.value, acceptedBox(box), {
|
|
@@ -19928,14 +20156,17 @@ function composeLayout(input, options = {}) {
|
|
|
19928
20156
|
const inner = payloadBox(cell, cards), prose = node.field === "text" || node.field === "items" || node.field === "bullets";
|
|
19929
20157
|
if (inner.width <= 0 || inner.height <= 0) return void 0;
|
|
19930
20158
|
const slack = 2 * rasterPadding + scale2, need = () => (node.field === "table" ? measureTable(node, inner.width, settings)?.height ?? Infinity : naturalHeight(node, inner.width, false, void 0, settings)) + slack;
|
|
20159
|
+
const chipped = node.field === "items" && iconList(node.value, node.payload.numbering);
|
|
19931
20160
|
const plainNeed = () => {
|
|
19932
20161
|
const badged = badgeLists.delete(node.path), numerals = numeralLists.get(node.path);
|
|
19933
20162
|
numeralLists.delete(node.path);
|
|
20163
|
+
if (chipped) chiplessLists.add(node.path);
|
|
19934
20164
|
try {
|
|
19935
20165
|
return need();
|
|
19936
20166
|
} finally {
|
|
19937
20167
|
if (badged) badgeLists.add(node.path);
|
|
19938
20168
|
if (numerals) numeralLists.set(node.path, numerals);
|
|
20169
|
+
chiplessLists.delete(node.path);
|
|
19939
20170
|
}
|
|
19940
20171
|
};
|
|
19941
20172
|
let best = plainNeed();
|
|
@@ -19949,7 +20180,31 @@ function composeLayout(input, options = {}) {
|
|
|
19949
20180
|
spreadLists.add(node.path);
|
|
19950
20181
|
return cell;
|
|
19951
20182
|
};
|
|
19952
|
-
|
|
20183
|
+
const growPanel = () => {
|
|
20184
|
+
const wraps = (layout2) => (layout2.parts.find((part) => part.role === "body")?.fit?.sourceLines ?? []).filter((line2) => line2.boundary === "soft").length;
|
|
20185
|
+
const startWraps = wraps(measureCode(node, inner, settings));
|
|
20186
|
+
let chosen;
|
|
20187
|
+
for (let power = 1; power <= 5; power++) {
|
|
20188
|
+
const growth = TYPE_SCALE_RATIO ** power;
|
|
20189
|
+
growthOf.set(node, growth);
|
|
20190
|
+
const layout2 = measureCode(node, inner, settings), height3 = need();
|
|
20191
|
+
const fits = !layout2.overflow && layout2.parts.every((part) => part.fit !== void 0 && part.fit.fontSize >= part.requestedFontSize - 1e-9) && largestPart(layout2) <= capOf(settings) + FONT_GRID_EPSILON && wraps(layout2) <= startWraps && height3 <= inner.height;
|
|
20192
|
+
if (!fits) break;
|
|
20193
|
+
chosen = growth;
|
|
20194
|
+
}
|
|
20195
|
+
if (chosen === void 0) growthOf.delete(node);
|
|
20196
|
+
else {
|
|
20197
|
+
growthOf.set(node, chosen);
|
|
20198
|
+
loneGrowth = true;
|
|
20199
|
+
}
|
|
20200
|
+
};
|
|
20201
|
+
if (best >= (panel ? LONE_TARGET : LONE_FILL) * inner.height) {
|
|
20202
|
+
if (fillsPanel()) {
|
|
20203
|
+
growPanel();
|
|
20204
|
+
return wholePanel();
|
|
20205
|
+
}
|
|
20206
|
+
return ruled ? spreadCell() : void 0;
|
|
20207
|
+
}
|
|
19953
20208
|
const floor = snapFontSizeUp((settings.minFontSize ?? 16) * scale2);
|
|
19954
20209
|
if (prose) {
|
|
19955
20210
|
const start = proseMeasure(node, inner.width).size, display = (node.field === "text" ? LONE_DISPLAY_SIZES.text : LONE_DISPLAY_SIZES.list) * scale2;
|
|
@@ -20008,7 +20263,7 @@ function composeLayout(input, options = {}) {
|
|
|
20008
20263
|
fire("display-message");
|
|
20009
20264
|
}
|
|
20010
20265
|
}
|
|
20011
|
-
if (badgeLists.has(node.path)) best = need();
|
|
20266
|
+
if (badgeLists.has(node.path) || chipped) best = need();
|
|
20012
20267
|
} else {
|
|
20013
20268
|
let chosen;
|
|
20014
20269
|
const target = node.field === "metric" ? LONE_METRIC_TARGET : LONE_TARGET;
|
|
@@ -20439,6 +20694,7 @@ function composeLayout(input, options = {}) {
|
|
|
20439
20694
|
if (plan2.stack !== void 0 && bodySteps) {
|
|
20440
20695
|
for (const unit2 of bodyUnits) if (!unit2.children && unit2.field === "quote") growthOf.set(unit2, TYPE_SCALE_RATIO ** bodySteps);
|
|
20441
20696
|
}
|
|
20697
|
+
if (plan2.stack === void 0) growBodyUnits(bodyUnits);
|
|
20442
20698
|
const timelineBands = (units) => units.length > 1 && units.every((unit2) => !unit2.children && unit2.field === "timeline" && unit2.caption === void 0);
|
|
20443
20699
|
for (const units of [...contents.values(), belowUnits]) {
|
|
20444
20700
|
if (timelineBands(units)) for (const unit2 of units) timelineHints.set(unit2, { horizontal: true, ...units.length >= 4 ? { compact: true, inlineHeader: true } : {} });
|
|
@@ -20509,6 +20765,15 @@ function composeLayout(input, options = {}) {
|
|
|
20509
20765
|
cells.push(Array.from({ length: columnCount }, () => BELOW));
|
|
20510
20766
|
rowSizes.push("auto");
|
|
20511
20767
|
}
|
|
20768
|
+
if (options[CENTER] === true && bodySteps > 0 && plan2.stack === void 0 && growsAsBody(bodyUnits) && bodyUnits.every((unit2) => unit2.field === "metric")) {
|
|
20769
|
+
cells.forEach((row, index) => {
|
|
20770
|
+
const names2 = row.filter((name) => name !== ".");
|
|
20771
|
+
if (rowSizes[index] !== "auto" && names2.length && names2.every((name) => {
|
|
20772
|
+
const units = unitsOf(name);
|
|
20773
|
+
return units.length > 0 && units.every((unit2) => unit2.field === "metric");
|
|
20774
|
+
})) rowSizes[index] = "auto";
|
|
20775
|
+
});
|
|
20776
|
+
}
|
|
20512
20777
|
const gap2 = Math.max(0, Math.min(requestedTemplateGap, frame.width / (columnCount * 2), frame.height / (rowSizes.length * 2)));
|
|
20513
20778
|
const regionOf = new Map(plan2.regions.map((region) => [region.name, region]));
|
|
20514
20779
|
const empty2 = /* @__PURE__ */ new Set();
|
|
@@ -20554,7 +20819,8 @@ function composeLayout(input, options = {}) {
|
|
|
20554
20819
|
if (region.name === longTextRegion) return "column";
|
|
20555
20820
|
if (units.length > 1 && units.every((unit2) => tierGroups.has(unit2.path))) return "row";
|
|
20556
20821
|
if (units.length && units.every((unit2) => personParts.has(unit2.path))) return (portraitMode === "top" || teamAvatar) && units.length <= PORTRAIT_TOP_MAX ? "row" : "grid";
|
|
20557
|
-
|
|
20822
|
+
const directed = directedArrangement(region);
|
|
20823
|
+
if (directed) return directed;
|
|
20558
20824
|
const flow = region.flow === "none" && units.length > 1 ? "auto" : region.flow;
|
|
20559
20825
|
if (flow === "none" || flow === "column") return "column";
|
|
20560
20826
|
if (flow === "grid") return "grid";
|
|
@@ -20882,6 +21148,10 @@ function composeLayout(input, options = {}) {
|
|
|
20882
21148
|
if (plan2.subtitle) placeHeadings("subtitle", subtitleFields);
|
|
20883
21149
|
const slideComposition = record19(slide.composition);
|
|
20884
21150
|
const overridden = ["mode", "columns", "weights"].some((key) => slideComposition[key] !== void 0) ? plan2.regions.find((region) => region.role === "primary" && region.flow !== "none")?.name : void 0;
|
|
21151
|
+
for (const region of plan2.regions) {
|
|
21152
|
+
const directed = region.name === overridden ? slideComposition.mode ?? "auto" : directedArrangement(region);
|
|
21153
|
+
if (directed) regionDirections.set(region.name, directed);
|
|
21154
|
+
}
|
|
20885
21155
|
const settings = { ...composition };
|
|
20886
21156
|
const HUG_FILL = 0.45, UNEQUAL_PAYLOADS = 1.5, fillSpace = requestedTemplateGap * CARD_FILL_SPACE, underFilled = bodySteps > 0 || options[CENTER] === true;
|
|
20887
21157
|
const hugHeight = (units, cells2, estimate) => Math.min(estimate, Math.max(...units.map((unit2, index) => {
|
|
@@ -21089,14 +21359,16 @@ function composeLayout(input, options = {}) {
|
|
|
21089
21359
|
if (regions.length || body.length < 3 || !body.every(({ item, index }) => item.metricLayout && !item.metricLayout.overflow && !item.frameBox && !item.emphasis && metricMoves.has(index))) return;
|
|
21090
21360
|
const rows3 = [...new Set(body.map(({ item }) => round9(item.box.y)))].sort((a, b) => a - b);
|
|
21091
21361
|
if (rows3.length < 2 || new Set(body.map(({ item }) => round9(item.box.height))).size !== 1) return;
|
|
21092
|
-
const
|
|
21362
|
+
const chipBands = new Map(pendingIcons2.filter((pending2) => pending2.metric).map((pending2) => [pending2.members[0], pending2.diameter * (1 + ICON_CHIP_GAP)]));
|
|
21363
|
+
const extent2 = (item, layout2) => {
|
|
21093
21364
|
const boxes = [layout2.bounds, ...layout2.parts.filter((part) => part.visible).map((part) => part.box), ...layout2.trendBox ? [layout2.trendBox] : [], ...layout2.deltaPill ? [layout2.deltaPill.box] : []];
|
|
21094
|
-
|
|
21365
|
+
const top = Math.min(...boxes.map((box) => box.y)), band = chipBands.get(item) ?? 0, drawn = layout2.parts.filter((part) => part.visible && part.fit).map((part) => part.box.y);
|
|
21366
|
+
return [band ? Math.min(top, (drawn.length ? Math.min(...drawn) : item.box.y) - band) : top, Math.max(...boxes.map((box) => box.y + box.height))];
|
|
21095
21367
|
};
|
|
21096
21368
|
const rowOf = (item) => rows3.indexOf(round9(item.box.y));
|
|
21097
|
-
const spans = rows3.map((_, row) => body.filter(({ item }) => rowOf(item) === row).map(({ item }) => extent2(item.metricLayout)));
|
|
21369
|
+
const spans = rows3.map((_, row) => body.filter(({ item }) => rowOf(item) === row).map(({ item }) => extent2(item, item.metricLayout)));
|
|
21098
21370
|
const tops = spans.map((span) => Math.min(...span.map(([top]) => top))), heights = spans.map((span, row) => Math.max(...span.map(([, bottom]) => bottom)) - tops[row]);
|
|
21099
|
-
const areaTop = rows3[0], areaBottom = Math.max(...body.map(({ item }) => item.box.y + item.box.height));
|
|
21371
|
+
const areaTop = Math.min(rows3[0], tops[0]), areaBottom = Math.max(...body.map(({ item }) => item.box.y + item.box.height));
|
|
21100
21372
|
const free = areaBottom - areaTop - heights.reduce((sum, height2) => sum + height2, 0);
|
|
21101
21373
|
if (free <= 0) return;
|
|
21102
21374
|
const space = free / (rows3.length + 1), targets = [];
|
|
@@ -21120,6 +21392,28 @@ function composeLayout(input, options = {}) {
|
|
|
21120
21392
|
item.text = layout2.parts.find((part) => part.role === "value")?.fit ?? item.text;
|
|
21121
21393
|
}
|
|
21122
21394
|
};
|
|
21395
|
+
const closeTableNote = () => {
|
|
21396
|
+
const body = items.filter((item) => !headings.has(item.field) && !item.eyebrow);
|
|
21397
|
+
if (!useTemplate || body.length !== 2 || regions.length || composition.weights?.length) return;
|
|
21398
|
+
const table = body.find((item) => item.field === "table"), note = body.find((item) => item.field === "text");
|
|
21399
|
+
if (!table || !note?.text || "listEntries" in note.text || table.frameBox || note.frameBox || table.emphasis || note.emphasis || table.caption || note.caption) return;
|
|
21400
|
+
if (note.box.y < table.box.y + table.box.height - 1 || note.box.x > table.box.x + table.box.width - 1 || note.box.x + note.box.width < table.box.x + 1) return;
|
|
21401
|
+
let laid;
|
|
21402
|
+
try {
|
|
21403
|
+
laid = layoutTable(table.value, table.box, { scale: scale2, minFontSize: table.composition.minFontSize, fontFamily: options.fontFamilies?.body, ...options.fontFamilies?.code ? { codeFontFamily: options.fontFamilies.code } : {}, textMeasurement: options.textMeasurement, presentation: options.presentation, ...numberLanguage(options), ...table.tableGrowth ? { growth: table.tableGrowth } : {} });
|
|
21404
|
+
} catch {
|
|
21405
|
+
laid = void 0;
|
|
21406
|
+
}
|
|
21407
|
+
if (!laid || laid.overflow) return;
|
|
21408
|
+
const fit = note.text, noteHeight = "richLines" in fit ? fit.height : fit.placement?.height ?? fit.lines.length * fit.lineHeight;
|
|
21409
|
+
const headingFoot = Math.max(contentBox.y, ...items.filter((item) => headings.has(item.field) && item.box.y + item.box.height <= table.box.y + 0.5).map((item) => item.box.y + item.box.height + gap));
|
|
21410
|
+
const top = Math.min(table.box.y, headingFoot), bottom = note.box.y + noteHeight, pair = laid.height + gap + noteHeight;
|
|
21411
|
+
if (note.box.y - (table.box.y + laid.height) <= gap * 1.5 || bottom - top <= pair) return;
|
|
21412
|
+
const tableY = round9(top + (bottom - top - pair) / 2), dy = round9(tableY + laid.height + gap - note.box.y);
|
|
21413
|
+
table.box = { ...table.box, y: tableY, height: laid.height };
|
|
21414
|
+
note.box = { ...note.box, y: note.box.y + dy };
|
|
21415
|
+
note.text = translateTextFit(note.text, dy);
|
|
21416
|
+
};
|
|
21123
21417
|
const shareTierPrices = () => {
|
|
21124
21418
|
const priceOf = (index) => items[index].metricLayout?.parts.find((part) => part.role === "value");
|
|
21125
21419
|
const alike = tierPrices.filter((index) => (priceOf(index)?.fit?.fontSize ?? 0) >= METRIC_ROLE_VALUE_SIZE * scale2 - FONT_GRID_EPSILON);
|
|
@@ -21400,6 +21694,8 @@ function composeLayout(input, options = {}) {
|
|
|
21400
21694
|
const ownMode = record19(slide.composition).mode;
|
|
21401
21695
|
const direction = recomposing && hints.sources.contentDirection === "layout" ? void 0 : hints.contentDirection;
|
|
21402
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
|
+
const regionDirections = /* @__PURE__ */ new Map();
|
|
21403
21699
|
const chartTrack = options[CHART_TRACK];
|
|
21404
21700
|
const chartHint = chartTrack?.edge ?? (hints.chartPrimary === "start" ? "left" : hints.chartPrimary === "end" ? "right" : hints.chartPrimary);
|
|
21405
21701
|
const chartSide = chartHint === "left" || chartHint === "right" || chartHint === "top" || chartHint === "bottom" ? chartHint : void 0;
|
|
@@ -21476,6 +21772,7 @@ function composeLayout(input, options = {}) {
|
|
|
21476
21772
|
}
|
|
21477
21773
|
} else {
|
|
21478
21774
|
const grouped = groupRoot(pending), roots = grouped?.nodes ?? pending;
|
|
21775
|
+
if (!regions.length) growBodyUnits(pending);
|
|
21479
21776
|
if (roots.length === 1 && !roots[0].children) roots[0].fills = true;
|
|
21480
21777
|
if (grouped?.settings) arrange(grouped.nodes, contentBox, grouped.settings, 0, gap);
|
|
21481
21778
|
else arrange(grouped?.nodes ?? pending, contentBox, rootSettings, 0);
|
|
@@ -21491,6 +21788,7 @@ function composeLayout(input, options = {}) {
|
|
|
21491
21788
|
alignHeadingTracks();
|
|
21492
21789
|
alignGroupTracks();
|
|
21493
21790
|
spaceMetricRows();
|
|
21791
|
+
closeTableNote();
|
|
21494
21792
|
if (autoSurface && autoEmphasis?.follows !== void 0 && options[PILL_AT_FOOT] !== true) {
|
|
21495
21793
|
const prefix = `${path}.blocks.${autoEmphasis.follows}.`, owner = items.filter((item2) => item2.path.startsWith(prefix) && item2.text);
|
|
21496
21794
|
const textBottom = Math.max(...owner.map((item2) => Math.max(item2.box.y + ("richLines" in item2.text ? item2.text.height : item2.text.placement?.height ?? item2.text.lines.length * item2.text.lineHeight), item2.frameBox ? item2.frameBox.y + item2.frameBox.height : -Infinity)));
|
|
@@ -21714,6 +22012,7 @@ function composeLayout(input, options = {}) {
|
|
|
21714
22012
|
const arrangedList = (item, kind2, area3, pyramidDirection = "up") => {
|
|
21715
22013
|
const values = item.value, fit = item.text, base = fit.fontSize, count = values.length;
|
|
21716
22014
|
const tree = kind2 === "org-chart" || kind2 === "hierarchy", measured = tree || kind2 === "venn";
|
|
22015
|
+
const overlapAt = kind2 === "venn" && record19(values[count - 1]).overlap === true ? count - 1 : -1, sets = overlapAt < 0 ? count : count - 1;
|
|
21717
22016
|
const listOptions = { ...richOptions(styleFor(item.field, item.path)), bullet: "none" };
|
|
21718
22017
|
const single = (index, box, size2) => {
|
|
21719
22018
|
const own0 = `${item.path}.0`, ownPath = `${item.path}.${index}`, marker = listOptions.citationMarker;
|
|
@@ -21742,7 +22041,7 @@ function composeLayout(input, options = {}) {
|
|
|
21742
22041
|
const box = { x: inner.x, y: inner.y + (inner.height - entry.text.height) / 2, width: inner.width, height: entry.text.height };
|
|
21743
22042
|
const text2 = single(index, box, size2), placed3 = text2.listEntries[0];
|
|
21744
22043
|
if (!placed3 || text2.overflow || cutsWord(placed3)) return void 0;
|
|
21745
|
-
if (kind2 === "venn" &&
|
|
22044
|
+
if (kind2 === "venn" && sets >= 5 && design2.design !== "smartart" && placed3.text.richLines.some((line2) => line2.fragments.map((fragment) => fragment.text).join("").trim().length > 70)) return void 0;
|
|
21746
22045
|
if (design2.align === "center") placed3.text.richLines = placed3.text.richLines.map((line2) => {
|
|
21747
22046
|
const last = line2.fragments.at(-1), trail = last && last.kind === void 0 ? /\s+$/u.exec(last.text)?.[0] : void 0;
|
|
21748
22047
|
if (!trail || trail.length === last.text.length) return line2;
|
|
@@ -21798,9 +22097,39 @@ function composeLayout(input, options = {}) {
|
|
|
21798
22097
|
});
|
|
21799
22098
|
designs.push({ design: "smartart", frame: area3, nodes, connectors: geometry.connectors, margin: ARRANGEMENT_TEXT_MARGIN[kind2], align: "center", paint: "primary", text: kind2 === "hierarchy" ? "slide" : "node", lineWidth: primaryLine });
|
|
21800
22099
|
} else if (kind2 === "venn") {
|
|
21801
|
-
const nativeNodes = vennNodes(area3,
|
|
21802
|
-
const
|
|
21803
|
-
|
|
22100
|
+
const nativeNodes = vennNodes(area3, sets);
|
|
22101
|
+
const withOverlap = (circles, size2) => {
|
|
22102
|
+
if (!circles || overlapAt < 0) return circles;
|
|
22103
|
+
const margin = ARRANGEMENT_TEXT_MARGIN.venn * size2, clear = 0.25 * size2, pad = 0.2 * size2;
|
|
22104
|
+
const ink = [];
|
|
22105
|
+
for (const [index, node] of circles.entries()) {
|
|
22106
|
+
const inner = { x: node.textBox.x + margin, y: node.textBox.y + margin, width: node.textBox.width - 2 * margin, height: node.textBox.height - 2 * margin };
|
|
22107
|
+
if (inner.width <= 0 || inner.height <= 0) return void 0;
|
|
22108
|
+
const entry = single(index, { ...inner, height: 1e5 }, size2).listEntries[0];
|
|
22109
|
+
if (!entry) return void 0;
|
|
22110
|
+
const widest = Math.max(0, ...entry.text.richLines.map((line2) => line2.width));
|
|
22111
|
+
ink.push({ x: inner.x + (inner.width - widest) / 2, y: inner.y + (inner.height - entry.text.height) / 2, width: widest, height: entry.text.height });
|
|
22112
|
+
}
|
|
22113
|
+
const cx = circles.reduce((sum, node) => sum + node.box.x + node.box.width / 2, 0) / circles.length, cy = circles.reduce((sum, node) => sum + node.box.y + node.box.height / 2, 0) / circles.length;
|
|
22114
|
+
const inside2 = (x, y2) => circles.every((node) => ((x - node.box.x - node.box.width / 2) / (node.box.width / 2)) ** 2 + ((y2 - node.box.y - node.box.height / 2) / (node.box.height / 2)) ** 2 <= 1);
|
|
22115
|
+
const labels = [1, 0.5, 0.36, 0.26, 0.18, 0.12].flatMap((share2) => {
|
|
22116
|
+
const probe = single(overlapAt, { x: 0, y: 0, width: area3.width * share2, height: 1e5 }, size2), entry = probe.listEntries[0];
|
|
22117
|
+
if (!entry || probe.overflow || cutsWord(entry)) return [];
|
|
22118
|
+
const width2 = Math.max(1, ...entry.text.richLines.map((line2) => line2.width)) + size2 * 0.02, height2 = entry.text.height, tall = height2 + 2 * margin + 2 * pad;
|
|
22119
|
+
return [{ width: width2, height: height2, tall, wide: width2 + 2 * margin + tall }];
|
|
22120
|
+
});
|
|
22121
|
+
const reach = Math.max(...circles.map((node) => node.box.height));
|
|
22122
|
+
for (let step2 = 0; step2 <= reach / (0.25 * size2); step2++) for (const dy of step2 ? [-step2 * 0.25 * size2, step2 * 0.25 * size2] : [0]) for (const label6 of labels) {
|
|
22123
|
+
const box = { x: cx - label6.wide / 2, y: cy + dy - label6.tall / 2, width: label6.wide, height: label6.tall };
|
|
22124
|
+
if (box.x < area3.x - 1e-6 || box.y < area3.y - 1e-6 || box.x + box.width > area3.x + area3.width + 1e-6 || box.y + box.height > area3.y + area3.height + 1e-6) continue;
|
|
22125
|
+
if (![0, -0.5, 0.5].some((share2) => [box.y, cy + dy, box.y + box.height].some((y2) => inside2(cx + share2 * label6.width, y2)))) continue;
|
|
22126
|
+
if (ink.some((other) => box.x < other.x + other.width + clear && other.x < box.x + box.width + clear && box.y < other.y + other.height + clear && other.y < box.y + box.height + clear)) continue;
|
|
22127
|
+
return [...circles, { index: overlapAt, box, textBox: { x: box.x + label6.tall / 2, y: box.y + pad, width: label6.width + 2 * margin, height: label6.height + 2 * margin }, preset: "roundRect", adjust: 5e4, radius: label6.tall / 2, overlap: true }];
|
|
22128
|
+
}
|
|
22129
|
+
return void 0;
|
|
22130
|
+
};
|
|
22131
|
+
const measuredDesign = { design: "smartart", frame: area3, nodes: nativeNodes, margin: ARRANGEMENT_TEXT_MARGIN.venn, align: "center", paint: "primary", text: "slide", lineWidth: primaryLine, ...overlapAt < 0 ? {} : { fitNodes: (size2) => withOverlap(nativeNodes, size2) } };
|
|
22132
|
+
if (sets <= 4) designs.push(measuredDesign);
|
|
21804
22133
|
else {
|
|
21805
22134
|
const previous = sized(measuredDesign), previousList = { ...item };
|
|
21806
22135
|
if (!previous) fillRegionWithList(previousList, area3, top);
|
|
@@ -21811,7 +22140,7 @@ function composeLayout(input, options = {}) {
|
|
|
21811
22140
|
for (const share2 of [0.18, 0.24, 0.32, 0.4, 0.5]) {
|
|
21812
22141
|
const labels = [];
|
|
21813
22142
|
let complete = true;
|
|
21814
|
-
for (let index = 0; index <
|
|
22143
|
+
for (let index = 0; index < sets; index++) {
|
|
21815
22144
|
const probe = single(index, { x: 0, y: 0, width: area3.width * share2, height: 1e5 }, size2), entry = probe.listEntries[0];
|
|
21816
22145
|
if (!entry || probe.overflow || cutsWord(entry) || entry.text.richLines.some((line2) => line2.fragments.map((fragment) => fragment.text).join("").trim().length > 70)) {
|
|
21817
22146
|
complete = false;
|
|
@@ -21826,10 +22155,10 @@ function composeLayout(input, options = {}) {
|
|
|
21826
22155
|
const fit2 = fitVennShapes(area3, nativeNodes, labels, Math.max(4 * scale2, size2 * 0.12));
|
|
21827
22156
|
if (fit2 && fit2.circleHeight >= area3.height * 0.65 && (!best || fit2.circleHeight > best.circleHeight)) best = fit2;
|
|
21828
22157
|
}
|
|
21829
|
-
return best?.nodes;
|
|
22158
|
+
return withOverlap(best?.nodes, size2);
|
|
21830
22159
|
};
|
|
21831
22160
|
designs.push({ ...measuredDesign, design: "opf", minimumSize, fitNodes, instead: "the measured Basic Venn circle group leaves too much unused slide body", adaptation: "Venn sets use enlarged editable shapes with measured outside labels; this adapted geometry is not a qualified live SmartArt layout." });
|
|
21832
|
-
const columns2 = [.../* @__PURE__ */ new Set([...cardGridColumns(count), 2, 1])].filter((column) => column <= count);
|
|
22161
|
+
const columns2 = overlapAt < 0 ? [.../* @__PURE__ */ new Set([...cardGridColumns(count), 2, 1])].filter((column) => column <= count) : [];
|
|
21833
22162
|
for (const column of columns2) designs.push({ design: "cards", frame: area3, nodes: cardNodes(area3, count, column, gap, radius), margin: CARD_TEXT_MARGIN, align: "center", paint: "card", text: "slide", lineWidth: scale2, minimumSize, adaptation: "The Venn overlap cannot keep every outside label readable at the original type size, so all sets are shown as editable cards." });
|
|
21834
22163
|
}
|
|
21835
22164
|
} else if (kind2 === "cycle") {
|
|
@@ -22087,7 +22416,8 @@ function composeLayout(input, options = {}) {
|
|
|
22087
22416
|
if (!values.length) continue;
|
|
22088
22417
|
const tree = region.arrangement === "org-chart" || region.arrangement === "hierarchy";
|
|
22089
22418
|
const topology = tree ? arrangementTree(values) : void 0;
|
|
22090
|
-
const
|
|
22419
|
+
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" : region.arrangement !== "matrix" && sets > ARRANGEMENT_MAX[region.arrangement] ? `more than ${ARRANGEMENT_MAX[region.arrangement]} ${SMART_ART_NAMES[region.arrangement].nodes}` : values.length > ARRANGEMENT_CARDS_MAX ? `more than ${ARRANGEMENT_CARDS_MAX} entries` : void 0;
|
|
22091
22421
|
if (reason) {
|
|
22092
22422
|
diagnostics.push({ code: "arrangement-adapted", path: item.path, message: `${region.arrangement === "chevrons" ? "A row of chevrons" : `A ${region.arrangement.replace("-", " ")}`} draws a list of one level of short entries; this list has ${reason}, so it is drawn as a list.` });
|
|
22093
22423
|
continue;
|
|
@@ -22278,6 +22608,7 @@ function composeLayout(input, options = {}) {
|
|
|
22278
22608
|
return joined !== source.replace(/\s+/gu, " ").trim();
|
|
22279
22609
|
};
|
|
22280
22610
|
const cardLists = /* @__PURE__ */ new Set();
|
|
22611
|
+
const cardsArrangement = (item) => useTemplate ? item.region === void 0 ? void 0 : regionDirections.get(item.region) : regions.length ? void 0 : modeFor(rootSettings);
|
|
22281
22612
|
const sharedLabelTracks = (laid, columns2, again) => {
|
|
22282
22613
|
if (!ruleOn("heading-tracks")) return laid;
|
|
22283
22614
|
let moved = false;
|
|
@@ -22297,6 +22628,7 @@ function composeLayout(input, options = {}) {
|
|
|
22297
22628
|
const body = items.filter((item2) => !headings.has(item2.field) && !item2.eyebrow);
|
|
22298
22629
|
const item = body.length === 1 ? body[0] : void 0;
|
|
22299
22630
|
if (!item || item.field !== "items" || item.listColumns || item.caption || item.frameBox || item.emphasis || stepFlows.has(item.path) || !item.text || !("listEntries" in item.text)) return void 0;
|
|
22631
|
+
if (cardsArrangement(item) === "column") return void 0;
|
|
22300
22632
|
const values = Array.isArray(item.value) ? item.value : [];
|
|
22301
22633
|
if (values.length < ICON_CARD_MIN || values.length > ICON_CARD_MAX) return void 0;
|
|
22302
22634
|
const entries = values.map((value) => {
|
|
@@ -22677,11 +23009,27 @@ function composeLayout(input, options = {}) {
|
|
|
22677
23009
|
const left = Math.min(...outer.map((box) => box.x)), right = Math.max(...outer.map((box) => box.x + box.width)), top = Math.min(...outer.map((box) => box.y));
|
|
22678
23010
|
addIcon(pending2.path, pending2.owner, pending2.icon, rtl ? right - r : left + r, top - lift - r, pending2.diameter, placed2.some((item) => item.emphasis === true));
|
|
22679
23011
|
}
|
|
23012
|
+
const roomFor = (at3) => {
|
|
23013
|
+
const owner = items.filter((item) => at3.startsWith(`${item.path}.`)).sort((a, b) => b.path.length - a.path.length)[0];
|
|
23014
|
+
const steps2 = (owner?.path ?? at3).slice(path.length + 1).split(".");
|
|
23015
|
+
let node = slide, weighted = false;
|
|
23016
|
+
for (let index = 0; index < steps2.length; index++) {
|
|
23017
|
+
if (steps2[index] !== "blocks") {
|
|
23018
|
+
node = record19(node[steps2[index]]);
|
|
23019
|
+
continue;
|
|
23020
|
+
}
|
|
23021
|
+
if (Array.isArray(record19(node.composition).weights) && record19(node.composition).weights.length) weighted = true;
|
|
23022
|
+
node = record19(Array.isArray(node.blocks) ? node.blocks[Number(steps2[++index])] : void 0);
|
|
23023
|
+
}
|
|
23024
|
+
if (weighted) return "its block, at the share `composition.weights` gives it,";
|
|
23025
|
+
const region = owner?.region ?? (regionParts(steps2[0] ?? "") ? steps2[0] : void 0);
|
|
23026
|
+
return region !== void 0 ? `its block, in the region \`${region}\`,` : "the slide";
|
|
23027
|
+
};
|
|
22680
23028
|
const iconDiagnostics = [], drawnIcons = new Set(icons.map((icon) => icon.path));
|
|
22681
23029
|
for (const found of documentIcons(slide)) {
|
|
22682
23030
|
const at3 = path + found.path.slice("slide".length), value = found.value;
|
|
22683
23031
|
if (drawnIcons.has(at3) || !resolveIcon(options.presentation ?? {}, value).ok) continue;
|
|
22684
|
-
iconDiagnostics.push({ code: "icon-dropped", path: at3, message: ruleOn("icons") ? "The icon is not drawn: icons draw on the first-level entries of an unnumbered list, on metrics and on groups, and this one marks none of them here." :
|
|
23032
|
+
iconDiagnostics.push({ code: "icon-dropped", path: at3, message: ruleOn("icons") ? "The icon is not drawn: icons draw on the first-level entries of an unnumbered list, on metrics and on groups, and this one marks none of them here." : `The icon is not drawn: ${roomFor(at3)} has no room for its chip without setting text smaller. The text keeps its size.` });
|
|
22685
23033
|
}
|
|
22686
23034
|
const numberingDiagnostics = [];
|
|
22687
23035
|
for (const item of items) {
|
|
@@ -22920,4 +23268,4 @@ function resolveCanvasDimensions(input) {
|
|
|
22920
23268
|
return { width, height };
|
|
22921
23269
|
}
|
|
22922
23270
|
|
|
22923
|
-
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, 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 };
|
|
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 };
|