@xlsx-editor.dev/core 0.0.0-placeholder.0 → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +217 -0
- package/README.md +254 -2
- package/THIRD_PARTY_NOTICES.md +78 -0
- package/dist/automation.d.ts +299 -0
- package/dist/automation.js +42 -0
- package/dist/builtins-nmHrq2Et.d.ts +37 -0
- package/dist/cascade.d.ts +196 -0
- package/dist/cascade.js +60 -0
- package/dist/cell-format-DW8yF-c-.d.ts +226 -0
- package/dist/chunk-2DLJYRJC.js +3171 -0
- package/dist/chunk-2ZU4337U.js +204 -0
- package/dist/chunk-44L37ENZ.js +8219 -0
- package/dist/chunk-77N55BLP.js +911 -0
- package/dist/chunk-7PV5HQPE.js +84 -0
- package/dist/chunk-E4VJJ556.js +756 -0
- package/dist/chunk-KG4IL4JI.js +436 -0
- package/dist/chunk-PLDK4XO6.js +9125 -0
- package/dist/chunk-PRHLYXHL.js +1699 -0
- package/dist/chunk-TE4FXG5T.js +3156 -0
- package/dist/contracts.d.ts +32 -0
- package/dist/contracts.js +0 -0
- package/dist/dist-C7NLNUMD.js +2850 -0
- package/dist/editor.d.ts +3167 -0
- package/dist/editor.js +309 -0
- package/dist/harfbuzz-measurer-CkKfsEyu.d.ts +128 -0
- package/dist/harfbuzz.wasm +0 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +309 -0
- package/dist/layout.d.ts +111 -0
- package/dist/layout.js +104 -0
- package/dist/merge-commands-DthcNpfw.d.ts +53 -0
- package/dist/node-module-shim-LQXGL47O.js +18 -0
- package/dist/ops-CfUCjyph.d.ts +629 -0
- package/dist/output.d.ts +177 -0
- package/dist/output.js +29 -0
- package/dist/sheet-index-P5vevMWX.d.ts +52 -0
- package/dist/sheet-layout-D9M_4EBn.d.ts +494 -0
- package/dist/sheet-protection-D8goxm58.d.ts +209 -0
- package/dist/store.d.ts +615 -0
- package/dist/store.js +272 -0
- package/dist/theme-BprDji6x.d.ts +16 -0
- package/dist/units-D6CD_A5I.d.ts +13 -0
- package/dist/workbook-index-DsbeR8Kb.d.ts +294 -0
- package/licenses/Emscripten-LICENSE.txt +102 -0
- package/licenses/HarfBuzz-COPYING.txt +42 -0
- package/licenses/HarfBuzz-USE-MIT.txt +21 -0
- package/licenses/HarfBuzz-source-notices.txt +4508 -0
- package/licenses/README.md +19 -0
- package/licenses/Unicode-LICENSE.txt +39 -0
- package/licenses/compiler-rt-LICENSE.txt +311 -0
- package/licenses/harfbuzz-manifest.json +84 -0
- package/licenses/musl-COPYRIGHT.txt +193 -0
- package/package.json +79 -6
- package/src/styles/editor.css +1933 -0
- package/src/styles/editor.css.d.ts +2 -0
|
@@ -0,0 +1,3156 @@
|
|
|
1
|
+
import {
|
|
2
|
+
harfBuzzUnsupportedRuntimeDiagnostic,
|
|
3
|
+
harfBuzzVersionMismatchDiagnostic,
|
|
4
|
+
harfBuzzWasmUnavailableDiagnostic,
|
|
5
|
+
isUnsupportedNodeRuntime
|
|
6
|
+
} from "./chunk-7PV5HQPE.js";
|
|
7
|
+
import {
|
|
8
|
+
frozenPanes,
|
|
9
|
+
mergeAnchoredAt,
|
|
10
|
+
mergeAt,
|
|
11
|
+
mergeCoverage,
|
|
12
|
+
mergedRanges,
|
|
13
|
+
mergesIn,
|
|
14
|
+
windowPanes
|
|
15
|
+
} from "./chunk-2ZU4337U.js";
|
|
16
|
+
import {
|
|
17
|
+
EN_US,
|
|
18
|
+
LAYOUT_CHECK_BUDGET,
|
|
19
|
+
cellFormat,
|
|
20
|
+
cellSharedStringIndex,
|
|
21
|
+
cellValue,
|
|
22
|
+
conditionalFormat,
|
|
23
|
+
defaultFont,
|
|
24
|
+
displayValue,
|
|
25
|
+
formatCodeOf,
|
|
26
|
+
richTextRuns,
|
|
27
|
+
rowHasShownRules,
|
|
28
|
+
sheetRules,
|
|
29
|
+
sheetStale,
|
|
30
|
+
workbookTheme
|
|
31
|
+
} from "./chunk-PRHLYXHL.js";
|
|
32
|
+
import {
|
|
33
|
+
parseHex,
|
|
34
|
+
resolveDrawingColor
|
|
35
|
+
} from "./chunk-KG4IL4JI.js";
|
|
36
|
+
import {
|
|
37
|
+
MAX_COLUMN_WIDTH,
|
|
38
|
+
MAX_ROW_HEIGHT,
|
|
39
|
+
cellKey,
|
|
40
|
+
columnFormats,
|
|
41
|
+
rowFormat,
|
|
42
|
+
sheetIndex
|
|
43
|
+
} from "./chunk-44L37ENZ.js";
|
|
44
|
+
import {
|
|
45
|
+
MAX_COLS,
|
|
46
|
+
MAX_ROWS,
|
|
47
|
+
NS,
|
|
48
|
+
REL,
|
|
49
|
+
attr,
|
|
50
|
+
child,
|
|
51
|
+
children,
|
|
52
|
+
contentTypeOf,
|
|
53
|
+
elements,
|
|
54
|
+
parseCellRef,
|
|
55
|
+
partOf,
|
|
56
|
+
relTarget,
|
|
57
|
+
relationshipById,
|
|
58
|
+
sharedStringItems,
|
|
59
|
+
sheetByName,
|
|
60
|
+
styleLists,
|
|
61
|
+
textOf,
|
|
62
|
+
workbookIndex,
|
|
63
|
+
xmlPartOf
|
|
64
|
+
} from "./chunk-2DLJYRJC.js";
|
|
65
|
+
|
|
66
|
+
// src/layout/units.ts
|
|
67
|
+
var EMU_PER_POINT = 12700;
|
|
68
|
+
var CSS_PIXELS_PER_INCH = 96;
|
|
69
|
+
var POINTS_PER_PIXEL = 72 / CSS_PIXELS_PER_INCH;
|
|
70
|
+
var emuToPoints = (emu) => emu / EMU_PER_POINT;
|
|
71
|
+
var pixelsToPoints = (pixels) => pixels * POINTS_PER_PIXEL;
|
|
72
|
+
var pointsToPixels = (points) => points / POINTS_PER_PIXEL;
|
|
73
|
+
|
|
74
|
+
// src/layout/approximations.ts
|
|
75
|
+
var APPROXIMATIONS = Object.freeze([
|
|
76
|
+
{ id: "pixel-density", title: "Pixel density", perSheet: false },
|
|
77
|
+
{
|
|
78
|
+
id: "screen-geometry",
|
|
79
|
+
title: "Screen geometry",
|
|
80
|
+
perSheet: false,
|
|
81
|
+
unmeasured: [
|
|
82
|
+
"the whole-pixel snap of rotated text in the screen profile",
|
|
83
|
+
"the minimum descent of bottom-aligned text in the screen profile"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{ id: "tint-rounding", title: "Tint rounding", perSheet: false },
|
|
87
|
+
{ id: "row-auto-height", title: "Row auto height", perSheet: false },
|
|
88
|
+
{ id: "wrap-measure-budget", title: "Row height of very long wrapped text", perSheet: false },
|
|
89
|
+
{
|
|
90
|
+
id: "unmeasured-text-layout",
|
|
91
|
+
title: "Text layout without a measurement",
|
|
92
|
+
perSheet: false,
|
|
93
|
+
unmeasured: [
|
|
94
|
+
"overflow that reaches a cell with a constant value",
|
|
95
|
+
"overflow that reaches a formula with no cached value",
|
|
96
|
+
"the minimum descent of bottom-aligned text in fonts other than Carlito 6 and 8",
|
|
97
|
+
"stacked text at the top or center of a cell"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "unmeasured-rotation",
|
|
102
|
+
title: "Rotated text without a measurement",
|
|
103
|
+
perSheet: false,
|
|
104
|
+
unmeasured: [
|
|
105
|
+
"angles other than 45, 90, and -45 degrees",
|
|
106
|
+
"-90 degrees (`textRotation` 180)",
|
|
107
|
+
"numbers, booleans, and errors with rotation",
|
|
108
|
+
"rotated text at the top or center of a cell",
|
|
109
|
+
"an explicit horizontal alignment of rotated text",
|
|
110
|
+
"indent with rotation",
|
|
111
|
+
"rotated text in a merged range",
|
|
112
|
+
"`justify`, `distributed`, and `centerContinuous` with rotation",
|
|
113
|
+
"`wrapText` with rotation",
|
|
114
|
+
"rotated text taller than its cell"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{ id: "measured-text-offsets", title: "Measured text offsets", perSheet: false },
|
|
118
|
+
{ id: "overflow-reach", title: "Overflow reach", perSheet: false },
|
|
119
|
+
{ id: "drawing-objects", title: "Drawing objects", perSheet: false },
|
|
120
|
+
{ id: "border-line-styles", title: "Border line styles", perSheet: false },
|
|
121
|
+
{ id: "fill-pixels", title: "Fill pixels", perSheet: false },
|
|
122
|
+
{ id: "gridline-color", title: "Gridline color", perSheet: false },
|
|
123
|
+
{ id: "glyph-positions", title: "Glyph positions", perSheet: false },
|
|
124
|
+
{ id: "substitute-outlines", title: "Substitute font outlines", perSheet: false },
|
|
125
|
+
{ id: "glyph-rasterization", title: "Glyph rasterization", perSheet: false },
|
|
126
|
+
{
|
|
127
|
+
id: "clipped-line-scores",
|
|
128
|
+
title: "Line scores of clipped text",
|
|
129
|
+
perSheet: false,
|
|
130
|
+
unmeasured: [
|
|
131
|
+
"a text run that starts or ends with a space glyph",
|
|
132
|
+
"a Type 3 font with another font matrix",
|
|
133
|
+
"a line that a clip cuts on both sides",
|
|
134
|
+
"a clip edge inside a space",
|
|
135
|
+
"a painted line that keeps one character other than a digit",
|
|
136
|
+
"a top or bottom clip edge",
|
|
137
|
+
"a cell of one character other than a digit",
|
|
138
|
+
"rotated, mirrored, or vertical text",
|
|
139
|
+
"repeated text that pairs across cells",
|
|
140
|
+
"a cut line that differs only in white space"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "join-gap-limit",
|
|
145
|
+
title: "Join gap limit",
|
|
146
|
+
perSheet: false,
|
|
147
|
+
unmeasured: [
|
|
148
|
+
"a gap of the pieces near the limit",
|
|
149
|
+
"a join piece that moved along the row past the gap limit",
|
|
150
|
+
"a join piece that moved off the row"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: "reference-items-across-cells",
|
|
155
|
+
title: "Reference items across cells",
|
|
156
|
+
perSheet: false,
|
|
157
|
+
unmeasured: ["a reference item that holds the text of two cells"]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "conditional-rules",
|
|
161
|
+
title: "Conditional formatting rules",
|
|
162
|
+
perSheet: false,
|
|
163
|
+
unmeasured: [
|
|
164
|
+
"a formula cell with a cached value, and a formula cell without one, which does not take part",
|
|
165
|
+
"rules with equal `@priority`, which walk in document order",
|
|
166
|
+
"boolean operands, and the order of numbers before booleans",
|
|
167
|
+
"the order of strings by UTF-16 code unit after lowercase",
|
|
168
|
+
"number equality without rounding",
|
|
169
|
+
"a value equal to a bound of `between` or `notBetween`",
|
|
170
|
+
"a stored value that cannot be read, such as a bad number, which compares as an empty value",
|
|
171
|
+
"date values, and an empty value under a boolean operand",
|
|
172
|
+
"the font family and the font size of a differential format, and text that clips in its row",
|
|
173
|
+
'`patternType="none"`, another pattern type, and a gradient fill in a differential format',
|
|
174
|
+
"differential borders",
|
|
175
|
+
"a `solid` fill with only `x:fgColor` over a cell with no fill",
|
|
176
|
+
"an `x:patternFill` with no color, an `x:bgColor` that does not resolve, and a `solid` fill with both `x:fgColor` and `x:bgColor`",
|
|
177
|
+
"two shown true rules that set the same property, and a differential font that turns a property off",
|
|
178
|
+
"a rule that is not shown with `stopIfTrue`, or that is true above a shown rule that sets the same property",
|
|
179
|
+
"a true rule without `@dxfId`, or with a `@dxfId` that no `x:dxf` has, with `stopIfTrue`",
|
|
180
|
+
"a fill with only `x:fgColor` before a true rule with `x:bgColor` over one cell",
|
|
181
|
+
"an empty merged range under a rule",
|
|
182
|
+
"a rich text run under a true rule",
|
|
183
|
+
"a differential fill over a cell with a pattern fill or a gradient fill",
|
|
184
|
+
"a differential font over a cell with its own font properties",
|
|
185
|
+
"a differential number format over a cell with its own number format",
|
|
186
|
+
"a differential color that is `auto` or a system color (`indexed` 64 or 65)",
|
|
187
|
+
"underline styles other than `single` in a differential font",
|
|
188
|
+
"a differential `x:vertAlign`",
|
|
189
|
+
"a rule that covers a cell of a merged range other than its top-left cell"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{ id: "cut-references", title: "Cut references", perSheet: false },
|
|
193
|
+
{ id: "cut-cell-attachments", title: "Cut cell attachments", perSheet: false },
|
|
194
|
+
{ id: "pasted-values", title: "Pasted rich text and errors", perSheet: false },
|
|
195
|
+
{ id: "pasted-quotes", title: "Quoted pasted text", perSheet: false },
|
|
196
|
+
{ id: "copied-line-breaks", title: "Copied line breaks", perSheet: false },
|
|
197
|
+
{ id: "shadow-root-clipboard", title: "Clipboard keys in a shadow root", perSheet: false },
|
|
198
|
+
{ id: "sheet-titles", title: "Sheet titles in the document properties", perSheet: false },
|
|
199
|
+
{ id: "legacy-drawing-anchors", title: "Legacy drawing anchors", perSheet: false },
|
|
200
|
+
{
|
|
201
|
+
id: "wrapped-formula-values",
|
|
202
|
+
title: "Wrapped formula values",
|
|
203
|
+
perSheet: false,
|
|
204
|
+
unmeasured: [
|
|
205
|
+
"an `mc:Choice` whose namespace the consumer understands",
|
|
206
|
+
"a cell with no `mc:Fallback`",
|
|
207
|
+
"a value from a branch with no `x:f`",
|
|
208
|
+
"an `mc:Fallback` with a value and no `x:f`, beside an `mc:Choice` with a formula"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
// A run of `?` after a literal or a dash in a zero section pads it. Only a section with a fill
|
|
212
|
+
// and a dash gets its `?` back. Beside another literal, or with no fill, a decrease to no
|
|
213
|
+
// places removes the last `?`, and an increase does not add it back.
|
|
214
|
+
{ id: "decimal-padding", title: "Decimal padding beside a literal", perSheet: false },
|
|
215
|
+
// A decimal step adds or removes the last decimal placeholder of a section. When a literal or
|
|
216
|
+
// a second point splits the places, as in `0.00" "0`, a step can move a place across the
|
|
217
|
+
// literal, so a decrease and an increase do not return the code.
|
|
218
|
+
{ id: "decimal-split-places", title: "Decimal places split by a literal", perSheet: false }
|
|
219
|
+
]);
|
|
220
|
+
|
|
221
|
+
// src/cascade/script-fonts.ts
|
|
222
|
+
function eastAsianScriptOf(lang) {
|
|
223
|
+
if (!lang) return void 0;
|
|
224
|
+
const tag = lang.toLowerCase();
|
|
225
|
+
const primary = tag.split("-")[0];
|
|
226
|
+
if (primary === "ja") return "Jpan";
|
|
227
|
+
if (primary === "ko") return "Hang";
|
|
228
|
+
if (primary === "zh" || primary === "yue" || primary === "cmn") {
|
|
229
|
+
if (/-hant(-|$)/.test(tag) || /-(tw|hk|mo)(-|$)/.test(tag)) return "Hant";
|
|
230
|
+
return "Hans";
|
|
231
|
+
}
|
|
232
|
+
return void 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// src/layout/text/measurer.ts
|
|
236
|
+
var FONT_SUBSTITUTES = Object.freeze({
|
|
237
|
+
calibri: ["Carlito"],
|
|
238
|
+
"calibri light": ["Carlito"],
|
|
239
|
+
cambria: ["Caladea"],
|
|
240
|
+
arial: ["Liberation Sans", "Arial"],
|
|
241
|
+
helvetica: ["Liberation Sans"],
|
|
242
|
+
"helvetica neue": ["Liberation Sans"],
|
|
243
|
+
"arial narrow": ["Liberation Sans"],
|
|
244
|
+
"times new roman": ["Liberation Serif"],
|
|
245
|
+
times: ["Liberation Serif"],
|
|
246
|
+
"courier new": ["Liberation Mono"],
|
|
247
|
+
courier: ["Liberation Mono"],
|
|
248
|
+
"century gothic": ["TeX Gyre Adventor"],
|
|
249
|
+
aptos: ["Carlito"],
|
|
250
|
+
"aptos display": ["Carlito"],
|
|
251
|
+
"aptos narrow": ["Liberation Sans"],
|
|
252
|
+
"segoe ui": ["Liberation Sans"],
|
|
253
|
+
"open sans": ["Liberation Sans"],
|
|
254
|
+
"myriad pro": ["Liberation Sans"],
|
|
255
|
+
"myriad pro light": ["Liberation Sans"]
|
|
256
|
+
});
|
|
257
|
+
var METRIC_COMPATIBLE = Object.freeze({
|
|
258
|
+
calibri: "carlito",
|
|
259
|
+
cambria: "caladea",
|
|
260
|
+
arial: "liberation sans",
|
|
261
|
+
"times new roman": "liberation serif",
|
|
262
|
+
"courier new": "liberation mono",
|
|
263
|
+
"century gothic": "tex gyre adventor"
|
|
264
|
+
});
|
|
265
|
+
var DEFAULT_FALLBACK_FAMILY = "Liberation Sans";
|
|
266
|
+
var JAPANESE_FACES = ["Noto Sans CJK JP", "Noto Sans JP"];
|
|
267
|
+
var SIMPLIFIED_FACES = ["Noto Sans CJK SC", "Noto Sans SC"];
|
|
268
|
+
var TRADITIONAL_FACES = ["Noto Sans CJK TC", "Noto Sans TC"];
|
|
269
|
+
var KOREAN_FACES = ["Noto Sans CJK KR", "Noto Sans KR"];
|
|
270
|
+
var EAST_ASIAN_FALLBACK_FAMILIES = Object.freeze([
|
|
271
|
+
...JAPANESE_FACES,
|
|
272
|
+
...SIMPLIFIED_FACES,
|
|
273
|
+
...TRADITIONAL_FACES,
|
|
274
|
+
...KOREAN_FACES
|
|
275
|
+
]);
|
|
276
|
+
var FALLBACKS_BY_SCRIPT = {
|
|
277
|
+
Hans: Object.freeze([
|
|
278
|
+
...SIMPLIFIED_FACES,
|
|
279
|
+
...TRADITIONAL_FACES,
|
|
280
|
+
...JAPANESE_FACES,
|
|
281
|
+
...KOREAN_FACES
|
|
282
|
+
]),
|
|
283
|
+
Hant: Object.freeze([
|
|
284
|
+
...TRADITIONAL_FACES,
|
|
285
|
+
...SIMPLIFIED_FACES,
|
|
286
|
+
...JAPANESE_FACES,
|
|
287
|
+
...KOREAN_FACES
|
|
288
|
+
]),
|
|
289
|
+
Hang: Object.freeze([
|
|
290
|
+
...KOREAN_FACES,
|
|
291
|
+
...JAPANESE_FACES,
|
|
292
|
+
...SIMPLIFIED_FACES,
|
|
293
|
+
...TRADITIONAL_FACES
|
|
294
|
+
])
|
|
295
|
+
};
|
|
296
|
+
function eastAsianFallbackFamilies(lang) {
|
|
297
|
+
const script = eastAsianScriptOf(lang);
|
|
298
|
+
return script && FALLBACKS_BY_SCRIPT[script] || EAST_ASIAN_FALLBACK_FAMILIES;
|
|
299
|
+
}
|
|
300
|
+
function createFixedMeasurer() {
|
|
301
|
+
const metrics = {
|
|
302
|
+
ascent: 0.9,
|
|
303
|
+
descent: 0.25,
|
|
304
|
+
lineGap: 0,
|
|
305
|
+
underlinePosition: -0.1,
|
|
306
|
+
underlineThickness: 0.05
|
|
307
|
+
};
|
|
308
|
+
return {
|
|
309
|
+
resolve: (r) => ({
|
|
310
|
+
id: r.family,
|
|
311
|
+
family: r.family,
|
|
312
|
+
bold: r.bold,
|
|
313
|
+
italic: r.italic,
|
|
314
|
+
synthBold: false,
|
|
315
|
+
synthItalic: false,
|
|
316
|
+
substituted: false,
|
|
317
|
+
metrics
|
|
318
|
+
}),
|
|
319
|
+
advances: (_face, text) => {
|
|
320
|
+
const out = new Float64Array(text.length);
|
|
321
|
+
for (let i = 0; i < text.length; i += 1) {
|
|
322
|
+
const c = text.charCodeAt(i);
|
|
323
|
+
out[i] = c >= 56320 && c <= 57343 ? 0 : c === 32 ? 0.25 : 0.5;
|
|
324
|
+
}
|
|
325
|
+
return out;
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// src/layout/text/advance-cache.ts
|
|
331
|
+
var AdvanceCache = class {
|
|
332
|
+
#young = /* @__PURE__ */ new Map();
|
|
333
|
+
#old = /* @__PURE__ */ new Map();
|
|
334
|
+
#generation;
|
|
335
|
+
constructor(limit) {
|
|
336
|
+
this.#generation = Math.max(1, Math.floor(limit / 2));
|
|
337
|
+
}
|
|
338
|
+
get(key) {
|
|
339
|
+
const young = this.#young.get(key);
|
|
340
|
+
if (young !== void 0) return young;
|
|
341
|
+
const old = this.#old.get(key);
|
|
342
|
+
if (old !== void 0) {
|
|
343
|
+
this.#old.delete(key);
|
|
344
|
+
this.#add(key, old);
|
|
345
|
+
}
|
|
346
|
+
return old;
|
|
347
|
+
}
|
|
348
|
+
set(key, value) {
|
|
349
|
+
this.#add(key, value);
|
|
350
|
+
}
|
|
351
|
+
/** Entries held now. */
|
|
352
|
+
get size() {
|
|
353
|
+
return this.#young.size + this.#old.size;
|
|
354
|
+
}
|
|
355
|
+
#add(key, value) {
|
|
356
|
+
if (this.#young.size >= this.#generation) {
|
|
357
|
+
this.#old = this.#young;
|
|
358
|
+
this.#young = /* @__PURE__ */ new Map();
|
|
359
|
+
}
|
|
360
|
+
this.#young.set(key, value);
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
// src/layout/text/face-line-metrics.ts
|
|
365
|
+
var USE_TYPO_METRICS = 128;
|
|
366
|
+
function os2LineExtents(os2) {
|
|
367
|
+
if (!os2 || os2.length < 78) return void 0;
|
|
368
|
+
const view = new DataView(os2.buffer, os2.byteOffset, os2.byteLength);
|
|
369
|
+
const typo = (view.getUint16(62) & USE_TYPO_METRICS) !== 0;
|
|
370
|
+
const ascent = typo ? view.getInt16(68) : view.getUint16(74);
|
|
371
|
+
const descent = typo ? -view.getInt16(70) : view.getUint16(76);
|
|
372
|
+
if (ascent + descent <= 0) return void 0;
|
|
373
|
+
return [Math.max(0, ascent), Math.max(0, descent)];
|
|
374
|
+
}
|
|
375
|
+
var FACE_LINE_METRICS = /* @__PURE__ */ new Map([
|
|
376
|
+
["aptos", { upem: 2048, ascent: 1923, descent: 577 }],
|
|
377
|
+
["aptos narrow", { upem: 2048, ascent: 1923, descent: 577 }],
|
|
378
|
+
["cambria", { upem: 2048, ascent: 1946, descent: 455 }],
|
|
379
|
+
["century gothic", { upem: 2048, ascent: 1989, descent: 451 }],
|
|
380
|
+
["yu gothic", { upem: 2048, ascent: 2017, descent: 619 }],
|
|
381
|
+
["yu gothic medium", { upem: 2048, ascent: 2028, descent: 608 }],
|
|
382
|
+
["yu gothic light", { upem: 2048, ascent: 2026, descent: 610 }],
|
|
383
|
+
["yu gothic ui", { upem: 2048, ascent: 2210, descent: 514 }],
|
|
384
|
+
["yu mincho", { upem: 2048, ascent: 2038, descent: 598 }],
|
|
385
|
+
["meiryo", { upem: 2048, ascent: 2171, descent: 901 }],
|
|
386
|
+
["meiryo ui", { upem: 2048, ascent: 2171, descent: 430 }],
|
|
387
|
+
["ms gothic", { upem: 256, ascent: 220, descent: 36 }],
|
|
388
|
+
["ms pgothic", { upem: 256, ascent: 220, descent: 36 }],
|
|
389
|
+
["ms mincho", { upem: 256, ascent: 220, descent: 36 }],
|
|
390
|
+
["ms pmincho", { upem: 256, ascent: 220, descent: 36 }],
|
|
391
|
+
["simsun", { upem: 256, ascent: 220, descent: 36 }],
|
|
392
|
+
["dengxian", { upem: 2048, ascent: 1659, descent: 475 }],
|
|
393
|
+
["microsoft yahei", { upem: 2048, ascent: 2167, descent: 536 }],
|
|
394
|
+
["microsoft jhenghei", { upem: 2048, ascent: 2203, descent: 521 }],
|
|
395
|
+
["mingliu", { upem: 1024, ascent: 820, descent: 204 }],
|
|
396
|
+
["pmingliu", { upem: 1024, ascent: 820, descent: 204 }],
|
|
397
|
+
["malgun gothic", { upem: 2048, ascent: 2229, descent: 495 }]
|
|
398
|
+
]);
|
|
399
|
+
function withFaceLineMetrics(family, metrics) {
|
|
400
|
+
const known = FACE_LINE_METRICS.get(family.trim().toLowerCase());
|
|
401
|
+
if (!known) return metrics;
|
|
402
|
+
return { ...metrics, ascent: known.ascent / known.upem, descent: known.descent / known.upem };
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// src/layout/text/line-break.ts
|
|
406
|
+
var CLOSE = new Set(
|
|
407
|
+
"!),.:;?]}\xA2\xB0\u2019\u201D\u2030\u2032\u2033\u2103\u3001\u3002\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u3019\u301B\uFF01\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF61\uFF63\uFF64\u30FC\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3005\u303B\u30FD\u30FE\u309D\u309E".split(
|
|
408
|
+
""
|
|
409
|
+
)
|
|
410
|
+
);
|
|
411
|
+
var OPEN = new Set("([{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u3018\u301A\uFF08\uFF3B\uFF5B\uFF62\uFF04".split(""));
|
|
412
|
+
var DASHES = /* @__PURE__ */ new Set(["-", "\u2010", "\u2012", "\u2013", "\u2014", "/"]);
|
|
413
|
+
function isIdeographic(cp) {
|
|
414
|
+
return cp >= 11904 && cp <= 40959 || // CJK radicals … unified ideographs, kana, bopomofo
|
|
415
|
+
cp >= 44032 && cp <= 55215 || // Hangul syllables
|
|
416
|
+
cp >= 63744 && cp <= 64255 || // CJK compatibility ideographs
|
|
417
|
+
cp >= 65280 && cp <= 65519 || // half/full width forms
|
|
418
|
+
cp >= 131072 && cp <= 201551;
|
|
419
|
+
}
|
|
420
|
+
function isHangul(cp) {
|
|
421
|
+
return cp >= 44032 && cp <= 55215 || cp >= 4352 && cp <= 4607 || cp >= 12592 && cp <= 12687 || cp >= 43360 && cp <= 43391 || cp >= 55216 && cp <= 55295;
|
|
422
|
+
}
|
|
423
|
+
var breaksPerCharacter = (cp) => isIdeographic(cp) && !isHangul(cp);
|
|
424
|
+
var isSpace = (c) => c === " " || c === " " || c === "\u3000";
|
|
425
|
+
var isLetter = (c) => /[\p{L}\p{N}]/u.test(c);
|
|
426
|
+
function insideCluster(text, i) {
|
|
427
|
+
const unit = text.charCodeAt(i);
|
|
428
|
+
if (unit >= 56320 && unit <= 57343) return true;
|
|
429
|
+
if (unit < 768) return false;
|
|
430
|
+
return unit === 8205 || text.charCodeAt(i - 1) === 8205 || MARK.test(text[i]);
|
|
431
|
+
}
|
|
432
|
+
var MARK = /^[\p{M}\uFE00-\uFE0F]$/u;
|
|
433
|
+
var listCache = /* @__PURE__ */ new WeakMap();
|
|
434
|
+
function listSets(lists) {
|
|
435
|
+
let sets = listCache.get(lists);
|
|
436
|
+
if (!sets) {
|
|
437
|
+
sets = { start: new Set(lists.notStart), end: new Set(lists.notEnd) };
|
|
438
|
+
listCache.set(lists, sets);
|
|
439
|
+
}
|
|
440
|
+
return sets;
|
|
441
|
+
}
|
|
442
|
+
function breakOpportunities(text, eaLineBreak = true, latinLineBreak = false, kinsoku) {
|
|
443
|
+
const custom = kinsoku ? listSets(kinsoku) : void 0;
|
|
444
|
+
const notStart = custom?.start ?? CLOSE;
|
|
445
|
+
const notEnd = custom?.end ?? OPEN;
|
|
446
|
+
const out = new Uint8Array(text.length + 1);
|
|
447
|
+
out[text.length] = 1;
|
|
448
|
+
for (let i = 1; i < text.length; i += 1) {
|
|
449
|
+
const prev = text[i - 1];
|
|
450
|
+
const cur = text[i];
|
|
451
|
+
if (insideCluster(text, i)) continue;
|
|
452
|
+
if (isSpace(prev) && !isSpace(cur)) {
|
|
453
|
+
out[i] = 1;
|
|
454
|
+
continue;
|
|
455
|
+
}
|
|
456
|
+
if (isSpace(cur)) continue;
|
|
457
|
+
const held = eaLineBreak && (notStart.has(cur) || notEnd.has(prev));
|
|
458
|
+
if (latinLineBreak) {
|
|
459
|
+
if (!held) out[i] = 1;
|
|
460
|
+
continue;
|
|
461
|
+
}
|
|
462
|
+
if (DASHES.has(prev) && i >= 2 && isLetter(text[i - 2]) && isLetter(cur)) {
|
|
463
|
+
out[i] = 1;
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
const prevCp = text.codePointAt(
|
|
467
|
+
i - 1 - (i >= 2 && text.charCodeAt(i - 1) >= 56320 && text.charCodeAt(i - 1) <= 57343 ? 1 : 0)
|
|
468
|
+
) ?? 0;
|
|
469
|
+
const curCp = text.codePointAt(i) ?? 0;
|
|
470
|
+
if ((breaksPerCharacter(prevCp) || breaksPerCharacter(curCp)) && !held) out[i] = 1;
|
|
471
|
+
}
|
|
472
|
+
return out;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// src/layout/text/harfbuzz-measurer.ts
|
|
476
|
+
var HARFBUZZ_VERSION = "15.0.0";
|
|
477
|
+
var hb = null;
|
|
478
|
+
var loading = null;
|
|
479
|
+
function initializeHarfBuzz() {
|
|
480
|
+
if (hb) return Promise.resolve();
|
|
481
|
+
loading ??= import("./dist-C7NLNUMD.js").then(
|
|
482
|
+
(module) => {
|
|
483
|
+
const version = module.versionString();
|
|
484
|
+
if (version !== HARFBUZZ_VERSION)
|
|
485
|
+
throw new Error(harfBuzzVersionMismatchDiagnostic(HARFBUZZ_VERSION, version));
|
|
486
|
+
hb = module;
|
|
487
|
+
},
|
|
488
|
+
(cause) => {
|
|
489
|
+
loading = null;
|
|
490
|
+
throw new Error(
|
|
491
|
+
isUnsupportedNodeRuntime(cause) ? harfBuzzUnsupportedRuntimeDiagnostic(cause) : harfBuzzWasmUnavailableDiagnostic(cause),
|
|
492
|
+
{ cause }
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
);
|
|
496
|
+
return loading;
|
|
497
|
+
}
|
|
498
|
+
function isHarfBuzzReady() {
|
|
499
|
+
return hb !== null;
|
|
500
|
+
}
|
|
501
|
+
var featureSets = /* @__PURE__ */ new Map();
|
|
502
|
+
function shapingFeatures(module, kerning) {
|
|
503
|
+
let set = featureSets.get(kerning);
|
|
504
|
+
if (!set) {
|
|
505
|
+
set = ["liga", "clig", "dlig", "hlig"].map((tag) => new module.Feature(tag, 0));
|
|
506
|
+
if (!kerning) set.push(new module.Feature("kern", 0));
|
|
507
|
+
featureSets.set(kerning, set);
|
|
508
|
+
}
|
|
509
|
+
return set;
|
|
510
|
+
}
|
|
511
|
+
var HOST_SUBSTITUTE_ORIGIN = "host-substitute";
|
|
512
|
+
var MAX_TEXT = 1e5;
|
|
513
|
+
var CACHE_LIMIT = 2e4;
|
|
514
|
+
function readOs2Underline(face, upem) {
|
|
515
|
+
const post = face.referenceTable("post");
|
|
516
|
+
if (post && post.length >= 12) {
|
|
517
|
+
const view = new DataView(post.buffer, post.byteOffset, post.byteLength);
|
|
518
|
+
return [view.getInt16(8) / upem, Math.max(1, view.getInt16(10)) / upem];
|
|
519
|
+
}
|
|
520
|
+
return [-0.1, 0.05];
|
|
521
|
+
}
|
|
522
|
+
var measurers = 0;
|
|
523
|
+
function createHarfBuzzMeasurer(sources) {
|
|
524
|
+
if (!hb) throw new Error("Call initializeHarfBuzz() before creating a HarfBuzz measurer");
|
|
525
|
+
const module = hb;
|
|
526
|
+
const prefix = `xlsx-f${measurers += 1}-`;
|
|
527
|
+
const faces = sources.map((s, i) => ({ ...s, id: `${prefix}${i}` }));
|
|
528
|
+
const loaded = /* @__PURE__ */ new Map();
|
|
529
|
+
const resolved = /* @__PURE__ */ new Map();
|
|
530
|
+
const cache = new AdvanceCache(CACHE_LIMIT);
|
|
531
|
+
let buffer = null;
|
|
532
|
+
const load = (entry) => {
|
|
533
|
+
const hit = loaded.get(entry.id);
|
|
534
|
+
if (hit) return hit;
|
|
535
|
+
try {
|
|
536
|
+
const face = new module.Face(new module.Blob(entry.bytes), 0);
|
|
537
|
+
const font = new module.Font(face);
|
|
538
|
+
const upem = face.upem || 1e3;
|
|
539
|
+
const ext = font.hExtents();
|
|
540
|
+
const line = os2LineExtents(face.referenceTable("OS/2"));
|
|
541
|
+
const [underlinePosition, underlineThickness] = readOs2Underline(face, upem);
|
|
542
|
+
const out = {
|
|
543
|
+
entry,
|
|
544
|
+
font,
|
|
545
|
+
upem,
|
|
546
|
+
kerns: entry.origin === HOST_SUBSTITUTE_ORIGIN || (face.referenceTable("kern")?.length ?? 0) > 0,
|
|
547
|
+
metrics: {
|
|
548
|
+
ascent: (line ? line[0] : Math.abs(ext.ascender)) / upem,
|
|
549
|
+
descent: (line ? line[1] : Math.abs(ext.descender)) / upem,
|
|
550
|
+
lineGap: ext.lineGap / upem,
|
|
551
|
+
underlinePosition,
|
|
552
|
+
underlineThickness
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
loaded.set(entry.id, out);
|
|
556
|
+
return out;
|
|
557
|
+
} catch {
|
|
558
|
+
return null;
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
const byFamily = (family) => faces.filter((f) => f.family.toLowerCase() === family.toLowerCase());
|
|
562
|
+
const pick = (candidates, r) => candidates.find((f) => f.bold === r.bold && f.italic === r.italic) ?? candidates.find((f) => f.italic === r.italic) ?? candidates.find((f) => !f.bold && !f.italic) ?? candidates[0];
|
|
563
|
+
const resolve = (r) => {
|
|
564
|
+
const eastAsian = r.script === "eastAsian";
|
|
565
|
+
const fallbackOrder = eastAsian ? eastAsianFallbackFamilies(r.lang) : [];
|
|
566
|
+
const key = `${r.family.toLowerCase()}|${r.bold}|${r.italic}${eastAsian ? `|ea|${fallbackOrder[0]}` : ""}`;
|
|
567
|
+
const hit = resolved.get(key);
|
|
568
|
+
if (hit) return hit;
|
|
569
|
+
const order = [
|
|
570
|
+
r.family,
|
|
571
|
+
...FONT_SUBSTITUTES[r.family.toLowerCase()] ?? [],
|
|
572
|
+
...fallbackOrder,
|
|
573
|
+
DEFAULT_FALLBACK_FAMILY
|
|
574
|
+
];
|
|
575
|
+
let chosen = null;
|
|
576
|
+
let substituted = false;
|
|
577
|
+
for (let i = 0; i < order.length && !chosen; i += 1) {
|
|
578
|
+
const entry = pick(byFamily(order[i]), r);
|
|
579
|
+
if (entry) {
|
|
580
|
+
chosen = load(entry);
|
|
581
|
+
substituted = i > 0;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
if (!chosen && faces[0]) {
|
|
585
|
+
chosen = load(faces[0]);
|
|
586
|
+
substituted = true;
|
|
587
|
+
}
|
|
588
|
+
const face = chosen ? {
|
|
589
|
+
id: chosen.entry.id,
|
|
590
|
+
family: chosen.entry.family,
|
|
591
|
+
bold: chosen.entry.bold,
|
|
592
|
+
italic: chosen.entry.italic,
|
|
593
|
+
synthBold: r.bold && !chosen.entry.bold,
|
|
594
|
+
synthItalic: r.italic && !chosen.entry.italic,
|
|
595
|
+
substituted,
|
|
596
|
+
// A missing face keeps its own line metrics when the table knows them.
|
|
597
|
+
metrics: substituted ? withFaceLineMetrics(r.family, chosen.metrics) : chosen.metrics
|
|
598
|
+
} : {
|
|
599
|
+
id: r.family,
|
|
600
|
+
family: r.family,
|
|
601
|
+
bold: r.bold,
|
|
602
|
+
italic: r.italic,
|
|
603
|
+
synthBold: false,
|
|
604
|
+
synthItalic: false,
|
|
605
|
+
substituted: true,
|
|
606
|
+
metrics: {
|
|
607
|
+
ascent: 0.9,
|
|
608
|
+
descent: 0.25,
|
|
609
|
+
lineGap: 0,
|
|
610
|
+
underlinePosition: -0.1,
|
|
611
|
+
underlineThickness: 0.05
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
resolved.set(key, face);
|
|
615
|
+
return face;
|
|
616
|
+
};
|
|
617
|
+
const advances = (face, text, options) => {
|
|
618
|
+
const lf = loaded.get(face.id);
|
|
619
|
+
const kerning = options?.kerning === true && (lf?.kerns === true || face.substituted);
|
|
620
|
+
const key = `${face.id}${kerning ? "k" : ""}\0${text}`;
|
|
621
|
+
const hit = cache.get(key);
|
|
622
|
+
if (hit) return hit;
|
|
623
|
+
const out = new Float64Array(text.length);
|
|
624
|
+
if (!lf || text.length === 0 || text.length > MAX_TEXT) {
|
|
625
|
+
for (let i = 0; i < text.length; i += 1) out[i] = 0.5;
|
|
626
|
+
return out;
|
|
627
|
+
}
|
|
628
|
+
buffer ??= new module.Buffer();
|
|
629
|
+
buffer.reset();
|
|
630
|
+
buffer.addText(text);
|
|
631
|
+
buffer.guessSegmentProperties();
|
|
632
|
+
module.shape(lf.font, buffer, shapingFeatures(module, kerning));
|
|
633
|
+
const infos = buffer.getGlyphInfos();
|
|
634
|
+
const positions = buffer.getGlyphPositions();
|
|
635
|
+
for (let g = 0; g < infos.length; g += 1) {
|
|
636
|
+
const cluster = infos[g].cluster;
|
|
637
|
+
if (cluster < 0 || cluster >= out.length) continue;
|
|
638
|
+
if (infos[g].codepoint === 0)
|
|
639
|
+
out[cluster] += isIdeographic(text.codePointAt(cluster) ?? 0) ? 1 : 0.5;
|
|
640
|
+
else out[cluster] += positions[g].xAdvance / lf.upem;
|
|
641
|
+
}
|
|
642
|
+
cache.set(key, out);
|
|
643
|
+
return out;
|
|
644
|
+
};
|
|
645
|
+
const fallbacks = /* @__PURE__ */ new Map();
|
|
646
|
+
const has = (entry, cp) => {
|
|
647
|
+
const lf = load(entry);
|
|
648
|
+
if (!lf) return false;
|
|
649
|
+
const glyph = lf.font.nominalGlyph(cp);
|
|
650
|
+
return glyph !== void 0 && glyph !== 0;
|
|
651
|
+
};
|
|
652
|
+
const families = [];
|
|
653
|
+
for (const f of faces)
|
|
654
|
+
if (!families.some((g) => g.family.toLowerCase() === f.family.toLowerCase()))
|
|
655
|
+
families.push(pick(byFamily(f.family), { family: f.family, bold: false, italic: false }));
|
|
656
|
+
const fallbackFace = (face, cp, lang) => {
|
|
657
|
+
const order = eastAsianFallbackFamilies(lang);
|
|
658
|
+
const key = `${face.id}|${face.bold}|${face.italic}|${cp}|${order[0]}`;
|
|
659
|
+
const hit = fallbacks.get(key);
|
|
660
|
+
if (hit !== void 0) return hit ?? void 0;
|
|
661
|
+
const own2 = faces.find((f) => f.id === face.id);
|
|
662
|
+
let found = null;
|
|
663
|
+
if (own2 && !has(own2, cp)) {
|
|
664
|
+
const eastAsian = isIdeographic(cp) || cp >= 9312 && cp <= 10175;
|
|
665
|
+
const named = eastAsian ? order.flatMap((name) => byFamily(name).slice(0, 1)) : [];
|
|
666
|
+
for (const entry of [...named, ...families]) {
|
|
667
|
+
if (entry.family.toLowerCase() === own2.family.toLowerCase() || !has(entry, cp)) continue;
|
|
668
|
+
found = resolve({ family: entry.family, bold: face.bold, italic: face.italic });
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
if (fallbacks.size >= CACHE_LIMIT) fallbacks.clear();
|
|
673
|
+
fallbacks.set(key, found);
|
|
674
|
+
return found ?? void 0;
|
|
675
|
+
};
|
|
676
|
+
return { resolve, advances, fallbackFace, faces };
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
// src/layout/axis.ts
|
|
680
|
+
var AxisIndex = class {
|
|
681
|
+
/** The number of indexes on the axis: 1048576 rows or 16384 columns. */
|
|
682
|
+
count;
|
|
683
|
+
defaultSize;
|
|
684
|
+
segments;
|
|
685
|
+
/** The offset of each segment's first index. */
|
|
686
|
+
starts;
|
|
687
|
+
/**
|
|
688
|
+
* `segments` may arrive in any order. Where two overlap, the one that starts first keeps
|
|
689
|
+
* the shared indexes (and, for equal starts, the one given first); the other is clipped.
|
|
690
|
+
*/
|
|
691
|
+
constructor(count, defaultSize, segments) {
|
|
692
|
+
this.count = count;
|
|
693
|
+
this.defaultSize = defaultSize;
|
|
694
|
+
const sorted = normalize(count, segments);
|
|
695
|
+
const starts = [];
|
|
696
|
+
let offset = 0;
|
|
697
|
+
let next = 0;
|
|
698
|
+
for (const s of sorted) {
|
|
699
|
+
offset += (s.first - next) * defaultSize;
|
|
700
|
+
starts.push(offset);
|
|
701
|
+
offset += (s.last - s.first + 1) * s.size;
|
|
702
|
+
next = s.last + 1;
|
|
703
|
+
}
|
|
704
|
+
this.segments = sorted;
|
|
705
|
+
this.starts = starts;
|
|
706
|
+
}
|
|
707
|
+
/** The index of the last segment whose first index is at most `i`, or -1. */
|
|
708
|
+
segmentAt(i) {
|
|
709
|
+
let lo = 0;
|
|
710
|
+
let hi = this.segments.length - 1;
|
|
711
|
+
let found = -1;
|
|
712
|
+
while (lo <= hi) {
|
|
713
|
+
const mid = lo + hi >> 1;
|
|
714
|
+
if (this.segments[mid].first <= i) {
|
|
715
|
+
found = mid;
|
|
716
|
+
lo = mid + 1;
|
|
717
|
+
} else hi = mid - 1;
|
|
718
|
+
}
|
|
719
|
+
return found;
|
|
720
|
+
}
|
|
721
|
+
/** The size of index `i`, in points. */
|
|
722
|
+
sizeOf(i) {
|
|
723
|
+
const k = this.segmentAt(i);
|
|
724
|
+
const s = k < 0 ? void 0 : this.segments[k];
|
|
725
|
+
return s && i <= s.last ? s.size : this.defaultSize;
|
|
726
|
+
}
|
|
727
|
+
/** The offset of the start of index `i` from the start of the axis, in points. */
|
|
728
|
+
offsetOf(i) {
|
|
729
|
+
const k = this.segmentAt(i);
|
|
730
|
+
if (k < 0) return i * this.defaultSize;
|
|
731
|
+
const s = this.segments[k];
|
|
732
|
+
const start = this.starts[k];
|
|
733
|
+
if (i <= s.last) return start + (i - s.first) * s.size;
|
|
734
|
+
return start + (s.last - s.first + 1) * s.size + (i - s.last - 1) * this.defaultSize;
|
|
735
|
+
}
|
|
736
|
+
/** The length of the whole axis, in points. */
|
|
737
|
+
get total() {
|
|
738
|
+
return this.offsetOf(this.count);
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* The index that holds `offset`: the last index whose start is at most `offset`, skipping
|
|
742
|
+
* indexes of size 0. Offsets before the axis give 0, and offsets past it give the last index.
|
|
743
|
+
*/
|
|
744
|
+
indexAt(offset) {
|
|
745
|
+
if (offset <= 0) return this.firstVisibleFrom(0);
|
|
746
|
+
let lo = 0;
|
|
747
|
+
let hi = this.segments.length - 1;
|
|
748
|
+
let k = -1;
|
|
749
|
+
while (lo <= hi) {
|
|
750
|
+
const mid = lo + hi >> 1;
|
|
751
|
+
if (this.starts[mid] <= offset) {
|
|
752
|
+
k = mid;
|
|
753
|
+
lo = mid + 1;
|
|
754
|
+
} else hi = mid - 1;
|
|
755
|
+
}
|
|
756
|
+
let base = 0;
|
|
757
|
+
let baseOffset = 0;
|
|
758
|
+
if (k >= 0) {
|
|
759
|
+
const s = this.segments[k];
|
|
760
|
+
const start = this.starts[k];
|
|
761
|
+
const end = start + (s.last - s.first + 1) * s.size;
|
|
762
|
+
if (offset < end && s.size > 0)
|
|
763
|
+
return Math.min(s.first + Math.floor((offset - start) / s.size), s.last);
|
|
764
|
+
base = s.last + 1;
|
|
765
|
+
baseOffset = end;
|
|
766
|
+
}
|
|
767
|
+
if (this.defaultSize <= 0) return this.firstVisibleFrom(base);
|
|
768
|
+
const i = base + Math.floor((offset - baseOffset) / this.defaultSize);
|
|
769
|
+
return Math.min(i, this.count - 1);
|
|
770
|
+
}
|
|
771
|
+
/** The first index at or after `i` with a size above 0, or `i` when there is none. */
|
|
772
|
+
firstVisibleFrom(i) {
|
|
773
|
+
let at = i;
|
|
774
|
+
for (; ; ) {
|
|
775
|
+
const k = this.segmentAt(at);
|
|
776
|
+
const s = k < 0 ? void 0 : this.segments[k];
|
|
777
|
+
if (!s || at > s.last || s.size > 0) return at;
|
|
778
|
+
if (s.last + 1 >= this.count) return i;
|
|
779
|
+
at = s.last + 1;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
function normalize(count, segments) {
|
|
784
|
+
const valid = segments.map((s, order) => ({ ...s, order })).filter(
|
|
785
|
+
(s) => Number.isInteger(s.first) && Number.isInteger(s.last) && s.first <= s.last && s.last >= 0 && s.first < count && Number.isFinite(s.size) && s.size >= 0
|
|
786
|
+
).map((s) => ({ ...s, first: Math.max(0, s.first), last: Math.min(count - 1, s.last) })).sort((a, b) => a.first - b.first || a.order - b.order);
|
|
787
|
+
const out = [];
|
|
788
|
+
let next = 0;
|
|
789
|
+
for (const s of valid) {
|
|
790
|
+
const first = Math.max(s.first, next);
|
|
791
|
+
if (first > s.last) continue;
|
|
792
|
+
const prev = out[out.length - 1];
|
|
793
|
+
if (prev && prev.last + 1 === first && prev.size === s.size)
|
|
794
|
+
out[out.length - 1] = { first: prev.first, last: s.last, size: s.size };
|
|
795
|
+
else out.push({ first, last: s.last, size: s.size });
|
|
796
|
+
next = s.last + 1;
|
|
797
|
+
}
|
|
798
|
+
return out;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
// src/layout/grid-geometry.ts
|
|
802
|
+
var truncate = Math.trunc;
|
|
803
|
+
function columnPadding(mdw) {
|
|
804
|
+
return 2 * Math.ceil(mdw / 4) + 1;
|
|
805
|
+
}
|
|
806
|
+
function columnPixels(width, mdw) {
|
|
807
|
+
if (!(width > 0) || !(mdw > 0)) return 0;
|
|
808
|
+
return truncate((256 * width + truncate(128 / mdw)) / 256 * mdw);
|
|
809
|
+
}
|
|
810
|
+
function columnWidthForPixels(pixels, mdw) {
|
|
811
|
+
if (!(pixels > 0) || !(mdw > 0)) return 0;
|
|
812
|
+
const steps = Math.ceil(256 * Math.round(pixels) / mdw - 1e-9) - truncate(128 / mdw);
|
|
813
|
+
return Math.min(255, Math.max(0, steps) / 256);
|
|
814
|
+
}
|
|
815
|
+
function rowHeightForPixels(pixels, metrics) {
|
|
816
|
+
const px = Math.round(pixels);
|
|
817
|
+
if (!(px > 0) || !(metrics.pixelsPerInch > 0) || !(metrics.rowScale > 0)) return 0;
|
|
818
|
+
const ptPerPx = 72 / metrics.pixelsPerInch;
|
|
819
|
+
let pt2 = Math.round(px * ptPerPx / metrics.rowScale * 100) / 100;
|
|
820
|
+
if (Math.floor(pt2 / ptPerPx * metrics.rowScale + 1e-9) < px) pt2 += 0.01;
|
|
821
|
+
return Math.min(409, Math.round(pt2 * 100) / 100);
|
|
822
|
+
}
|
|
823
|
+
function baseColumnWidth(base, mdw) {
|
|
824
|
+
return truncate((base * mdw + columnPadding(mdw)) / mdw * 256) / 256;
|
|
825
|
+
}
|
|
826
|
+
function numberAttr(el, name, min, max) {
|
|
827
|
+
const raw = attr(el, name);
|
|
828
|
+
if (raw === void 0 || raw.length === 0 || raw.length > 32) return void 0;
|
|
829
|
+
const n = Number(raw);
|
|
830
|
+
return Number.isFinite(n) && n >= min && n <= max ? n : void 0;
|
|
831
|
+
}
|
|
832
|
+
var flag = (el, name) => attr(el, name) === "1" || attr(el, name) === "true";
|
|
833
|
+
function sheetGeometry(sheet, metrics, autoHeight) {
|
|
834
|
+
const ptPerPx = 72 / metrics.pixelsPerInch;
|
|
835
|
+
const mdw = metrics.maxDigitWidth;
|
|
836
|
+
const formatPr = child(sheet.root, "x:sheetFormatPr");
|
|
837
|
+
const defaultWidth = numberAttr(formatPr, "defaultColWidth", 0, 255) ?? baseColumnWidth(numberAttr(formatPr, "baseColWidth", 0, 255) ?? 8, mdw);
|
|
838
|
+
const defaultColumn = columnPixels(defaultWidth, mdw) * ptPerPx;
|
|
839
|
+
const columns = [];
|
|
840
|
+
for (const col of child(sheet.root, "x:cols")?.children ?? []) {
|
|
841
|
+
if (col.type !== "element" || col.local !== "col") continue;
|
|
842
|
+
const min = numberAttr(col, "min", 1, MAX_COLS);
|
|
843
|
+
const max = numberAttr(col, "max", 1, MAX_COLS);
|
|
844
|
+
if (min === void 0 || max === void 0 || !Number.isInteger(min) || !Number.isInteger(max))
|
|
845
|
+
continue;
|
|
846
|
+
const width = numberAttr(col, "width", 0, 255);
|
|
847
|
+
const size = flag(col, "hidden") ? 0 : width === void 0 ? defaultColumn : columnPixels(width, mdw) * ptPerPx;
|
|
848
|
+
columns.push({ first: min - 1, last: max - 1, size });
|
|
849
|
+
}
|
|
850
|
+
const columnAxis = new AxisIndex(MAX_COLS, defaultColumn, columns);
|
|
851
|
+
const snap = (pt2) => Math.floor(pt2 / ptPerPx * metrics.rowScale + 1e-9) * ptPerPx;
|
|
852
|
+
const customDefault = flag(formatPr, "customHeight") ? numberAttr(formatPr, "defaultRowHeight", 0, 409) : void 0;
|
|
853
|
+
const defaultRow = snap(customDefault ?? metrics.defaultRowHeight);
|
|
854
|
+
const rows = [];
|
|
855
|
+
const auto = customDefault === void 0 ? autoHeight : void 0;
|
|
856
|
+
for (const [r, el] of sheet.rows) {
|
|
857
|
+
const ht = numberAttr(el, "ht", 0, 409);
|
|
858
|
+
if (flag(el, "hidden")) rows.push({ first: r, last: r, size: 0 });
|
|
859
|
+
else if (ht !== void 0) rows.push({ first: r, last: r, size: snap(ht) });
|
|
860
|
+
else {
|
|
861
|
+
const size = auto?.(el, r, columnAxis);
|
|
862
|
+
if (size !== void 0 && snap(size) !== defaultRow)
|
|
863
|
+
rows.push({ first: r, last: r, size: snap(size) });
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
return {
|
|
867
|
+
columns: columnAxis,
|
|
868
|
+
rows: new AxisIndex(MAX_ROWS, defaultRow, rows)
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
// ../ooxml-core/src/drawingml-preset-geometry.generated.ts
|
|
873
|
+
var PRESET_SHAPES = { "accentBorderCallout1": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 112500"], ["adj4", "val -38333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "t"], ["Z"], ["L", "x1", "b"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"]] }, "accentBorderCallout2": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 112500"], ["adj6", "val -46667"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "t"], ["Z"], ["L", "x1", "b"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"]] }, "accentBorderCallout3": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 100000"], ["adj6", "val -16667"], ["adj7", "val 112963"], ["adj8", "val -8333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"], ["y4", "*/ h adj7 100000"], ["x4", "*/ w adj8 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "t"], ["Z"], ["L", "x1", "b"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"], ["L", "x4", "y4"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"], ["adj8", "x", "-2147483647", "2147483647"], ["adj7", "y", "-2147483647", "2147483647"]] }, "accentCallout1": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 112500"], ["adj4", "val -38333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "t"], ["Z"], ["L", "x1", "b"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"]] }, "accentCallout2": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 112500"], ["adj6", "val -46667"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "t"], ["Z"], ["L", "x1", "b"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"]] }, "accentCallout3": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 100000"], ["adj6", "val -16667"], ["adj7", "val 112963"], ["adj8", "val -8333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"], ["y4", "*/ h adj7 100000"], ["x4", "*/ w adj8 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "t"], ["Z"], ["L", "x1", "b"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"], ["L", "x4", "y4"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"], ["adj8", "x", "-2147483647", "2147483647"], ["adj7", "y", "-2147483647", "2147483647"]] }, "actionButtonBackPrevious": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g11", "vc"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g11", "vc"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g11", "vc"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonBeginning": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 1 8"], ["g15", "*/ g13 1 4"], ["g16", "+- g11 g14 0"], ["g17", "+- g11 g15 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g17", "vc"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["Z"], ["M", "g16", "g9"], ["L", "g11", "g9"], ["L", "g11", "g10"], ["L", "g16", "g10"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g17", "vc"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["Z"], ["M", "g16", "g9"], ["L", "g11", "g9"], ["L", "g11", "g10"], ["L", "g16", "g10"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g17", "vc"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["Z"], ["M", "g16", "g9"], ["L", "g16", "g10"], ["L", "g11", "g10"], ["L", "g11", "g9"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonBlank": { "av": [], "gd": [], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonDocument": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["dx1", "*/ ss 9 32"], ["g11", "+- hc 0 dx1"], ["g12", "+- hc dx1 0"], ["g13", "*/ ss 3 16"], ["g14", "+- g12 0 g13"], ["g15", "+- g9 g13 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g11", "g9"], ["L", "g14", "g9"], ["L", "g12", "g15"], ["L", "g12", "g10"], ["L", "g11", "g10"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "g11", "g9"], ["L", "g14", "g9"], ["L", "g14", "g15"], ["L", "g12", "g15"], ["L", "g12", "g10"], ["L", "g11", "g10"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g14", "g9"], ["L", "g14", "g15"], ["L", "g12", "g15"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g11", "g9"], ["L", "g14", "g9"], ["L", "g12", "g15"], ["L", "g12", "g10"], ["L", "g11", "g10"], ["Z"], ["M", "g12", "g15"], ["L", "g14", "g15"], ["L", "g14", "g9"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonEnd": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 3 4"], ["g15", "*/ g13 7 8"], ["g16", "+- g11 g14 0"], ["g17", "+- g11 g15 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g16", "vc"], ["L", "g11", "g9"], ["L", "g11", "g10"], ["Z"], ["M", "g17", "g9"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["L", "g17", "g10"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g16", "vc"], ["L", "g11", "g9"], ["L", "g11", "g10"], ["Z"], ["M", "g17", "g9"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["L", "g17", "g10"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g16", "vc"], ["L", "g11", "g10"], ["L", "g11", "g9"], ["Z"], ["M", "g17", "g9"], ["L", "g12", "g9"], ["L", "g12", "g10"], ["L", "g17", "g10"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonForwardNext": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g12", "vc"], ["L", "g11", "g9"], ["L", "g11", "g10"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g12", "vc"], ["L", "g11", "g9"], ["L", "g11", "g10"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g12", "vc"], ["L", "g11", "g10"], ["L", "g11", "g9"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonHelp": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g11", "+- hc 0 dx2"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 1 7"], ["g15", "*/ g13 3 14"], ["g16", "*/ g13 2 7"], ["g19", "*/ g13 3 7"], ["g20", "*/ g13 4 7"], ["g21", "*/ g13 17 28"], ["g23", "*/ g13 21 28"], ["g24", "*/ g13 11 14"], ["g27", "+- g9 g16 0"], ["g29", "+- g9 g21 0"], ["g30", "+- g9 g23 0"], ["g31", "+- g9 g24 0"], ["g33", "+- g11 g15 0"], ["g36", "+- g11 g19 0"], ["g37", "+- g11 g20 0"], ["g41", "*/ g13 1 14"], ["g42", "*/ g13 3 28"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g33", "g27"], ["A", "g16", "g16", "cd2", "cd2"], ["A", "g14", "g15", "0", "cd4"], ["A", "g41", "g42", "3cd4", "-5400000"], ["L", "g37", "g30"], ["L", "g36", "g30"], ["L", "g36", "g29"], ["A", "g14", "g15", "cd2", "cd4"], ["A", "g41", "g42", "cd4", "-5400000"], ["A", "g14", "g14", "0", "-10800000"], ["Z"], ["M", "hc", "g31"], ["A", "g42", "g42", "3cd4", "21600000"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g33", "g27"], ["A", "g16", "g16", "cd2", "cd2"], ["A", "g14", "g15", "0", "cd4"], ["A", "g41", "g42", "3cd4", "-5400000"], ["L", "g37", "g30"], ["L", "g36", "g30"], ["L", "g36", "g29"], ["A", "g14", "g15", "cd2", "cd4"], ["A", "g41", "g42", "cd4", "-5400000"], ["A", "g14", "g14", "0", "-10800000"], ["Z"], ["M", "hc", "g31"], ["A", "g42", "g42", "3cd4", "21600000"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g33", "g27"], ["A", "g16", "g16", "cd2", "cd2"], ["A", "g14", "g15", "0", "cd4"], ["A", "g41", "g42", "3cd4", "-5400000"], ["L", "g37", "g30"], ["L", "g36", "g30"], ["L", "g36", "g29"], ["A", "g14", "g15", "cd2", "cd4"], ["A", "g41", "g42", "cd4", "-5400000"], ["A", "g14", "g14", "0", "-10800000"], ["Z"], ["M", "hc", "g31"], ["A", "g42", "g42", "3cd4", "21600000"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonHome": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 1 16"], ["g15", "*/ g13 1 8"], ["g16", "*/ g13 3 16"], ["g17", "*/ g13 5 16"], ["g18", "*/ g13 7 16"], ["g19", "*/ g13 9 16"], ["g20", "*/ g13 11 16"], ["g21", "*/ g13 3 4"], ["g22", "*/ g13 13 16"], ["g23", "*/ g13 7 8"], ["g24", "+- g9 g14 0"], ["g25", "+- g9 g16 0"], ["g26", "+- g9 g17 0"], ["g27", "+- g9 g21 0"], ["g28", "+- g11 g15 0"], ["g29", "+- g11 g18 0"], ["g30", "+- g11 g19 0"], ["g31", "+- g11 g20 0"], ["g32", "+- g11 g22 0"], ["g33", "+- g11 g23 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "hc", "g9"], ["L", "g11", "vc"], ["L", "g28", "vc"], ["L", "g28", "g10"], ["L", "g33", "g10"], ["L", "g33", "vc"], ["L", "g12", "vc"], ["L", "g32", "g26"], ["L", "g32", "g24"], ["L", "g31", "g24"], ["L", "g31", "g25"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "g32", "g26"], ["L", "g32", "g24"], ["L", "g31", "g24"], ["L", "g31", "g25"], ["Z"], ["M", "g28", "vc"], ["L", "g28", "g10"], ["L", "g29", "g10"], ["L", "g29", "g27"], ["L", "g30", "g27"], ["L", "g30", "g10"], ["L", "g33", "g10"], ["L", "g33", "vc"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "hc", "g9"], ["L", "g11", "vc"], ["L", "g12", "vc"], ["Z"], ["M", "g29", "g27"], ["L", "g30", "g27"], ["L", "g30", "g10"], ["L", "g29", "g10"], ["Z"]] }, { "fill": "none", "cmds": [["M", "hc", "g9"], ["L", "g31", "g25"], ["L", "g31", "g24"], ["L", "g32", "g24"], ["L", "g32", "g26"], ["L", "g12", "vc"], ["L", "g33", "vc"], ["L", "g33", "g10"], ["L", "g28", "g10"], ["L", "g28", "vc"], ["L", "g11", "vc"], ["Z"], ["M", "g31", "g25"], ["L", "g32", "g26"], ["M", "g33", "vc"], ["L", "g28", "vc"], ["M", "g29", "g10"], ["L", "g29", "g27"], ["L", "g30", "g27"], ["L", "g30", "g10"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonInformation": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g11", "+- hc 0 dx2"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 1 32"], ["g17", "*/ g13 5 16"], ["g18", "*/ g13 3 8"], ["g19", "*/ g13 13 32"], ["g20", "*/ g13 19 32"], ["g22", "*/ g13 11 16"], ["g23", "*/ g13 13 16"], ["g24", "*/ g13 7 8"], ["g25", "+- g9 g14 0"], ["g28", "+- g9 g17 0"], ["g29", "+- g9 g18 0"], ["g30", "+- g9 g23 0"], ["g31", "+- g9 g24 0"], ["g32", "+- g11 g17 0"], ["g34", "+- g11 g19 0"], ["g35", "+- g11 g20 0"], ["g37", "+- g11 g22 0"], ["g38", "*/ g13 3 32"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "hc", "g9"], ["A", "dx2", "dx2", "3cd4", "21600000"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "hc", "g9"], ["A", "dx2", "dx2", "3cd4", "21600000"], ["Z"], ["M", "hc", "g25"], ["A", "g38", "g38", "3cd4", "21600000"], ["M", "g32", "g28"], ["L", "g32", "g29"], ["L", "g34", "g29"], ["L", "g34", "g30"], ["L", "g32", "g30"], ["L", "g32", "g31"], ["L", "g37", "g31"], ["L", "g37", "g30"], ["L", "g35", "g30"], ["L", "g35", "g28"], ["Z"]] }, { "fill": "lighten", "stroke": false, "cmds": [["M", "hc", "g25"], ["A", "g38", "g38", "3cd4", "21600000"], ["M", "g32", "g28"], ["L", "g35", "g28"], ["L", "g35", "g30"], ["L", "g37", "g30"], ["L", "g37", "g31"], ["L", "g32", "g31"], ["L", "g32", "g30"], ["L", "g34", "g30"], ["L", "g34", "g29"], ["L", "g32", "g29"], ["Z"]] }, { "fill": "none", "cmds": [["M", "hc", "g9"], ["A", "dx2", "dx2", "3cd4", "21600000"], ["Z"], ["M", "hc", "g25"], ["A", "g38", "g38", "3cd4", "21600000"], ["M", "g32", "g28"], ["L", "g35", "g28"], ["L", "g35", "g30"], ["L", "g37", "g30"], ["L", "g37", "g31"], ["L", "g32", "g31"], ["L", "g32", "g30"], ["L", "g34", "g30"], ["L", "g34", "g29"], ["L", "g32", "g29"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonMovie": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 1455 21600"], ["g15", "*/ g13 1905 21600"], ["g16", "*/ g13 2325 21600"], ["g17", "*/ g13 16155 21600"], ["g18", "*/ g13 17010 21600"], ["g19", "*/ g13 19335 21600"], ["g20", "*/ g13 19725 21600"], ["g21", "*/ g13 20595 21600"], ["g22", "*/ g13 5280 21600"], ["g23", "*/ g13 5730 21600"], ["g24", "*/ g13 6630 21600"], ["g25", "*/ g13 7492 21600"], ["g26", "*/ g13 9067 21600"], ["g27", "*/ g13 9555 21600"], ["g28", "*/ g13 13342 21600"], ["g29", "*/ g13 14580 21600"], ["g30", "*/ g13 15592 21600"], ["g31", "+- g11 g14 0"], ["g32", "+- g11 g15 0"], ["g33", "+- g11 g16 0"], ["g34", "+- g11 g17 0"], ["g35", "+- g11 g18 0"], ["g36", "+- g11 g19 0"], ["g37", "+- g11 g20 0"], ["g38", "+- g11 g21 0"], ["g39", "+- g9 g22 0"], ["g40", "+- g9 g23 0"], ["g41", "+- g9 g24 0"], ["g42", "+- g9 g25 0"], ["g43", "+- g9 g26 0"], ["g44", "+- g9 g27 0"], ["g45", "+- g9 g28 0"], ["g46", "+- g9 g29 0"], ["g47", "+- g9 g30 0"], ["g48", "+- g9 g31 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g11", "g39"], ["L", "g11", "g44"], ["L", "g31", "g44"], ["L", "g32", "g43"], ["L", "g33", "g43"], ["L", "g33", "g47"], ["L", "g35", "g47"], ["L", "g35", "g45"], ["L", "g36", "g45"], ["L", "g38", "g46"], ["L", "g12", "g46"], ["L", "g12", "g41"], ["L", "g38", "g41"], ["L", "g37", "g42"], ["L", "g35", "g42"], ["L", "g35", "g41"], ["L", "g34", "g40"], ["L", "g32", "g40"], ["L", "g31", "g39"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g11", "g39"], ["L", "g11", "g44"], ["L", "g31", "g44"], ["L", "g32", "g43"], ["L", "g33", "g43"], ["L", "g33", "g47"], ["L", "g35", "g47"], ["L", "g35", "g45"], ["L", "g36", "g45"], ["L", "g38", "g46"], ["L", "g12", "g46"], ["L", "g12", "g41"], ["L", "g38", "g41"], ["L", "g37", "g42"], ["L", "g35", "g42"], ["L", "g35", "g41"], ["L", "g34", "g40"], ["L", "g32", "g40"], ["L", "g31", "g39"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g11", "g39"], ["L", "g31", "g39"], ["L", "g32", "g40"], ["L", "g34", "g40"], ["L", "g35", "g41"], ["L", "g35", "g42"], ["L", "g37", "g42"], ["L", "g38", "g41"], ["L", "g12", "g41"], ["L", "g12", "g46"], ["L", "g38", "g46"], ["L", "g36", "g45"], ["L", "g35", "g45"], ["L", "g35", "g47"], ["L", "g33", "g47"], ["L", "g33", "g43"], ["L", "g32", "g43"], ["L", "g31", "g44"], ["L", "g11", "g44"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonReturn": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 7 8"], ["g15", "*/ g13 3 4"], ["g16", "*/ g13 5 8"], ["g17", "*/ g13 3 8"], ["g18", "*/ g13 1 4"], ["g19", "+- g9 g15 0"], ["g20", "+- g9 g16 0"], ["g21", "+- g9 g18 0"], ["g22", "+- g11 g14 0"], ["g23", "+- g11 g15 0"], ["g24", "+- g11 g16 0"], ["g25", "+- g11 g17 0"], ["g26", "+- g11 g18 0"], ["g27", "*/ g13 1 8"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g12", "g21"], ["L", "g23", "g9"], ["L", "hc", "g21"], ["L", "g24", "g21"], ["L", "g24", "g20"], ["A", "g27", "g27", "0", "cd4"], ["L", "g25", "g19"], ["A", "g27", "g27", "cd4", "cd4"], ["L", "g26", "g21"], ["L", "g11", "g21"], ["L", "g11", "g20"], ["A", "g17", "g17", "cd2", "-5400000"], ["L", "hc", "g10"], ["A", "g17", "g17", "cd4", "-5400000"], ["L", "g22", "g21"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g12", "g21"], ["L", "g23", "g9"], ["L", "hc", "g21"], ["L", "g24", "g21"], ["L", "g24", "g20"], ["A", "g27", "g27", "0", "cd4"], ["L", "g25", "g19"], ["A", "g27", "g27", "cd4", "cd4"], ["L", "g26", "g21"], ["L", "g11", "g21"], ["L", "g11", "g20"], ["A", "g17", "g17", "cd2", "-5400000"], ["L", "hc", "g10"], ["A", "g17", "g17", "cd4", "-5400000"], ["L", "g22", "g21"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g12", "g21"], ["L", "g22", "g21"], ["L", "g22", "g20"], ["A", "g17", "g17", "0", "cd4"], ["L", "g25", "g10"], ["A", "g17", "g17", "cd4", "cd4"], ["L", "g11", "g21"], ["L", "g26", "g21"], ["L", "g26", "g20"], ["A", "g27", "g27", "cd2", "-5400000"], ["L", "hc", "g19"], ["A", "g27", "g27", "cd4", "-5400000"], ["L", "g24", "g21"], ["L", "hc", "g21"], ["L", "g23", "g9"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "actionButtonSound": { "av": [], "gd": [["dx2", "*/ ss 3 8"], ["g9", "+- vc 0 dx2"], ["g10", "+- vc dx2 0"], ["g11", "+- hc 0 dx2"], ["g12", "+- hc dx2 0"], ["g13", "*/ ss 3 4"], ["g14", "*/ g13 1 8"], ["g15", "*/ g13 5 16"], ["g16", "*/ g13 5 8"], ["g17", "*/ g13 11 16"], ["g18", "*/ g13 3 4"], ["g19", "*/ g13 7 8"], ["g20", "+- g9 g14 0"], ["g21", "+- g9 g15 0"], ["g22", "+- g9 g17 0"], ["g23", "+- g9 g19 0"], ["g24", "+- g11 g15 0"], ["g25", "+- g11 g16 0"], ["g26", "+- g11 g18 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "g11", "g21"], ["L", "g11", "g22"], ["L", "g24", "g22"], ["L", "g25", "g10"], ["L", "g25", "g9"], ["L", "g24", "g21"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "g11", "g21"], ["L", "g11", "g22"], ["L", "g24", "g22"], ["L", "g25", "g10"], ["L", "g25", "g9"], ["L", "g24", "g21"], ["Z"]] }, { "fill": "none", "cmds": [["M", "g11", "g21"], ["L", "g24", "g21"], ["L", "g25", "g9"], ["L", "g25", "g10"], ["L", "g24", "g22"], ["L", "g11", "g22"], ["Z"], ["M", "g26", "g21"], ["L", "g12", "g20"], ["M", "g26", "vc"], ["L", "g12", "vc"], ["M", "g26", "g22"], ["L", "g12", "g23"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "arc": { "av": [["adj1", "val 16200000"], ["adj2", "val 0"]], "gd": [["stAng", "pin 0 adj1 21599999"], ["enAng", "pin 0 adj2 21599999"], ["sw11", "+- enAng 0 stAng"], ["sw12", "+- sw11 21600000 0"], ["swAng", "?: sw11 sw11 sw12"], ["wt1", "sin wd2 stAng"], ["ht1", "cos hd2 stAng"], ["dx1", "cat2 wd2 ht1 wt1"], ["dy1", "sat2 hd2 ht1 wt1"], ["wt2", "sin wd2 enAng"], ["ht2", "cos hd2 enAng"], ["dx2", "cat2 wd2 ht2 wt2"], ["dy2", "sat2 hd2 ht2 wt2"], ["x1", "+- hc dx1 0"], ["y1", "+- vc dy1 0"], ["x2", "+- hc dx2 0"], ["y2", "+- vc dy2 0"], ["sw0", "+- 21600000 0 stAng"], ["da1", "+- swAng 0 sw0"], ["g1", "max x1 x2"], ["ir", "?: da1 r g1"], ["sw1", "+- cd4 0 stAng"], ["sw2", "+- 27000000 0 stAng"], ["sw3", "?: sw1 sw1 sw2"], ["da2", "+- swAng 0 sw3"], ["g5", "max y1 y2"], ["ib", "?: da2 b g5"], ["sw4", "+- cd2 0 stAng"], ["sw5", "+- 32400000 0 stAng"], ["sw6", "?: sw4 sw4 sw5"], ["da3", "+- swAng 0 sw6"], ["g9", "min x1 x2"], ["il", "?: da3 l g9"], ["sw7", "+- 3cd4 0 stAng"], ["sw8", "+- 37800000 0 stAng"], ["sw9", "?: sw7 sw7 sw8"], ["da4", "+- swAng 0 sw9"], ["g13", "min y1 y2"], ["it", "?: da4 t g13"], ["cang1", "+- stAng 0 cd4"], ["cang2", "+- enAng cd4 0"], ["cang3", "+/ cang1 cang2 2"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "x1", "y1"], ["A", "wd2", "hd2", "stAng", "swAng"], ["L", "hc", "vc"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["A", "wd2", "hd2", "stAng", "swAng"]] }], "ah": [["adj1", "ang", "0", "21599999"], ["adj2", "ang", "0", "21599999"]] }, "bentArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 43750"]], "gd": [["a2", "pin 0 adj2 50000"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["a3", "pin 0 adj3 50000"], ["th", "*/ ss a1 100000"], ["aw2", "*/ ss a2 100000"], ["th2", "*/ th 1 2"], ["dh2", "+- aw2 0 th2"], ["ah", "*/ ss a3 100000"], ["bw", "+- r 0 ah"], ["bh", "+- b 0 dh2"], ["bs", "min bw bh"], ["maxAdj4", "*/ 100000 bs ss"], ["a4", "pin 0 adj4 maxAdj4"], ["bd", "*/ ss a4 100000"], ["bd3", "+- bd 0 th"], ["bd2", "max bd3 0"], ["x3", "+- th bd2 0"], ["x4", "+- r 0 ah"], ["y3", "+- dh2 th 0"], ["y4", "+- y3 dh2 0"], ["y5", "+- dh2 bd 0"], ["y6", "+- y3 bd2 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "b"], ["L", "l", "y5"], ["A", "bd", "bd", "cd2", "cd4"], ["L", "x4", "dh2"], ["L", "x4", "t"], ["L", "r", "aw2"], ["L", "x4", "y4"], ["L", "x4", "y3"], ["L", "x3", "y3"], ["A", "bd2", "bd2", "3cd4", "-5400000"], ["L", "th", "b"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "y", "0", "50000"], ["adj3", "x", "0", "50000"], ["adj4", "x", "0", "maxAdj4"]] }, "bentConnector2": { "av": [], "gd": [], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"]] }] }, "bentConnector3": { "av": [["adj1", "val 50000"]], "gd": [["x1", "*/ w adj1 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["L", "x1", "b"], ["L", "r", "b"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"]] }, "bentConnector4": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["x1", "*/ w adj1 100000"], ["x2", "+/ x1 r 2"], ["y2", "*/ h adj2 100000"], ["y1", "+/ t y2 2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["L", "x1", "y2"], ["L", "r", "y2"], ["L", "r", "b"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"]] }, "bentConnector5": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"], ["adj3", "val 50000"]], "gd": [["x1", "*/ w adj1 100000"], ["x3", "*/ w adj3 100000"], ["x2", "+/ x1 x3 2"], ["y2", "*/ h adj2 100000"], ["y1", "+/ t y2 2"], ["y3", "+/ b y2 2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["L", "x1", "y2"], ["L", "x3", "y2"], ["L", "x3", "b"], ["L", "r", "b"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"], ["adj3", "x", "-2147483647", "2147483647"]] }, "bentUpArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"]], "gd": [["a1", "pin 0 adj1 50000"], ["a2", "pin 0 adj2 50000"], ["a3", "pin 0 adj3 50000"], ["y1", "*/ ss a3 100000"], ["dx1", "*/ ss a2 50000"], ["x1", "+- r 0 dx1"], ["dx3", "*/ ss a2 100000"], ["x3", "+- r 0 dx3"], ["dx2", "*/ ss a1 200000"], ["x2", "+- x3 0 dx2"], ["x4", "+- x3 dx2 0"], ["dy2", "*/ ss a1 100000"], ["y2", "+- b 0 dy2"], ["x0", "*/ x4 1 2"], ["y3", "+/ y2 b 2"], ["y15", "+/ y1 b 2"]], "rect": ["l", "y2", "x4", "b"], "paths": [{ "cmds": [["M", "l", "y2"], ["L", "x2", "y2"], ["L", "x2", "y1"], ["L", "x1", "y1"], ["L", "x3", "t"], ["L", "r", "y1"], ["L", "x4", "y1"], ["L", "x4", "b"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj1", "y", "0", "50000"], ["adj2", "x", "0", "50000"], ["adj3", "y", "0", "50000"]] }, "bevel": { "av": [["adj", "val 12500"]], "gd": [["a", "pin 0 adj 50000"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["y2", "+- b 0 x1"]], "rect": ["x1", "x1", "x2", "y2"], "paths": [{ "stroke": false, "cmds": [["M", "x1", "x1"], ["L", "x2", "x1"], ["L", "x2", "y2"], ["L", "x1", "y2"], ["Z"]] }, { "fill": "lightenLess", "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "x2", "x1"], ["L", "x1", "x1"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "l", "b"], ["L", "x1", "y2"], ["L", "x2", "y2"], ["L", "r", "b"], ["Z"]] }, { "fill": "lighten", "stroke": false, "cmds": [["M", "l", "t"], ["L", "x1", "x1"], ["L", "x1", "y2"], ["L", "l", "b"], ["Z"]] }, { "fill": "darken", "stroke": false, "cmds": [["M", "r", "t"], ["L", "r", "b"], ["L", "x2", "y2"], ["L", "x2", "x1"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "x1", "x1"], ["L", "x2", "x1"], ["L", "x2", "y2"], ["L", "x1", "y2"], ["Z"], ["M", "l", "t"], ["L", "x1", "x1"], ["M", "l", "b"], ["L", "x1", "y2"], ["M", "r", "t"], ["L", "x2", "x1"], ["M", "r", "b"], ["L", "x2", "y2"]] }], "ah": [["adj", "x", "0", "50000"]] }, "blockArc": { "av": [["adj1", "val 10800000"], ["adj2", "val 0"], ["adj3", "val 25000"]], "gd": [["stAng", "pin 0 adj1 21599999"], ["istAng", "pin 0 adj2 21599999"], ["a3", "pin 0 adj3 50000"], ["sw11", "+- istAng 0 stAng"], ["sw12", "+- sw11 21600000 0"], ["swAng", "?: sw11 sw11 sw12"], ["iswAng", "+- 0 0 swAng"], ["wt1", "sin wd2 stAng"], ["ht1", "cos hd2 stAng"], ["wt3", "sin wd2 istAng"], ["ht3", "cos hd2 istAng"], ["dx1", "cat2 wd2 ht1 wt1"], ["dy1", "sat2 hd2 ht1 wt1"], ["dx3", "cat2 wd2 ht3 wt3"], ["dy3", "sat2 hd2 ht3 wt3"], ["x1", "+- hc dx1 0"], ["y1", "+- vc dy1 0"], ["x3", "+- hc dx3 0"], ["y3", "+- vc dy3 0"], ["dr", "*/ ss a3 100000"], ["iwd2", "+- wd2 0 dr"], ["ihd2", "+- hd2 0 dr"], ["wt2", "sin iwd2 istAng"], ["ht2", "cos ihd2 istAng"], ["wt4", "sin iwd2 stAng"], ["ht4", "cos ihd2 stAng"], ["dx2", "cat2 iwd2 ht2 wt2"], ["dy2", "sat2 ihd2 ht2 wt2"], ["dx4", "cat2 iwd2 ht4 wt4"], ["dy4", "sat2 ihd2 ht4 wt4"], ["x2", "+- hc dx2 0"], ["y2", "+- vc dy2 0"], ["x4", "+- hc dx4 0"], ["y4", "+- vc dy4 0"], ["sw0", "+- 21600000 0 stAng"], ["da1", "+- swAng 0 sw0"], ["g1", "max x1 x2"], ["g2", "max x3 x4"], ["g3", "max g1 g2"], ["ir", "?: da1 r g3"], ["sw1", "+- cd4 0 stAng"], ["sw2", "+- 27000000 0 stAng"], ["sw3", "?: sw1 sw1 sw2"], ["da2", "+- swAng 0 sw3"], ["g5", "max y1 y2"], ["g6", "max y3 y4"], ["g7", "max g5 g6"], ["ib", "?: da2 b g7"], ["sw4", "+- cd2 0 stAng"], ["sw5", "+- 32400000 0 stAng"], ["sw6", "?: sw4 sw4 sw5"], ["da3", "+- swAng 0 sw6"], ["g9", "min x1 x2"], ["g10", "min x3 x4"], ["g11", "min g9 g10"], ["il", "?: da3 l g11"], ["sw7", "+- 3cd4 0 stAng"], ["sw8", "+- 37800000 0 stAng"], ["sw9", "?: sw7 sw7 sw8"], ["da4", "+- swAng 0 sw9"], ["g13", "min y1 y2"], ["g14", "min y3 y4"], ["g15", "min g13 g14"], ["it", "?: da4 t g15"], ["x5", "+/ x1 x4 2"], ["y5", "+/ y1 y4 2"], ["x6", "+/ x3 x2 2"], ["y6", "+/ y3 y2 2"], ["cang1", "+- stAng 0 cd4"], ["cang2", "+- istAng cd4 0"], ["cang3", "+/ cang1 cang2 2"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "x1", "y1"], ["A", "wd2", "hd2", "stAng", "swAng"], ["L", "x2", "y2"], ["A", "iwd2", "ihd2", "istAng", "iswAng"], ["Z"]] }], "ah": [["adj1", "ang", "0", "21599999"], ["adj3", "r", "0", "50000"], ["adj2", "ang", "0", "21599999"]] }, "borderCallout1": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 112500"], ["adj4", "val -38333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"]] }, "borderCallout2": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 112500"], ["adj6", "val -46667"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"]] }, "borderCallout3": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 100000"], ["adj6", "val -16667"], ["adj7", "val 112963"], ["adj8", "val -8333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"], ["y4", "*/ h adj7 100000"], ["x4", "*/ w adj8 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"], ["L", "x4", "y4"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"], ["adj8", "x", "-2147483647", "2147483647"], ["adj7", "y", "-2147483647", "2147483647"]] }, "bracePair": { "av": [["adj", "val 8333"]], "gd": [["a", "pin 0 adj 25000"], ["x1", "*/ ss a 100000"], ["x2", "*/ ss a 50000"], ["x3", "+- r 0 x2"], ["x4", "+- r 0 x1"], ["y2", "+- vc 0 x1"], ["y3", "+- vc x1 0"], ["y4", "+- b 0 x1"], ["it", "*/ x1 29289 100000"], ["il", "+- x1 it 0"], ["ir", "+- r 0 il"], ["ib", "+- b 0 it"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "x2", "b"], ["A", "x1", "x1", "cd4", "cd4"], ["L", "x1", "y3"], ["A", "x1", "x1", "0", "-5400000"], ["A", "x1", "x1", "cd4", "-5400000"], ["L", "x1", "x1"], ["A", "x1", "x1", "cd2", "cd4"], ["L", "x3", "t"], ["A", "x1", "x1", "3cd4", "cd4"], ["L", "x4", "y2"], ["A", "x1", "x1", "cd2", "-5400000"], ["A", "x1", "x1", "3cd4", "-5400000"], ["L", "x4", "y4"], ["A", "x1", "x1", "0", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x2", "b"], ["A", "x1", "x1", "cd4", "cd4"], ["L", "x1", "y3"], ["A", "x1", "x1", "0", "-5400000"], ["A", "x1", "x1", "cd4", "-5400000"], ["L", "x1", "x1"], ["A", "x1", "x1", "cd2", "cd4"], ["M", "x3", "t"], ["A", "x1", "x1", "3cd4", "cd4"], ["L", "x4", "y2"], ["A", "x1", "x1", "cd2", "-5400000"], ["A", "x1", "x1", "3cd4", "-5400000"], ["L", "x4", "y4"], ["A", "x1", "x1", "0", "cd4"]] }], "ah": [["adj", "y", "0", "25000"]] }, "bracketPair": { "av": [["adj", "val 16667"]], "gd": [["a", "pin 0 adj 50000"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["y2", "+- b 0 x1"], ["il", "*/ x1 29289 100000"], ["ir", "+- r 0 il"], ["ib", "+- b 0 il"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "l", "x1"], ["A", "x1", "x1", "cd2", "cd4"], ["L", "x2", "t"], ["A", "x1", "x1", "3cd4", "cd4"], ["L", "r", "y2"], ["A", "x1", "x1", "0", "cd4"], ["L", "x1", "b"], ["A", "x1", "x1", "cd4", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "b"], ["A", "x1", "x1", "cd4", "cd4"], ["L", "l", "x1"], ["A", "x1", "x1", "cd2", "cd4"], ["M", "x2", "t"], ["A", "x1", "x1", "3cd4", "cd4"], ["L", "r", "y2"], ["A", "x1", "x1", "0", "cd4"]] }], "ah": [["adj", "y", "0", "50000"]] }, "callout1": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 112500"], ["adj4", "val -38333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"]] }, "callout2": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 112500"], ["adj6", "val -46667"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"]] }, "callout3": { "av": [["adj1", "val 18750"], ["adj2", "val -8333"], ["adj3", "val 18750"], ["adj4", "val -16667"], ["adj5", "val 100000"], ["adj6", "val -16667"], ["adj7", "val 112963"], ["adj8", "val -8333"]], "gd": [["y1", "*/ h adj1 100000"], ["x1", "*/ w adj2 100000"], ["y2", "*/ h adj3 100000"], ["x2", "*/ w adj4 100000"], ["y3", "*/ h adj5 100000"], ["x3", "*/ w adj6 100000"], ["y4", "*/ h adj7 100000"], ["x4", "*/ w adj8 100000"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "y1"], ["L", "x2", "y2"], ["L", "x3", "y3"], ["L", "x4", "y4"]] }], "ah": [["adj2", "x", "-2147483647", "2147483647"], ["adj1", "y", "-2147483647", "2147483647"], ["adj4", "x", "-2147483647", "2147483647"], ["adj3", "y", "-2147483647", "2147483647"], ["adj6", "x", "-2147483647", "2147483647"], ["adj5", "y", "-2147483647", "2147483647"], ["adj8", "x", "-2147483647", "2147483647"], ["adj7", "y", "-2147483647", "2147483647"]] }, "can": { "av": [["adj", "val 25000"]], "gd": [["maxAdj", "*/ 50000 h ss"], ["a", "pin 0 adj maxAdj"], ["y1", "*/ ss a 200000"], ["y2", "+- y1 y1 0"], ["y3", "+- b 0 y1"]], "rect": ["l", "y2", "r", "y3"], "paths": [{ "stroke": false, "cmds": [["M", "l", "y1"], ["A", "wd2", "y1", "cd2", "-10800000"], ["L", "r", "y3"], ["A", "wd2", "y1", "0", "cd2"], ["Z"]] }, { "fill": "lighten", "stroke": false, "cmds": [["M", "l", "y1"], ["A", "wd2", "y1", "cd2", "cd2"], ["A", "wd2", "y1", "0", "cd2"], ["Z"]] }, { "fill": "none", "cmds": [["M", "r", "y1"], ["A", "wd2", "y1", "0", "cd2"], ["A", "wd2", "y1", "cd2", "cd2"], ["L", "r", "y3"], ["A", "wd2", "y1", "0", "cd2"], ["L", "l", "y1"]] }], "ah": [["adj", "y", "0", "maxAdj"]] }, "chartPlus": { "av": [], "gd": [], "paths": [{ "w": 10, "h": 10, "fill": "none", "cmds": [["M", "5", "0"], ["L", "5", "10"], ["M", "0", "5"], ["L", "10", "5"]] }, { "w": 10, "h": 10, "stroke": false, "cmds": [["M", "0", "0"], ["L", "0", "10"], ["L", "10", "10"], ["L", "10", "0"], ["Z"]] }] }, "chartStar": { "av": [], "gd": [], "paths": [{ "w": 10, "h": 10, "fill": "none", "cmds": [["M", "0", "0"], ["L", "10", "10"], ["M", "0", "10"], ["L", "10", "0"], ["M", "5", "0"], ["L", "5", "10"]] }, { "w": 10, "h": 10, "stroke": false, "cmds": [["M", "0", "0"], ["L", "0", "10"], ["L", "10", "10"], ["L", "10", "0"], ["Z"]] }] }, "chartX": { "av": [], "gd": [], "paths": [{ "w": 10, "h": 10, "fill": "none", "cmds": [["M", "0", "0"], ["L", "10", "10"], ["M", "0", "10"], ["L", "10", "0"]] }, { "w": 10, "h": 10, "stroke": false, "cmds": [["M", "0", "0"], ["L", "0", "10"], ["L", "10", "10"], ["L", "10", "0"], ["Z"]] }] }, "chevron": { "av": [["adj", "val 50000"]], "gd": [["maxAdj", "*/ 100000 w ss"], ["a", "pin 0 adj maxAdj"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["x3", "*/ x2 1 2"], ["dx", "+- x2 0 x1"], ["il", "?: dx x1 l"], ["ir", "?: dx x2 r"]], "rect": ["il", "t", "ir", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "x2", "t"], ["L", "r", "vc"], ["L", "x2", "b"], ["L", "l", "b"], ["L", "x1", "vc"], ["Z"]] }], "ah": [["adj", "x", "0", "maxAdj"]] }, "chord": { "av": [["adj1", "val 2700000"], ["adj2", "val 16200000"]], "gd": [["stAng", "pin 0 adj1 21599999"], ["enAng", "pin 0 adj2 21599999"], ["sw1", "+- enAng 0 stAng"], ["sw2", "+- sw1 21600000 0"], ["swAng", "?: sw1 sw1 sw2"], ["wt1", "sin wd2 stAng"], ["ht1", "cos hd2 stAng"], ["dx1", "cat2 wd2 ht1 wt1"], ["dy1", "sat2 hd2 ht1 wt1"], ["wt2", "sin wd2 enAng"], ["ht2", "cos hd2 enAng"], ["dx2", "cat2 wd2 ht2 wt2"], ["dy2", "sat2 hd2 ht2 wt2"], ["x1", "+- hc dx1 0"], ["y1", "+- vc dy1 0"], ["x2", "+- hc dx2 0"], ["y2", "+- vc dy2 0"], ["x3", "+/ x1 x2 2"], ["y3", "+/ y1 y2 2"], ["midAng0", "*/ swAng 1 2"], ["midAng", "+- stAng midAng0 cd2"], ["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "x1", "y1"], ["A", "wd2", "hd2", "stAng", "swAng"], ["Z"]] }], "ah": [["adj1", "ang", "0", "21599999"], ["adj2", "ang", "0", "21599999"]] }, "circularArrow": { "av": [["adj1", "val 12500"], ["adj2", "val 1142319"], ["adj3", "val 20457681"], ["adj4", "val 10800000"], ["adj5", "val 12500"]], "gd": [["a5", "pin 0 adj5 25000"], ["maxAdj1", "*/ a5 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["enAng", "pin 1 adj3 21599999"], ["stAng", "pin 0 adj4 21599999"], ["th", "*/ ss a1 100000"], ["thh", "*/ ss a5 100000"], ["th2", "*/ th 1 2"], ["rw1", "+- wd2 th2 thh"], ["rh1", "+- hd2 th2 thh"], ["rw2", "+- rw1 0 th"], ["rh2", "+- rh1 0 th"], ["rw3", "+- rw2 th2 0"], ["rh3", "+- rh2 th2 0"], ["wtH", "sin rw3 enAng"], ["htH", "cos rh3 enAng"], ["dxH", "cat2 rw3 htH wtH"], ["dyH", "sat2 rh3 htH wtH"], ["xH", "+- hc dxH 0"], ["yH", "+- vc dyH 0"], ["rI", "min rw2 rh2"], ["u1", "*/ dxH dxH 1"], ["u2", "*/ dyH dyH 1"], ["u3", "*/ rI rI 1"], ["u4", "+- u1 0 u3"], ["u5", "+- u2 0 u3"], ["u6", "*/ u4 u5 u1"], ["u7", "*/ u6 1 u2"], ["u8", "+- 1 0 u7"], ["u9", "sqrt u8"], ["u10", "*/ u4 1 dxH"], ["u11", "*/ u10 1 dyH"], ["u12", "+/ 1 u9 u11"], ["u13", "at2 1 u12"], ["u14", "+- u13 21600000 0"], ["u15", "?: u13 u13 u14"], ["u16", "+- u15 0 enAng"], ["u17", "+- u16 21600000 0"], ["u18", "?: u16 u16 u17"], ["u19", "+- u18 0 cd2"], ["u20", "+- u18 0 21600000"], ["u21", "?: u19 u20 u18"], ["maxAng", "abs u21"], ["aAng", "pin 0 adj2 maxAng"], ["ptAng", "+- enAng aAng 0"], ["wtA", "sin rw3 ptAng"], ["htA", "cos rh3 ptAng"], ["dxA", "cat2 rw3 htA wtA"], ["dyA", "sat2 rh3 htA wtA"], ["xA", "+- hc dxA 0"], ["yA", "+- vc dyA 0"], ["wtE", "sin rw1 stAng"], ["htE", "cos rh1 stAng"], ["dxE", "cat2 rw1 htE wtE"], ["dyE", "sat2 rh1 htE wtE"], ["xE", "+- hc dxE 0"], ["yE", "+- vc dyE 0"], ["dxG", "cos thh ptAng"], ["dyG", "sin thh ptAng"], ["xG", "+- xH dxG 0"], ["yG", "+- yH dyG 0"], ["dxB", "cos thh ptAng"], ["dyB", "sin thh ptAng"], ["xB", "+- xH 0 dxB 0"], ["yB", "+- yH 0 dyB 0"], ["sx1", "+- xB 0 hc"], ["sy1", "+- yB 0 vc"], ["sx2", "+- xG 0 hc"], ["sy2", "+- yG 0 vc"], ["rO", "min rw1 rh1"], ["x1O", "*/ sx1 rO rw1"], ["y1O", "*/ sy1 rO rh1"], ["x2O", "*/ sx2 rO rw1"], ["y2O", "*/ sy2 rO rh1"], ["dxO", "+- x2O 0 x1O"], ["dyO", "+- y2O 0 y1O"], ["dO", "mod dxO dyO 0"], ["q1", "*/ x1O y2O 1"], ["q2", "*/ x2O y1O 1"], ["DO", "+- q1 0 q2"], ["q3", "*/ rO rO 1"], ["q4", "*/ dO dO 1"], ["q5", "*/ q3 q4 1"], ["q6", "*/ DO DO 1"], ["q7", "+- q5 0 q6"], ["q8", "max q7 0"], ["sdelO", "sqrt q8"], ["ndyO", "*/ dyO -1 1"], ["sdyO", "?: ndyO -1 1"], ["q9", "*/ sdyO dxO 1"], ["q10", "*/ q9 sdelO 1"], ["q11", "*/ DO dyO 1"], ["dxF1", "+/ q11 q10 q4"], ["q12", "+- q11 0 q10"], ["dxF2", "*/ q12 1 q4"], ["adyO", "abs dyO"], ["q13", "*/ adyO sdelO 1"], ["q14", "*/ DO dxO -1"], ["dyF1", "+/ q14 q13 q4"], ["q15", "+- q14 0 q13"], ["dyF2", "*/ q15 1 q4"], ["q16", "+- x2O 0 dxF1"], ["q17", "+- x2O 0 dxF2"], ["q18", "+- y2O 0 dyF1"], ["q19", "+- y2O 0 dyF2"], ["q20", "mod q16 q18 0"], ["q21", "mod q17 q19 0"], ["q22", "+- q21 0 q20"], ["dxF", "?: q22 dxF1 dxF2"], ["dyF", "?: q22 dyF1 dyF2"], ["sdxF", "*/ dxF rw1 rO"], ["sdyF", "*/ dyF rh1 rO"], ["xF", "+- hc sdxF 0"], ["yF", "+- vc sdyF 0"], ["x1I", "*/ sx1 rI rw2"], ["y1I", "*/ sy1 rI rh2"], ["x2I", "*/ sx2 rI rw2"], ["y2I", "*/ sy2 rI rh2"], ["dxI", "+- x2I 0 x1I"], ["dyI", "+- y2I 0 y1I"], ["dI", "mod dxI dyI 0"], ["v1", "*/ x1I y2I 1"], ["v2", "*/ x2I y1I 1"], ["DI", "+- v1 0 v2"], ["v3", "*/ rI rI 1"], ["v4", "*/ dI dI 1"], ["v5", "*/ v3 v4 1"], ["v6", "*/ DI DI 1"], ["v7", "+- v5 0 v6"], ["v8", "max v7 0"], ["sdelI", "sqrt v8"], ["v9", "*/ sdyO dxI 1"], ["v10", "*/ v9 sdelI 1"], ["v11", "*/ DI dyI 1"], ["dxC1", "+/ v11 v10 v4"], ["v12", "+- v11 0 v10"], ["dxC2", "*/ v12 1 v4"], ["adyI", "abs dyI"], ["v13", "*/ adyI sdelI 1"], ["v14", "*/ DI dxI -1"], ["dyC1", "+/ v14 v13 v4"], ["v15", "+- v14 0 v13"], ["dyC2", "*/ v15 1 v4"], ["v16", "+- x1I 0 dxC1"], ["v17", "+- x1I 0 dxC2"], ["v18", "+- y1I 0 dyC1"], ["v19", "+- y1I 0 dyC2"], ["v20", "mod v16 v18 0"], ["v21", "mod v17 v19 0"], ["v22", "+- v21 0 v20"], ["dxC", "?: v22 dxC1 dxC2"], ["dyC", "?: v22 dyC1 dyC2"], ["sdxC", "*/ dxC rw2 rI"], ["sdyC", "*/ dyC rh2 rI"], ["xC", "+- hc sdxC 0"], ["yC", "+- vc sdyC 0"], ["ist0", "at2 sdxC sdyC"], ["ist1", "+- ist0 21600000 0"], ["istAng", "?: ist0 ist0 ist1"], ["isw1", "+- stAng 0 istAng"], ["isw2", "+- isw1 0 21600000"], ["iswAng", "?: isw1 isw2 isw1"], ["p1", "+- xF 0 xC"], ["p2", "+- yF 0 yC"], ["p3", "mod p1 p2 0"], ["p4", "*/ p3 1 2"], ["p5", "+- p4 0 thh"], ["xGp", "?: p5 xF xG"], ["yGp", "?: p5 yF yG"], ["xBp", "?: p5 xC xB"], ["yBp", "?: p5 yC yB"], ["en0", "at2 sdxF sdyF"], ["en1", "+- en0 21600000 0"], ["en2", "?: en0 en0 en1"], ["sw0", "+- en2 0 stAng"], ["sw1", "+- sw0 21600000 0"], ["swAng", "?: sw0 sw0 sw1"], ["wtI", "sin rw3 stAng"], ["htI", "cos rh3 stAng"], ["dxI", "cat2 rw3 htI wtI"], ["dyI", "sat2 rh3 htI wtI"], ["xI", "+- hc dxI 0"], ["yI", "+- vc dyI 0"], ["aI", "+- stAng 0 cd4"], ["aA", "+- ptAng cd4 0"], ["aB", "+- ptAng cd2 0"], ["idx", "cos rw1 2700000"], ["idy", "sin rh1 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "xE", "yE"], ["A", "rw1", "rh1", "stAng", "swAng"], ["L", "xGp", "yGp"], ["L", "xA", "yA"], ["L", "xBp", "yBp"], ["L", "xC", "yC"], ["A", "rw2", "rh2", "istAng", "iswAng"], ["Z"]] }], "ah": [["adj2", "ang", "0", "maxAng"], ["adj4", "ang", "0", "21599999"], ["adj1", "r", "0", "maxAdj1"], ["adj3", "ang", "0", "21599999"], ["adj5", "r", "0", "25000"]] }, "cloud": { "av": [], "gd": [["il", "*/ w 2977 21600"], ["it", "*/ h 3262 21600"], ["ir", "*/ w 17087 21600"], ["ib", "*/ h 17337 21600"], ["g27", "*/ w 67 21600"], ["g28", "*/ h 21577 21600"], ["g29", "*/ w 21582 21600"], ["g30", "*/ h 1235 21600"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "w": 43200, "h": 43200, "cmds": [["M", "3900", "14370"], ["A", "6753", "9190", "-11429249", "7426832"], ["A", "5333", "7267", "-8646143", "5396714"], ["A", "4365", "5945", "-8748475", "5983381"], ["A", "4857", "6595", "-7859164", "7034504"], ["A", "5333", "7273", "-4722533", "6541615"], ["A", "6775", "9220", "-2776035", "7816140"], ["A", "5785", "7867", "37501", "6842000"], ["A", "6752", "9215", "1347096", "6910353"], ["A", "7720", "10543", "3974558", "4542661"], ["A", "4360", "5918", "-16496525", "8804134"], ["A", "4345", "5945", "-14809710", "9151131"], ["Z"]] }, { "w": 43200, "h": 43200, "fill": "none", "cmds": [["M", "4693", "26177"], ["A", "4345", "5945", "5204520", "1585770"], ["M", "6928", "34899"], ["A", "4360", "5918", "4416628", "686848"], ["M", "16478", "39090"], ["A", "6752", "9215", "8257449", "844866"], ["M", "28827", "34751"], ["A", "6752", "9215", "387196", "959901"], ["M", "34129", "22954"], ["A", "5785", "7867", "-4217541", "4255042"], ["M", "41798", "15354"], ["A", "5333", "7273", "1819082", "1665090"], ["M", "38324", "5426"], ["A", "4857", "6595", "-824660", "891534"], ["M", "29078", "3952"], ["A", "4857", "6595", "-8950887", "1091722"], ["M", "22141", "4720"], ["A", "4365", "5945", "-9809656", "1061181"], ["M", "14000", "5192"], ["A", "6753", "9190", "-4002417", "739161"], ["M", "4127", "15789"], ["A", "6753", "9190", "9459261", "711490"]] }] }, "cloudCallout": { "av": [["adj1", "val -20833"], ["adj2", "val 62500"]], "gd": [["dxPos", "*/ w adj1 100000"], ["dyPos", "*/ h adj2 100000"], ["xPos", "+- hc dxPos 0"], ["yPos", "+- vc dyPos 0"], ["ht", "cat2 hd2 dxPos dyPos"], ["wt", "sat2 wd2 dxPos dyPos"], ["g2", "cat2 wd2 ht wt"], ["g3", "sat2 hd2 ht wt"], ["g4", "+- hc g2 0"], ["g5", "+- vc g3 0"], ["g6", "+- g4 0 xPos"], ["g7", "+- g5 0 yPos"], ["g8", "mod g6 g7 0"], ["g9", "*/ ss 6600 21600"], ["g10", "+- g8 0 g9"], ["g11", "*/ g10 1 3"], ["g12", "*/ ss 1800 21600"], ["g13", "+- g11 g12 0"], ["g14", "*/ g13 g6 g8"], ["g15", "*/ g13 g7 g8"], ["g16", "+- g14 xPos 0"], ["g17", "+- g15 yPos 0"], ["g18", "*/ ss 4800 21600"], ["g19", "*/ g11 2 1"], ["g20", "+- g18 g19 0"], ["g21", "*/ g20 g6 g8"], ["g22", "*/ g20 g7 g8"], ["g23", "+- g21 xPos 0"], ["g24", "+- g22 yPos 0"], ["g25", "*/ ss 1200 21600"], ["g26", "*/ ss 600 21600"], ["x23", "+- xPos g26 0"], ["x24", "+- g16 g25 0"], ["x25", "+- g23 g12 0"], ["il", "*/ w 2977 21600"], ["it", "*/ h 3262 21600"], ["ir", "*/ w 17087 21600"], ["ib", "*/ h 17337 21600"], ["g27", "*/ w 67 21600"], ["g28", "*/ h 21577 21600"], ["g29", "*/ w 21582 21600"], ["g30", "*/ h 1235 21600"], ["pang", "at2 dxPos dyPos"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "w": 43200, "h": 43200, "cmds": [["M", "3900", "14370"], ["A", "6753", "9190", "-11429249", "7426832"], ["A", "5333", "7267", "-8646143", "5396714"], ["A", "4365", "5945", "-8748475", "5983381"], ["A", "4857", "6595", "-7859164", "7034504"], ["A", "5333", "7273", "-4722533", "6541615"], ["A", "6775", "9220", "-2776035", "7816140"], ["A", "5785", "7867", "37501", "6842000"], ["A", "6752", "9215", "1347096", "6910353"], ["A", "7720", "10543", "3974558", "4542661"], ["A", "4360", "5918", "-16496525", "8804134"], ["A", "4345", "5945", "-14809710", "9151131"], ["Z"]] }, { "cmds": [["M", "x23", "yPos"], ["A", "g26", "g26", "0", "21600000"], ["Z"]] }, { "cmds": [["M", "x24", "g17"], ["A", "g25", "g25", "0", "21600000"], ["Z"]] }, { "cmds": [["M", "x25", "g24"], ["A", "g12", "g12", "0", "21600000"], ["Z"]] }, { "w": 43200, "h": 43200, "fill": "none", "cmds": [["M", "4693", "26177"], ["A", "4345", "5945", "5204520", "1585770"], ["M", "6928", "34899"], ["A", "4360", "5918", "4416628", "686848"], ["M", "16478", "39090"], ["A", "6752", "9215", "8257449", "844866"], ["M", "28827", "34751"], ["A", "6752", "9215", "387196", "959901"], ["M", "34129", "22954"], ["A", "5785", "7867", "-4217541", "4255042"], ["M", "41798", "15354"], ["A", "5333", "7273", "1819082", "1665090"], ["M", "38324", "5426"], ["A", "4857", "6595", "-824660", "891534"], ["M", "29078", "3952"], ["A", "4857", "6595", "-8950887", "1091722"], ["M", "22141", "4720"], ["A", "4365", "5945", "-9809656", "1061181"], ["M", "14000", "5192"], ["A", "6753", "9190", "-4002417", "739161"], ["M", "4127", "15789"], ["A", "6753", "9190", "9459261", "711490"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"]] }, "corner": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj1", "*/ 100000 h ss"], ["maxAdj2", "*/ 100000 w ss"], ["a1", "pin 0 adj1 maxAdj1"], ["a2", "pin 0 adj2 maxAdj2"], ["x1", "*/ ss a2 100000"], ["dy1", "*/ ss a1 100000"], ["y1", "+- b 0 dy1"], ["cx1", "*/ x1 1 2"], ["cy1", "+/ y1 b 2"], ["d", "+- w 0 h"], ["it", "?: d y1 t"], ["ir", "?: d r x1"]], "rect": ["l", "it", "ir", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["L", "x1", "y1"], ["L", "r", "y1"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "x", "0", "maxAdj2"]] }, "cornerTabs": { "av": [], "gd": [["md", "mod w h 0"], ["dx", "*/ 1 md 20"], ["y1", "+- 0 b dx"], ["x1", "+- 0 r dx"]], "rect": ["dx", "dx", "x1", "y1"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "dx", "t"], ["L", "l", "dx"], ["Z"]] }, { "cmds": [["M", "l", "y1"], ["L", "dx", "b"], ["L", "l", "b"], ["Z"]] }, { "cmds": [["M", "x1", "t"], ["L", "r", "t"], ["L", "r", "dx"], ["Z"]] }, { "cmds": [["M", "r", "y1"], ["L", "r", "b"], ["L", "x1", "b"], ["Z"]] }] }, "cube": { "av": [["adj", "val 25000"]], "gd": [["a", "pin 0 adj 100000"], ["y1", "*/ ss a 100000"], ["y4", "+- b 0 y1"], ["y2", "*/ y4 1 2"], ["y3", "+/ y1 b 2"], ["x4", "+- r 0 y1"], ["x2", "*/ x4 1 2"], ["x3", "+/ y1 r 2"]], "rect": ["l", "y1", "x4", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "y1"], ["L", "x4", "y1"], ["L", "x4", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x4", "y1"], ["L", "r", "t"], ["L", "r", "y4"], ["L", "x4", "b"], ["Z"]] }, { "fill": "lightenLess", "stroke": false, "cmds": [["M", "l", "y1"], ["L", "y1", "t"], ["L", "r", "t"], ["L", "x4", "y1"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "y1"], ["L", "y1", "t"], ["L", "r", "t"], ["L", "r", "y4"], ["L", "x4", "b"], ["L", "l", "b"], ["Z"], ["M", "l", "y1"], ["L", "x4", "y1"], ["L", "r", "t"], ["M", "x4", "y1"], ["L", "x4", "b"]] }], "ah": [["adj", "y", "0", "100000"]] }, "curvedConnector2": { "av": [], "gd": [], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["C", "wd2", "t", "r", "hd2", "r", "b"]] }] }, "curvedConnector3": { "av": [["adj1", "val 50000"]], "gd": [["x2", "*/ w adj1 100000"], ["x1", "+/ l x2 2"], ["x3", "+/ r x2 2"], ["y3", "*/ h 3 4"]], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["C", "x1", "t", "x2", "hd4", "x2", "vc"], ["C", "x2", "y3", "x3", "b", "r", "b"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"]] }, "curvedConnector4": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["x2", "*/ w adj1 100000"], ["x1", "+/ l x2 2"], ["x3", "+/ r x2 2"], ["x4", "+/ x2 x3 2"], ["x5", "+/ x3 r 2"], ["y4", "*/ h adj2 100000"], ["y1", "+/ t y4 2"], ["y2", "+/ t y1 2"], ["y3", "+/ y1 y4 2"], ["y5", "+/ b y4 2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["C", "x1", "t", "x2", "y2", "x2", "y1"], ["C", "x2", "y3", "x4", "y4", "x3", "y4"], ["C", "x5", "y4", "r", "y5", "r", "b"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"]] }, "curvedConnector5": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"], ["adj3", "val 50000"]], "gd": [["x3", "*/ w adj1 100000"], ["x6", "*/ w adj3 100000"], ["x1", "+/ x3 x6 2"], ["x2", "+/ l x3 2"], ["x4", "+/ x3 x1 2"], ["x5", "+/ x6 x1 2"], ["x7", "+/ x6 r 2"], ["y4", "*/ h adj2 100000"], ["y1", "+/ t y4 2"], ["y2", "+/ t y1 2"], ["y3", "+/ y1 y4 2"], ["y5", "+/ b y4 2"], ["y6", "+/ y5 y4 2"], ["y7", "+/ y5 b 2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["C", "x2", "t", "x3", "y2", "x3", "y1"], ["C", "x3", "y3", "x4", "y4", "x1", "y4"], ["C", "x5", "y4", "x6", "y6", "x6", "y5"], ["C", "x6", "y7", "x7", "b", "r", "b"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"], ["adj3", "x", "-2147483647", "2147483647"]] }, "curvedDownArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 50000"], ["adj3", "val 25000"]], "gd": [["maxAdj2", "*/ 50000 w ss"], ["a2", "pin 0 adj2 maxAdj2"], ["a1", "pin 0 adj1 100000"], ["th", "*/ ss a1 100000"], ["aw", "*/ ss a2 100000"], ["q1", "+/ th aw 4"], ["wR", "+- wd2 0 q1"], ["q7", "*/ wR 2 1"], ["q8", "*/ q7 q7 1"], ["q9", "*/ th th 1"], ["q10", "+- q8 0 q9"], ["q11", "sqrt q10"], ["idy", "*/ q11 h q7"], ["maxAdj3", "*/ 100000 idy ss"], ["a3", "pin 0 adj3 maxAdj3"], ["ah", "*/ ss adj3 100000"], ["x3", "+- wR th 0"], ["q2", "*/ h h 1"], ["q3", "*/ ah ah 1"], ["q4", "+- q2 0 q3"], ["q5", "sqrt q4"], ["dx", "*/ q5 wR h"], ["x5", "+- wR dx 0"], ["x7", "+- x3 dx 0"], ["q6", "+- aw 0 th"], ["dh", "*/ q6 1 2"], ["x4", "+- x5 0 dh"], ["x8", "+- x7 dh 0"], ["aw2", "*/ aw 1 2"], ["x6", "+- r 0 aw2"], ["y1", "+- b 0 ah"], ["swAng", "at2 ah dx"], ["mswAng", "+- 0 0 swAng"], ["iy", "+- b 0 idy"], ["ix", "+/ wR x3 2"], ["q12", "*/ th 1 2"], ["dang2", "at2 idy q12"], ["stAng", "+- 3cd4 swAng 0"], ["stAng2", "+- 3cd4 0 dang2"], ["swAng2", "+- dang2 0 cd4"], ["swAng3", "+- cd4 dang2 0"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "x6", "b"], ["L", "x4", "y1"], ["L", "x5", "y1"], ["A", "wR", "h", "stAng", "mswAng"], ["L", "x3", "t"], ["A", "wR", "h", "3cd4", "swAng"], ["L", "x8", "y1"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "ix", "iy"], ["A", "wR", "h", "stAng2", "swAng2"], ["L", "l", "b"], ["A", "wR", "h", "cd2", "swAng3"], ["Z"]] }, { "fill": "none", "cmds": [["M", "ix", "iy"], ["A", "wR", "h", "stAng2", "swAng2"], ["L", "l", "b"], ["A", "wR", "h", "cd2", "cd4"], ["L", "x3", "t"], ["A", "wR", "h", "3cd4", "swAng"], ["L", "x8", "y1"], ["L", "x6", "b"], ["L", "x4", "y1"], ["L", "x5", "y1"], ["A", "wR", "h", "stAng", "mswAng"]] }], "ah": [["adj1", "x", "0", "adj2"], ["adj2", "x", "0", "maxAdj2"], ["adj3", "y", "0", "maxAdj3"]] }, "curvedLeftArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 50000"], ["adj3", "val 25000"]], "gd": [["maxAdj2", "*/ 50000 h ss"], ["a2", "pin 0 adj2 maxAdj2"], ["a1", "pin 0 adj1 a2"], ["th", "*/ ss a1 100000"], ["aw", "*/ ss a2 100000"], ["q1", "+/ th aw 4"], ["hR", "+- hd2 0 q1"], ["q7", "*/ hR 2 1"], ["q8", "*/ q7 q7 1"], ["q9", "*/ th th 1"], ["q10", "+- q8 0 q9"], ["q11", "sqrt q10"], ["idx", "*/ q11 w q7"], ["maxAdj3", "*/ 100000 idx ss"], ["a3", "pin 0 adj3 maxAdj3"], ["ah", "*/ ss a3 100000"], ["y3", "+- hR th 0"], ["q2", "*/ w w 1"], ["q3", "*/ ah ah 1"], ["q4", "+- q2 0 q3"], ["q5", "sqrt q4"], ["dy", "*/ q5 hR w"], ["y5", "+- hR dy 0"], ["y7", "+- y3 dy 0"], ["q6", "+- aw 0 th"], ["dh", "*/ q6 1 2"], ["y4", "+- y5 0 dh"], ["y8", "+- y7 dh 0"], ["aw2", "*/ aw 1 2"], ["y6", "+- b 0 aw2"], ["x1", "+- l ah 0"], ["swAng", "at2 ah dy"], ["mswAng", "+- 0 0 swAng"], ["ix", "+- l idx 0"], ["iy", "+/ hR y3 2"], ["q12", "*/ th 1 2"], ["dang2", "at2 idx q12"], ["swAng2", "+- dang2 0 swAng"], ["swAng3", "+- swAng dang2 0"], ["stAng3", "+- 0 0 dang2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "y6"], ["L", "x1", "y4"], ["L", "x1", "y5"], ["A", "w", "hR", "swAng", "swAng2"], ["A", "w", "hR", "stAng3", "swAng3"], ["L", "x1", "y8"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "r", "y3"], ["A", "w", "hR", "0", "-5400000"], ["L", "l", "t"], ["A", "w", "hR", "3cd4", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "r", "y3"], ["A", "w", "hR", "0", "-5400000"], ["L", "l", "t"], ["A", "w", "hR", "3cd4", "cd4"], ["L", "r", "y3"], ["A", "w", "hR", "0", "swAng"], ["L", "x1", "y8"], ["L", "l", "y6"], ["L", "x1", "y4"], ["L", "x1", "y5"], ["A", "w", "hR", "swAng", "swAng2"]] }], "ah": [["adj1", "y", "0", "a2"], ["adj2", "y", "0", "maxAdj2"], ["adj3", "x", "0", "maxAdj3"]] }, "curvedRightArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 50000"], ["adj3", "val 25000"]], "gd": [["maxAdj2", "*/ 50000 h ss"], ["a2", "pin 0 adj2 maxAdj2"], ["a1", "pin 0 adj1 a2"], ["th", "*/ ss a1 100000"], ["aw", "*/ ss a2 100000"], ["q1", "+/ th aw 4"], ["hR", "+- hd2 0 q1"], ["q7", "*/ hR 2 1"], ["q8", "*/ q7 q7 1"], ["q9", "*/ th th 1"], ["q10", "+- q8 0 q9"], ["q11", "sqrt q10"], ["idx", "*/ q11 w q7"], ["maxAdj3", "*/ 100000 idx ss"], ["a3", "pin 0 adj3 maxAdj3"], ["ah", "*/ ss a3 100000"], ["y3", "+- hR th 0"], ["q2", "*/ w w 1"], ["q3", "*/ ah ah 1"], ["q4", "+- q2 0 q3"], ["q5", "sqrt q4"], ["dy", "*/ q5 hR w"], ["y5", "+- hR dy 0"], ["y7", "+- y3 dy 0"], ["q6", "+- aw 0 th"], ["dh", "*/ q6 1 2"], ["y4", "+- y5 0 dh"], ["y8", "+- y7 dh 0"], ["aw2", "*/ aw 1 2"], ["y6", "+- b 0 aw2"], ["x1", "+- r 0 ah"], ["swAng", "at2 ah dy"], ["stAng", "+- cd2 0 swAng"], ["mswAng", "+- 0 0 swAng"], ["ix", "+- r 0 idx"], ["iy", "+/ hR y3 2"], ["q12", "*/ th 1 2"], ["dang2", "at2 idx q12"], ["swAng2", "+- dang2 0 cd4"], ["swAng3", "+- cd4 dang2 0"], ["stAng3", "+- cd2 0 dang2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "hR"], ["A", "w", "hR", "cd2", "mswAng"], ["L", "x1", "y4"], ["L", "r", "y6"], ["L", "x1", "y8"], ["L", "x1", "y7"], ["A", "w", "hR", "stAng", "swAng"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "r", "th"], ["A", "w", "hR", "3cd4", "swAng2"], ["A", "w", "hR", "stAng3", "swAng3"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "hR"], ["A", "w", "hR", "cd2", "mswAng"], ["L", "x1", "y4"], ["L", "r", "y6"], ["L", "x1", "y8"], ["L", "x1", "y7"], ["A", "w", "hR", "stAng", "swAng"], ["L", "l", "hR"], ["A", "w", "hR", "cd2", "cd4"], ["L", "r", "th"], ["A", "w", "hR", "3cd4", "swAng2"]] }], "ah": [["adj1", "y", "0", "a2"], ["adj2", "y", "0", "maxAdj2"], ["adj3", "x", "0", "maxAdj3"]] }, "curvedUpArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 50000"], ["adj3", "val 25000"]], "gd": [["maxAdj2", "*/ 50000 w ss"], ["a2", "pin 0 adj2 maxAdj2"], ["a1", "pin 0 adj1 100000"], ["th", "*/ ss a1 100000"], ["aw", "*/ ss a2 100000"], ["q1", "+/ th aw 4"], ["wR", "+- wd2 0 q1"], ["q7", "*/ wR 2 1"], ["q8", "*/ q7 q7 1"], ["q9", "*/ th th 1"], ["q10", "+- q8 0 q9"], ["q11", "sqrt q10"], ["idy", "*/ q11 h q7"], ["maxAdj3", "*/ 100000 idy ss"], ["a3", "pin 0 adj3 maxAdj3"], ["ah", "*/ ss adj3 100000"], ["x3", "+- wR th 0"], ["q2", "*/ h h 1"], ["q3", "*/ ah ah 1"], ["q4", "+- q2 0 q3"], ["q5", "sqrt q4"], ["dx", "*/ q5 wR h"], ["x5", "+- wR dx 0"], ["x7", "+- x3 dx 0"], ["q6", "+- aw 0 th"], ["dh", "*/ q6 1 2"], ["x4", "+- x5 0 dh"], ["x8", "+- x7 dh 0"], ["aw2", "*/ aw 1 2"], ["x6", "+- r 0 aw2"], ["y1", "+- t ah 0"], ["swAng", "at2 ah dx"], ["mswAng", "+- 0 0 swAng"], ["iy", "+- t idy 0"], ["ix", "+/ wR x3 2"], ["q12", "*/ th 1 2"], ["dang2", "at2 idy q12"], ["swAng2", "+- dang2 0 swAng"], ["mswAng2", "+- 0 0 swAng2"], ["stAng3", "+- cd4 0 swAng"], ["swAng3", "+- swAng dang2 0"], ["stAng2", "+- cd4 0 dang2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "stroke": false, "cmds": [["M", "x6", "t"], ["L", "x8", "y1"], ["L", "x7", "y1"], ["A", "wR", "h", "stAng3", "swAng3"], ["A", "wR", "h", "stAng2", "swAng2"], ["L", "x4", "y1"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "wR", "b"], ["A", "wR", "h", "cd4", "cd4"], ["L", "th", "t"], ["A", "wR", "h", "cd2", "-5400000"], ["Z"]] }, { "fill": "none", "cmds": [["M", "ix", "iy"], ["A", "wR", "h", "stAng2", "swAng2"], ["L", "x4", "y1"], ["L", "x6", "t"], ["L", "x8", "y1"], ["L", "x7", "y1"], ["A", "wR", "h", "stAng3", "swAng"], ["L", "wR", "b"], ["A", "wR", "h", "cd4", "cd4"], ["L", "th", "t"], ["A", "wR", "h", "cd2", "-5400000"]] }], "ah": [["adj1", "x", "0", "a2"], ["adj2", "x", "0", "maxAdj2"], ["adj3", "y", "0", "maxAdj3"]] }, "decagon": { "av": [["vf", "val 105146"]], "gd": [["shd2", "*/ hd2 vf 100000"], ["dx1", "cos wd2 2160000"], ["dx2", "cos wd2 4320000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["dy1", "sin shd2 4320000"], ["dy2", "sin shd2 2160000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"], ["y4", "+- vc dy1 0"]], "rect": ["x1", "y2", "x4", "y3"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "x1", "y2"], ["L", "x2", "y1"], ["L", "x3", "y1"], ["L", "x4", "y2"], ["L", "r", "vc"], ["L", "x4", "y3"], ["L", "x3", "y4"], ["L", "x2", "y4"], ["L", "x1", "y3"], ["Z"]] }] }, "diagStripe": { "av": [["adj", "val 50000"]], "gd": [["a", "pin 0 adj 100000"], ["x2", "*/ w a 100000"], ["x1", "*/ x2 1 2"], ["x3", "+/ x2 r 2"], ["y2", "*/ h a 100000"], ["y1", "*/ y2 1 2"], ["y3", "+/ y2 b 2"]], "rect": ["l", "t", "x3", "y3"], "paths": [{ "cmds": [["M", "l", "y2"], ["L", "x2", "t"], ["L", "r", "t"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj", "y", "0", "100000"]] }, "diamond": { "av": [], "gd": [["ir", "*/ w 3 4"], ["ib", "*/ h 3 4"]], "rect": ["wd4", "hd4", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "hc", "t"], ["L", "r", "vc"], ["L", "hc", "b"], ["Z"]] }] }, "dodecagon": { "av": [], "gd": [["x1", "*/ w 2894 21600"], ["x2", "*/ w 7906 21600"], ["x3", "*/ w 13694 21600"], ["x4", "*/ w 18706 21600"], ["y1", "*/ h 2894 21600"], ["y2", "*/ h 7906 21600"], ["y3", "*/ h 13694 21600"], ["y4", "*/ h 18706 21600"]], "rect": ["x1", "y1", "x4", "y4"], "paths": [{ "cmds": [["M", "l", "y2"], ["L", "x1", "y1"], ["L", "x2", "t"], ["L", "x3", "t"], ["L", "x4", "y1"], ["L", "r", "y2"], ["L", "r", "y3"], ["L", "x4", "y4"], ["L", "x3", "b"], ["L", "x2", "b"], ["L", "x1", "y4"], ["L", "l", "y3"], ["Z"]] }] }, "donut": { "av": [["adj", "val 25000"]], "gd": [["a", "pin 0 adj 50000"], ["dr", "*/ ss a 100000"], ["iwd2", "+- wd2 0 dr"], ["ihd2", "+- hd2 0 dr"], ["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"], ["M", "dr", "vc"], ["A", "iwd2", "ihd2", "cd2", "-5400000"], ["A", "iwd2", "ihd2", "cd4", "-5400000"], ["A", "iwd2", "ihd2", "0", "-5400000"], ["A", "iwd2", "ihd2", "3cd4", "-5400000"], ["Z"]] }], "ah": [["adj", "r", "0", "50000"]] }, "doubleWave": { "av": [["adj1", "val 6250"], ["adj2", "val 0"]], "gd": [["a1", "pin 0 adj1 12500"], ["a2", "pin -10000 adj2 10000"], ["y1", "*/ h a1 100000"], ["dy2", "*/ y1 10 3"], ["y2", "+- y1 0 dy2"], ["y3", "+- y1 dy2 0"], ["y4", "+- b 0 y1"], ["y5", "+- y4 0 dy2"], ["y6", "+- y4 dy2 0"], ["dx1", "*/ w a2 100000"], ["of2", "*/ w a2 50000"], ["x1", "abs dx1"], ["dx2", "?: of2 0 of2"], ["x2", "+- l 0 dx2"], ["dx8", "?: of2 of2 0"], ["x8", "+- r 0 dx8"], ["dx3", "+/ dx2 x8 6"], ["x3", "+- x2 dx3 0"], ["dx4", "+/ dx2 x8 3"], ["x4", "+- x2 dx4 0"], ["x5", "+/ x2 x8 2"], ["x6", "+- x5 dx3 0"], ["x7", "+/ x6 x8 2"], ["x9", "+- l dx8 0"], ["x15", "+- r dx2 0"], ["x10", "+- x9 dx3 0"], ["x11", "+- x9 dx4 0"], ["x12", "+/ x9 x15 2"], ["x13", "+- x12 dx3 0"], ["x14", "+/ x13 x15 2"], ["x16", "+- r 0 x1"], ["xAdj", "+- hc dx1 0"], ["il", "max x2 x9"], ["ir", "min x8 x15"], ["it", "*/ h a1 50000"], ["ib", "+- b 0 it"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "x2", "y1"], ["C", "x3", "y2", "x4", "y3", "x5", "y1"], ["C", "x6", "y2", "x7", "y3", "x8", "y1"], ["L", "x15", "y4"], ["C", "x14", "y6", "x13", "y5", "x12", "y4"], ["C", "x11", "y6", "x10", "y5", "x9", "y4"], ["Z"]] }], "ah": [["adj1", "y", "0", "12500"], ["adj2", "x", "-10000", "10000"]] }, "downArrow": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj2", "*/ 100000 h ss"], ["a1", "pin 0 adj1 100000"], ["a2", "pin 0 adj2 maxAdj2"], ["dy1", "*/ ss a2 100000"], ["y1", "+- b 0 dy1"], ["dx1", "*/ w a1 200000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc dx1 0"], ["dy2", "*/ x1 dy1 wd2"], ["y2", "+- y1 dy2 0"]], "rect": ["x1", "t", "x2", "y2"], "paths": [{ "cmds": [["M", "l", "y1"], ["L", "x1", "y1"], ["L", "x1", "t"], ["L", "x2", "t"], ["L", "x2", "y1"], ["L", "r", "y1"], ["L", "hc", "b"], ["Z"]] }], "ah": [["adj1", "x", "0", "100000"], ["adj2", "y", "0", "maxAdj2"]] }, "downArrowCallout": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 64977"]], "gd": [["maxAdj2", "*/ 50000 w ss"], ["a2", "pin 0 adj2 maxAdj2"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "*/ 100000 h ss"], ["a3", "pin 0 adj3 maxAdj3"], ["q2", "*/ a3 ss h"], ["maxAdj4", "+- 100000 0 q2"], ["a4", "pin 0 adj4 maxAdj4"], ["dx1", "*/ ss a2 100000"], ["dx2", "*/ ss a1 200000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["dy3", "*/ ss a3 100000"], ["y3", "+- b 0 dy3"], ["y2", "*/ h a4 100000"], ["y1", "*/ y2 1 2"]], "rect": ["l", "t", "r", "y2"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "y2"], ["L", "x3", "y2"], ["L", "x3", "y3"], ["L", "x4", "y3"], ["L", "hc", "b"], ["L", "x1", "y3"], ["L", "x2", "y3"], ["L", "x2", "y2"], ["L", "l", "y2"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "x", "0", "maxAdj2"], ["adj3", "y", "0", "maxAdj3"], ["adj4", "y", "0", "maxAdj4"]] }, "ellipse": { "av": [], "gd": [["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"]] }] }, "ellipseRibbon": { "av": [["adj1", "val 25000"], ["adj2", "val 50000"], ["adj3", "val 12500"]], "gd": [["a1", "pin 0 adj1 100000"], ["a2", "pin 25000 adj2 75000"], ["q10", "+- 100000 0 a1"], ["q11", "*/ q10 1 2"], ["q12", "+- a1 0 q11"], ["minAdj3", "max 0 q12"], ["a3", "pin minAdj3 adj3 a1"], ["dx2", "*/ w a2 200000"], ["x2", "+- hc 0 dx2"], ["x3", "+- x2 wd8 0"], ["x4", "+- r 0 x3"], ["x5", "+- r 0 x2"], ["x6", "+- r 0 wd8"], ["dy1", "*/ h a3 100000"], ["f1", "*/ 4 dy1 w"], ["q1", "*/ x3 x3 w"], ["q2", "+- x3 0 q1"], ["y1", "*/ f1 q2 1"], ["cx1", "*/ x3 1 2"], ["cy1", "*/ f1 cx1 1"], ["cx2", "+- r 0 cx1"], ["q1", "*/ h a1 100000"], ["dy3", "+- q1 0 dy1"], ["q3", "*/ x2 x2 w"], ["q4", "+- x2 0 q3"], ["q5", "*/ f1 q4 1"], ["y3", "+- q5 dy3 0"], ["q6", "+- dy1 dy3 y3"], ["q7", "+- q6 dy1 0"], ["cy3", "+- q7 dy3 0"], ["rh", "+- b 0 q1"], ["q8", "*/ dy1 14 16"], ["y2", "+/ q8 rh 2"], ["y5", "+- q5 rh 0"], ["y6", "+- y3 rh 0"], ["cx4", "*/ x2 1 2"], ["q9", "*/ f1 cx4 1"], ["cy4", "+- q9 rh 0"], ["cx5", "+- r 0 cx4"], ["cy6", "+- cy3 rh 0"], ["y7", "+- y1 dy3 0"], ["cy7", "+- q1 q1 y7"], ["y8", "+- b 0 dy1"]], "rect": ["x2", "q1", "x5", "y6"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["Q", "cx1", "cy1", "x3", "y1"], ["L", "x2", "y3"], ["Q", "hc", "cy3", "x5", "y3"], ["L", "x4", "y1"], ["Q", "cx2", "cy1", "r", "t"], ["L", "x6", "y2"], ["L", "r", "rh"], ["Q", "cx5", "cy4", "x5", "y5"], ["L", "x5", "y6"], ["Q", "hc", "cy6", "x2", "y6"], ["L", "x2", "y5"], ["Q", "cx4", "cy4", "l", "rh"], ["L", "wd8", "y2"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x3", "y7"], ["L", "x3", "y1"], ["L", "x2", "y3"], ["Q", "hc", "cy3", "x5", "y3"], ["L", "x4", "y1"], ["L", "x4", "y7"], ["Q", "hc", "cy7", "x3", "y7"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["Q", "cx1", "cy1", "x3", "y1"], ["L", "x2", "y3"], ["Q", "hc", "cy3", "x5", "y3"], ["L", "x4", "y1"], ["Q", "cx2", "cy1", "r", "t"], ["L", "x6", "y2"], ["L", "r", "rh"], ["Q", "cx5", "cy4", "x5", "y5"], ["L", "x5", "y6"], ["Q", "hc", "cy6", "x2", "y6"], ["L", "x2", "y5"], ["Q", "cx4", "cy4", "l", "rh"], ["L", "wd8", "y2"], ["Z"], ["M", "x2", "y5"], ["L", "x2", "y3"], ["M", "x5", "y3"], ["L", "x5", "y5"], ["M", "x3", "y1"], ["L", "x3", "y7"], ["M", "x4", "y7"], ["L", "x4", "y1"]] }], "ah": [["adj1", "y", "0", "100000"], ["adj2", "x", "25000", "75000"], ["adj3", "y", "minAdj3", "a1"]] }, "ellipseRibbon2": { "av": [["adj1", "val 25000"], ["adj2", "val 50000"], ["adj3", "val 12500"]], "gd": [["a1", "pin 0 adj1 100000"], ["a2", "pin 25000 adj2 75000"], ["q10", "+- 100000 0 a1"], ["q11", "*/ q10 1 2"], ["q12", "+- a1 0 q11"], ["minAdj3", "max 0 q12"], ["a3", "pin minAdj3 adj3 a1"], ["dx2", "*/ w a2 200000"], ["x2", "+- hc 0 dx2"], ["x3", "+- x2 wd8 0"], ["x4", "+- r 0 x3"], ["x5", "+- r 0 x2"], ["x6", "+- r 0 wd8"], ["dy1", "*/ h a3 100000"], ["f1", "*/ 4 dy1 w"], ["q1", "*/ x3 x3 w"], ["q2", "+- x3 0 q1"], ["u1", "*/ f1 q2 1"], ["y1", "+- b 0 u1"], ["cx1", "*/ x3 1 2"], ["cu1", "*/ f1 cx1 1"], ["cy1", "+- b 0 cu1"], ["cx2", "+- r 0 cx1"], ["q1", "*/ h a1 100000"], ["dy3", "+- q1 0 dy1"], ["q3", "*/ x2 x2 w"], ["q4", "+- x2 0 q3"], ["q5", "*/ f1 q4 1"], ["u3", "+- q5 dy3 0"], ["y3", "+- b 0 u3"], ["q6", "+- dy1 dy3 u3"], ["q7", "+- q6 dy1 0"], ["cu3", "+- q7 dy3 0"], ["cy3", "+- b 0 cu3"], ["rh", "+- b 0 q1"], ["q8", "*/ dy1 14 16"], ["u2", "+/ q8 rh 2"], ["y2", "+- b 0 u2"], ["u5", "+- q5 rh 0"], ["y5", "+- b 0 u5"], ["u6", "+- u3 rh 0"], ["y6", "+- b 0 u6"], ["cx4", "*/ x2 1 2"], ["q9", "*/ f1 cx4 1"], ["cu4", "+- q9 rh 0"], ["cy4", "+- b 0 cu4"], ["cx5", "+- r 0 cx4"], ["cu6", "+- cu3 rh 0"], ["cy6", "+- b 0 cu6"], ["u7", "+- u1 dy3 0"], ["y7", "+- b 0 u7"], ["cu7", "+- q1 q1 u7"], ["cy7", "+- b 0 cu7"]], "rect": ["x2", "y6", "x5", "rh"], "paths": [{ "stroke": false, "cmds": [["M", "l", "b"], ["Q", "cx1", "cy1", "x3", "y1"], ["L", "x2", "y3"], ["Q", "hc", "cy3", "x5", "y3"], ["L", "x4", "y1"], ["Q", "cx2", "cy1", "r", "b"], ["L", "x6", "y2"], ["L", "r", "q1"], ["Q", "cx5", "cy4", "x5", "y5"], ["L", "x5", "y6"], ["Q", "hc", "cy6", "x2", "y6"], ["L", "x2", "y5"], ["Q", "cx4", "cy4", "l", "q1"], ["L", "wd8", "y2"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x3", "y7"], ["L", "x3", "y1"], ["L", "x2", "y3"], ["Q", "hc", "cy3", "x5", "y3"], ["L", "x4", "y1"], ["L", "x4", "y7"], ["Q", "hc", "cy7", "x3", "y7"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "b"], ["L", "wd8", "y2"], ["L", "l", "q1"], ["Q", "cx4", "cy4", "x2", "y5"], ["L", "x2", "y6"], ["Q", "hc", "cy6", "x5", "y6"], ["L", "x5", "y5"], ["Q", "cx5", "cy4", "r", "q1"], ["L", "x6", "y2"], ["L", "r", "b"], ["Q", "cx2", "cy1", "x4", "y1"], ["L", "x5", "y3"], ["Q", "hc", "cy3", "x2", "y3"], ["L", "x3", "y1"], ["Q", "cx1", "cy1", "l", "b"], ["Z"], ["M", "x2", "y3"], ["L", "x2", "y5"], ["M", "x5", "y5"], ["L", "x5", "y3"], ["M", "x3", "y7"], ["L", "x3", "y1"], ["M", "x4", "y1"], ["L", "x4", "y7"]] }], "ah": [["adj1", "y", "0", "100000"], ["adj2", "x", "25000", "100000"], ["adj3", "y", "minAdj3", "a1"]] }, "flowChartAlternateProcess": { "av": [], "gd": [["x2", "+- r 0 ssd6"], ["y2", "+- b 0 ssd6"], ["il", "*/ ssd6 29289 100000"], ["ir", "+- r 0 il"], ["ib", "+- b 0 il"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "ssd6"], ["A", "ssd6", "ssd6", "cd2", "cd4"], ["L", "x2", "t"], ["A", "ssd6", "ssd6", "3cd4", "cd4"], ["L", "r", "y2"], ["A", "ssd6", "ssd6", "0", "cd4"], ["L", "ssd6", "b"], ["A", "ssd6", "ssd6", "cd4", "cd4"], ["Z"]] }] }, "flowChartCollate": { "av": [], "gd": [["ir", "*/ w 3 4"], ["ib", "*/ h 3 4"]], "rect": ["wd4", "hd4", "ir", "ib"], "paths": [{ "w": 2, "h": 2, "cmds": [["M", "0", "0"], ["L", "2", "0"], ["L", "1", "1"], ["L", "2", "2"], ["L", "0", "2"], ["L", "1", "1"], ["Z"]] }] }, "flowChartConnector": { "av": [], "gd": [["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"]] }] }, "flowChartDecision": { "av": [], "gd": [["ir", "*/ w 3 4"], ["ib", "*/ h 3 4"]], "rect": ["wd4", "hd4", "ir", "ib"], "paths": [{ "w": 2, "h": 2, "cmds": [["M", "0", "1"], ["L", "1", "0"], ["L", "2", "1"], ["L", "1", "2"], ["Z"]] }] }, "flowChartDelay": { "av": [], "gd": [["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["l", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "hc", "t"], ["A", "wd2", "hd2", "3cd4", "cd2"], ["L", "l", "b"], ["Z"]] }] }, "flowChartDisplay": { "av": [], "gd": [["x2", "*/ w 5 6"]], "rect": ["wd6", "t", "x2", "b"], "paths": [{ "w": 6, "h": 6, "cmds": [["M", "0", "3"], ["L", "1", "0"], ["L", "5", "0"], ["A", "1", "3", "3cd4", "cd2"], ["L", "1", "6"], ["Z"]] }] }, "flowChartDocument": { "av": [], "gd": [["y1", "*/ h 17322 21600"], ["y2", "*/ h 20172 21600"]], "rect": ["l", "t", "r", "y1"], "paths": [{ "w": 21600, "h": 21600, "cmds": [["M", "0", "0"], ["L", "21600", "0"], ["L", "21600", "17322"], ["C", "10800", "17322", "10800", "23922", "0", "20172"], ["Z"]] }] }, "flowChartExtract": { "av": [], "gd": [["x2", "*/ w 3 4"]], "rect": ["wd4", "vc", "x2", "b"], "paths": [{ "w": 2, "h": 2, "cmds": [["M", "0", "2"], ["L", "1", "0"], ["L", "2", "2"], ["Z"]] }] }, "flowChartInputOutput": { "av": [], "gd": [["x3", "*/ w 2 5"], ["x4", "*/ w 3 5"], ["x5", "*/ w 4 5"], ["x6", "*/ w 9 10"]], "rect": ["wd5", "t", "x5", "b"], "paths": [{ "w": 5, "h": 5, "cmds": [["M", "0", "5"], ["L", "1", "0"], ["L", "5", "0"], ["L", "4", "5"], ["Z"]] }] }, "flowChartInternalStorage": { "av": [], "gd": [], "rect": ["wd8", "hd8", "r", "b"], "paths": [{ "w": 1, "h": 1, "stroke": false, "cmds": [["M", "0", "0"], ["L", "1", "0"], ["L", "1", "1"], ["L", "0", "1"], ["Z"]] }, { "w": 8, "h": 8, "fill": "none", "cmds": [["M", "1", "0"], ["L", "1", "8"], ["M", "0", "1"], ["L", "8", "1"]] }, { "w": 1, "h": 1, "fill": "none", "cmds": [["M", "0", "0"], ["L", "1", "0"], ["L", "1", "1"], ["L", "0", "1"], ["Z"]] }] }, "flowChartMagneticDisk": { "av": [], "gd": [["y3", "*/ h 5 6"]], "rect": ["l", "hd3", "r", "y3"], "paths": [{ "w": 6, "h": 6, "stroke": false, "cmds": [["M", "0", "1"], ["A", "3", "1", "cd2", "cd2"], ["L", "6", "5"], ["A", "3", "1", "0", "cd2"], ["Z"]] }, { "w": 6, "h": 6, "fill": "none", "cmds": [["M", "6", "1"], ["A", "3", "1", "0", "cd2"]] }, { "w": 6, "h": 6, "fill": "none", "cmds": [["M", "0", "1"], ["A", "3", "1", "cd2", "cd2"], ["L", "6", "5"], ["A", "3", "1", "0", "cd2"], ["Z"]] }] }, "flowChartMagneticDrum": { "av": [], "gd": [["x2", "*/ w 2 3"]], "rect": ["wd6", "t", "x2", "b"], "paths": [{ "w": 6, "h": 6, "stroke": false, "cmds": [["M", "1", "0"], ["L", "5", "0"], ["A", "1", "3", "3cd4", "cd2"], ["L", "1", "6"], ["A", "1", "3", "cd4", "cd2"], ["Z"]] }, { "w": 6, "h": 6, "fill": "none", "cmds": [["M", "5", "6"], ["A", "1", "3", "cd4", "cd2"]] }, { "w": 6, "h": 6, "fill": "none", "cmds": [["M", "1", "0"], ["L", "5", "0"], ["A", "1", "3", "3cd4", "cd2"], ["L", "1", "6"], ["A", "1", "3", "cd4", "cd2"], ["Z"]] }] }, "flowChartMagneticTape": { "av": [], "gd": [["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"], ["ang1", "at2 w h"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "hc", "b"], ["A", "wd2", "hd2", "cd4", "cd4"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "ang1"], ["L", "r", "ib"], ["L", "r", "b"], ["Z"]] }] }, "flowChartManualInput": { "av": [], "gd": [], "rect": ["l", "hd5", "r", "b"], "paths": [{ "w": 5, "h": 5, "cmds": [["M", "0", "1"], ["L", "5", "0"], ["L", "5", "5"], ["L", "0", "5"], ["Z"]] }] }, "flowChartManualOperation": { "av": [], "gd": [["x3", "*/ w 4 5"], ["x4", "*/ w 9 10"]], "rect": ["wd5", "t", "x3", "b"], "paths": [{ "w": 5, "h": 5, "cmds": [["M", "0", "0"], ["L", "5", "0"], ["L", "4", "5"], ["L", "1", "5"], ["Z"]] }] }, "flowChartMerge": { "av": [], "gd": [["x2", "*/ w 3 4"]], "rect": ["wd4", "t", "x2", "vc"], "paths": [{ "w": 2, "h": 2, "cmds": [["M", "0", "0"], ["L", "2", "0"], ["L", "1", "2"], ["Z"]] }] }, "flowChartMultidocument": { "av": [], "gd": [["y2", "*/ h 3675 21600"], ["y8", "*/ h 20782 21600"], ["x3", "*/ w 9298 21600"], ["x4", "*/ w 12286 21600"], ["x5", "*/ w 18595 21600"]], "rect": ["l", "y2", "x5", "y8"], "paths": [{ "w": 21600, "h": 21600, "stroke": false, "cmds": [["M", "0", "20782"], ["C", "9298", "23542", "9298", "18022", "18595", "18022"], ["L", "18595", "3675"], ["L", "0", "3675"], ["Z"], ["M", "1532", "3675"], ["L", "1532", "1815"], ["L", "20000", "1815"], ["L", "20000", "16252"], ["C", "19298", "16252", "18595", "16352", "18595", "16352"], ["L", "18595", "3675"], ["Z"], ["M", "2972", "1815"], ["L", "2972", "0"], ["L", "21600", "0"], ["L", "21600", "14392"], ["C", "20800", "14392", "20000", "14467", "20000", "14467"], ["L", "20000", "1815"], ["Z"]] }, { "w": 21600, "h": 21600, "fill": "none", "cmds": [["M", "0", "3675"], ["L", "18595", "3675"], ["L", "18595", "18022"], ["C", "9298", "18022", "9298", "23542", "0", "20782"], ["Z"], ["M", "1532", "3675"], ["L", "1532", "1815"], ["L", "20000", "1815"], ["L", "20000", "16252"], ["C", "19298", "16252", "18595", "16352", "18595", "16352"], ["M", "2972", "1815"], ["L", "2972", "0"], ["L", "21600", "0"], ["L", "21600", "14392"], ["C", "20800", "14392", "20000", "14467", "20000", "14467"]] }, { "w": 21600, "h": 21600, "fill": "none", "stroke": false, "cmds": [["M", "0", "20782"], ["C", "9298", "23542", "9298", "18022", "18595", "18022"], ["L", "18595", "16352"], ["C", "18595", "16352", "19298", "16252", "20000", "16252"], ["L", "20000", "14467"], ["C", "20000", "14467", "20800", "14392", "21600", "14392"], ["L", "21600", "0"], ["L", "2972", "0"], ["L", "2972", "1815"], ["L", "1532", "1815"], ["L", "1532", "3675"], ["L", "0", "3675"], ["Z"]] }] }, "flowChartOfflineStorage": { "av": [], "gd": [["x4", "*/ w 3 4"]], "rect": ["wd4", "t", "x4", "vc"], "paths": [{ "w": 2, "h": 2, "stroke": false, "cmds": [["M", "0", "0"], ["L", "2", "0"], ["L", "1", "2"], ["Z"]] }, { "w": 5, "h": 5, "fill": "none", "cmds": [["M", "2", "4"], ["L", "3", "4"]] }, { "w": 2, "h": 2, "fill": "none", "cmds": [["M", "0", "0"], ["L", "2", "0"], ["L", "1", "2"], ["Z"]] }] }, "flowChartOffpageConnector": { "av": [], "gd": [["y1", "*/ h 4 5"]], "rect": ["l", "t", "r", "y1"], "paths": [{ "w": 10, "h": 10, "cmds": [["M", "0", "0"], ["L", "10", "0"], ["L", "10", "8"], ["L", "5", "10"], ["L", "0", "8"], ["Z"]] }] }, "flowChartOnlineStorage": { "av": [], "gd": [["x2", "*/ w 5 6"]], "rect": ["wd6", "t", "x2", "b"], "paths": [{ "w": 6, "h": 6, "cmds": [["M", "1", "0"], ["L", "6", "0"], ["A", "1", "3", "3cd4", "-10800000"], ["L", "1", "6"], ["A", "1", "3", "cd4", "cd2"], ["Z"]] }] }, "flowChartOr": { "av": [], "gd": [["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "hc", "t"], ["L", "hc", "b"], ["M", "l", "vc"], ["L", "r", "vc"]] }, { "fill": "none", "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"]] }] }, "flowChartPredefinedProcess": { "av": [], "gd": [["x2", "*/ w 7 8"]], "rect": ["wd8", "t", "x2", "b"], "paths": [{ "w": 1, "h": 1, "stroke": false, "cmds": [["M", "0", "0"], ["L", "1", "0"], ["L", "1", "1"], ["L", "0", "1"], ["Z"]] }, { "w": 8, "h": 8, "fill": "none", "cmds": [["M", "1", "0"], ["L", "1", "8"], ["M", "7", "0"], ["L", "7", "8"]] }, { "w": 1, "h": 1, "fill": "none", "cmds": [["M", "0", "0"], ["L", "1", "0"], ["L", "1", "1"], ["L", "0", "1"], ["Z"]] }] }, "flowChartPreparation": { "av": [], "gd": [["x2", "*/ w 4 5"]], "rect": ["wd5", "t", "x2", "b"], "paths": [{ "w": 10, "h": 10, "cmds": [["M", "0", "5"], ["L", "2", "0"], ["L", "8", "0"], ["L", "10", "5"], ["L", "8", "10"], ["L", "2", "10"], ["Z"]] }] }, "flowChartProcess": { "av": [], "gd": [], "rect": ["l", "t", "r", "b"], "paths": [{ "w": 1, "h": 1, "cmds": [["M", "0", "0"], ["L", "1", "0"], ["L", "1", "1"], ["L", "0", "1"], ["Z"]] }] }, "flowChartPunchedCard": { "av": [], "gd": [], "rect": ["l", "hd5", "r", "b"], "paths": [{ "w": 5, "h": 5, "cmds": [["M", "0", "1"], ["L", "1", "0"], ["L", "5", "0"], ["L", "5", "5"], ["L", "0", "5"], ["Z"]] }] }, "flowChartPunchedTape": { "av": [], "gd": [["y2", "*/ h 9 10"], ["ib", "*/ h 4 5"]], "rect": ["l", "hd5", "r", "ib"], "paths": [{ "w": 20, "h": 20, "cmds": [["M", "0", "2"], ["A", "5", "2", "cd2", "-10800000"], ["A", "5", "2", "cd2", "cd2"], ["L", "20", "18"], ["A", "5", "2", "0", "-10800000"], ["A", "5", "2", "0", "cd2"], ["Z"]] }] }, "flowChartSort": { "av": [], "gd": [["ir", "*/ w 3 4"], ["ib", "*/ h 3 4"]], "rect": ["wd4", "hd4", "ir", "ib"], "paths": [{ "w": 2, "h": 2, "stroke": false, "cmds": [["M", "0", "1"], ["L", "1", "0"], ["L", "2", "1"], ["L", "1", "2"], ["Z"]] }, { "w": 2, "h": 2, "fill": "none", "cmds": [["M", "0", "1"], ["L", "2", "1"]] }, { "w": 2, "h": 2, "fill": "none", "cmds": [["M", "0", "1"], ["L", "1", "0"], ["L", "2", "1"], ["L", "1", "2"], ["Z"]] }] }, "flowChartSummingJunction": { "av": [], "gd": [["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "il", "it"], ["L", "ir", "ib"], ["M", "ir", "it"], ["L", "il", "ib"]] }, { "fill": "none", "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"]] }] }, "flowChartTerminator": { "av": [], "gd": [["il", "*/ w 1018 21600"], ["ir", "*/ w 20582 21600"], ["it", "*/ h 3163 21600"], ["ib", "*/ h 18437 21600"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "w": 21600, "h": 21600, "cmds": [["M", "3475", "0"], ["L", "18125", "0"], ["A", "3475", "10800", "3cd4", "cd2"], ["L", "3475", "21600"], ["A", "3475", "10800", "cd4", "cd2"], ["Z"]] }] }, "foldedCorner": { "av": [["adj", "val 16667"]], "gd": [["a", "pin 0 adj 50000"], ["dy2", "*/ ss a 100000"], ["dy1", "*/ dy2 1 5"], ["x1", "+- r 0 dy2"], ["x2", "+- x1 dy1 0"], ["y2", "+- b 0 dy2"], ["y1", "+- y2 dy1 0"]], "rect": ["l", "t", "r", "y2"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "y2"], ["L", "x1", "b"], ["L", "l", "b"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x1", "b"], ["L", "x2", "y1"], ["L", "r", "y2"], ["Z"]] }, { "fill": "none", "cmds": [["M", "x1", "b"], ["L", "x2", "y1"], ["L", "r", "y2"], ["L", "x1", "b"], ["L", "l", "b"], ["L", "l", "t"], ["L", "r", "t"], ["L", "r", "y2"]] }], "ah": [["adj", "x", "0", "50000"]] }, "frame": { "av": [["adj1", "val 12500"]], "gd": [["a1", "pin 0 adj1 50000"], ["x1", "*/ ss a1 100000"], ["x4", "+- r 0 x1"], ["y4", "+- b 0 x1"]], "rect": ["x1", "x1", "x4", "y4"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"], ["M", "x1", "x1"], ["L", "x1", "y4"], ["L", "x4", "y4"], ["L", "x4", "x1"], ["Z"]] }], "ah": [["adj1", "x", "0", "50000"]] }, "funnel": { "av": [], "gd": [["d", "*/ ss 1 20"], ["rw2", "+- wd2 0 d"], ["rh2", "+- hd4 0 d"], ["t1", "cos wd2 480000"], ["t2", "sin hd4 480000"], ["da", "at2 t1 t2"], ["2da", "*/ da 2 1"], ["stAng1", "+- cd2 0 da"], ["swAng1", "+- cd2 2da 0"], ["swAng3", "+- cd2 0 2da"], ["rw3", "*/ wd2 1 4"], ["rh3", "*/ hd4 1 4"], ["ct1", "cos hd4 stAng1"], ["st1", "sin wd2 stAng1"], ["m1", "mod ct1 st1 0"], ["n1", "*/ wd2 hd4 m1"], ["dx1", "cos n1 stAng1"], ["dy1", "sin n1 stAng1"], ["x1", "+- hc dx1 0"], ["y1", "+- hd4 dy1 0"], ["ct3", "cos rh3 da"], ["st3", "sin rw3 da"], ["m3", "mod ct3 st3 0"], ["n3", "*/ rw3 rh3 m3"], ["dx3", "cos n3 da"], ["dy3", "sin n3 da"], ["x3", "+- hc dx3 0"], ["vc3", "+- b 0 rh3"], ["y2", "+- vc3 dy3 0"], ["x2", "+- wd2 0 rw2"], ["cd", "*/ cd2 2 1"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "x1", "y1"], ["A", "wd2", "hd4", "stAng1", "swAng1"], ["L", "x3", "y2"], ["A", "rw3", "rh3", "da", "swAng3"], ["Z"], ["M", "x2", "hd4"], ["A", "rw2", "rh2", "cd2", "-21600000"], ["Z"]] }] }, "gear6": { "av": [["adj1", "val 15000"], ["adj2", "val 3526"]], "gd": [["a1", "pin 0 adj1 20000"], ["a2", "pin 0 adj2 5358"], ["th", "*/ ss a1 100000"], ["lFD", "*/ ss a2 100000"], ["th2", "*/ th 1 2"], ["l2", "*/ lFD 1 2"], ["l3", "+- th2 l2 0"], ["rh", "+- hd2 0 th"], ["rw", "+- wd2 0 th"], ["dr", "+- rw 0 rh"], ["maxr", "?: dr rh rw"], ["ha", "at2 maxr l3"], ["aA1", "+- 19800000 0 ha"], ["aD1", "+- 19800000 ha 0"], ["ta11", "cos rw aA1"], ["ta12", "sin rh aA1"], ["bA1", "at2 ta11 ta12"], ["cta1", "cos rh bA1"], ["sta1", "sin rw bA1"], ["ma1", "mod cta1 sta1 0"], ["na1", "*/ rw rh ma1"], ["dxa1", "cos na1 bA1"], ["dya1", "sin na1 bA1"], ["xA1", "+- hc dxa1 0"], ["yA1", "+- vc dya1 0"], ["td11", "cos rw aD1"], ["td12", "sin rh aD1"], ["bD1", "at2 td11 td12"], ["ctd1", "cos rh bD1"], ["std1", "sin rw bD1"], ["md1", "mod ctd1 std1 0"], ["nd1", "*/ rw rh md1"], ["dxd1", "cos nd1 bD1"], ["dyd1", "sin nd1 bD1"], ["xD1", "+- hc dxd1 0"], ["yD1", "+- vc dyd1 0"], ["xAD1", "+- xA1 0 xD1"], ["yAD1", "+- yA1 0 yD1"], ["lAD1", "mod xAD1 yAD1 0"], ["a1", "at2 yAD1 xAD1"], ["dxF1", "sin lFD a1"], ["dyF1", "cos lFD a1"], ["xF1", "+- xD1 dxF1 0"], ["yF1", "+- yD1 dyF1 0"], ["xE1", "+- xA1 0 dxF1"], ["yE1", "+- yA1 0 dyF1"], ["yC1t", "sin th a1"], ["xC1t", "cos th a1"], ["yC1", "+- yF1 yC1t 0"], ["xC1", "+- xF1 0 xC1t"], ["yB1", "+- yE1 yC1t 0"], ["xB1", "+- xE1 0 xC1t"], ["aD6", "+- 3cd4 ha 0"], ["td61", "cos rw aD6"], ["td62", "sin rh aD6"], ["bD6", "at2 td61 td62"], ["ctd6", "cos rh bD6"], ["std6", "sin rw bD6"], ["md6", "mod ctd6 std6 0"], ["nd6", "*/ rw rh md6"], ["dxd6", "cos nd6 bD6"], ["dyd6", "sin nd6 bD6"], ["xD6", "+- hc dxd6 0"], ["yD6", "+- vc dyd6 0"], ["xA6", "+- hc 0 dxd6"], ["xF6", "+- xD6 0 lFD"], ["xE6", "+- xA6 lFD 0"], ["yC6", "+- yD6 0 th"], ["swAng1", "+- bA1 0 bD6"], ["aA2", "+- 1800000 0 ha"], ["aD2", "+- 1800000 ha 0"], ["ta21", "cos rw aA2"], ["ta22", "sin rh aA2"], ["bA2", "at2 ta21 ta22"], ["yA2", "+- h 0 yD1"], ["td21", "cos rw aD2"], ["td22", "sin rh aD2"], ["bD2", "at2 td21 td22"], ["yD2", "+- h 0 yA1"], ["yC2", "+- h 0 yB1"], ["yB2", "+- h 0 yC1"], ["xB2", "val xC1"], ["swAng2", "+- bA2 0 bD1"], ["aD3", "+- cd4 ha 0"], ["td31", "cos rw aD3"], ["td32", "sin rh aD3"], ["bD3", "at2 td31 td32"], ["yD3", "+- h 0 yD6"], ["yB3", "+- h 0 yC6"], ["aD4", "+- 9000000 ha 0"], ["td41", "cos rw aD4"], ["td42", "sin rh aD4"], ["bD4", "at2 td41 td42"], ["xD4", "+- w 0 xD1"], ["xC4", "+- w 0 xC1"], ["xB4", "+- w 0 xB1"], ["aD5", "+- 12600000 ha 0"], ["td51", "cos rw aD5"], ["td52", "sin rh aD5"], ["bD5", "at2 td51 td52"], ["xD5", "+- w 0 xA1"], ["xC5", "+- w 0 xB1"], ["xB5", "+- w 0 xC1"], ["xCxn1", "+/ xB1 xC1 2"], ["yCxn1", "+/ yB1 yC1 2"], ["yCxn2", "+- b 0 yCxn1"], ["xCxn4", "+/ r 0 xCxn1"]], "rect": ["xD5", "yA1", "xA1", "yD2"], "paths": [{ "cmds": [["M", "xA1", "yA1"], ["L", "xB1", "yB1"], ["L", "xC1", "yC1"], ["L", "xD1", "yD1"], ["A", "rw", "rh", "bD1", "swAng2"], ["L", "xC1", "yB2"], ["L", "xB1", "yC2"], ["L", "xA1", "yD2"], ["A", "rw", "rh", "bD2", "swAng1"], ["L", "xF6", "yB3"], ["L", "xE6", "yB3"], ["L", "xA6", "yD3"], ["A", "rw", "rh", "bD3", "swAng1"], ["L", "xB4", "yC2"], ["L", "xC4", "yB2"], ["L", "xD4", "yA2"], ["A", "rw", "rh", "bD4", "swAng2"], ["L", "xB5", "yC1"], ["L", "xC5", "yB1"], ["L", "xD5", "yA1"], ["A", "rw", "rh", "bD5", "swAng1"], ["L", "xE6", "yC6"], ["L", "xF6", "yC6"], ["L", "xD6", "yD6"], ["A", "rw", "rh", "bD6", "swAng1"], ["Z"]] }], "ah": [["adj1", "y", "0", "20000"], ["adj2", "x", "0", "5358"]] }, "gear9": { "av": [["adj1", "val 10000"], ["adj2", "val 1763"]], "gd": [["a1", "pin 0 adj1 20000"], ["a2", "pin 0 adj2 2679"], ["th", "*/ ss a1 100000"], ["lFD", "*/ ss a2 100000"], ["th2", "*/ th 1 2"], ["l2", "*/ lFD 1 2"], ["l3", "+- th2 l2 0"], ["rh", "+- hd2 0 th"], ["rw", "+- wd2 0 th"], ["dr", "+- rw 0 rh"], ["maxr", "?: dr rh rw"], ["ha", "at2 maxr l3"], ["aA1", "+- 18600000 0 ha"], ["aD1", "+- 18600000 ha 0"], ["ta11", "cos rw aA1"], ["ta12", "sin rh aA1"], ["bA1", "at2 ta11 ta12"], ["cta1", "cos rh bA1"], ["sta1", "sin rw bA1"], ["ma1", "mod cta1 sta1 0"], ["na1", "*/ rw rh ma1"], ["dxa1", "cos na1 bA1"], ["dya1", "sin na1 bA1"], ["xA1", "+- hc dxa1 0"], ["yA1", "+- vc dya1 0"], ["td11", "cos rw aD1"], ["td12", "sin rh aD1"], ["bD1", "at2 td11 td12"], ["ctd1", "cos rh bD1"], ["std1", "sin rw bD1"], ["md1", "mod ctd1 std1 0"], ["nd1", "*/ rw rh md1"], ["dxd1", "cos nd1 bD1"], ["dyd1", "sin nd1 bD1"], ["xD1", "+- hc dxd1 0"], ["yD1", "+- vc dyd1 0"], ["xAD1", "+- xA1 0 xD1"], ["yAD1", "+- yA1 0 yD1"], ["lAD1", "mod xAD1 yAD1 0"], ["a1", "at2 yAD1 xAD1"], ["dxF1", "sin lFD a1"], ["dyF1", "cos lFD a1"], ["xF1", "+- xD1 dxF1 0"], ["yF1", "+- yD1 dyF1 0"], ["xE1", "+- xA1 0 dxF1"], ["yE1", "+- yA1 0 dyF1"], ["yC1t", "sin th a1"], ["xC1t", "cos th a1"], ["yC1", "+- yF1 yC1t 0"], ["xC1", "+- xF1 0 xC1t"], ["yB1", "+- yE1 yC1t 0"], ["xB1", "+- xE1 0 xC1t"], ["aA2", "+- 21000000 0 ha"], ["aD2", "+- 21000000 ha 0"], ["ta21", "cos rw aA2"], ["ta22", "sin rh aA2"], ["bA2", "at2 ta21 ta22"], ["cta2", "cos rh bA2"], ["sta2", "sin rw bA2"], ["ma2", "mod cta2 sta2 0"], ["na2", "*/ rw rh ma2"], ["dxa2", "cos na2 bA2"], ["dya2", "sin na2 bA2"], ["xA2", "+- hc dxa2 0"], ["yA2", "+- vc dya2 0"], ["td21", "cos rw aD2"], ["td22", "sin rh aD2"], ["bD2", "at2 td21 td22"], ["ctd2", "cos rh bD2"], ["std2", "sin rw bD2"], ["md2", "mod ctd2 std2 0"], ["nd2", "*/ rw rh md2"], ["dxd2", "cos nd2 bD2"], ["dyd2", "sin nd2 bD2"], ["xD2", "+- hc dxd2 0"], ["yD2", "+- vc dyd2 0"], ["xAD2", "+- xA2 0 xD2"], ["yAD2", "+- yA2 0 yD2"], ["lAD2", "mod xAD2 yAD2 0"], ["a2", "at2 yAD2 xAD2"], ["dxF2", "sin lFD a2"], ["dyF2", "cos lFD a2"], ["xF2", "+- xD2 dxF2 0"], ["yF2", "+- yD2 dyF2 0"], ["xE2", "+- xA2 0 dxF2"], ["yE2", "+- yA2 0 dyF2"], ["yC2t", "sin th a2"], ["xC2t", "cos th a2"], ["yC2", "+- yF2 yC2t 0"], ["xC2", "+- xF2 0 xC2t"], ["yB2", "+- yE2 yC2t 0"], ["xB2", "+- xE2 0 xC2t"], ["swAng1", "+- bA2 0 bD1"], ["aA3", "+- 1800000 0 ha"], ["aD3", "+- 1800000 ha 0"], ["ta31", "cos rw aA3"], ["ta32", "sin rh aA3"], ["bA3", "at2 ta31 ta32"], ["cta3", "cos rh bA3"], ["sta3", "sin rw bA3"], ["ma3", "mod cta3 sta3 0"], ["na3", "*/ rw rh ma3"], ["dxa3", "cos na3 bA3"], ["dya3", "sin na3 bA3"], ["xA3", "+- hc dxa3 0"], ["yA3", "+- vc dya3 0"], ["td31", "cos rw aD3"], ["td32", "sin rh aD3"], ["bD3", "at2 td31 td32"], ["ctd3", "cos rh bD3"], ["std3", "sin rw bD3"], ["md3", "mod ctd3 std3 0"], ["nd3", "*/ rw rh md3"], ["dxd3", "cos nd3 bD3"], ["dyd3", "sin nd3 bD3"], ["xD3", "+- hc dxd3 0"], ["yD3", "+- vc dyd3 0"], ["xAD3", "+- xA3 0 xD3"], ["yAD3", "+- yA3 0 yD3"], ["lAD3", "mod xAD3 yAD3 0"], ["a3", "at2 yAD3 xAD3"], ["dxF3", "sin lFD a3"], ["dyF3", "cos lFD a3"], ["xF3", "+- xD3 dxF3 0"], ["yF3", "+- yD3 dyF3 0"], ["xE3", "+- xA3 0 dxF3"], ["yE3", "+- yA3 0 dyF3"], ["yC3t", "sin th a3"], ["xC3t", "cos th a3"], ["yC3", "+- yF3 yC3t 0"], ["xC3", "+- xF3 0 xC3t"], ["yB3", "+- yE3 yC3t 0"], ["xB3", "+- xE3 0 xC3t"], ["swAng2", "+- bA3 0 bD2"], ["aA4", "+- 4200000 0 ha"], ["aD4", "+- 4200000 ha 0"], ["ta41", "cos rw aA4"], ["ta42", "sin rh aA4"], ["bA4", "at2 ta41 ta42"], ["cta4", "cos rh bA4"], ["sta4", "sin rw bA4"], ["ma4", "mod cta4 sta4 0"], ["na4", "*/ rw rh ma4"], ["dxa4", "cos na4 bA4"], ["dya4", "sin na4 bA4"], ["xA4", "+- hc dxa4 0"], ["yA4", "+- vc dya4 0"], ["td41", "cos rw aD4"], ["td42", "sin rh aD4"], ["bD4", "at2 td41 td42"], ["ctd4", "cos rh bD4"], ["std4", "sin rw bD4"], ["md4", "mod ctd4 std4 0"], ["nd4", "*/ rw rh md4"], ["dxd4", "cos nd4 bD4"], ["dyd4", "sin nd4 bD4"], ["xD4", "+- hc dxd4 0"], ["yD4", "+- vc dyd4 0"], ["xAD4", "+- xA4 0 xD4"], ["yAD4", "+- yA4 0 yD4"], ["lAD4", "mod xAD4 yAD4 0"], ["a4", "at2 yAD4 xAD4"], ["dxF4", "sin lFD a4"], ["dyF4", "cos lFD a4"], ["xF4", "+- xD4 dxF4 0"], ["yF4", "+- yD4 dyF4 0"], ["xE4", "+- xA4 0 dxF4"], ["yE4", "+- yA4 0 dyF4"], ["yC4t", "sin th a4"], ["xC4t", "cos th a4"], ["yC4", "+- yF4 yC4t 0"], ["xC4", "+- xF4 0 xC4t"], ["yB4", "+- yE4 yC4t 0"], ["xB4", "+- xE4 0 xC4t"], ["swAng3", "+- bA4 0 bD3"], ["aA5", "+- 6600000 0 ha"], ["aD5", "+- 6600000 ha 0"], ["ta51", "cos rw aA5"], ["ta52", "sin rh aA5"], ["bA5", "at2 ta51 ta52"], ["td51", "cos rw aD5"], ["td52", "sin rh aD5"], ["bD5", "at2 td51 td52"], ["xD5", "+- w 0 xA4"], ["xC5", "+- w 0 xB4"], ["xB5", "+- w 0 xC4"], ["swAng4", "+- bA5 0 bD4"], ["aD6", "+- 9000000 ha 0"], ["td61", "cos rw aD6"], ["td62", "sin rh aD6"], ["bD6", "at2 td61 td62"], ["xD6", "+- w 0 xA3"], ["xC6", "+- w 0 xB3"], ["xB6", "+- w 0 xC3"], ["aD7", "+- 11400000 ha 0"], ["td71", "cos rw aD7"], ["td72", "sin rh aD7"], ["bD7", "at2 td71 td72"], ["xD7", "+- w 0 xA2"], ["xC7", "+- w 0 xB2"], ["xB7", "+- w 0 xC2"], ["aD8", "+- 13800000 ha 0"], ["td81", "cos rw aD8"], ["td82", "sin rh aD8"], ["bD8", "at2 td81 td82"], ["xA8", "+- w 0 xD1"], ["xD8", "+- w 0 xA1"], ["xC8", "+- w 0 xB1"], ["xB8", "+- w 0 xC1"], ["aA9", "+- 3cd4 0 ha"], ["aD9", "+- 3cd4 ha 0"], ["td91", "cos rw aD9"], ["td92", "sin rh aD9"], ["bD9", "at2 td91 td92"], ["ctd9", "cos rh bD9"], ["std9", "sin rw bD9"], ["md9", "mod ctd9 std9 0"], ["nd9", "*/ rw rh md9"], ["dxd9", "cos nd9 bD9"], ["dyd9", "sin nd9 bD9"], ["xD9", "+- hc dxd9 0"], ["yD9", "+- vc dyd9 0"], ["ta91", "cos rw aA9"], ["ta92", "sin rh aA9"], ["bA9", "at2 ta91 ta92"], ["xA9", "+- hc 0 dxd9"], ["xF9", "+- xD9 0 lFD"], ["xE9", "+- xA9 lFD 0"], ["yC9", "+- yD9 0 th"], ["swAng5", "+- bA9 0 bD8"], ["xCxn1", "+/ xB1 xC1 2"], ["yCxn1", "+/ yB1 yC1 2"], ["xCxn2", "+/ xB2 xC2 2"], ["yCxn2", "+/ yB2 yC2 2"], ["xCxn3", "+/ xB3 xC3 2"], ["yCxn3", "+/ yB3 yC3 2"], ["xCxn4", "+/ xB4 xC4 2"], ["yCxn4", "+/ yB4 yC4 2"], ["xCxn5", "+/ r 0 xCxn4"], ["xCxn6", "+/ r 0 xCxn3"], ["xCxn7", "+/ r 0 xCxn2"], ["xCxn8", "+/ r 0 xCxn1"]], "rect": ["xA8", "yD1", "xD1", "yD3"], "paths": [{ "cmds": [["M", "xA1", "yA1"], ["L", "xB1", "yB1"], ["L", "xC1", "yC1"], ["L", "xD1", "yD1"], ["A", "rw", "rh", "bD1", "swAng1"], ["L", "xB2", "yB2"], ["L", "xC2", "yC2"], ["L", "xD2", "yD2"], ["A", "rw", "rh", "bD2", "swAng2"], ["L", "xB3", "yB3"], ["L", "xC3", "yC3"], ["L", "xD3", "yD3"], ["A", "rw", "rh", "bD3", "swAng3"], ["L", "xB4", "yB4"], ["L", "xC4", "yC4"], ["L", "xD4", "yD4"], ["A", "rw", "rh", "bD4", "swAng4"], ["L", "xB5", "yC4"], ["L", "xC5", "yB4"], ["L", "xD5", "yA4"], ["A", "rw", "rh", "bD5", "swAng3"], ["L", "xB6", "yC3"], ["L", "xC6", "yB3"], ["L", "xD6", "yA3"], ["A", "rw", "rh", "bD6", "swAng2"], ["L", "xB7", "yC2"], ["L", "xC7", "yB2"], ["L", "xD7", "yA2"], ["A", "rw", "rh", "bD7", "swAng1"], ["L", "xB8", "yC1"], ["L", "xC8", "yB1"], ["L", "xD8", "yA1"], ["A", "rw", "rh", "bD8", "swAng5"], ["L", "xE9", "yC9"], ["L", "xF9", "yC9"], ["L", "xD9", "yD9"], ["A", "rw", "rh", "bD9", "swAng5"], ["Z"]] }], "ah": [["adj1", "y", "0", "20000"], ["adj2", "x", "0", "2679"]] }, "halfFrame": { "av": [["adj1", "val 33333"], ["adj2", "val 33333"]], "gd": [["maxAdj2", "*/ 100000 w ss"], ["a2", "pin 0 adj2 maxAdj2"], ["x1", "*/ ss a2 100000"], ["g1", "*/ h x1 w"], ["g2", "+- h 0 g1"], ["maxAdj1", "*/ 100000 g2 ss"], ["a1", "pin 0 adj1 maxAdj1"], ["y1", "*/ ss a1 100000"], ["dx2", "*/ y1 w h"], ["x2", "+- r 0 dx2"], ["dy2", "*/ x1 h w"], ["y2", "+- b 0 dy2"], ["cx1", "*/ x1 1 2"], ["cy1", "+/ y2 b 2"], ["cx2", "+/ x2 r 2"], ["cy2", "*/ y1 1 2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "x2", "y1"], ["L", "x1", "y1"], ["L", "x1", "y2"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "x", "0", "maxAdj2"]] }, "heart": { "av": [], "gd": [["dx1", "*/ w 49 48"], ["dx2", "*/ w 10 48"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["y1", "+- t 0 hd3"], ["il", "*/ w 1 6"], ["ir", "*/ w 5 6"], ["ib", "*/ h 2 3"]], "rect": ["il", "hd4", "ir", "ib"], "paths": [{ "cmds": [["M", "hc", "hd4"], ["C", "x3", "y1", "x4", "hd4", "hc", "b"], ["C", "x1", "hd4", "x2", "y1", "hc", "hd4"], ["Z"]] }] }, "heptagon": { "av": [["hf", "val 102572"], ["vf", "val 105210"]], "gd": [["swd2", "*/ wd2 hf 100000"], ["shd2", "*/ hd2 vf 100000"], ["svc", "*/ vc vf 100000"], ["dx1", "*/ swd2 97493 100000"], ["dx2", "*/ swd2 78183 100000"], ["dx3", "*/ swd2 43388 100000"], ["dy1", "*/ shd2 62349 100000"], ["dy2", "*/ shd2 22252 100000"], ["dy3", "*/ shd2 90097 100000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc 0 dx3"], ["x4", "+- hc dx3 0"], ["x5", "+- hc dx2 0"], ["x6", "+- hc dx1 0"], ["y1", "+- svc 0 dy1"], ["y2", "+- svc dy2 0"], ["y3", "+- svc dy3 0"], ["ib", "+- b 0 y1"]], "rect": ["x2", "y1", "x5", "ib"], "paths": [{ "cmds": [["M", "x1", "y2"], ["L", "x2", "y1"], ["L", "hc", "t"], ["L", "x5", "y1"], ["L", "x6", "y2"], ["L", "x4", "y3"], ["L", "x3", "y3"], ["Z"]] }] }, "hexagon": { "av": [["adj", "val 25000"], ["vf", "val 115470"]], "gd": [["maxAdj", "*/ 50000 w ss"], ["a", "pin 0 adj maxAdj"], ["shd2", "*/ hd2 vf 100000"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["dy1", "sin shd2 3600000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc dy1 0"], ["q1", "*/ maxAdj -1 2"], ["q2", "+- a q1 0"], ["q3", "?: q2 4 2"], ["q4", "?: q2 3 2"], ["q5", "?: q2 q1 0"], ["q6", "+/ a q5 q1"], ["q7", "*/ q6 q4 -1"], ["q8", "+- q3 q7 0"], ["il", "*/ w q8 24"], ["it", "*/ h q8 24"], ["ir", "+- r 0 il"], ["ib", "+- b 0 it"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "x1", "y1"], ["L", "x2", "y1"], ["L", "r", "vc"], ["L", "x2", "y2"], ["L", "x1", "y2"], ["Z"]] }], "ah": [["adj", "x", "0", "maxAdj"]] }, "homePlate": { "av": [["adj", "val 50000"]], "gd": [["maxAdj", "*/ 100000 w ss"], ["a", "pin 0 adj maxAdj"], ["dx1", "*/ ss a 100000"], ["x1", "+- r 0 dx1"], ["ir", "+/ x1 r 2"], ["x2", "*/ x1 1 2"]], "rect": ["l", "t", "ir", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["L", "r", "vc"], ["L", "x1", "b"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj", "x", "0", "maxAdj"]] }, "horizontalScroll": { "av": [["adj", "val 12500"]], "gd": [["a", "pin 0 adj 25000"], ["ch", "*/ ss a 100000"], ["ch2", "*/ ch 1 2"], ["ch4", "*/ ch 1 4"], ["y3", "+- ch ch2 0"], ["y4", "+- ch ch 0"], ["y6", "+- b 0 ch"], ["y7", "+- b 0 ch2"], ["y5", "+- y6 0 ch2"], ["x3", "+- r 0 ch"], ["x4", "+- r 0 ch2"]], "rect": ["ch", "ch", "x4", "y6"], "paths": [{ "stroke": false, "cmds": [["M", "r", "ch2"], ["A", "ch2", "ch2", "0", "cd4"], ["L", "x4", "ch2"], ["A", "ch4", "ch4", "0", "cd2"], ["L", "x3", "ch"], ["L", "ch2", "ch"], ["A", "ch2", "ch2", "3cd4", "-5400000"], ["L", "l", "y7"], ["A", "ch2", "ch2", "cd2", "-10800000"], ["L", "ch", "y6"], ["L", "x4", "y6"], ["A", "ch2", "ch2", "cd4", "-5400000"], ["Z"], ["M", "ch2", "y4"], ["A", "ch2", "ch2", "cd4", "-5400000"], ["A", "ch4", "ch4", "0", "-10800000"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "ch2", "y4"], ["A", "ch2", "ch2", "cd4", "-5400000"], ["A", "ch4", "ch4", "0", "-10800000"], ["Z"], ["M", "x4", "ch"], ["A", "ch2", "ch2", "cd4", "-16200000"], ["A", "ch4", "ch4", "cd2", "-10800000"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "y3"], ["A", "ch2", "ch2", "cd2", "cd4"], ["L", "x3", "ch"], ["L", "x3", "ch2"], ["A", "ch2", "ch2", "cd2", "cd2"], ["L", "r", "y5"], ["A", "ch2", "ch2", "0", "cd4"], ["L", "ch", "y6"], ["L", "ch", "y7"], ["A", "ch2", "ch2", "0", "cd2"], ["Z"], ["M", "x3", "ch"], ["L", "x4", "ch"], ["A", "ch2", "ch2", "cd4", "-5400000"], ["M", "x4", "ch"], ["L", "x4", "ch2"], ["A", "ch4", "ch4", "0", "cd2"], ["M", "ch2", "y4"], ["L", "ch2", "y3"], ["A", "ch4", "ch4", "cd2", "cd2"], ["A", "ch2", "ch2", "0", "cd2"], ["M", "ch", "y3"], ["L", "ch", "y6"]] }], "ah": [["adj", "x", "0", "25000"]] }, "irregularSeal1": { "av": [], "gd": [["x5", "*/ w 4627 21600"], ["x12", "*/ w 8485 21600"], ["x21", "*/ w 16702 21600"], ["x24", "*/ w 14522 21600"], ["y3", "*/ h 6320 21600"], ["y6", "*/ h 8615 21600"], ["y9", "*/ h 13937 21600"], ["y18", "*/ h 13290 21600"]], "rect": ["x5", "y3", "x21", "y9"], "paths": [{ "w": 21600, "h": 21600, "cmds": [["M", "10800", "5800"], ["L", "14522", "0"], ["L", "14155", "5325"], ["L", "18380", "4457"], ["L", "16702", "7315"], ["L", "21097", "8137"], ["L", "17607", "10475"], ["L", "21600", "13290"], ["L", "16837", "12942"], ["L", "18145", "18095"], ["L", "14020", "14457"], ["L", "13247", "19737"], ["L", "10532", "14935"], ["L", "8485", "21600"], ["L", "7715", "15627"], ["L", "4762", "17617"], ["L", "5667", "13937"], ["L", "135", "14587"], ["L", "3722", "11775"], ["L", "0", "8615"], ["L", "4627", "7617"], ["L", "370", "2295"], ["L", "7312", "6320"], ["L", "8352", "2295"], ["Z"]] }] }, "irregularSeal2": { "av": [], "gd": [["x2", "*/ w 9722 21600"], ["x5", "*/ w 5372 21600"], ["x16", "*/ w 11612 21600"], ["x19", "*/ w 14640 21600"], ["y2", "*/ h 1887 21600"], ["y3", "*/ h 6382 21600"], ["y8", "*/ h 12877 21600"], ["y14", "*/ h 19712 21600"], ["y16", "*/ h 18842 21600"], ["y17", "*/ h 15935 21600"], ["y24", "*/ h 6645 21600"]], "rect": ["x5", "y3", "x19", "y17"], "paths": [{ "w": 21600, "h": 21600, "cmds": [["M", "11462", "4342"], ["L", "14790", "0"], ["L", "14525", "5777"], ["L", "18007", "3172"], ["L", "16380", "6532"], ["L", "21600", "6645"], ["L", "16985", "9402"], ["L", "18270", "11290"], ["L", "16380", "12310"], ["L", "18877", "15632"], ["L", "14640", "14350"], ["L", "14942", "17370"], ["L", "12180", "15935"], ["L", "11612", "18842"], ["L", "9872", "17370"], ["L", "8700", "19712"], ["L", "7527", "18125"], ["L", "4917", "21600"], ["L", "4805", "18240"], ["L", "1285", "17825"], ["L", "3330", "15370"], ["L", "0", "12877"], ["L", "3935", "11592"], ["L", "1172", "8270"], ["L", "5372", "7817"], ["L", "4502", "3625"], ["L", "8550", "6382"], ["L", "9722", "1887"], ["Z"]] }] }, "leftArrow": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj2", "*/ 100000 w ss"], ["a1", "pin 0 adj1 100000"], ["a2", "pin 0 adj2 maxAdj2"], ["dx2", "*/ ss a2 100000"], ["x2", "+- l dx2 0"], ["dy1", "*/ h a1 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc dy1 0"], ["dx1", "*/ y1 dx2 hd2"], ["x1", "+- x2 0 dx1"]], "rect": ["x1", "y1", "r", "y2"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "x2", "t"], ["L", "x2", "y1"], ["L", "r", "y1"], ["L", "r", "y2"], ["L", "x2", "y2"], ["L", "x2", "b"], ["Z"]] }], "ah": [["adj1", "y", "0", "100000"], ["adj2", "x", "0", "maxAdj2"]] }, "leftArrowCallout": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 64977"]], "gd": [["maxAdj2", "*/ 50000 h ss"], ["a2", "pin 0 adj2 maxAdj2"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "*/ 100000 w ss"], ["a3", "pin 0 adj3 maxAdj3"], ["q2", "*/ a3 ss w"], ["maxAdj4", "+- 100000 0 q2"], ["a4", "pin 0 adj4 maxAdj4"], ["dy1", "*/ ss a2 100000"], ["dy2", "*/ ss a1 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"], ["y4", "+- vc dy1 0"], ["x1", "*/ ss a3 100000"], ["dx2", "*/ w a4 100000"], ["x2", "+- r 0 dx2"], ["x3", "+/ x2 r 2"]], "rect": ["x2", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "x1", "y1"], ["L", "x1", "y2"], ["L", "x2", "y2"], ["L", "x2", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "x2", "b"], ["L", "x2", "y3"], ["L", "x1", "y3"], ["L", "x1", "y4"], ["Z"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "y", "0", "maxAdj2"], ["adj3", "x", "0", "maxAdj3"], ["adj4", "x", "0", "maxAdj4"]] }, "leftBrace": { "av": [["adj1", "val 8333"], ["adj2", "val 50000"]], "gd": [["a2", "pin 0 adj2 100000"], ["q1", "+- 100000 0 a2"], ["q2", "min q1 a2"], ["q3", "*/ q2 1 2"], ["maxAdj1", "*/ q3 h ss"], ["a1", "pin 0 adj1 maxAdj1"], ["y1", "*/ ss a1 100000"], ["y3", "*/ h a2 100000"], ["y4", "+- y3 y1 0"], ["dx1", "cos wd2 2700000"], ["dy1", "sin y1 2700000"], ["il", "+- r 0 dx1"], ["it", "+- y1 0 dy1"], ["ib", "+- b dy1 y1"]], "rect": ["il", "it", "r", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "r", "b"], ["A", "wd2", "y1", "cd4", "cd4"], ["L", "hc", "y4"], ["A", "wd2", "y1", "0", "-5400000"], ["A", "wd2", "y1", "cd4", "-5400000"], ["L", "hc", "y1"], ["A", "wd2", "y1", "cd2", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "r", "b"], ["A", "wd2", "y1", "cd4", "cd4"], ["L", "hc", "y4"], ["A", "wd2", "y1", "0", "-5400000"], ["A", "wd2", "y1", "cd4", "-5400000"], ["L", "hc", "y1"], ["A", "wd2", "y1", "cd2", "cd4"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "y", "0", "100000"]] }, "leftBracket": { "av": [["adj", "val 8333"]], "gd": [["maxAdj", "*/ 50000 h ss"], ["a", "pin 0 adj maxAdj"], ["y1", "*/ ss a 100000"], ["y2", "+- b 0 y1"], ["dx1", "cos w 2700000"], ["dy1", "sin y1 2700000"], ["il", "+- r 0 dx1"], ["it", "+- y1 0 dy1"], ["ib", "+- b dy1 y1"]], "rect": ["il", "it", "r", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "r", "b"], ["A", "w", "y1", "cd4", "cd4"], ["L", "l", "y1"], ["A", "w", "y1", "cd2", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "r", "b"], ["A", "w", "y1", "cd4", "cd4"], ["L", "l", "y1"], ["A", "w", "y1", "cd2", "cd4"]] }], "ah": [["adj", "y", "0", "maxAdj"]] }, "leftCircularArrow": { "av": [["adj1", "val 12500"], ["adj2", "val -1142319"], ["adj3", "val 1142319"], ["adj4", "val 10800000"], ["adj5", "val 12500"]], "gd": [["a5", "pin 0 adj5 25000"], ["maxAdj1", "*/ a5 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["enAng", "pin 1 adj3 21599999"], ["stAng", "pin 0 adj4 21599999"], ["th", "*/ ss a1 100000"], ["thh", "*/ ss a5 100000"], ["th2", "*/ th 1 2"], ["rw1", "+- wd2 th2 thh"], ["rh1", "+- hd2 th2 thh"], ["rw2", "+- rw1 0 th"], ["rh2", "+- rh1 0 th"], ["rw3", "+- rw2 th2 0"], ["rh3", "+- rh2 th2 0"], ["wtH", "sin rw3 enAng"], ["htH", "cos rh3 enAng"], ["dxH", "cat2 rw3 htH wtH"], ["dyH", "sat2 rh3 htH wtH"], ["xH", "+- hc dxH 0"], ["yH", "+- vc dyH 0"], ["rI", "min rw2 rh2"], ["u1", "*/ dxH dxH 1"], ["u2", "*/ dyH dyH 1"], ["u3", "*/ rI rI 1"], ["u4", "+- u1 0 u3"], ["u5", "+- u2 0 u3"], ["u6", "*/ u4 u5 u1"], ["u7", "*/ u6 1 u2"], ["u8", "+- 1 0 u7"], ["u9", "sqrt u8"], ["u10", "*/ u4 1 dxH"], ["u11", "*/ u10 1 dyH"], ["u12", "+/ 1 u9 u11"], ["u13", "at2 1 u12"], ["u14", "+- u13 21600000 0"], ["u15", "?: u13 u13 u14"], ["u16", "+- u15 0 enAng"], ["u17", "+- u16 21600000 0"], ["u18", "?: u16 u16 u17"], ["u19", "+- u18 0 cd2"], ["u20", "+- u18 0 21600000"], ["u21", "?: u19 u20 u18"], ["u22", "abs u21"], ["minAng", "*/ u22 -1 1"], ["u23", "abs adj2"], ["a2", "*/ u23 -1 1"], ["aAng", "pin minAng a2 0"], ["ptAng", "+- enAng aAng 0"], ["wtA", "sin rw3 ptAng"], ["htA", "cos rh3 ptAng"], ["dxA", "cat2 rw3 htA wtA"], ["dyA", "sat2 rh3 htA wtA"], ["xA", "+- hc dxA 0"], ["yA", "+- vc dyA 0"], ["wtE", "sin rw1 stAng"], ["htE", "cos rh1 stAng"], ["dxE", "cat2 rw1 htE wtE"], ["dyE", "sat2 rh1 htE wtE"], ["xE", "+- hc dxE 0"], ["yE", "+- vc dyE 0"], ["wtD", "sin rw2 stAng"], ["htD", "cos rh2 stAng"], ["dxD", "cat2 rw2 htD wtD"], ["dyD", "sat2 rh2 htD wtD"], ["xD", "+- hc dxD 0"], ["yD", "+- vc dyD 0"], ["dxG", "cos thh ptAng"], ["dyG", "sin thh ptAng"], ["xG", "+- xH dxG 0"], ["yG", "+- yH dyG 0"], ["dxB", "cos thh ptAng"], ["dyB", "sin thh ptAng"], ["xB", "+- xH 0 dxB 0"], ["yB", "+- yH 0 dyB 0"], ["sx1", "+- xB 0 hc"], ["sy1", "+- yB 0 vc"], ["sx2", "+- xG 0 hc"], ["sy2", "+- yG 0 vc"], ["rO", "min rw1 rh1"], ["x1O", "*/ sx1 rO rw1"], ["y1O", "*/ sy1 rO rh1"], ["x2O", "*/ sx2 rO rw1"], ["y2O", "*/ sy2 rO rh1"], ["dxO", "+- x2O 0 x1O"], ["dyO", "+- y2O 0 y1O"], ["dO", "mod dxO dyO 0"], ["q1", "*/ x1O y2O 1"], ["q2", "*/ x2O y1O 1"], ["DO", "+- q1 0 q2"], ["q3", "*/ rO rO 1"], ["q4", "*/ dO dO 1"], ["q5", "*/ q3 q4 1"], ["q6", "*/ DO DO 1"], ["q7", "+- q5 0 q6"], ["q8", "max q7 0"], ["sdelO", "sqrt q8"], ["ndyO", "*/ dyO -1 1"], ["sdyO", "?: ndyO -1 1"], ["q9", "*/ sdyO dxO 1"], ["q10", "*/ q9 sdelO 1"], ["q11", "*/ DO dyO 1"], ["dxF1", "+/ q11 q10 q4"], ["q12", "+- q11 0 q10"], ["dxF2", "*/ q12 1 q4"], ["adyO", "abs dyO"], ["q13", "*/ adyO sdelO 1"], ["q14", "*/ DO dxO -1"], ["dyF1", "+/ q14 q13 q4"], ["q15", "+- q14 0 q13"], ["dyF2", "*/ q15 1 q4"], ["q16", "+- x2O 0 dxF1"], ["q17", "+- x2O 0 dxF2"], ["q18", "+- y2O 0 dyF1"], ["q19", "+- y2O 0 dyF2"], ["q20", "mod q16 q18 0"], ["q21", "mod q17 q19 0"], ["q22", "+- q21 0 q20"], ["dxF", "?: q22 dxF1 dxF2"], ["dyF", "?: q22 dyF1 dyF2"], ["sdxF", "*/ dxF rw1 rO"], ["sdyF", "*/ dyF rh1 rO"], ["xF", "+- hc sdxF 0"], ["yF", "+- vc sdyF 0"], ["x1I", "*/ sx1 rI rw2"], ["y1I", "*/ sy1 rI rh2"], ["x2I", "*/ sx2 rI rw2"], ["y2I", "*/ sy2 rI rh2"], ["dxI", "+- x2I 0 x1I"], ["dyI", "+- y2I 0 y1I"], ["dI", "mod dxI dyI 0"], ["v1", "*/ x1I y2I 1"], ["v2", "*/ x2I y1I 1"], ["DI", "+- v1 0 v2"], ["v3", "*/ rI rI 1"], ["v4", "*/ dI dI 1"], ["v5", "*/ v3 v4 1"], ["v6", "*/ DI DI 1"], ["v7", "+- v5 0 v6"], ["v8", "max v7 0"], ["sdelI", "sqrt v8"], ["v9", "*/ sdyO dxI 1"], ["v10", "*/ v9 sdelI 1"], ["v11", "*/ DI dyI 1"], ["dxC1", "+/ v11 v10 v4"], ["v12", "+- v11 0 v10"], ["dxC2", "*/ v12 1 v4"], ["adyI", "abs dyI"], ["v13", "*/ adyI sdelI 1"], ["v14", "*/ DI dxI -1"], ["dyC1", "+/ v14 v13 v4"], ["v15", "+- v14 0 v13"], ["dyC2", "*/ v15 1 v4"], ["v16", "+- x1I 0 dxC1"], ["v17", "+- x1I 0 dxC2"], ["v18", "+- y1I 0 dyC1"], ["v19", "+- y1I 0 dyC2"], ["v20", "mod v16 v18 0"], ["v21", "mod v17 v19 0"], ["v22", "+- v21 0 v20"], ["dxC", "?: v22 dxC1 dxC2"], ["dyC", "?: v22 dyC1 dyC2"], ["sdxC", "*/ dxC rw2 rI"], ["sdyC", "*/ dyC rh2 rI"], ["xC", "+- hc sdxC 0"], ["yC", "+- vc sdyC 0"], ["ist0", "at2 sdxC sdyC"], ["ist1", "+- ist0 21600000 0"], ["istAng0", "?: ist0 ist0 ist1"], ["isw1", "+- stAng 0 istAng0"], ["isw2", "+- isw1 21600000 0"], ["iswAng0", "?: isw1 isw1 isw2"], ["istAng", "+- istAng0 iswAng0 0"], ["iswAng", "+- 0 0 iswAng0"], ["p1", "+- xF 0 xC"], ["p2", "+- yF 0 yC"], ["p3", "mod p1 p2 0"], ["p4", "*/ p3 1 2"], ["p5", "+- p4 0 thh"], ["xGp", "?: p5 xF xG"], ["yGp", "?: p5 yF yG"], ["xBp", "?: p5 xC xB"], ["yBp", "?: p5 yC yB"], ["en0", "at2 sdxF sdyF"], ["en1", "+- en0 21600000 0"], ["en2", "?: en0 en0 en1"], ["sw0", "+- en2 0 stAng"], ["sw1", "+- sw0 0 21600000"], ["swAng", "?: sw0 sw1 sw0"], ["stAng0", "+- stAng swAng 0"], ["swAng0", "+- 0 0 swAng"], ["wtI", "sin rw3 stAng"], ["htI", "cos rh3 stAng"], ["dxI", "cat2 rw3 htI wtI"], ["dyI", "sat2 rh3 htI wtI"], ["xI", "+- hc dxI 0"], ["yI", "+- vc dyI 0"], ["aI", "+- stAng cd4 0"], ["aA", "+- ptAng 0 cd4"], ["aB", "+- ptAng cd2 0"], ["idx", "cos rw1 2700000"], ["idy", "sin rh1 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "xE", "yE"], ["L", "xD", "yD"], ["A", "rw2", "rh2", "istAng", "iswAng"], ["L", "xBp", "yBp"], ["L", "xA", "yA"], ["L", "xGp", "yGp"], ["L", "xF", "yF"], ["A", "rw1", "rh1", "stAng0", "swAng0"], ["Z"]] }], "ah": [["adj2", "ang", "minAng", "0"], ["adj4", "ang", "0", "21599999"], ["adj1", "r", "0", "maxAdj1"], ["adj3", "ang", "0", "21599999"], ["adj5", "r", "0", "25000"]] }, "leftRightArrow": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj2", "*/ 50000 w ss"], ["a1", "pin 0 adj1 100000"], ["a2", "pin 0 adj2 maxAdj2"], ["x2", "*/ ss a2 100000"], ["x3", "+- r 0 x2"], ["dy", "*/ h a1 200000"], ["y1", "+- vc 0 dy"], ["y2", "+- vc dy 0"], ["dx1", "*/ y1 x2 hd2"], ["x1", "+- x2 0 dx1"], ["x4", "+- x3 dx1 0"]], "rect": ["x1", "y1", "x4", "y2"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "x2", "t"], ["L", "x2", "y1"], ["L", "x3", "y1"], ["L", "x3", "t"], ["L", "r", "vc"], ["L", "x3", "b"], ["L", "x3", "y2"], ["L", "x2", "y2"], ["L", "x2", "b"], ["Z"]] }], "ah": [["adj1", "y", "0", "100000"], ["adj2", "x", "0", "maxAdj2"]] }, "leftRightArrowCallout": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 48123"]], "gd": [["maxAdj2", "*/ 50000 h ss"], ["a2", "pin 0 adj2 maxAdj2"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "*/ 50000 w ss"], ["a3", "pin 0 adj3 maxAdj3"], ["q2", "*/ a3 ss wd2"], ["maxAdj4", "+- 100000 0 q2"], ["a4", "pin 0 adj4 maxAdj4"], ["dy1", "*/ ss a2 100000"], ["dy2", "*/ ss a1 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"], ["y4", "+- vc dy1 0"], ["x1", "*/ ss a3 100000"], ["x4", "+- r 0 x1"], ["dx2", "*/ w a4 200000"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"]], "rect": ["x2", "t", "x3", "b"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "x1", "y1"], ["L", "x1", "y2"], ["L", "x2", "y2"], ["L", "x2", "t"], ["L", "x3", "t"], ["L", "x3", "y2"], ["L", "x4", "y2"], ["L", "x4", "y1"], ["L", "r", "vc"], ["L", "x4", "y4"], ["L", "x4", "y3"], ["L", "x3", "y3"], ["L", "x3", "b"], ["L", "x2", "b"], ["L", "x2", "y3"], ["L", "x1", "y3"], ["L", "x1", "y4"], ["Z"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "y", "0", "maxAdj2"], ["adj3", "x", "0", "maxAdj3"], ["adj4", "x", "0", "maxAdj4"]] }, "leftRightCircularArrow": { "av": [["adj1", "val 12500"], ["adj2", "val 1142319"], ["adj3", "val 20457681"], ["adj4", "val 11942319"], ["adj5", "val 12500"]], "gd": [["a5", "pin 0 adj5 25000"], ["maxAdj1", "*/ a5 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["enAng", "pin 1 adj3 21599999"], ["stAng", "pin 0 adj4 21599999"], ["th", "*/ ss a1 100000"], ["thh", "*/ ss a5 100000"], ["th2", "*/ th 1 2"], ["rw1", "+- wd2 th2 thh"], ["rh1", "+- hd2 th2 thh"], ["rw2", "+- rw1 0 th"], ["rh2", "+- rh1 0 th"], ["rw3", "+- rw2 th2 0"], ["rh3", "+- rh2 th2 0"], ["wtH", "sin rw3 enAng"], ["htH", "cos rh3 enAng"], ["dxH", "cat2 rw3 htH wtH"], ["dyH", "sat2 rh3 htH wtH"], ["xH", "+- hc dxH 0"], ["yH", "+- vc dyH 0"], ["rI", "min rw2 rh2"], ["u1", "*/ dxH dxH 1"], ["u2", "*/ dyH dyH 1"], ["u3", "*/ rI rI 1"], ["u4", "+- u1 0 u3"], ["u5", "+- u2 0 u3"], ["u6", "*/ u4 u5 u1"], ["u7", "*/ u6 1 u2"], ["u8", "+- 1 0 u7"], ["u9", "sqrt u8"], ["u10", "*/ u4 1 dxH"], ["u11", "*/ u10 1 dyH"], ["u12", "+/ 1 u9 u11"], ["u13", "at2 1 u12"], ["u14", "+- u13 21600000 0"], ["u15", "?: u13 u13 u14"], ["u16", "+- u15 0 enAng"], ["u17", "+- u16 21600000 0"], ["u18", "?: u16 u16 u17"], ["u19", "+- u18 0 cd2"], ["u20", "+- u18 0 21600000"], ["u21", "?: u19 u20 u18"], ["maxAng", "abs u21"], ["aAng", "pin 0 adj2 maxAng"], ["ptAng", "+- enAng aAng 0"], ["wtA", "sin rw3 ptAng"], ["htA", "cos rh3 ptAng"], ["dxA", "cat2 rw3 htA wtA"], ["dyA", "sat2 rh3 htA wtA"], ["xA", "+- hc dxA 0"], ["yA", "+- vc dyA 0"], ["dxG", "cos thh ptAng"], ["dyG", "sin thh ptAng"], ["xG", "+- xH dxG 0"], ["yG", "+- yH dyG 0"], ["dxB", "cos thh ptAng"], ["dyB", "sin thh ptAng"], ["xB", "+- xH 0 dxB 0"], ["yB", "+- yH 0 dyB 0"], ["sx1", "+- xB 0 hc"], ["sy1", "+- yB 0 vc"], ["sx2", "+- xG 0 hc"], ["sy2", "+- yG 0 vc"], ["rO", "min rw1 rh1"], ["x1O", "*/ sx1 rO rw1"], ["y1O", "*/ sy1 rO rh1"], ["x2O", "*/ sx2 rO rw1"], ["y2O", "*/ sy2 rO rh1"], ["dxO", "+- x2O 0 x1O"], ["dyO", "+- y2O 0 y1O"], ["dO", "mod dxO dyO 0"], ["q1", "*/ x1O y2O 1"], ["q2", "*/ x2O y1O 1"], ["DO", "+- q1 0 q2"], ["q3", "*/ rO rO 1"], ["q4", "*/ dO dO 1"], ["q5", "*/ q3 q4 1"], ["q6", "*/ DO DO 1"], ["q7", "+- q5 0 q6"], ["q8", "max q7 0"], ["sdelO", "sqrt q8"], ["ndyO", "*/ dyO -1 1"], ["sdyO", "?: ndyO -1 1"], ["q9", "*/ sdyO dxO 1"], ["q10", "*/ q9 sdelO 1"], ["q11", "*/ DO dyO 1"], ["dxF1", "+/ q11 q10 q4"], ["q12", "+- q11 0 q10"], ["dxF2", "*/ q12 1 q4"], ["adyO", "abs dyO"], ["q13", "*/ adyO sdelO 1"], ["q14", "*/ DO dxO -1"], ["dyF1", "+/ q14 q13 q4"], ["q15", "+- q14 0 q13"], ["dyF2", "*/ q15 1 q4"], ["q16", "+- x2O 0 dxF1"], ["q17", "+- x2O 0 dxF2"], ["q18", "+- y2O 0 dyF1"], ["q19", "+- y2O 0 dyF2"], ["q20", "mod q16 q18 0"], ["q21", "mod q17 q19 0"], ["q22", "+- q21 0 q20"], ["dxF", "?: q22 dxF1 dxF2"], ["dyF", "?: q22 dyF1 dyF2"], ["sdxF", "*/ dxF rw1 rO"], ["sdyF", "*/ dyF rh1 rO"], ["xF", "+- hc sdxF 0"], ["yF", "+- vc sdyF 0"], ["x1I", "*/ sx1 rI rw2"], ["y1I", "*/ sy1 rI rh2"], ["x2I", "*/ sx2 rI rw2"], ["y2I", "*/ sy2 rI rh2"], ["dxI", "+- x2I 0 x1I"], ["dyI", "+- y2I 0 y1I"], ["dI", "mod dxI dyI 0"], ["v1", "*/ x1I y2I 1"], ["v2", "*/ x2I y1I 1"], ["DI", "+- v1 0 v2"], ["v3", "*/ rI rI 1"], ["v4", "*/ dI dI 1"], ["v5", "*/ v3 v4 1"], ["v6", "*/ DI DI 1"], ["v7", "+- v5 0 v6"], ["v8", "max v7 0"], ["sdelI", "sqrt v8"], ["v9", "*/ sdyO dxI 1"], ["v10", "*/ v9 sdelI 1"], ["v11", "*/ DI dyI 1"], ["dxC1", "+/ v11 v10 v4"], ["v12", "+- v11 0 v10"], ["dxC2", "*/ v12 1 v4"], ["adyI", "abs dyI"], ["v13", "*/ adyI sdelI 1"], ["v14", "*/ DI dxI -1"], ["dyC1", "+/ v14 v13 v4"], ["v15", "+- v14 0 v13"], ["dyC2", "*/ v15 1 v4"], ["v16", "+- x1I 0 dxC1"], ["v17", "+- x1I 0 dxC2"], ["v18", "+- y1I 0 dyC1"], ["v19", "+- y1I 0 dyC2"], ["v20", "mod v16 v18 0"], ["v21", "mod v17 v19 0"], ["v22", "+- v21 0 v20"], ["dxC", "?: v22 dxC1 dxC2"], ["dyC", "?: v22 dyC1 dyC2"], ["sdxC", "*/ dxC rw2 rI"], ["sdyC", "*/ dyC rh2 rI"], ["xC", "+- hc sdxC 0"], ["yC", "+- vc sdyC 0"], ["wtI", "sin rw3 stAng"], ["htI", "cos rh3 stAng"], ["dxI", "cat2 rw3 htI wtI"], ["dyI", "sat2 rh3 htI wtI"], ["xI", "+- hc dxI 0"], ["yI", "+- vc dyI 0"], ["lptAng", "+- stAng 0 aAng"], ["wtL", "sin rw3 lptAng"], ["htL", "cos rh3 lptAng"], ["dxL", "cat2 rw3 htL wtL"], ["dyL", "sat2 rh3 htL wtL"], ["xL", "+- hc dxL 0"], ["yL", "+- vc dyL 0"], ["dxK", "cos thh lptAng"], ["dyK", "sin thh lptAng"], ["xK", "+- xI dxK 0"], ["yK", "+- yI dyK 0"], ["dxJ", "cos thh lptAng"], ["dyJ", "sin thh lptAng"], ["xJ", "+- xI 0 dxJ 0"], ["yJ", "+- yI 0 dyJ 0"], ["p1", "+- xF 0 xC"], ["p2", "+- yF 0 yC"], ["p3", "mod p1 p2 0"], ["p4", "*/ p3 1 2"], ["p5", "+- p4 0 thh"], ["xGp", "?: p5 xF xG"], ["yGp", "?: p5 yF yG"], ["xBp", "?: p5 xC xB"], ["yBp", "?: p5 yC yB"], ["en0", "at2 sdxF sdyF"], ["en1", "+- en0 21600000 0"], ["en2", "?: en0 en0 en1"], ["od0", "+- en2 0 enAng"], ["od1", "+- od0 21600000 0"], ["od2", "?: od0 od0 od1"], ["st0", "+- stAng 0 od2"], ["st1", "+- st0 21600000 0"], ["st2", "?: st0 st0 st1"], ["sw0", "+- en2 0 st2"], ["sw1", "+- sw0 21600000 0"], ["swAng", "?: sw0 sw0 sw1"], ["ist0", "at2 sdxC sdyC"], ["ist1", "+- ist0 21600000 0"], ["istAng", "?: ist0 ist0 ist1"], ["id0", "+- istAng 0 enAng"], ["id1", "+- id0 0 21600000"], ["id2", "?: id0 id1 id0"], ["ien0", "+- stAng 0 id2"], ["ien1", "+- ien0 0 21600000"], ["ien2", "?: ien1 ien1 ien0"], ["isw1", "+- ien2 0 istAng"], ["isw2", "+- isw1 0 21600000"], ["iswAng", "?: isw1 isw2 isw1"], ["wtE", "sin rw1 st2"], ["htE", "cos rh1 st2"], ["dxE", "cat2 rw1 htE wtE"], ["dyE", "sat2 rh1 htE wtE"], ["xE", "+- hc dxE 0"], ["yE", "+- vc dyE 0"], ["wtD", "sin rw2 ien2"], ["htD", "cos rh2 ien2"], ["dxD", "cat2 rw2 htD wtD"], ["dyD", "sat2 rh2 htD wtD"], ["xD", "+- hc dxD 0"], ["yD", "+- vc dyD 0"], ["xKp", "?: p5 xE xK"], ["yKp", "?: p5 yE yK"], ["xJp", "?: p5 xD xJ"], ["yJp", "?: p5 yD yJ"], ["aL", "+- lptAng 0 cd4"], ["aA", "+- ptAng cd4 0"], ["aB", "+- ptAng cd2 0"], ["aJ", "+- lptAng cd2 0"], ["idx", "cos rw1 2700000"], ["idy", "sin rh1 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "xL", "yL"], ["L", "xKp", "yKp"], ["L", "xE", "yE"], ["A", "rw1", "rh1", "st2", "swAng"], ["L", "xGp", "yGp"], ["L", "xA", "yA"], ["L", "xBp", "yBp"], ["L", "xC", "yC"], ["A", "rw2", "rh2", "istAng", "iswAng"], ["L", "xJp", "yJp"], ["Z"]] }], "ah": [["adj2", "ang", "0", "maxAng"], ["adj4", "ang", "0", "21599999"], ["adj1", "r", "0", "maxAdj1"], ["adj3", "ang", "0", "21599999"], ["adj5", "r", "0", "25000"]] }, "leftRightRibbon": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"], ["adj3", "val 16667"]], "gd": [["a3", "pin 0 adj3 33333"], ["maxAdj1", "+- 100000 0 a3"], ["a1", "pin 0 adj1 maxAdj1"], ["w1", "+- wd2 0 wd32"], ["maxAdj2", "*/ 100000 w1 ss"], ["a2", "pin 0 adj2 maxAdj2"], ["x1", "*/ ss a2 100000"], ["x4", "+- r 0 x1"], ["dy1", "*/ h a1 200000"], ["dy2", "*/ h a3 -200000"], ["ly1", "+- vc dy2 dy1"], ["ry4", "+- vc dy1 dy2"], ["ly2", "+- ly1 dy1 0"], ["ry3", "+- b 0 ly2"], ["ly4", "*/ ly2 2 1"], ["ry1", "+- b 0 ly4"], ["ly3", "+- ly4 0 ly1"], ["ry2", "+- b 0 ly3"], ["hR", "*/ a3 ss 400000"], ["x2", "+- hc 0 wd32"], ["x3", "+- hc wd32 0"], ["y1", "+- ly1 hR 0"], ["y2", "+- ry2 0 hR"]], "rect": ["x1", "ly1", "x4", "ry4"], "paths": [{ "stroke": false, "cmds": [["M", "l", "ly2"], ["L", "x1", "t"], ["L", "x1", "ly1"], ["L", "hc", "ly1"], ["A", "wd32", "hR", "3cd4", "cd2"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "x4", "ry2"], ["L", "x4", "ry1"], ["L", "r", "ry3"], ["L", "x4", "b"], ["L", "x4", "ry4"], ["L", "hc", "ry4"], ["A", "wd32", "hR", "cd4", "cd4"], ["L", "x2", "ly3"], ["L", "x1", "ly3"], ["L", "x1", "ly4"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x3", "y1"], ["A", "wd32", "hR", "0", "cd4"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "x3", "ry2"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "ly2"], ["L", "x1", "t"], ["L", "x1", "ly1"], ["L", "hc", "ly1"], ["A", "wd32", "hR", "3cd4", "cd2"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "x4", "ry2"], ["L", "x4", "ry1"], ["L", "r", "ry3"], ["L", "x4", "b"], ["L", "x4", "ry4"], ["L", "hc", "ry4"], ["A", "wd32", "hR", "cd4", "cd4"], ["L", "x2", "ly3"], ["L", "x1", "ly3"], ["L", "x1", "ly4"], ["Z"], ["M", "x3", "y1"], ["L", "x3", "ry2"], ["M", "x2", "y2"], ["L", "x2", "ly3"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "x", "0", "maxAdj2"], ["adj3", "y", "0", "33333"]] }, "leftRightUpArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"]], "gd": [["a2", "pin 0 adj2 50000"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["q1", "+- 100000 0 maxAdj1"], ["maxAdj3", "*/ q1 1 2"], ["a3", "pin 0 adj3 maxAdj3"], ["x1", "*/ ss a3 100000"], ["dx2", "*/ ss a2 100000"], ["x2", "+- hc 0 dx2"], ["x5", "+- hc dx2 0"], ["dx3", "*/ ss a1 200000"], ["x3", "+- hc 0 dx3"], ["x4", "+- hc dx3 0"], ["x6", "+- r 0 x1"], ["dy2", "*/ ss a2 50000"], ["y2", "+- b 0 dy2"], ["y4", "+- b 0 dx2"], ["y3", "+- y4 0 dx3"], ["y5", "+- y4 dx3 0"], ["il", "*/ dx3 x1 dx2"], ["ir", "+- r 0 il"]], "rect": ["il", "y3", "ir", "y5"], "paths": [{ "cmds": [["M", "l", "y4"], ["L", "x1", "y2"], ["L", "x1", "y3"], ["L", "x3", "y3"], ["L", "x3", "x1"], ["L", "x2", "x1"], ["L", "hc", "t"], ["L", "x5", "x1"], ["L", "x4", "x1"], ["L", "x4", "y3"], ["L", "x6", "y3"], ["L", "x6", "y2"], ["L", "r", "y4"], ["L", "x6", "b"], ["L", "x6", "y5"], ["L", "x1", "y5"], ["L", "x1", "b"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "x", "0", "50000"], ["adj3", "y", "0", "maxAdj3"]] }, "leftUpArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"]], "gd": [["a2", "pin 0 adj2 50000"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "+- 100000 0 maxAdj1"], ["a3", "pin 0 adj3 maxAdj3"], ["x1", "*/ ss a3 100000"], ["dx2", "*/ ss a2 50000"], ["x2", "+- r 0 dx2"], ["y2", "+- b 0 dx2"], ["dx4", "*/ ss a2 100000"], ["x4", "+- r 0 dx4"], ["y4", "+- b 0 dx4"], ["dx3", "*/ ss a1 200000"], ["x3", "+- x4 0 dx3"], ["x5", "+- x4 dx3 0"], ["y3", "+- y4 0 dx3"], ["y5", "+- y4 dx3 0"], ["il", "*/ dx3 x1 dx4"], ["cx1", "+/ x1 x5 2"], ["cy1", "+/ x1 y5 2"]], "rect": ["il", "y3", "x4", "y5"], "paths": [{ "cmds": [["M", "l", "y4"], ["L", "x1", "y2"], ["L", "x1", "y3"], ["L", "x3", "y3"], ["L", "x3", "x1"], ["L", "x2", "x1"], ["L", "x4", "t"], ["L", "r", "x1"], ["L", "x5", "x1"], ["L", "x5", "y5"], ["L", "x1", "y5"], ["L", "x1", "b"], ["Z"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "x", "0", "50000"], ["adj3", "y", "0", "maxAdj3"]] }, "lightningBolt": { "av": [], "gd": [["x1", "*/ w 5022 21600"], ["x3", "*/ w 8472 21600"], ["x4", "*/ w 8757 21600"], ["x5", "*/ w 10012 21600"], ["x8", "*/ w 12860 21600"], ["x9", "*/ w 13917 21600"], ["x11", "*/ w 16577 21600"], ["y1", "*/ h 3890 21600"], ["y2", "*/ h 6080 21600"], ["y4", "*/ h 7437 21600"], ["y6", "*/ h 9705 21600"], ["y7", "*/ h 12007 21600"], ["y10", "*/ h 14277 21600"], ["y11", "*/ h 14915 21600"]], "rect": ["x4", "y4", "x9", "y10"], "paths": [{ "w": 21600, "h": 21600, "cmds": [["M", "8472", "0"], ["L", "12860", "6080"], ["L", "11050", "6797"], ["L", "16577", "12007"], ["L", "14767", "12877"], ["L", "21600", "21600"], ["L", "10012", "14915"], ["L", "12222", "13987"], ["L", "5022", "9705"], ["L", "7602", "8382"], ["L", "0", "3890"], ["Z"]] }] }, "line": { "av": [], "gd": [], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "b"]] }] }, "lineInv": { "av": [], "gd": [], "paths": [{ "cmds": [["M", "l", "b"], ["L", "r", "t"]] }] }, "mathDivide": { "av": [["adj1", "val 23520"], ["adj2", "val 5880"], ["adj3", "val 11760"]], "gd": [["a1", "pin 1000 adj1 36745"], ["ma1", "+- 0 0 a1"], ["ma3h", "+/ 73490 ma1 4"], ["ma3w", "*/ 36745 w h"], ["maxAdj3", "min ma3h ma3w"], ["a3", "pin 1000 adj3 maxAdj3"], ["m4a3", "*/ -4 a3 1"], ["maxAdj2", "+- 73490 m4a3 a1"], ["a2", "pin 0 adj2 maxAdj2"], ["dy1", "*/ h a1 200000"], ["yg", "*/ h a2 100000"], ["rad", "*/ h a3 100000"], ["dx1", "*/ w 73490 200000"], ["y3", "+- vc 0 dy1"], ["y4", "+- vc dy1 0"], ["a", "+- yg rad 0"], ["y2", "+- y3 0 a"], ["y1", "+- y2 0 rad"], ["y5", "+- b 0 y1"], ["x1", "+- hc 0 dx1"], ["x3", "+- hc dx1 0"], ["x2", "+- hc 0 rad"]], "rect": ["x1", "y3", "x3", "y4"], "paths": [{ "cmds": [["M", "hc", "y1"], ["A", "rad", "rad", "3cd4", "21600000"], ["Z"], ["M", "hc", "y5"], ["A", "rad", "rad", "cd4", "21600000"], ["Z"], ["M", "x1", "y3"], ["L", "x3", "y3"], ["L", "x3", "y4"], ["L", "x1", "y4"], ["Z"]] }], "ah": [["adj1", "y", "1000", "36745"], ["adj2", "y", "0", "maxAdj2"], ["adj3", "x", "1000", "maxAdj3"]] }, "mathEqual": { "av": [["adj1", "val 23520"], ["adj2", "val 11760"]], "gd": [["a1", "pin 0 adj1 36745"], ["2a1", "*/ a1 2 1"], ["mAdj2", "+- 100000 0 2a1"], ["a2", "pin 0 adj2 mAdj2"], ["dy1", "*/ h a1 100000"], ["dy2", "*/ h a2 200000"], ["dx1", "*/ w 73490 200000"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"], ["y1", "+- y2 0 dy1"], ["y4", "+- y3 dy1 0"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc dx1 0"], ["yC1", "+/ y1 y2 2"], ["yC2", "+/ y3 y4 2"]], "rect": ["x1", "y1", "x2", "y4"], "paths": [{ "cmds": [["M", "x1", "y1"], ["L", "x2", "y1"], ["L", "x2", "y2"], ["L", "x1", "y2"], ["Z"], ["M", "x1", "y3"], ["L", "x2", "y3"], ["L", "x2", "y4"], ["L", "x1", "y4"], ["Z"]] }], "ah": [["adj1", "y", "0", "36745"], ["adj2", "y", "0", "mAdj2"]] }, "mathMinus": { "av": [["adj1", "val 23520"]], "gd": [["a1", "pin 0 adj1 100000"], ["dy1", "*/ h a1 200000"], ["dx1", "*/ w 73490 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc dy1 0"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc dx1 0"]], "rect": ["x1", "y1", "x2", "y2"], "paths": [{ "cmds": [["M", "x1", "y1"], ["L", "x2", "y1"], ["L", "x2", "y2"], ["L", "x1", "y2"], ["Z"]] }], "ah": [["adj1", "y", "0", "100000"]] }, "mathMultiply": { "av": [["adj1", "val 23520"]], "gd": [["a1", "pin 0 adj1 51965"], ["th", "*/ ss a1 100000"], ["a", "at2 w h"], ["sa", "sin 1 a"], ["ca", "cos 1 a"], ["ta", "tan 1 a"], ["dl", "mod w h 0"], ["rw", "*/ dl 51965 100000"], ["lM", "+- dl 0 rw"], ["xM", "*/ ca lM 2"], ["yM", "*/ sa lM 2"], ["dxAM", "*/ sa th 2"], ["dyAM", "*/ ca th 2"], ["xA", "+- xM 0 dxAM"], ["yA", "+- yM dyAM 0"], ["xB", "+- xM dxAM 0"], ["yB", "+- yM 0 dyAM"], ["xBC", "+- hc 0 xB"], ["yBC", "*/ xBC ta 1"], ["yC", "+- yBC yB 0"], ["xD", "+- r 0 xB"], ["xE", "+- r 0 xA"], ["yFE", "+- vc 0 yA"], ["xFE", "*/ yFE 1 ta"], ["xF", "+- xE 0 xFE"], ["xL", "+- xA xFE 0"], ["yG", "+- b 0 yA"], ["yH", "+- b 0 yB"], ["yI", "+- b 0 yC"], ["xC2", "+- r 0 xM"], ["yC3", "+- b 0 yM"]], "rect": ["xA", "yB", "xE", "yH"], "paths": [{ "cmds": [["M", "xA", "yA"], ["L", "xB", "yB"], ["L", "hc", "yC"], ["L", "xD", "yB"], ["L", "xE", "yA"], ["L", "xF", "vc"], ["L", "xE", "yG"], ["L", "xD", "yH"], ["L", "hc", "yI"], ["L", "xB", "yH"], ["L", "xA", "yG"], ["L", "xL", "vc"], ["Z"]] }], "ah": [["adj1", "y", "0", "51965"]] }, "mathNotEqual": { "av": [["adj1", "val 23520"], ["adj2", "val 6600000"], ["adj3", "val 11760"]], "gd": [["a1", "pin 0 adj1 50000"], ["crAng", "pin 4200000 adj2 6600000"], ["2a1", "*/ a1 2 1"], ["maxAdj3", "+- 100000 0 2a1"], ["a3", "pin 0 adj3 maxAdj3"], ["dy1", "*/ h a1 100000"], ["dy2", "*/ h a3 200000"], ["dx1", "*/ w 73490 200000"], ["x1", "+- hc 0 dx1"], ["x8", "+- hc dx1 0"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"], ["y1", "+- y2 0 dy1"], ["y4", "+- y3 dy1 0"], ["cadj2", "+- crAng 0 cd4"], ["xadj2", "tan hd2 cadj2"], ["len", "mod xadj2 hd2 0"], ["bhw", "*/ len dy1 hd2"], ["bhw2", "*/ bhw 1 2"], ["x7", "+- hc xadj2 bhw2"], ["dx67", "*/ xadj2 y1 hd2"], ["x6", "+- x7 0 dx67"], ["dx57", "*/ xadj2 y2 hd2"], ["x5", "+- x7 0 dx57"], ["dx47", "*/ xadj2 y3 hd2"], ["x4", "+- x7 0 dx47"], ["dx37", "*/ xadj2 y4 hd2"], ["x3", "+- x7 0 dx37"], ["dx27", "*/ xadj2 2 1"], ["x2", "+- x7 0 dx27"], ["rx7", "+- x7 bhw 0"], ["rx6", "+- x6 bhw 0"], ["rx5", "+- x5 bhw 0"], ["rx4", "+- x4 bhw 0"], ["rx3", "+- x3 bhw 0"], ["rx2", "+- x2 bhw 0"], ["dx7", "*/ dy1 hd2 len"], ["rxt", "+- x7 dx7 0"], ["lxt", "+- rx7 0 dx7"], ["rx", "?: cadj2 rxt rx7"], ["lx", "?: cadj2 x7 lxt"], ["dy3", "*/ dy1 xadj2 len"], ["dy4", "+- 0 0 dy3"], ["ry", "?: cadj2 dy3 t"], ["ly", "?: cadj2 t dy4"], ["dlx", "+- w 0 rx"], ["drx", "+- w 0 lx"], ["dly", "+- h 0 ry"], ["dry", "+- h 0 ly"], ["xC1", "+/ rx lx 2"], ["xC2", "+/ drx dlx 2"], ["yC1", "+/ ry ly 2"], ["yC2", "+/ y1 y2 2"], ["yC3", "+/ y3 y4 2"], ["yC4", "+/ dry dly 2"]], "rect": ["x1", "y1", "x8", "y4"], "paths": [{ "cmds": [["M", "x1", "y1"], ["L", "x6", "y1"], ["L", "lx", "ly"], ["L", "rx", "ry"], ["L", "rx6", "y1"], ["L", "x8", "y1"], ["L", "x8", "y2"], ["L", "rx5", "y2"], ["L", "rx4", "y3"], ["L", "x8", "y3"], ["L", "x8", "y4"], ["L", "rx3", "y4"], ["L", "drx", "dry"], ["L", "dlx", "dly"], ["L", "x3", "y4"], ["L", "x1", "y4"], ["L", "x1", "y3"], ["L", "x4", "y3"], ["L", "x5", "y2"], ["L", "x1", "y2"], ["Z"]] }], "ah": [["adj1", "y", "0", "50000"], ["adj2", "ang", "4200000", "6600000"], ["adj3", "y", "0", "maxAdj3"]] }, "mathPlus": { "av": [["adj1", "val 23520"]], "gd": [["a1", "pin 0 adj1 73490"], ["dx1", "*/ w 73490 200000"], ["dy1", "*/ h 73490 200000"], ["dx2", "*/ ss a1 200000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dx2"], ["y3", "+- vc dx2 0"], ["y4", "+- vc dy1 0"]], "rect": ["x1", "y2", "x4", "y3"], "paths": [{ "cmds": [["M", "x1", "y2"], ["L", "x2", "y2"], ["L", "x2", "y1"], ["L", "x3", "y1"], ["L", "x3", "y2"], ["L", "x4", "y2"], ["L", "x4", "y3"], ["L", "x3", "y3"], ["L", "x3", "y4"], ["L", "x2", "y4"], ["L", "x2", "y3"], ["L", "x1", "y3"], ["Z"]] }], "ah": [["adj1", "y", "0", "73490"]] }, "moon": { "av": [["adj", "val 50000"]], "gd": [["a", "pin 0 adj 87500"], ["g0", "*/ ss a 100000"], ["g0w", "*/ g0 w ss"], ["g1", "+- ss 0 g0"], ["g2", "*/ g0 g0 g1"], ["g3", "*/ ss ss g1"], ["g4", "*/ g3 2 1"], ["g5", "+- g4 0 g2"], ["g6", "+- g5 0 g0"], ["g6w", "*/ g6 w ss"], ["g7", "*/ g5 1 2"], ["g8", "+- g7 0 g0"], ["dy1", "*/ g8 hd2 ss"], ["g10h", "+- vc 0 dy1"], ["g11h", "+- vc dy1 0"], ["g12", "*/ g0 9598 32768"], ["g12w", "*/ g12 w ss"], ["g13", "+- ss 0 g12"], ["q1", "*/ ss ss 1"], ["q2", "*/ g13 g13 1"], ["q3", "+- q1 0 q2"], ["q4", "sqrt q3"], ["dy4", "*/ q4 hd2 ss"], ["g15h", "+- vc 0 dy4"], ["g16h", "+- vc dy4 0"], ["g17w", "+- g6w 0 g0w"], ["g18w", "*/ g17w 1 2"], ["dx2p", "+- g0w g18w w"], ["dx2", "*/ dx2p -1 1"], ["dy2", "*/ hd2 -1 1"], ["stAng1", "at2 dx2 dy2"], ["enAngp1", "at2 dx2 hd2"], ["enAng1", "+- enAngp1 0 21600000"], ["swAng1", "+- enAng1 0 stAng1"]], "rect": ["g12w", "g15h", "g0w", "g16h"], "paths": [{ "cmds": [["M", "r", "b"], ["A", "w", "hd2", "cd4", "cd2"], ["A", "g18w", "dy1", "stAng1", "swAng1"], ["Z"]] }], "ah": [["adj", "x", "0", "87500"]] }, "nonIsoscelesTrapezoid": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"]], "gd": [["maxAdj", "*/ 50000 w ss"], ["a1", "pin 0 adj1 maxAdj"], ["a2", "pin 0 adj2 maxAdj"], ["x1", "*/ ss a1 200000"], ["x2", "*/ ss a1 100000"], ["dx3", "*/ ss a2 100000"], ["x3", "+- r 0 dx3"], ["x4", "+/ r x3 2"], ["il", "*/ wd3 a1 maxAdj"], ["adjm", "max a1 a2"], ["it", "*/ hd3 adjm maxAdj"], ["irt", "*/ wd3 a2 maxAdj"], ["ir", "+- r 0 irt"]], "rect": ["il", "it", "ir", "b"], "paths": [{ "cmds": [["M", "l", "b"], ["L", "x2", "t"], ["L", "x3", "t"], ["L", "r", "b"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj"], ["adj2", "x", "0", "maxAdj"]] }, "noSmoking": { "av": [["adj", "val 18750"]], "gd": [["a", "pin 0 adj 50000"], ["dr", "*/ ss a 100000"], ["iwd2", "+- wd2 0 dr"], ["ihd2", "+- hd2 0 dr"], ["ang", "at2 w h"], ["ct", "cos ihd2 ang"], ["st", "sin iwd2 ang"], ["m", "mod ct st 0"], ["n", "*/ iwd2 ihd2 m"], ["drd2", "*/ dr 1 2"], ["dang", "at2 n drd2"], ["2dang", "*/ dang 2 1"], ["swAng", "+- -10800000 2dang 0"], ["t3", "at2 w h"], ["stAng1", "+- t3 0 dang"], ["stAng2", "+- stAng1 0 cd2"], ["ct1", "cos ihd2 stAng1"], ["st1", "sin iwd2 stAng1"], ["m1", "mod ct1 st1 0"], ["n1", "*/ iwd2 ihd2 m1"], ["dx1", "cos n1 stAng1"], ["dy1", "sin n1 stAng1"], ["x1", "+- hc dx1 0"], ["y1", "+- vc dy1 0"], ["x2", "+- hc 0 dx1"], ["y2", "+- vc 0 dy1"], ["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["A", "wd2", "hd2", "3cd4", "cd4"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"], ["M", "x1", "y1"], ["A", "iwd2", "ihd2", "stAng1", "swAng"], ["Z"], ["M", "x2", "y2"], ["A", "iwd2", "ihd2", "stAng2", "swAng"], ["Z"]] }], "ah": [["adj", "r", "0", "50000"]] }, "notchedRightArrow": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj2", "*/ 100000 w ss"], ["a1", "pin 0 adj1 100000"], ["a2", "pin 0 adj2 maxAdj2"], ["dx2", "*/ ss a2 100000"], ["x2", "+- r 0 dx2"], ["dy1", "*/ h a1 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc dy1 0"], ["x1", "*/ dy1 dx2 hd2"], ["x3", "+- r 0 x1"]], "rect": ["x1", "y1", "x3", "y2"], "paths": [{ "cmds": [["M", "l", "y1"], ["L", "x2", "y1"], ["L", "x2", "t"], ["L", "r", "vc"], ["L", "x2", "b"], ["L", "x2", "y2"], ["L", "l", "y2"], ["L", "x1", "vc"], ["Z"]] }], "ah": [["adj1", "y", "0", "100000"], ["adj2", "x", "0", "maxAdj2"]] }, "octagon": { "av": [["adj", "val 29289"]], "gd": [["a", "pin 0 adj 50000"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["y2", "+- b 0 x1"], ["il", "*/ x1 1 2"], ["ir", "+- r 0 il"], ["ib", "+- b 0 il"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "x1"], ["L", "x1", "t"], ["L", "x2", "t"], ["L", "r", "x1"], ["L", "r", "y2"], ["L", "x2", "b"], ["L", "x1", "b"], ["L", "l", "y2"], ["Z"]] }], "ah": [["adj", "x", "0", "50000"]] }, "parallelogram": { "av": [["adj", "val 25000"]], "gd": [["maxAdj", "*/ 100000 w ss"], ["a", "pin 0 adj maxAdj"], ["x1", "*/ ss a 200000"], ["x2", "*/ ss a 100000"], ["x6", "+- r 0 x1"], ["x5", "+- r 0 x2"], ["x3", "*/ x5 1 2"], ["x4", "+- r 0 x3"], ["il", "*/ wd2 a maxAdj"], ["q1", "*/ 5 a maxAdj"], ["q2", "+/ 1 q1 12"], ["il", "*/ q2 w 1"], ["it", "*/ q2 h 1"], ["ir", "+- r 0 il"], ["ib", "+- b 0 it"], ["q3", "*/ h hc x2"], ["y1", "pin 0 q3 h"], ["y2", "+- b 0 y1"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "b"], ["L", "x2", "t"], ["L", "r", "t"], ["L", "x5", "b"], ["Z"]] }], "ah": [["adj", "x", "0", "maxAdj"]] }, "pentagon": { "av": [["hf", "val 105146"], ["vf", "val 110557"]], "gd": [["swd2", "*/ wd2 hf 100000"], ["shd2", "*/ hd2 vf 100000"], ["svc", "*/ vc vf 100000"], ["dx1", "cos swd2 1080000"], ["dx2", "cos swd2 18360000"], ["dy1", "sin shd2 1080000"], ["dy2", "sin shd2 18360000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["y1", "+- svc 0 dy1"], ["y2", "+- svc 0 dy2"], ["it", "*/ y1 dx2 dx1"]], "rect": ["x2", "it", "x3", "y2"], "paths": [{ "cmds": [["M", "x1", "y1"], ["L", "hc", "t"], ["L", "x4", "y1"], ["L", "x3", "y2"], ["L", "x2", "y2"], ["Z"]] }] }, "pie": { "av": [["adj1", "val 0"], ["adj2", "val 16200000"]], "gd": [["stAng", "pin 0 adj1 21599999"], ["enAng", "pin 0 adj2 21599999"], ["sw1", "+- enAng 0 stAng"], ["sw2", "+- sw1 21600000 0"], ["swAng", "?: sw1 sw1 sw2"], ["wt1", "sin wd2 stAng"], ["ht1", "cos hd2 stAng"], ["dx1", "cat2 wd2 ht1 wt1"], ["dy1", "sat2 hd2 ht1 wt1"], ["x1", "+- hc dx1 0"], ["y1", "+- vc dy1 0"], ["wt2", "sin wd2 enAng"], ["ht2", "cos hd2 enAng"], ["dx2", "cat2 wd2 ht2 wt2"], ["dy2", "sat2 hd2 ht2 wt2"], ["x2", "+- hc dx2 0"], ["y2", "+- vc dy2 0"], ["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "ir", "it", "ib"], "paths": [{ "cmds": [["M", "x1", "y1"], ["A", "wd2", "hd2", "stAng", "swAng"], ["L", "hc", "vc"], ["Z"]] }], "ah": [["adj1", "ang", "0", "21599999"], ["adj2", "ang", "0", "21599999"]] }, "pieWedge": { "av": [], "gd": [["g1", "cos w 13500000"], ["g2", "sin h 13500000"], ["x1", "+- r g1 0"], ["y1", "+- b g2 0"]], "rect": ["x1", "y1", "r", "b"], "paths": [{ "cmds": [["M", "l", "b"], ["A", "w", "h", "cd2", "cd4"], ["L", "r", "b"], ["Z"]] }] }, "plaque": { "av": [["adj", "val 16667"]], "gd": [["a", "pin 0 adj 50000"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["y2", "+- b 0 x1"], ["il", "*/ x1 70711 100000"], ["ir", "+- r 0 il"], ["ib", "+- b 0 il"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "x1"], ["A", "x1", "x1", "cd4", "-5400000"], ["L", "x2", "t"], ["A", "x1", "x1", "cd2", "-5400000"], ["L", "r", "y2"], ["A", "x1", "x1", "3cd4", "-5400000"], ["L", "x1", "b"], ["A", "x1", "x1", "0", "-5400000"], ["Z"]] }], "ah": [["adj", "x", "0", "50000"]] }, "plaqueTabs": { "av": [], "gd": [["md", "mod w h 0"], ["dx", "*/ 1 md 20"], ["y1", "+- 0 b dx"], ["x1", "+- 0 r dx"]], "rect": ["dx", "dx", "x1", "y1"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "dx", "t"], ["A", "dx", "dx", "0", "cd4"], ["Z"]] }, { "cmds": [["M", "l", "y1"], ["A", "dx", "dx", "3cd4", "cd4"], ["L", "l", "b"], ["Z"]] }, { "cmds": [["M", "r", "t"], ["L", "r", "dx"], ["A", "dx", "dx", "cd4", "cd4"], ["Z"]] }, { "cmds": [["M", "x1", "b"], ["A", "dx", "dx", "cd2", "cd4"], ["L", "r", "b"], ["Z"]] }] }, "plus": { "av": [["adj", "val 25000"]], "gd": [["a", "pin 0 adj 50000"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["y2", "+- b 0 x1"], ["d", "+- w 0 h"], ["il", "?: d l x1"], ["ir", "?: d r x2"], ["it", "?: d x1 t"], ["ib", "?: d y2 b"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "x1"], ["L", "x1", "x1"], ["L", "x1", "t"], ["L", "x2", "t"], ["L", "x2", "x1"], ["L", "r", "x1"], ["L", "r", "y2"], ["L", "x2", "y2"], ["L", "x2", "b"], ["L", "x1", "b"], ["L", "x1", "y2"], ["L", "l", "y2"], ["Z"]] }], "ah": [["adj", "x", "0", "50000"]] }, "quadArrow": { "av": [["adj1", "val 22500"], ["adj2", "val 22500"], ["adj3", "val 22500"]], "gd": [["a2", "pin 0 adj2 50000"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["q1", "+- 100000 0 maxAdj1"], ["maxAdj3", "*/ q1 1 2"], ["a3", "pin 0 adj3 maxAdj3"], ["x1", "*/ ss a3 100000"], ["dx2", "*/ ss a2 100000"], ["x2", "+- hc 0 dx2"], ["x5", "+- hc dx2 0"], ["dx3", "*/ ss a1 200000"], ["x3", "+- hc 0 dx3"], ["x4", "+- hc dx3 0"], ["x6", "+- r 0 x1"], ["y2", "+- vc 0 dx2"], ["y5", "+- vc dx2 0"], ["y3", "+- vc 0 dx3"], ["y4", "+- vc dx3 0"], ["y6", "+- b 0 x1"], ["il", "*/ dx3 x1 dx2"], ["ir", "+- r 0 il"]], "rect": ["il", "y3", "ir", "y4"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "x1", "y2"], ["L", "x1", "y3"], ["L", "x3", "y3"], ["L", "x3", "x1"], ["L", "x2", "x1"], ["L", "hc", "t"], ["L", "x5", "x1"], ["L", "x4", "x1"], ["L", "x4", "y3"], ["L", "x6", "y3"], ["L", "x6", "y2"], ["L", "r", "vc"], ["L", "x6", "y5"], ["L", "x6", "y4"], ["L", "x4", "y4"], ["L", "x4", "y6"], ["L", "x5", "y6"], ["L", "hc", "b"], ["L", "x2", "y6"], ["L", "x3", "y6"], ["L", "x3", "y4"], ["L", "x1", "y4"], ["L", "x1", "y5"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "x", "0", "50000"], ["adj3", "y", "0", "maxAdj3"]] }, "quadArrowCallout": { "av": [["adj1", "val 18515"], ["adj2", "val 18515"], ["adj3", "val 18515"], ["adj4", "val 48123"]], "gd": [["a2", "pin 0 adj2 50000"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "+- 50000 0 a2"], ["a3", "pin 0 adj3 maxAdj3"], ["q2", "*/ a3 2 1"], ["maxAdj4", "+- 100000 0 q2"], ["a4", "pin a1 adj4 maxAdj4"], ["dx2", "*/ ss a2 100000"], ["dx3", "*/ ss a1 200000"], ["ah", "*/ ss a3 100000"], ["dx1", "*/ w a4 200000"], ["dy1", "*/ h a4 200000"], ["x8", "+- r 0 ah"], ["x2", "+- hc 0 dx1"], ["x7", "+- hc dx1 0"], ["x3", "+- hc 0 dx2"], ["x6", "+- hc dx2 0"], ["x4", "+- hc 0 dx3"], ["x5", "+- hc dx3 0"], ["y8", "+- b 0 ah"], ["y2", "+- vc 0 dy1"], ["y7", "+- vc dy1 0"], ["y3", "+- vc 0 dx2"], ["y6", "+- vc dx2 0"], ["y4", "+- vc 0 dx3"], ["y5", "+- vc dx3 0"]], "rect": ["x2", "y2", "x7", "y7"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "ah", "y3"], ["L", "ah", "y4"], ["L", "x2", "y4"], ["L", "x2", "y2"], ["L", "x4", "y2"], ["L", "x4", "ah"], ["L", "x3", "ah"], ["L", "hc", "t"], ["L", "x6", "ah"], ["L", "x5", "ah"], ["L", "x5", "y2"], ["L", "x7", "y2"], ["L", "x7", "y4"], ["L", "x8", "y4"], ["L", "x8", "y3"], ["L", "r", "vc"], ["L", "x8", "y6"], ["L", "x8", "y5"], ["L", "x7", "y5"], ["L", "x7", "y7"], ["L", "x5", "y7"], ["L", "x5", "y8"], ["L", "x6", "y8"], ["L", "hc", "b"], ["L", "x3", "y8"], ["L", "x4", "y8"], ["L", "x4", "y7"], ["L", "x2", "y7"], ["L", "x2", "y5"], ["L", "ah", "y5"], ["L", "ah", "y6"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "x", "0", "50000"], ["adj3", "y", "0", "maxAdj3"], ["adj4", "y", "a1", "maxAdj4"]] }, "rect": { "av": [], "gd": [], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "r", "t"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }] }, "ribbon": { "av": [["adj1", "val 16667"], ["adj2", "val 50000"]], "gd": [["a1", "pin 0 adj1 33333"], ["a2", "pin 25000 adj2 75000"], ["x10", "+- r 0 wd8"], ["dx2", "*/ w a2 200000"], ["x2", "+- hc 0 dx2"], ["x9", "+- hc dx2 0"], ["x3", "+- x2 wd32 0"], ["x8", "+- x9 0 wd32"], ["x5", "+- x2 wd8 0"], ["x6", "+- x9 0 wd8"], ["x4", "+- x5 0 wd32"], ["x7", "+- x6 wd32 0"], ["y1", "*/ h a1 200000"], ["y2", "*/ h a1 100000"], ["y4", "+- b 0 y2"], ["y3", "*/ y4 1 2"], ["hR", "*/ h a1 400000"], ["y5", "+- b 0 hR"], ["y6", "+- y2 0 hR"]], "rect": ["x2", "y2", "x9", "b"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["L", "x4", "t"], ["A", "wd32", "hR", "3cd4", "cd2"], ["L", "x3", "y1"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "x8", "y2"], ["A", "wd32", "hR", "cd4", "-10800000"], ["L", "x7", "y1"], ["A", "wd32", "hR", "cd4", "cd2"], ["L", "r", "t"], ["L", "x10", "y3"], ["L", "r", "y4"], ["L", "x9", "y4"], ["L", "x9", "y5"], ["A", "wd32", "hR", "0", "cd4"], ["L", "x3", "b"], ["A", "wd32", "hR", "cd4", "cd4"], ["L", "x2", "y4"], ["L", "l", "y4"], ["L", "wd8", "y3"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x5", "hR"], ["A", "wd32", "hR", "0", "cd4"], ["L", "x3", "y1"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "x5", "y2"], ["Z"], ["M", "x6", "hR"], ["A", "wd32", "hR", "cd2", "-5400000"], ["L", "x8", "y1"], ["A", "wd32", "hR", "3cd4", "cd2"], ["L", "x6", "y2"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["L", "x4", "t"], ["A", "wd32", "hR", "3cd4", "cd2"], ["L", "x3", "y1"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "x8", "y2"], ["A", "wd32", "hR", "cd4", "-10800000"], ["L", "x7", "y1"], ["A", "wd32", "hR", "cd4", "cd2"], ["L", "r", "t"], ["L", "x10", "y3"], ["L", "r", "y4"], ["L", "x9", "y4"], ["L", "x9", "y5"], ["A", "wd32", "hR", "0", "cd4"], ["L", "x3", "b"], ["A", "wd32", "hR", "cd4", "cd4"], ["L", "x2", "y4"], ["L", "l", "y4"], ["L", "wd8", "y3"], ["Z"], ["M", "x5", "hR"], ["L", "x5", "y2"], ["M", "x6", "y2"], ["L", "x6", "hR"], ["M", "x2", "y4"], ["L", "x2", "y6"], ["M", "x9", "y6"], ["L", "x9", "y4"]] }], "ah": [["adj1", "y", "0", "33333"], ["adj2", "x", "25000", "75000"]] }, "ribbon2": { "av": [["adj1", "val 16667"], ["adj2", "val 50000"]], "gd": [["a1", "pin 0 adj1 33333"], ["a2", "pin 25000 adj2 75000"], ["x10", "+- r 0 wd8"], ["dx2", "*/ w a2 200000"], ["x2", "+- hc 0 dx2"], ["x9", "+- hc dx2 0"], ["x3", "+- x2 wd32 0"], ["x8", "+- x9 0 wd32"], ["x5", "+- x2 wd8 0"], ["x6", "+- x9 0 wd8"], ["x4", "+- x5 0 wd32"], ["x7", "+- x6 wd32 0"], ["dy1", "*/ h a1 200000"], ["y1", "+- b 0 dy1"], ["dy2", "*/ h a1 100000"], ["y2", "+- b 0 dy2"], ["y4", "+- t dy2 0"], ["y3", "+/ y4 b 2"], ["hR", "*/ h a1 400000"], ["y6", "+- b 0 hR"], ["y7", "+- y1 0 hR"]], "rect": ["x2", "t", "x9", "y2"], "paths": [{ "stroke": false, "cmds": [["M", "l", "b"], ["L", "x4", "b"], ["A", "wd32", "hR", "cd4", "-10800000"], ["L", "x3", "y1"], ["A", "wd32", "hR", "cd4", "cd2"], ["L", "x8", "y2"], ["A", "wd32", "hR", "3cd4", "cd2"], ["L", "x7", "y1"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "r", "b"], ["L", "x10", "y3"], ["L", "r", "y4"], ["L", "x9", "y4"], ["L", "x9", "hR"], ["A", "wd32", "hR", "0", "-5400000"], ["L", "x3", "t"], ["A", "wd32", "hR", "3cd4", "-5400000"], ["L", "x2", "y4"], ["L", "l", "y4"], ["L", "wd8", "y3"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x5", "y6"], ["A", "wd32", "hR", "0", "-5400000"], ["L", "x3", "y1"], ["A", "wd32", "hR", "cd4", "cd2"], ["L", "x5", "y2"], ["Z"], ["M", "x6", "y6"], ["A", "wd32", "hR", "cd2", "cd4"], ["L", "x8", "y1"], ["A", "wd32", "hR", "cd4", "-10800000"], ["L", "x6", "y2"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "b"], ["L", "wd8", "y3"], ["L", "l", "y4"], ["L", "x2", "y4"], ["L", "x2", "hR"], ["A", "wd32", "hR", "cd2", "cd4"], ["L", "x8", "t"], ["A", "wd32", "hR", "3cd4", "cd4"], ["L", "x9", "y4"], ["L", "x9", "y4"], ["L", "r", "y4"], ["L", "x10", "y3"], ["L", "r", "b"], ["L", "x7", "b"], ["A", "wd32", "hR", "cd4", "cd2"], ["L", "x8", "y1"], ["A", "wd32", "hR", "cd4", "-10800000"], ["L", "x3", "y2"], ["A", "wd32", "hR", "3cd4", "-10800000"], ["L", "x4", "y1"], ["A", "wd32", "hR", "3cd4", "cd2"], ["Z"], ["M", "x5", "y2"], ["L", "x5", "y6"], ["M", "x6", "y6"], ["L", "x6", "y2"], ["M", "x2", "y7"], ["L", "x2", "y4"], ["M", "x9", "y4"], ["L", "x9", "y7"]] }], "ah": [["adj1", "y", "0", "33333"], ["adj2", "x", "25000", "75000"]] }, "rightArrow": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj2", "*/ 100000 w ss"], ["a1", "pin 0 adj1 100000"], ["a2", "pin 0 adj2 maxAdj2"], ["dx1", "*/ ss a2 100000"], ["x1", "+- r 0 dx1"], ["dy1", "*/ h a1 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc dy1 0"], ["dx2", "*/ y1 dx1 hd2"], ["x2", "+- x1 dx2 0"]], "rect": ["l", "y1", "x2", "y2"], "paths": [{ "cmds": [["M", "l", "y1"], ["L", "x1", "y1"], ["L", "x1", "t"], ["L", "r", "vc"], ["L", "x1", "b"], ["L", "x1", "y2"], ["L", "l", "y2"], ["Z"]] }], "ah": [["adj1", "y", "0", "100000"], ["adj2", "x", "0", "maxAdj2"]] }, "rightArrowCallout": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 64977"]], "gd": [["maxAdj2", "*/ 50000 h ss"], ["a2", "pin 0 adj2 maxAdj2"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "*/ 100000 w ss"], ["a3", "pin 0 adj3 maxAdj3"], ["q2", "*/ a3 ss w"], ["maxAdj4", "+- 100000 0 q2"], ["a4", "pin 0 adj4 maxAdj4"], ["dy1", "*/ ss a2 100000"], ["dy2", "*/ ss a1 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"], ["y4", "+- vc dy1 0"], ["dx3", "*/ ss a3 100000"], ["x3", "+- r 0 dx3"], ["x2", "*/ w a4 100000"], ["x1", "*/ x2 1 2"]], "rect": ["l", "t", "x2", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "x2", "t"], ["L", "x2", "y2"], ["L", "x3", "y2"], ["L", "x3", "y1"], ["L", "r", "vc"], ["L", "x3", "y4"], ["L", "x3", "y3"], ["L", "x2", "y3"], ["L", "x2", "b"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "y", "0", "maxAdj2"], ["adj3", "x", "0", "maxAdj3"], ["adj4", "x", "0", "maxAdj4"]] }, "rightBrace": { "av": [["adj1", "val 8333"], ["adj2", "val 50000"]], "gd": [["a2", "pin 0 adj2 100000"], ["q1", "+- 100000 0 a2"], ["q2", "min q1 a2"], ["q3", "*/ q2 1 2"], ["maxAdj1", "*/ q3 h ss"], ["a1", "pin 0 adj1 maxAdj1"], ["y1", "*/ ss a1 100000"], ["y3", "*/ h a2 100000"], ["y2", "+- y3 0 y1"], ["y4", "+- b 0 y1"], ["dx1", "cos wd2 2700000"], ["dy1", "sin y1 2700000"], ["ir", "+- l dx1 0"], ["it", "+- y1 0 dy1"], ["ib", "+- b dy1 y1"]], "rect": ["l", "it", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["A", "wd2", "y1", "3cd4", "cd4"], ["L", "hc", "y2"], ["A", "wd2", "y1", "cd2", "-5400000"], ["A", "wd2", "y1", "3cd4", "-5400000"], ["L", "hc", "y4"], ["A", "wd2", "y1", "0", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["A", "wd2", "y1", "3cd4", "cd4"], ["L", "hc", "y2"], ["A", "wd2", "y1", "cd2", "-5400000"], ["A", "wd2", "y1", "3cd4", "-5400000"], ["L", "hc", "y4"], ["A", "wd2", "y1", "0", "cd4"]] }], "ah": [["adj1", "y", "0", "maxAdj1"], ["adj2", "y", "0", "100000"]] }, "rightBracket": { "av": [["adj", "val 8333"]], "gd": [["maxAdj", "*/ 50000 h ss"], ["a", "pin 0 adj maxAdj"], ["y1", "*/ ss a 100000"], ["y2", "+- b 0 y1"], ["dx1", "cos w 2700000"], ["dy1", "sin y1 2700000"], ["ir", "+- l dx1 0"], ["it", "+- y1 0 dy1"], ["ib", "+- b dy1 y1"]], "rect": ["l", "it", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "l", "t"], ["A", "w", "y1", "3cd4", "cd4"], ["L", "r", "y2"], ["A", "w", "y1", "0", "cd4"], ["Z"]] }, { "fill": "none", "cmds": [["M", "l", "t"], ["A", "w", "y1", "3cd4", "cd4"], ["L", "r", "y2"], ["A", "w", "y1", "0", "cd4"]] }], "ah": [["adj", "y", "0", "maxAdj"]] }, "round1Rect": { "av": [["adj", "val 16667"]], "gd": [["a", "pin 0 adj 50000"], ["dx1", "*/ ss a 100000"], ["x1", "+- r 0 dx1"], ["idx", "*/ dx1 29289 100000"], ["ir", "+- r 0 idx"]], "rect": ["l", "t", "ir", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["A", "dx1", "dx1", "3cd4", "cd4"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj", "x", "0", "50000"]] }, "round2DiagRect": { "av": [["adj1", "val 16667"], ["adj2", "val 0"]], "gd": [["a1", "pin 0 adj1 50000"], ["a2", "pin 0 adj2 50000"], ["x1", "*/ ss a1 100000"], ["y1", "+- b 0 x1"], ["a", "*/ ss a2 100000"], ["x2", "+- r 0 a"], ["y2", "+- b 0 a"], ["dx1", "*/ x1 29289 100000"], ["dx2", "*/ a 29289 100000"], ["d", "+- dx1 0 dx2"], ["dx", "?: d dx1 dx2"], ["ir", "+- r 0 dx"], ["ib", "+- b 0 dx"]], "rect": ["dx", "dx", "ir", "ib"], "paths": [{ "cmds": [["M", "x1", "t"], ["L", "x2", "t"], ["A", "a", "a", "3cd4", "cd4"], ["L", "r", "y1"], ["A", "x1", "x1", "0", "cd4"], ["L", "a", "b"], ["A", "a", "a", "cd4", "cd4"], ["L", "l", "x1"], ["A", "x1", "x1", "cd2", "cd4"], ["Z"]] }], "ah": [["adj1", "x", "0", "50000"], ["adj2", "x", "0", "50000"]] }, "round2SameRect": { "av": [["adj1", "val 16667"], ["adj2", "val 0"]], "gd": [["a1", "pin 0 adj1 50000"], ["a2", "pin 0 adj2 50000"], ["tx1", "*/ ss a1 100000"], ["tx2", "+- r 0 tx1"], ["bx1", "*/ ss a2 100000"], ["bx2", "+- r 0 bx1"], ["by1", "+- b 0 bx1"], ["d", "+- tx1 0 bx1"], ["tdx", "*/ tx1 29289 100000"], ["bdx", "*/ bx1 29289 100000"], ["il", "?: d tdx bdx"], ["ir", "+- r 0 il"], ["ib", "+- b 0 bdx"]], "rect": ["il", "tdx", "ir", "ib"], "paths": [{ "cmds": [["M", "tx1", "t"], ["L", "tx2", "t"], ["A", "tx1", "tx1", "3cd4", "cd4"], ["L", "r", "by1"], ["A", "bx1", "bx1", "0", "cd4"], ["L", "bx1", "b"], ["A", "bx1", "bx1", "cd4", "cd4"], ["L", "l", "tx1"], ["A", "tx1", "tx1", "cd2", "cd4"], ["Z"]] }], "ah": [["adj1", "x", "0", "50000"], ["adj2", "x", "0", "50000"]] }, "roundRect": { "av": [["adj", "val 16667"]], "gd": [["a", "pin 0 adj 50000"], ["x1", "*/ ss a 100000"], ["x2", "+- r 0 x1"], ["y2", "+- b 0 x1"], ["il", "*/ x1 29289 100000"], ["ir", "+- r 0 il"], ["ib", "+- b 0 il"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "x1"], ["A", "x1", "x1", "cd2", "cd4"], ["L", "x2", "t"], ["A", "x1", "x1", "3cd4", "cd4"], ["L", "r", "y2"], ["A", "x1", "x1", "0", "cd4"], ["L", "x1", "b"], ["A", "x1", "x1", "cd4", "cd4"], ["Z"]] }], "ah": [["adj", "x", "0", "50000"]] }, "rtTriangle": { "av": [], "gd": [["it", "*/ h 7 12"], ["ir", "*/ w 7 12"], ["ib", "*/ h 11 12"]], "rect": ["wd12", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "b"], ["L", "l", "t"], ["L", "r", "b"], ["Z"]] }] }, "smileyFace": { "av": [["adj", "val 4653"]], "gd": [["a", "pin -4653 adj 4653"], ["x1", "*/ w 4969 21699"], ["x2", "*/ w 6215 21600"], ["x3", "*/ w 13135 21600"], ["x4", "*/ w 16640 21600"], ["y1", "*/ h 7570 21600"], ["y3", "*/ h 16515 21600"], ["dy2", "*/ h a 100000"], ["y2", "+- y3 0 dy2"], ["y4", "+- y3 dy2 0"], ["dy3", "*/ h a 50000"], ["y5", "+- y4 dy3 0"], ["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"], ["wR", "*/ w 1125 21600"], ["hR", "*/ h 1125 21600"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "stroke": false, "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "21600000"], ["Z"]] }, { "fill": "darkenLess", "cmds": [["M", "x2", "y1"], ["A", "wR", "hR", "cd2", "21600000"], ["M", "x3", "y1"], ["A", "wR", "hR", "cd2", "21600000"]] }, { "fill": "none", "cmds": [["M", "x1", "y2"], ["Q", "hc", "y5", "x4", "y2"]] }, { "fill": "none", "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "21600000"], ["Z"]] }], "ah": [["adj", "y", "-4653", "4653"]] }, "snip1Rect": { "av": [["adj", "val 16667"]], "gd": [["a", "pin 0 adj 50000"], ["dx1", "*/ ss a 100000"], ["x1", "+- r 0 dx1"], ["it", "*/ dx1 1 2"], ["ir", "+/ x1 r 2"]], "rect": ["l", "it", "ir", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["L", "r", "dx1"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj", "x", "0", "50000"]] }, "snip2DiagRect": { "av": [["adj1", "val 0"], ["adj2", "val 16667"]], "gd": [["a1", "pin 0 adj1 50000"], ["a2", "pin 0 adj2 50000"], ["lx1", "*/ ss a1 100000"], ["lx2", "+- r 0 lx1"], ["ly1", "+- b 0 lx1"], ["rx1", "*/ ss a2 100000"], ["rx2", "+- r 0 rx1"], ["ry1", "+- b 0 rx1"], ["d", "+- lx1 0 rx1"], ["dx", "?: d lx1 rx1"], ["il", "*/ dx 1 2"], ["ir", "+- r 0 il"], ["ib", "+- b 0 il"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "cmds": [["M", "lx1", "t"], ["L", "rx2", "t"], ["L", "r", "rx1"], ["L", "r", "ly1"], ["L", "lx2", "b"], ["L", "rx1", "b"], ["L", "l", "ry1"], ["L", "l", "lx1"], ["Z"]] }], "ah": [["adj1", "x", "0", "50000"], ["adj2", "x", "0", "50000"]] }, "snip2SameRect": { "av": [["adj1", "val 16667"], ["adj2", "val 0"]], "gd": [["a1", "pin 0 adj1 50000"], ["a2", "pin 0 adj2 50000"], ["tx1", "*/ ss a1 100000"], ["tx2", "+- r 0 tx1"], ["bx1", "*/ ss a2 100000"], ["bx2", "+- r 0 bx1"], ["by1", "+- b 0 bx1"], ["d", "+- tx1 0 bx1"], ["dx", "?: d tx1 bx1"], ["il", "*/ dx 1 2"], ["ir", "+- r 0 il"], ["it", "*/ tx1 1 2"], ["ib", "+/ by1 b 2"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "tx1", "t"], ["L", "tx2", "t"], ["L", "r", "tx1"], ["L", "r", "by1"], ["L", "bx2", "b"], ["L", "bx1", "b"], ["L", "l", "by1"], ["L", "l", "tx1"], ["Z"]] }], "ah": [["adj1", "x", "0", "50000"], ["adj2", "x", "0", "50000"]] }, "snipRoundRect": { "av": [["adj1", "val 16667"], ["adj2", "val 16667"]], "gd": [["a1", "pin 0 adj1 50000"], ["a2", "pin 0 adj2 50000"], ["x1", "*/ ss a1 100000"], ["dx2", "*/ ss a2 100000"], ["x2", "+- r 0 dx2"], ["il", "*/ x1 29289 100000"], ["ir", "+/ x2 r 2"]], "rect": ["il", "il", "ir", "b"], "paths": [{ "cmds": [["M", "x1", "t"], ["L", "x2", "t"], ["L", "r", "dx2"], ["L", "r", "b"], ["L", "l", "b"], ["L", "l", "x1"], ["A", "x1", "x1", "cd2", "cd4"], ["Z"]] }], "ah": [["adj1", "x", "0", "50000"], ["adj2", "x", "0", "50000"]] }, "squareTabs": { "av": [], "gd": [["md", "mod w h 0"], ["dx", "*/ 1 md 20"], ["y1", "+- 0 b dx"], ["x1", "+- 0 r dx"]], "rect": ["dx", "dx", "x1", "y1"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "dx", "t"], ["L", "dx", "dx"], ["L", "l", "dx"], ["Z"]] }, { "cmds": [["M", "l", "y1"], ["L", "dx", "y1"], ["L", "dx", "b"], ["L", "l", "b"], ["Z"]] }, { "cmds": [["M", "x1", "t"], ["L", "r", "t"], ["L", "r", "dx"], ["L", "x1", "dx"], ["Z"]] }, { "cmds": [["M", "x1", "y1"], ["L", "r", "y1"], ["L", "r", "b"], ["L", "x1", "b"], ["Z"]] }] }, "star10": { "av": [["adj", "val 42533"], ["hf", "val 105146"]], "gd": [["a", "pin 0 adj 50000"], ["swd2", "*/ wd2 hf 100000"], ["dx1", "*/ swd2 95106 100000"], ["dx2", "*/ swd2 58779 100000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["dy1", "*/ hd2 80902 100000"], ["dy2", "*/ hd2 30902 100000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"], ["y4", "+- vc dy1 0"], ["iwd2", "*/ swd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx1", "*/ iwd2 80902 100000"], ["sdx2", "*/ iwd2 30902 100000"], ["sdy1", "*/ ihd2 95106 100000"], ["sdy2", "*/ ihd2 58779 100000"], ["sx1", "+- hc 0 iwd2"], ["sx2", "+- hc 0 sdx1"], ["sx3", "+- hc 0 sdx2"], ["sx4", "+- hc sdx2 0"], ["sx5", "+- hc sdx1 0"], ["sx6", "+- hc iwd2 0"], ["sy1", "+- vc 0 sdy1"], ["sy2", "+- vc 0 sdy2"], ["sy3", "+- vc sdy2 0"], ["sy4", "+- vc sdy1 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["sx2", "sy2", "sx5", "sy3"], "paths": [{ "cmds": [["M", "x1", "y2"], ["L", "sx2", "sy2"], ["L", "x2", "y1"], ["L", "sx3", "sy1"], ["L", "hc", "t"], ["L", "sx4", "sy1"], ["L", "x3", "y1"], ["L", "sx5", "sy2"], ["L", "x4", "y2"], ["L", "sx6", "vc"], ["L", "x4", "y3"], ["L", "sx5", "sy3"], ["L", "x3", "y4"], ["L", "sx4", "sy4"], ["L", "hc", "b"], ["L", "sx3", "sy4"], ["L", "x2", "y4"], ["L", "sx2", "sy3"], ["L", "x1", "y3"], ["L", "sx1", "vc"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "star12": { "av": [["adj", "val 37500"]], "gd": [["a", "pin 0 adj 50000"], ["dx1", "cos wd2 1800000"], ["dy1", "sin hd2 3600000"], ["x1", "+- hc 0 dx1"], ["x3", "*/ w 3 4"], ["x4", "+- hc dx1 0"], ["y1", "+- vc 0 dy1"], ["y3", "*/ h 3 4"], ["y4", "+- vc dy1 0"], ["iwd2", "*/ wd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx1", "cos iwd2 900000"], ["sdx2", "cos iwd2 2700000"], ["sdx3", "cos iwd2 4500000"], ["sdy1", "sin ihd2 4500000"], ["sdy2", "sin ihd2 2700000"], ["sdy3", "sin ihd2 900000"], ["sx1", "+- hc 0 sdx1"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc 0 sdx3"], ["sx4", "+- hc sdx3 0"], ["sx5", "+- hc sdx2 0"], ["sx6", "+- hc sdx1 0"], ["sy1", "+- vc 0 sdy1"], ["sy2", "+- vc 0 sdy2"], ["sy3", "+- vc 0 sdy3"], ["sy4", "+- vc sdy3 0"], ["sy5", "+- vc sdy2 0"], ["sy6", "+- vc sdy1 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["sx2", "sy2", "sx5", "sy5"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "sx1", "sy3"], ["L", "x1", "hd4"], ["L", "sx2", "sy2"], ["L", "wd4", "y1"], ["L", "sx3", "sy1"], ["L", "hc", "t"], ["L", "sx4", "sy1"], ["L", "x3", "y1"], ["L", "sx5", "sy2"], ["L", "x4", "hd4"], ["L", "sx6", "sy3"], ["L", "r", "vc"], ["L", "sx6", "sy4"], ["L", "x4", "y3"], ["L", "sx5", "sy5"], ["L", "x3", "y4"], ["L", "sx4", "sy6"], ["L", "hc", "b"], ["L", "sx3", "sy6"], ["L", "wd4", "y4"], ["L", "sx2", "sy5"], ["L", "x1", "y3"], ["L", "sx1", "sy4"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "star16": { "av": [["adj", "val 37500"]], "gd": [["a", "pin 0 adj 50000"], ["dx1", "*/ wd2 92388 100000"], ["dx2", "*/ wd2 70711 100000"], ["dx3", "*/ wd2 38268 100000"], ["dy1", "*/ hd2 92388 100000"], ["dy2", "*/ hd2 70711 100000"], ["dy3", "*/ hd2 38268 100000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc 0 dx3"], ["x4", "+- hc dx3 0"], ["x5", "+- hc dx2 0"], ["x6", "+- hc dx1 0"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc 0 dy3"], ["y4", "+- vc dy3 0"], ["y5", "+- vc dy2 0"], ["y6", "+- vc dy1 0"], ["iwd2", "*/ wd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx1", "*/ iwd2 98079 100000"], ["sdx2", "*/ iwd2 83147 100000"], ["sdx3", "*/ iwd2 55557 100000"], ["sdx4", "*/ iwd2 19509 100000"], ["sdy1", "*/ ihd2 98079 100000"], ["sdy2", "*/ ihd2 83147 100000"], ["sdy3", "*/ ihd2 55557 100000"], ["sdy4", "*/ ihd2 19509 100000"], ["sx1", "+- hc 0 sdx1"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc 0 sdx3"], ["sx4", "+- hc 0 sdx4"], ["sx5", "+- hc sdx4 0"], ["sx6", "+- hc sdx3 0"], ["sx7", "+- hc sdx2 0"], ["sx8", "+- hc sdx1 0"], ["sy1", "+- vc 0 sdy1"], ["sy2", "+- vc 0 sdy2"], ["sy3", "+- vc 0 sdy3"], ["sy4", "+- vc 0 sdy4"], ["sy5", "+- vc sdy4 0"], ["sy6", "+- vc sdy3 0"], ["sy7", "+- vc sdy2 0"], ["sy8", "+- vc sdy1 0"], ["idx", "cos iwd2 2700000"], ["idy", "sin ihd2 2700000"], ["il", "+- hc 0 idx"], ["it", "+- vc 0 idy"], ["ir", "+- hc idx 0"], ["ib", "+- vc idy 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "sx1", "sy4"], ["L", "x1", "y3"], ["L", "sx2", "sy3"], ["L", "x2", "y2"], ["L", "sx3", "sy2"], ["L", "x3", "y1"], ["L", "sx4", "sy1"], ["L", "hc", "t"], ["L", "sx5", "sy1"], ["L", "x4", "y1"], ["L", "sx6", "sy2"], ["L", "x5", "y2"], ["L", "sx7", "sy3"], ["L", "x6", "y3"], ["L", "sx8", "sy4"], ["L", "r", "vc"], ["L", "sx8", "sy5"], ["L", "x6", "y4"], ["L", "sx7", "sy6"], ["L", "x5", "y5"], ["L", "sx6", "sy7"], ["L", "x4", "y6"], ["L", "sx5", "sy8"], ["L", "hc", "b"], ["L", "sx4", "sy8"], ["L", "x3", "y6"], ["L", "sx3", "sy7"], ["L", "x2", "y5"], ["L", "sx2", "sy6"], ["L", "x1", "y4"], ["L", "sx1", "sy5"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "star24": { "av": [["adj", "val 37500"]], "gd": [["a", "pin 0 adj 50000"], ["dx1", "cos wd2 900000"], ["dx2", "cos wd2 1800000"], ["dx3", "cos wd2 2700000"], ["dx4", "val wd4"], ["dx5", "cos wd2 4500000"], ["dy1", "sin hd2 4500000"], ["dy2", "sin hd2 3600000"], ["dy3", "sin hd2 2700000"], ["dy4", "val hd4"], ["dy5", "sin hd2 900000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc 0 dx3"], ["x4", "+- hc 0 dx4"], ["x5", "+- hc 0 dx5"], ["x6", "+- hc dx5 0"], ["x7", "+- hc dx4 0"], ["x8", "+- hc dx3 0"], ["x9", "+- hc dx2 0"], ["x10", "+- hc dx1 0"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc 0 dy3"], ["y4", "+- vc 0 dy4"], ["y5", "+- vc 0 dy5"], ["y6", "+- vc dy5 0"], ["y7", "+- vc dy4 0"], ["y8", "+- vc dy3 0"], ["y9", "+- vc dy2 0"], ["y10", "+- vc dy1 0"], ["iwd2", "*/ wd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx1", "*/ iwd2 99144 100000"], ["sdx2", "*/ iwd2 92388 100000"], ["sdx3", "*/ iwd2 79335 100000"], ["sdx4", "*/ iwd2 60876 100000"], ["sdx5", "*/ iwd2 38268 100000"], ["sdx6", "*/ iwd2 13053 100000"], ["sdy1", "*/ ihd2 99144 100000"], ["sdy2", "*/ ihd2 92388 100000"], ["sdy3", "*/ ihd2 79335 100000"], ["sdy4", "*/ ihd2 60876 100000"], ["sdy5", "*/ ihd2 38268 100000"], ["sdy6", "*/ ihd2 13053 100000"], ["sx1", "+- hc 0 sdx1"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc 0 sdx3"], ["sx4", "+- hc 0 sdx4"], ["sx5", "+- hc 0 sdx5"], ["sx6", "+- hc 0 sdx6"], ["sx7", "+- hc sdx6 0"], ["sx8", "+- hc sdx5 0"], ["sx9", "+- hc sdx4 0"], ["sx10", "+- hc sdx3 0"], ["sx11", "+- hc sdx2 0"], ["sx12", "+- hc sdx1 0"], ["sy1", "+- vc 0 sdy1"], ["sy2", "+- vc 0 sdy2"], ["sy3", "+- vc 0 sdy3"], ["sy4", "+- vc 0 sdy4"], ["sy5", "+- vc 0 sdy5"], ["sy6", "+- vc 0 sdy6"], ["sy7", "+- vc sdy6 0"], ["sy8", "+- vc sdy5 0"], ["sy9", "+- vc sdy4 0"], ["sy10", "+- vc sdy3 0"], ["sy11", "+- vc sdy2 0"], ["sy12", "+- vc sdy1 0"], ["idx", "cos iwd2 2700000"], ["idy", "sin ihd2 2700000"], ["il", "+- hc 0 idx"], ["it", "+- vc 0 idy"], ["ir", "+- hc idx 0"], ["ib", "+- vc idy 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "sx1", "sy6"], ["L", "x1", "y5"], ["L", "sx2", "sy5"], ["L", "x2", "y4"], ["L", "sx3", "sy4"], ["L", "x3", "y3"], ["L", "sx4", "sy3"], ["L", "x4", "y2"], ["L", "sx5", "sy2"], ["L", "x5", "y1"], ["L", "sx6", "sy1"], ["L", "hc", "t"], ["L", "sx7", "sy1"], ["L", "x6", "y1"], ["L", "sx8", "sy2"], ["L", "x7", "y2"], ["L", "sx9", "sy3"], ["L", "x8", "y3"], ["L", "sx10", "sy4"], ["L", "x9", "y4"], ["L", "sx11", "sy5"], ["L", "x10", "y5"], ["L", "sx12", "sy6"], ["L", "r", "vc"], ["L", "sx12", "sy7"], ["L", "x10", "y6"], ["L", "sx11", "sy8"], ["L", "x9", "y7"], ["L", "sx10", "sy9"], ["L", "x8", "y8"], ["L", "sx9", "sy10"], ["L", "x7", "y9"], ["L", "sx8", "sy11"], ["L", "x6", "y10"], ["L", "sx7", "sy12"], ["L", "hc", "b"], ["L", "sx6", "sy12"], ["L", "x5", "y10"], ["L", "sx5", "sy11"], ["L", "x4", "y9"], ["L", "sx4", "sy10"], ["L", "x3", "y8"], ["L", "sx3", "sy9"], ["L", "x2", "y7"], ["L", "sx2", "sy8"], ["L", "x1", "y6"], ["L", "sx1", "sy7"], ["Z"]] }], "ah": [["adj", "y", "0", "ssd2"]] }, "star32": { "av": [["adj", "val 37500"]], "gd": [["a", "pin 0 adj 50000"], ["dx1", "*/ wd2 98079 100000"], ["dx2", "*/ wd2 92388 100000"], ["dx3", "*/ wd2 83147 100000"], ["dx4", "cos wd2 2700000"], ["dx5", "*/ wd2 55557 100000"], ["dx6", "*/ wd2 38268 100000"], ["dx7", "*/ wd2 19509 100000"], ["dy1", "*/ hd2 98079 100000"], ["dy2", "*/ hd2 92388 100000"], ["dy3", "*/ hd2 83147 100000"], ["dy4", "sin hd2 2700000"], ["dy5", "*/ hd2 55557 100000"], ["dy6", "*/ hd2 38268 100000"], ["dy7", "*/ hd2 19509 100000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc 0 dx3"], ["x4", "+- hc 0 dx4"], ["x5", "+- hc 0 dx5"], ["x6", "+- hc 0 dx6"], ["x7", "+- hc 0 dx7"], ["x8", "+- hc dx7 0"], ["x9", "+- hc dx6 0"], ["x10", "+- hc dx5 0"], ["x11", "+- hc dx4 0"], ["x12", "+- hc dx3 0"], ["x13", "+- hc dx2 0"], ["x14", "+- hc dx1 0"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc 0 dy3"], ["y4", "+- vc 0 dy4"], ["y5", "+- vc 0 dy5"], ["y6", "+- vc 0 dy6"], ["y7", "+- vc 0 dy7"], ["y8", "+- vc dy7 0"], ["y9", "+- vc dy6 0"], ["y10", "+- vc dy5 0"], ["y11", "+- vc dy4 0"], ["y12", "+- vc dy3 0"], ["y13", "+- vc dy2 0"], ["y14", "+- vc dy1 0"], ["iwd2", "*/ wd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx1", "*/ iwd2 99518 100000"], ["sdx2", "*/ iwd2 95694 100000"], ["sdx3", "*/ iwd2 88192 100000"], ["sdx4", "*/ iwd2 77301 100000"], ["sdx5", "*/ iwd2 63439 100000"], ["sdx6", "*/ iwd2 47140 100000"], ["sdx7", "*/ iwd2 29028 100000"], ["sdx8", "*/ iwd2 9802 100000"], ["sdy1", "*/ ihd2 99518 100000"], ["sdy2", "*/ ihd2 95694 100000"], ["sdy3", "*/ ihd2 88192 100000"], ["sdy4", "*/ ihd2 77301 100000"], ["sdy5", "*/ ihd2 63439 100000"], ["sdy6", "*/ ihd2 47140 100000"], ["sdy7", "*/ ihd2 29028 100000"], ["sdy8", "*/ ihd2 9802 100000"], ["sx1", "+- hc 0 sdx1"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc 0 sdx3"], ["sx4", "+- hc 0 sdx4"], ["sx5", "+- hc 0 sdx5"], ["sx6", "+- hc 0 sdx6"], ["sx7", "+- hc 0 sdx7"], ["sx8", "+- hc 0 sdx8"], ["sx9", "+- hc sdx8 0"], ["sx10", "+- hc sdx7 0"], ["sx11", "+- hc sdx6 0"], ["sx12", "+- hc sdx5 0"], ["sx13", "+- hc sdx4 0"], ["sx14", "+- hc sdx3 0"], ["sx15", "+- hc sdx2 0"], ["sx16", "+- hc sdx1 0"], ["sy1", "+- vc 0 sdy1"], ["sy2", "+- vc 0 sdy2"], ["sy3", "+- vc 0 sdy3"], ["sy4", "+- vc 0 sdy4"], ["sy5", "+- vc 0 sdy5"], ["sy6", "+- vc 0 sdy6"], ["sy7", "+- vc 0 sdy7"], ["sy8", "+- vc 0 sdy8"], ["sy9", "+- vc sdy8 0"], ["sy10", "+- vc sdy7 0"], ["sy11", "+- vc sdy6 0"], ["sy12", "+- vc sdy5 0"], ["sy13", "+- vc sdy4 0"], ["sy14", "+- vc sdy3 0"], ["sy15", "+- vc sdy2 0"], ["sy16", "+- vc sdy1 0"], ["idx", "cos iwd2 2700000"], ["idy", "sin ihd2 2700000"], ["il", "+- hc 0 idx"], ["it", "+- vc 0 idy"], ["ir", "+- hc idx 0"], ["ib", "+- vc idy 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "sx1", "sy8"], ["L", "x1", "y7"], ["L", "sx2", "sy7"], ["L", "x2", "y6"], ["L", "sx3", "sy6"], ["L", "x3", "y5"], ["L", "sx4", "sy5"], ["L", "x4", "y4"], ["L", "sx5", "sy4"], ["L", "x5", "y3"], ["L", "sx6", "sy3"], ["L", "x6", "y2"], ["L", "sx7", "sy2"], ["L", "x7", "y1"], ["L", "sx8", "sy1"], ["L", "hc", "t"], ["L", "sx9", "sy1"], ["L", "x8", "y1"], ["L", "sx10", "sy2"], ["L", "x9", "y2"], ["L", "sx11", "sy3"], ["L", "x10", "y3"], ["L", "sx12", "sy4"], ["L", "x11", "y4"], ["L", "sx13", "sy5"], ["L", "x12", "y5"], ["L", "sx14", "sy6"], ["L", "x13", "y6"], ["L", "sx15", "sy7"], ["L", "x14", "y7"], ["L", "sx16", "sy8"], ["L", "r", "vc"], ["L", "sx16", "sy9"], ["L", "x14", "y8"], ["L", "sx15", "sy10"], ["L", "x13", "y9"], ["L", "sx14", "sy11"], ["L", "x12", "y10"], ["L", "sx13", "sy12"], ["L", "x11", "y11"], ["L", "sx12", "sy13"], ["L", "x10", "y12"], ["L", "sx11", "sy14"], ["L", "x9", "y13"], ["L", "sx10", "sy15"], ["L", "x8", "y14"], ["L", "sx9", "sy16"], ["L", "hc", "b"], ["L", "sx8", "sy16"], ["L", "x7", "y14"], ["L", "sx7", "sy15"], ["L", "x6", "y13"], ["L", "sx6", "sy14"], ["L", "x5", "y12"], ["L", "sx5", "sy13"], ["L", "x4", "y11"], ["L", "sx4", "sy12"], ["L", "x3", "y10"], ["L", "sx3", "sy11"], ["L", "x2", "y9"], ["L", "sx2", "sy10"], ["L", "x1", "y8"], ["L", "sx1", "sy9"], ["Z"]] }], "ah": [["adj", "y", "0", "ssd2"]] }, "star4": { "av": [["adj", "val 12500"]], "gd": [["a", "pin 0 adj 50000"], ["iwd2", "*/ wd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx", "cos iwd2 2700000"], ["sdy", "sin ihd2 2700000"], ["sx1", "+- hc 0 sdx"], ["sx2", "+- hc sdx 0"], ["sy1", "+- vc 0 sdy"], ["sy2", "+- vc sdy 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["sx1", "sy1", "sx2", "sy2"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "sx1", "sy1"], ["L", "hc", "t"], ["L", "sx2", "sy1"], ["L", "r", "vc"], ["L", "sx2", "sy2"], ["L", "hc", "b"], ["L", "sx1", "sy2"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "star5": { "av": [["adj", "val 19098"], ["hf", "val 105146"], ["vf", "val 110557"]], "gd": [["a", "pin 0 adj 50000"], ["swd2", "*/ wd2 hf 100000"], ["shd2", "*/ hd2 vf 100000"], ["svc", "*/ vc vf 100000"], ["dx1", "cos swd2 1080000"], ["dx2", "cos swd2 18360000"], ["dy1", "sin shd2 1080000"], ["dy2", "sin shd2 18360000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["y1", "+- svc 0 dy1"], ["y2", "+- svc 0 dy2"], ["iwd2", "*/ swd2 a 50000"], ["ihd2", "*/ shd2 a 50000"], ["sdx1", "cos iwd2 20520000"], ["sdx2", "cos iwd2 3240000"], ["sdy1", "sin ihd2 3240000"], ["sdy2", "sin ihd2 20520000"], ["sx1", "+- hc 0 sdx1"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc sdx2 0"], ["sx4", "+- hc sdx1 0"], ["sy1", "+- svc 0 sdy1"], ["sy2", "+- svc 0 sdy2"], ["sy3", "+- svc ihd2 0"], ["yAdj", "+- svc 0 ihd2"]], "rect": ["sx1", "sy1", "sx4", "sy3"], "paths": [{ "cmds": [["M", "x1", "y1"], ["L", "sx2", "sy1"], ["L", "hc", "t"], ["L", "sx3", "sy1"], ["L", "x4", "y1"], ["L", "sx4", "sy2"], ["L", "x3", "y2"], ["L", "hc", "sy3"], ["L", "x2", "y2"], ["L", "sx1", "sy2"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "star6": { "av": [["adj", "val 28868"], ["hf", "val 115470"]], "gd": [["a", "pin 0 adj 50000"], ["swd2", "*/ wd2 hf 100000"], ["dx1", "cos swd2 1800000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc dx1 0"], ["y2", "+- vc hd4 0"], ["iwd2", "*/ swd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx2", "*/ iwd2 1 2"], ["sx1", "+- hc 0 iwd2"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc sdx2 0"], ["sx4", "+- hc iwd2 0"], ["sdy1", "sin ihd2 3600000"], ["sy1", "+- vc 0 sdy1"], ["sy2", "+- vc sdy1 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["sx1", "sy1", "sx4", "sy2"], "paths": [{ "cmds": [["M", "x1", "hd4"], ["L", "sx2", "sy1"], ["L", "hc", "t"], ["L", "sx3", "sy1"], ["L", "x2", "hd4"], ["L", "sx4", "vc"], ["L", "x2", "y2"], ["L", "sx3", "sy2"], ["L", "hc", "b"], ["L", "sx2", "sy2"], ["L", "x1", "y2"], ["L", "sx1", "vc"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "star7": { "av": [["adj", "val 34601"], ["hf", "val 102572"], ["vf", "val 105210"]], "gd": [["a", "pin 0 adj 50000"], ["swd2", "*/ wd2 hf 100000"], ["shd2", "*/ hd2 vf 100000"], ["svc", "*/ vc vf 100000"], ["dx1", "*/ swd2 97493 100000"], ["dx2", "*/ swd2 78183 100000"], ["dx3", "*/ swd2 43388 100000"], ["dy1", "*/ shd2 62349 100000"], ["dy2", "*/ shd2 22252 100000"], ["dy3", "*/ shd2 90097 100000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc 0 dx3"], ["x4", "+- hc dx3 0"], ["x5", "+- hc dx2 0"], ["x6", "+- hc dx1 0"], ["y1", "+- svc 0 dy1"], ["y2", "+- svc dy2 0"], ["y3", "+- svc dy3 0"], ["iwd2", "*/ swd2 a 50000"], ["ihd2", "*/ shd2 a 50000"], ["sdx1", "*/ iwd2 97493 100000"], ["sdx2", "*/ iwd2 78183 100000"], ["sdx3", "*/ iwd2 43388 100000"], ["sx1", "+- hc 0 sdx1"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc 0 sdx3"], ["sx4", "+- hc sdx3 0"], ["sx5", "+- hc sdx2 0"], ["sx6", "+- hc sdx1 0"], ["sdy1", "*/ ihd2 90097 100000"], ["sdy2", "*/ ihd2 22252 100000"], ["sdy3", "*/ ihd2 62349 100000"], ["sy1", "+- svc 0 sdy1"], ["sy2", "+- svc 0 sdy2"], ["sy3", "+- svc sdy3 0"], ["sy4", "+- svc ihd2 0"], ["yAdj", "+- svc 0 ihd2"]], "rect": ["sx2", "sy1", "sx5", "sy3"], "paths": [{ "cmds": [["M", "x1", "y2"], ["L", "sx1", "sy2"], ["L", "x2", "y1"], ["L", "sx3", "sy1"], ["L", "hc", "t"], ["L", "sx4", "sy1"], ["L", "x5", "y1"], ["L", "sx6", "sy2"], ["L", "x6", "y2"], ["L", "sx5", "sy3"], ["L", "x4", "y3"], ["L", "hc", "sy4"], ["L", "x3", "y3"], ["L", "sx2", "sy3"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "star8": { "av": [["adj", "val 37500"]], "gd": [["a", "pin 0 adj 50000"], ["dx1", "cos wd2 2700000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc dx1 0"], ["dy1", "sin hd2 2700000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc dy1 0"], ["iwd2", "*/ wd2 a 50000"], ["ihd2", "*/ hd2 a 50000"], ["sdx1", "*/ iwd2 92388 100000"], ["sdx2", "*/ iwd2 38268 100000"], ["sdy1", "*/ ihd2 92388 100000"], ["sdy2", "*/ ihd2 38268 100000"], ["sx1", "+- hc 0 sdx1"], ["sx2", "+- hc 0 sdx2"], ["sx3", "+- hc sdx2 0"], ["sx4", "+- hc sdx1 0"], ["sy1", "+- vc 0 sdy1"], ["sy2", "+- vc 0 sdy2"], ["sy3", "+- vc sdy2 0"], ["sy4", "+- vc sdy1 0"], ["yAdj", "+- vc 0 ihd2"]], "rect": ["sx1", "sy1", "sx4", "sy4"], "paths": [{ "cmds": [["M", "l", "vc"], ["L", "sx1", "sy2"], ["L", "x1", "y1"], ["L", "sx2", "sy1"], ["L", "hc", "t"], ["L", "sx3", "sy1"], ["L", "x2", "y1"], ["L", "sx4", "sy2"], ["L", "r", "vc"], ["L", "sx4", "sy3"], ["L", "x2", "y2"], ["L", "sx3", "sy4"], ["L", "hc", "b"], ["L", "sx2", "sy4"], ["L", "x1", "y2"], ["L", "sx1", "sy3"], ["Z"]] }], "ah": [["adj", "y", "0", "50000"]] }, "straightConnector1": { "av": [], "gd": [], "rect": ["l", "t", "r", "b"], "paths": [{ "fill": "none", "cmds": [["M", "l", "t"], ["L", "r", "b"]] }] }, "stripedRightArrow": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj2", "*/ 84375 w ss"], ["a1", "pin 0 adj1 100000"], ["a2", "pin 0 adj2 maxAdj2"], ["x4", "*/ ss 5 32"], ["dx5", "*/ ss a2 100000"], ["x5", "+- r 0 dx5"], ["dy1", "*/ h a1 200000"], ["y1", "+- vc 0 dy1"], ["y2", "+- vc dy1 0"], ["dx6", "*/ dy1 dx5 hd2"], ["x6", "+- r 0 dx6"]], "rect": ["x4", "y1", "x6", "y2"], "paths": [{ "cmds": [["M", "l", "y1"], ["L", "ssd32", "y1"], ["L", "ssd32", "y2"], ["L", "l", "y2"], ["Z"], ["M", "ssd16", "y1"], ["L", "ssd8", "y1"], ["L", "ssd8", "y2"], ["L", "ssd16", "y2"], ["Z"], ["M", "x4", "y1"], ["L", "x5", "y1"], ["L", "x5", "t"], ["L", "r", "vc"], ["L", "x5", "b"], ["L", "x5", "y2"], ["L", "x4", "y2"], ["Z"]] }], "ah": [["adj1", "y", "0", "100000"], ["adj2", "x", "0", "maxAdj2"]] }, "sun": { "av": [["adj", "val 25000"]], "gd": [["a", "pin 12500 adj 46875"], ["g0", "+- 50000 0 a"], ["g1", "*/ g0 30274 32768"], ["g2", "*/ g0 12540 32768"], ["g3", "+- g1 50000 0"], ["g4", "+- g2 50000 0"], ["g5", "+- 50000 0 g1"], ["g6", "+- 50000 0 g2"], ["g7", "*/ g0 23170 32768"], ["g8", "+- 50000 g7 0"], ["g9", "+- 50000 0 g7"], ["g10", "*/ g5 3 4"], ["g11", "*/ g6 3 4"], ["g12", "+- g10 3662 0"], ["g13", "+- g11 3662 0"], ["g14", "+- g11 12500 0"], ["g15", "+- 100000 0 g10"], ["g16", "+- 100000 0 g12"], ["g17", "+- 100000 0 g13"], ["g18", "+- 100000 0 g14"], ["ox1", "*/ w 18436 21600"], ["oy1", "*/ h 3163 21600"], ["ox2", "*/ w 3163 21600"], ["oy2", "*/ h 18436 21600"], ["x8", "*/ w g8 100000"], ["x9", "*/ w g9 100000"], ["x10", "*/ w g10 100000"], ["x12", "*/ w g12 100000"], ["x13", "*/ w g13 100000"], ["x14", "*/ w g14 100000"], ["x15", "*/ w g15 100000"], ["x16", "*/ w g16 100000"], ["x17", "*/ w g17 100000"], ["x18", "*/ w g18 100000"], ["x19", "*/ w a 100000"], ["wR", "*/ w g0 100000"], ["hR", "*/ h g0 100000"], ["y8", "*/ h g8 100000"], ["y9", "*/ h g9 100000"], ["y10", "*/ h g10 100000"], ["y12", "*/ h g12 100000"], ["y13", "*/ h g13 100000"], ["y14", "*/ h g14 100000"], ["y15", "*/ h g15 100000"], ["y16", "*/ h g16 100000"], ["y17", "*/ h g17 100000"], ["y18", "*/ h g18 100000"]], "rect": ["x9", "y9", "x8", "y8"], "paths": [{ "cmds": [["M", "r", "vc"], ["L", "x15", "y18"], ["L", "x15", "y14"], ["Z"], ["M", "ox1", "oy1"], ["L", "x16", "y13"], ["L", "x17", "y12"], ["Z"], ["M", "hc", "t"], ["L", "x18", "y10"], ["L", "x14", "y10"], ["Z"], ["M", "ox2", "oy1"], ["L", "x13", "y12"], ["L", "x12", "y13"], ["Z"], ["M", "l", "vc"], ["L", "x10", "y14"], ["L", "x10", "y18"], ["Z"], ["M", "ox2", "oy2"], ["L", "x12", "y17"], ["L", "x13", "y16"], ["Z"], ["M", "hc", "b"], ["L", "x14", "y15"], ["L", "x18", "y15"], ["Z"], ["M", "ox1", "oy2"], ["L", "x17", "y16"], ["L", "x16", "y17"], ["Z"], ["M", "x19", "vc"], ["A", "wR", "hR", "cd2", "21600000"], ["Z"]] }], "ah": [["adj", "x", "12500", "46875"]] }, "swooshArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 16667"]], "gd": [["a1", "pin 1 adj1 75000"], ["maxAdj2", "*/ 70000 w ss"], ["a2", "pin 0 adj2 maxAdj2"], ["ad1", "*/ h a1 100000"], ["ad2", "*/ ss a2 100000"], ["xB", "+- r 0 ad2"], ["yB", "+- t ssd8 0"], ["alfa", "*/ cd4 1 14"], ["dx0", "tan ssd8 alfa"], ["xC", "+- xB 0 dx0"], ["dx1", "tan ad1 alfa"], ["yF", "+- yB ad1 0"], ["xF", "+- xB dx1 0"], ["xE", "+- xF dx0 0"], ["yE", "+- yF ssd8 0"], ["dy2", "+- yE 0 t"], ["dy22", "*/ dy2 1 2"], ["dy3", "*/ h 1 20"], ["yD", "+- t dy22 dy3"], ["dy4", "*/ hd6 1 1"], ["yP1", "+- hd6 dy4 0"], ["xP1", "val wd6"], ["dy5", "*/ hd6 1 2"], ["yP2", "+- yF dy5 0"], ["xP2", "val wd4"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "b"], ["Q", "xP1", "yP1", "xB", "yB"], ["L", "xC", "t"], ["L", "r", "yD"], ["L", "xE", "yE"], ["L", "xF", "yF"], ["Q", "xP2", "yP2", "l", "b"], ["Z"]] }], "ah": [["adj1", "y", "1", "75000"], ["adj2", "x", "0", "maxAdj2"]] }, "teardrop": { "av": [["adj", "val 100000"]], "gd": [["a", "pin 0 adj 200000"], ["r2", "sqrt 2"], ["tw", "*/ wd2 r2 1"], ["th", "*/ hd2 r2 1"], ["sw", "*/ tw a 100000"], ["sh", "*/ th a 100000"], ["dx1", "cos sw 2700000"], ["dy1", "sin sh 2700000"], ["x1", "+- hc dx1 0"], ["y1", "+- vc 0 dy1"], ["x2", "+/ hc x1 2"], ["y2", "+/ vc y1 2"], ["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "vc"], ["A", "wd2", "hd2", "cd2", "cd4"], ["Q", "x2", "t", "x1", "y1"], ["Q", "r", "y2", "r", "vc"], ["A", "wd2", "hd2", "0", "cd4"], ["A", "wd2", "hd2", "cd4", "cd4"], ["Z"]] }], "ah": [["adj", "x", "0", "200000"]] }, "trapezoid": { "av": [["adj", "val 25000"]], "gd": [["maxAdj", "*/ 50000 w ss"], ["a", "pin 0 adj maxAdj"], ["x1", "*/ ss a 200000"], ["x2", "*/ ss a 100000"], ["x3", "+- r 0 x2"], ["x4", "+- r 0 x1"], ["il", "*/ wd3 a maxAdj"], ["it", "*/ hd3 a maxAdj"], ["ir", "+- r 0 il"]], "rect": ["il", "it", "ir", "b"], "paths": [{ "cmds": [["M", "l", "b"], ["L", "x2", "t"], ["L", "x3", "t"], ["L", "r", "b"], ["Z"]] }], "ah": [["adj", "x", "0", "maxAdj"]] }, "triangle": { "av": [["adj", "val 50000"]], "gd": [["a", "pin 0 adj 100000"], ["x1", "*/ w a 200000"], ["x2", "*/ w a 100000"], ["x3", "+- x1 wd2 0"]], "rect": ["x1", "vc", "x3", "b"], "paths": [{ "cmds": [["M", "l", "b"], ["L", "x2", "t"], ["L", "r", "b"], ["Z"]] }], "ah": [["adj", "x", "0", "100000"]] }, "upArrowCallout": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 64977"]], "gd": [["maxAdj2", "*/ 50000 w ss"], ["a2", "pin 0 adj2 maxAdj2"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "*/ 100000 h ss"], ["a3", "pin 0 adj3 maxAdj3"], ["q2", "*/ a3 ss h"], ["maxAdj4", "+- 100000 0 q2"], ["a4", "pin 0 adj4 maxAdj4"], ["dx1", "*/ ss a2 100000"], ["dx2", "*/ ss a1 200000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["y1", "*/ ss a3 100000"], ["dy2", "*/ h a4 100000"], ["y2", "+- b 0 dy2"], ["y3", "+/ y2 b 2"]], "rect": ["l", "y2", "r", "b"], "paths": [{ "cmds": [["M", "l", "y2"], ["L", "x2", "y2"], ["L", "x2", "y1"], ["L", "x1", "y1"], ["L", "hc", "t"], ["L", "x4", "y1"], ["L", "x3", "y1"], ["L", "x3", "y2"], ["L", "r", "y2"], ["L", "r", "b"], ["L", "l", "b"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "x", "0", "maxAdj2"], ["adj3", "y", "0", "maxAdj3"], ["adj4", "y", "0", "maxAdj4"]] }, "upDownArrow": { "av": [["adj1", "val 50000"], ["adj2", "val 50000"]], "gd": [["maxAdj2", "*/ 50000 h ss"], ["a1", "pin 0 adj1 100000"], ["a2", "pin 0 adj2 maxAdj2"], ["y2", "*/ ss a2 100000"], ["y3", "+- b 0 y2"], ["dx1", "*/ w a1 200000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc dx1 0"], ["dy1", "*/ x1 y2 wd2"], ["y1", "+- y2 0 dy1"], ["y4", "+- y3 dy1 0"]], "rect": ["x1", "y1", "x2", "y4"], "paths": [{ "cmds": [["M", "l", "y2"], ["L", "hc", "t"], ["L", "r", "y2"], ["L", "x2", "y2"], ["L", "x2", "y3"], ["L", "r", "y3"], ["L", "hc", "b"], ["L", "l", "y3"], ["L", "x1", "y3"], ["L", "x1", "y2"], ["Z"]] }], "ah": [["adj1", "x", "0", "100000"], ["adj2", "y", "0", "maxAdj2"]] }, "upDownArrowCallout": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 48123"]], "gd": [["maxAdj2", "*/ 50000 w ss"], ["a2", "pin 0 adj2 maxAdj2"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["maxAdj3", "*/ 50000 h ss"], ["a3", "pin 0 adj3 maxAdj3"], ["q2", "*/ a3 ss hd2"], ["maxAdj4", "+- 100000 0 q2"], ["a4", "pin 0 adj4 maxAdj4"], ["dx1", "*/ ss a2 100000"], ["dx2", "*/ ss a1 200000"], ["x1", "+- hc 0 dx1"], ["x2", "+- hc 0 dx2"], ["x3", "+- hc dx2 0"], ["x4", "+- hc dx1 0"], ["y1", "*/ ss a3 100000"], ["y4", "+- b 0 y1"], ["dy2", "*/ h a4 200000"], ["y2", "+- vc 0 dy2"], ["y3", "+- vc dy2 0"]], "rect": ["l", "y2", "r", "y3"], "paths": [{ "cmds": [["M", "l", "y2"], ["L", "x2", "y2"], ["L", "x2", "y1"], ["L", "x1", "y1"], ["L", "hc", "t"], ["L", "x4", "y1"], ["L", "x3", "y1"], ["L", "x3", "y2"], ["L", "r", "y2"], ["L", "r", "y3"], ["L", "x3", "y3"], ["L", "x3", "y4"], ["L", "x4", "y4"], ["L", "hc", "b"], ["L", "x1", "y4"], ["L", "x2", "y4"], ["L", "x2", "y3"], ["L", "l", "y3"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "x", "0", "maxAdj2"], ["adj3", "y", "0", "maxAdj3"], ["adj4", "y", "0", "maxAdj4"]] }, "uturnArrow": { "av": [["adj1", "val 25000"], ["adj2", "val 25000"], ["adj3", "val 25000"], ["adj4", "val 43750"], ["adj5", "val 75000"]], "gd": [["a2", "pin 0 adj2 25000"], ["maxAdj1", "*/ a2 2 1"], ["a1", "pin 0 adj1 maxAdj1"], ["q2", "*/ a1 ss h"], ["q3", "+- 100000 0 q2"], ["maxAdj3", "*/ q3 h ss"], ["a3", "pin 0 adj3 maxAdj3"], ["q1", "+- a3 a1 0"], ["minAdj5", "*/ q1 ss h"], ["a5", "pin minAdj5 adj5 100000"], ["th", "*/ ss a1 100000"], ["aw2", "*/ ss a2 100000"], ["th2", "*/ th 1 2"], ["dh2", "+- aw2 0 th2"], ["y5", "*/ h a5 100000"], ["ah", "*/ ss a3 100000"], ["y4", "+- y5 0 ah"], ["x9", "+- r 0 dh2"], ["bw", "*/ x9 1 2"], ["bs", "min bw y4"], ["maxAdj4", "*/ bs 100000 ss"], ["a4", "pin 0 adj4 maxAdj4"], ["bd", "*/ ss a4 100000"], ["bd3", "+- bd 0 th"], ["bd2", "max bd3 0"], ["x3", "+- th bd2 0"], ["x8", "+- r 0 aw2"], ["x6", "+- x8 0 aw2"], ["x7", "+- x6 dh2 0"], ["x4", "+- x9 0 bd"], ["x5", "+- x7 0 bd2"], ["cx", "+/ th x7 2"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "b"], ["L", "l", "bd"], ["A", "bd", "bd", "cd2", "cd4"], ["L", "x4", "t"], ["A", "bd", "bd", "3cd4", "cd4"], ["L", "x9", "y4"], ["L", "r", "y4"], ["L", "x8", "y5"], ["L", "x6", "y4"], ["L", "x7", "y4"], ["L", "x7", "x3"], ["A", "bd2", "bd2", "0", "-5400000"], ["L", "x3", "th"], ["A", "bd2", "bd2", "3cd4", "-5400000"], ["L", "th", "b"], ["Z"]] }], "ah": [["adj1", "x", "0", "maxAdj1"], ["adj2", "x", "0", "25000"], ["adj3", "y", "0", "maxAdj3"], ["adj4", "x", "0", "maxAdj4"], ["adj5", "y", "minAdj5", "100000"]] }, "verticalScroll": { "av": [["adj", "val 12500"]], "gd": [["a", "pin 0 adj 25000"], ["ch", "*/ ss a 100000"], ["ch2", "*/ ch 1 2"], ["ch4", "*/ ch 1 4"], ["x3", "+- ch ch2 0"], ["x4", "+- ch ch 0"], ["x6", "+- r 0 ch"], ["x7", "+- r 0 ch2"], ["x5", "+- x6 0 ch2"], ["y3", "+- b 0 ch"], ["y4", "+- b 0 ch2"]], "rect": ["ch", "ch", "x6", "y4"], "paths": [{ "stroke": false, "cmds": [["M", "ch2", "b"], ["A", "ch2", "ch2", "cd4", "-5400000"], ["L", "ch2", "y4"], ["A", "ch4", "ch4", "cd4", "-10800000"], ["L", "ch", "y3"], ["L", "ch", "ch2"], ["A", "ch2", "ch2", "cd2", "cd4"], ["L", "x7", "t"], ["A", "ch2", "ch2", "3cd4", "cd2"], ["L", "x6", "ch"], ["L", "x6", "y4"], ["A", "ch2", "ch2", "0", "cd4"], ["Z"], ["M", "x4", "ch2"], ["A", "ch2", "ch2", "0", "cd4"], ["A", "ch4", "ch4", "cd4", "cd2"], ["Z"]] }, { "fill": "darkenLess", "stroke": false, "cmds": [["M", "x4", "ch2"], ["A", "ch2", "ch2", "0", "cd4"], ["A", "ch4", "ch4", "cd4", "cd2"], ["Z"], ["M", "ch", "y4"], ["A", "ch2", "ch2", "0", "3cd4"], ["A", "ch4", "ch4", "3cd4", "cd2"], ["Z"]] }, { "fill": "none", "cmds": [["M", "ch", "y3"], ["L", "ch", "ch2"], ["A", "ch2", "ch2", "cd2", "cd4"], ["L", "x7", "t"], ["A", "ch2", "ch2", "3cd4", "cd2"], ["L", "x6", "ch"], ["L", "x6", "y4"], ["A", "ch2", "ch2", "0", "cd4"], ["L", "ch2", "b"], ["A", "ch2", "ch2", "cd4", "cd2"], ["Z"], ["M", "x3", "t"], ["A", "ch2", "ch2", "3cd4", "cd2"], ["A", "ch4", "ch4", "cd4", "cd2"], ["L", "x4", "ch2"], ["M", "x6", "ch"], ["L", "x3", "ch"], ["M", "ch2", "y3"], ["A", "ch4", "ch4", "3cd4", "cd2"], ["L", "ch", "y4"], ["M", "ch2", "b"], ["A", "ch2", "ch2", "cd4", "-5400000"], ["L", "ch", "y3"]] }], "ah": [["adj", "y", "0", "25000"]] }, "wave": { "av": [["adj1", "val 12500"], ["adj2", "val 0"]], "gd": [["a1", "pin 0 adj1 20000"], ["a2", "pin -10000 adj2 10000"], ["y1", "*/ h a1 100000"], ["dy2", "*/ y1 10 3"], ["y2", "+- y1 0 dy2"], ["y3", "+- y1 dy2 0"], ["y4", "+- b 0 y1"], ["y5", "+- y4 0 dy2"], ["y6", "+- y4 dy2 0"], ["dx1", "*/ w a2 100000"], ["of2", "*/ w a2 50000"], ["x1", "abs dx1"], ["dx2", "?: of2 0 of2"], ["x2", "+- l 0 dx2"], ["dx5", "?: of2 of2 0"], ["x5", "+- r 0 dx5"], ["dx3", "+/ dx2 x5 3"], ["x3", "+- x2 dx3 0"], ["x4", "+/ x3 x5 2"], ["x6", "+- l dx5 0"], ["x10", "+- r dx2 0"], ["x7", "+- x6 dx3 0"], ["x8", "+/ x7 x10 2"], ["x9", "+- r 0 x1"], ["xAdj", "+- hc dx1 0"], ["xAdj2", "+- hc 0 dx1"], ["il", "max x2 x6"], ["ir", "min x5 x10"], ["it", "*/ h a1 50000"], ["ib", "+- b 0 it"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "x2", "y1"], ["C", "x3", "y2", "x4", "y3", "x5", "y1"], ["L", "x10", "y4"], ["C", "x8", "y6", "x7", "y5", "x6", "y4"], ["Z"]] }], "ah": [["adj1", "y", "0", "20000"], ["adj2", "x", "-10000", "10000"]] }, "wedgeEllipseCallout": { "av": [["adj1", "val -20833"], ["adj2", "val 62500"]], "gd": [["dxPos", "*/ w adj1 100000"], ["dyPos", "*/ h adj2 100000"], ["xPos", "+- hc dxPos 0"], ["yPos", "+- vc dyPos 0"], ["sdx", "*/ dxPos h 1"], ["sdy", "*/ dyPos w 1"], ["pang", "at2 sdx sdy"], ["stAng", "+- pang 660000 0"], ["enAng", "+- pang 0 660000"], ["dx1", "cos wd2 stAng"], ["dy1", "sin hd2 stAng"], ["x1", "+- hc dx1 0"], ["y1", "+- vc dy1 0"], ["dx2", "cos wd2 enAng"], ["dy2", "sin hd2 enAng"], ["x2", "+- hc dx2 0"], ["y2", "+- vc dy2 0"], ["stAng1", "at2 dx1 dy1"], ["enAng1", "at2 dx2 dy2"], ["swAng1", "+- enAng1 0 stAng1"], ["swAng2", "+- swAng1 21600000 0"], ["swAng", "?: swAng1 swAng1 swAng2"], ["idx", "cos wd2 2700000"], ["idy", "sin hd2 2700000"], ["il", "+- hc 0 idx"], ["ir", "+- hc idx 0"], ["it", "+- vc 0 idy"], ["ib", "+- vc idy 0"]], "rect": ["il", "it", "ir", "ib"], "paths": [{ "cmds": [["M", "xPos", "yPos"], ["L", "x1", "y1"], ["A", "wd2", "hd2", "stAng1", "swAng"], ["Z"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"]] }, "wedgeRectCallout": { "av": [["adj1", "val -20833"], ["adj2", "val 62500"]], "gd": [["dxPos", "*/ w adj1 100000"], ["dyPos", "*/ h adj2 100000"], ["xPos", "+- hc dxPos 0"], ["yPos", "+- vc dyPos 0"], ["dx", "+- xPos 0 hc"], ["dy", "+- yPos 0 vc"], ["dq", "*/ dxPos h w"], ["ady", "abs dyPos"], ["adq", "abs dq"], ["dz", "+- ady 0 adq"], ["xg1", "?: dxPos 7 2"], ["xg2", "?: dxPos 10 5"], ["x1", "*/ w xg1 12"], ["x2", "*/ w xg2 12"], ["yg1", "?: dyPos 7 2"], ["yg2", "?: dyPos 10 5"], ["y1", "*/ h yg1 12"], ["y2", "*/ h yg2 12"], ["t1", "?: dxPos l xPos"], ["xl", "?: dz l t1"], ["t2", "?: dyPos x1 xPos"], ["xt", "?: dz t2 x1"], ["t3", "?: dxPos xPos r"], ["xr", "?: dz r t3"], ["t4", "?: dyPos xPos x1"], ["xb", "?: dz t4 x1"], ["t5", "?: dxPos y1 yPos"], ["yl", "?: dz y1 t5"], ["t6", "?: dyPos t yPos"], ["yt", "?: dz t6 t"], ["t7", "?: dxPos yPos y1"], ["yr", "?: dz y1 t7"], ["t8", "?: dyPos yPos b"], ["yb", "?: dz t8 b"]], "rect": ["l", "t", "r", "b"], "paths": [{ "cmds": [["M", "l", "t"], ["L", "x1", "t"], ["L", "xt", "yt"], ["L", "x2", "t"], ["L", "r", "t"], ["L", "r", "y1"], ["L", "xr", "yr"], ["L", "r", "y2"], ["L", "r", "b"], ["L", "x2", "b"], ["L", "xb", "yb"], ["L", "x1", "b"], ["L", "l", "b"], ["L", "l", "y2"], ["L", "xl", "yl"], ["L", "l", "y1"], ["Z"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"]] }, "wedgeRoundRectCallout": { "av": [["adj1", "val -20833"], ["adj2", "val 62500"], ["adj3", "val 16667"]], "gd": [["dxPos", "*/ w adj1 100000"], ["dyPos", "*/ h adj2 100000"], ["xPos", "+- hc dxPos 0"], ["yPos", "+- vc dyPos 0"], ["dq", "*/ dxPos h w"], ["ady", "abs dyPos"], ["adq", "abs dq"], ["dz", "+- ady 0 adq"], ["xg1", "?: dxPos 7 2"], ["xg2", "?: dxPos 10 5"], ["x1", "*/ w xg1 12"], ["x2", "*/ w xg2 12"], ["yg1", "?: dyPos 7 2"], ["yg2", "?: dyPos 10 5"], ["y1", "*/ h yg1 12"], ["y2", "*/ h yg2 12"], ["t1", "?: dxPos l xPos"], ["xl", "?: dz l t1"], ["t2", "?: dyPos x1 xPos"], ["xt", "?: dz t2 x1"], ["t3", "?: dxPos xPos r"], ["xr", "?: dz r t3"], ["t4", "?: dyPos xPos x1"], ["xb", "?: dz t4 x1"], ["t5", "?: dxPos y1 yPos"], ["yl", "?: dz y1 t5"], ["t6", "?: dyPos t yPos"], ["yt", "?: dz t6 t"], ["t7", "?: dxPos yPos y1"], ["yr", "?: dz y1 t7"], ["t8", "?: dyPos yPos b"], ["yb", "?: dz t8 b"], ["u1", "*/ ss adj3 100000"], ["u2", "+- r 0 u1"], ["v2", "+- b 0 u1"], ["il", "*/ u1 29289 100000"], ["ir", "+- r 0 il"], ["ib", "+- b 0 il"]], "rect": ["il", "il", "ir", "ib"], "paths": [{ "cmds": [["M", "l", "u1"], ["A", "u1", "u1", "cd2", "cd4"], ["L", "x1", "t"], ["L", "xt", "yt"], ["L", "x2", "t"], ["L", "u2", "t"], ["A", "u1", "u1", "3cd4", "cd4"], ["L", "r", "y1"], ["L", "xr", "yr"], ["L", "r", "y2"], ["L", "r", "v2"], ["A", "u1", "u1", "0", "cd4"], ["L", "x2", "b"], ["L", "xb", "yb"], ["L", "x1", "b"], ["L", "u1", "b"], ["A", "u1", "u1", "cd4", "cd4"], ["L", "l", "y2"], ["L", "xl", "yl"], ["L", "l", "y1"], ["Z"]] }], "ah": [["adj1", "x", "-2147483647", "2147483647"], ["adj2", "y", "-2147483647", "2147483647"]] } };
|
|
874
|
+
|
|
875
|
+
// ../ooxml-core/src/drawingml-geometry.ts
|
|
876
|
+
var PATH_FILL_MODES = /* @__PURE__ */ new Set([
|
|
877
|
+
"none",
|
|
878
|
+
"norm",
|
|
879
|
+
"lighten",
|
|
880
|
+
"lightenLess",
|
|
881
|
+
"darken",
|
|
882
|
+
"darkenLess"
|
|
883
|
+
]);
|
|
884
|
+
var DRAWINGML_MAIN_NAMESPACE_URI = "http://schemas.openxmlformats.org/drawingml/2006/main";
|
|
885
|
+
var ANGLE = 6e4;
|
|
886
|
+
var DEG = Math.PI / 180;
|
|
887
|
+
function builtins(w, h) {
|
|
888
|
+
const ss = Math.min(w, h);
|
|
889
|
+
const ls = Math.max(w, h);
|
|
890
|
+
const m = /* @__PURE__ */ new Map([
|
|
891
|
+
["w", w],
|
|
892
|
+
["h", h],
|
|
893
|
+
["l", 0],
|
|
894
|
+
["t", 0],
|
|
895
|
+
["r", w],
|
|
896
|
+
["b", h],
|
|
897
|
+
["hc", w / 2],
|
|
898
|
+
["vc", h / 2],
|
|
899
|
+
["ss", ss],
|
|
900
|
+
["ls", ls],
|
|
901
|
+
["cd2", 108e5],
|
|
902
|
+
["cd4", 54e5],
|
|
903
|
+
["cd8", 27e5],
|
|
904
|
+
["3cd4", 162e5],
|
|
905
|
+
["3cd8", 81e5],
|
|
906
|
+
["5cd8", 135e5],
|
|
907
|
+
["7cd8", 189e5]
|
|
908
|
+
]);
|
|
909
|
+
for (const n of [2, 3, 4, 5, 6, 8, 10, 12, 16, 32]) {
|
|
910
|
+
m.set(`wd${n}`, w / n);
|
|
911
|
+
m.set(`hd${n}`, h / n);
|
|
912
|
+
m.set(`ssd${n}`, ss / n);
|
|
913
|
+
}
|
|
914
|
+
return m;
|
|
915
|
+
}
|
|
916
|
+
function parseFormula(fmla) {
|
|
917
|
+
const parts = fmla.trim().split(/\s+/);
|
|
918
|
+
return { op: parts[0] ?? "", args: parts.slice(1, 4) };
|
|
919
|
+
}
|
|
920
|
+
function operand(token, vars) {
|
|
921
|
+
if (token === void 0) return 0;
|
|
922
|
+
const v = vars.get(token);
|
|
923
|
+
if (v !== void 0) return v;
|
|
924
|
+
const n = Number(token);
|
|
925
|
+
return Number.isFinite(n) ? n : 0;
|
|
926
|
+
}
|
|
927
|
+
function applyFormula(f, vars) {
|
|
928
|
+
const r = formulaValue(f.op, operand(f.args[0], vars), f.args, vars);
|
|
929
|
+
return Number.isFinite(r) ? r : 0;
|
|
930
|
+
}
|
|
931
|
+
function formulaValue(op, x, args, vars) {
|
|
932
|
+
const y = operand(args[1], vars);
|
|
933
|
+
const z = operand(args[2], vars);
|
|
934
|
+
switch (op) {
|
|
935
|
+
case "val":
|
|
936
|
+
return x;
|
|
937
|
+
case "*/":
|
|
938
|
+
return z === 0 ? 0 : x * y / z;
|
|
939
|
+
case "+-":
|
|
940
|
+
return x + y - z;
|
|
941
|
+
case "+/":
|
|
942
|
+
return z === 0 ? 0 : (x + y) / z;
|
|
943
|
+
case "?:":
|
|
944
|
+
return x > 0 ? y : z;
|
|
945
|
+
case "abs":
|
|
946
|
+
return Math.abs(x);
|
|
947
|
+
case "at2":
|
|
948
|
+
return Math.atan2(y, x) / DEG * ANGLE;
|
|
949
|
+
case "cat2":
|
|
950
|
+
return x * Math.cos(Math.atan2(z, y));
|
|
951
|
+
case "sat2":
|
|
952
|
+
return x * Math.sin(Math.atan2(z, y));
|
|
953
|
+
case "cos":
|
|
954
|
+
return x * Math.cos(y / ANGLE * DEG);
|
|
955
|
+
case "sin":
|
|
956
|
+
return x * Math.sin(y / ANGLE * DEG);
|
|
957
|
+
case "tan":
|
|
958
|
+
return x * Math.tan(y / ANGLE * DEG);
|
|
959
|
+
case "max":
|
|
960
|
+
return Math.max(x, y);
|
|
961
|
+
case "min":
|
|
962
|
+
return Math.min(x, y);
|
|
963
|
+
case "mod":
|
|
964
|
+
return Math.sqrt(x * x + y * y + z * z);
|
|
965
|
+
case "pin":
|
|
966
|
+
return y < x ? x : y > z ? z : y;
|
|
967
|
+
case "sqrt":
|
|
968
|
+
return Math.sqrt(Math.max(0, x));
|
|
969
|
+
}
|
|
970
|
+
return 0;
|
|
971
|
+
}
|
|
972
|
+
var MAX_GUIDES = 4096;
|
|
973
|
+
var MAX_COMMANDS = 1e5;
|
|
974
|
+
var MAX_GEOMETRY_COMMANDS = 1e5;
|
|
975
|
+
var FULL_TURN = 216e5;
|
|
976
|
+
var parsedGuides = /* @__PURE__ */ new WeakMap();
|
|
977
|
+
function parseGuides(guides) {
|
|
978
|
+
let parsed = parsedGuides.get(guides);
|
|
979
|
+
if (!parsed) {
|
|
980
|
+
parsed = [];
|
|
981
|
+
for (const [name, fmla] of guides) {
|
|
982
|
+
if (parsed.length >= MAX_GUIDES) break;
|
|
983
|
+
parsed.push({ name, ...parseFormula(fmla) });
|
|
984
|
+
}
|
|
985
|
+
parsedGuides.set(guides, parsed);
|
|
986
|
+
}
|
|
987
|
+
return parsed;
|
|
988
|
+
}
|
|
989
|
+
function defineGuides(vars, guides, overrides) {
|
|
990
|
+
for (const g of parseGuides(guides)) {
|
|
991
|
+
const over = overrides?.get(g.name);
|
|
992
|
+
vars.set(
|
|
993
|
+
g.name,
|
|
994
|
+
over !== void 0 ? Number.isFinite(over) ? over : 0 : applyFormula(g, vars)
|
|
995
|
+
);
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
function boundedSweep(swAng) {
|
|
999
|
+
if (!Number.isFinite(swAng)) return 0;
|
|
1000
|
+
const turn = FULL_TURN / ANGLE;
|
|
1001
|
+
const size = Math.abs(swAng);
|
|
1002
|
+
return size <= turn ? swAng : Math.sign(swAng) * (turn + size % turn);
|
|
1003
|
+
}
|
|
1004
|
+
function emit(sink, cmd) {
|
|
1005
|
+
if (sink.budget.left <= 0) return false;
|
|
1006
|
+
sink.budget.left -= 1;
|
|
1007
|
+
sink.out.push(cmd);
|
|
1008
|
+
return true;
|
|
1009
|
+
}
|
|
1010
|
+
function arcToBeziers(x0, y0, wR, hR, stAng, swAng, sink) {
|
|
1011
|
+
if (wR === 0 || hR === 0) return { x: x0, y: y0 };
|
|
1012
|
+
const sw = boundedSweep(swAng);
|
|
1013
|
+
const param = (a2) => Math.atan2(wR * Math.sin(a2), hR * Math.cos(a2));
|
|
1014
|
+
const st = stAng * DEG;
|
|
1015
|
+
const t0 = param(st);
|
|
1016
|
+
const endVisual = st + sw * DEG;
|
|
1017
|
+
let t1 = param(endVisual);
|
|
1018
|
+
const turns = Math.trunc(sw / 360);
|
|
1019
|
+
t1 += turns * 2 * Math.PI;
|
|
1020
|
+
let sweep = t1 - t0;
|
|
1021
|
+
if (sw > 0 && sweep <= 0) sweep += 2 * Math.PI;
|
|
1022
|
+
if (sw < 0 && sweep >= 0) sweep -= 2 * Math.PI;
|
|
1023
|
+
if (sw === 0) sweep = 0;
|
|
1024
|
+
const cx = x0 - wR * Math.cos(t0);
|
|
1025
|
+
const cy = y0 - hR * Math.sin(t0);
|
|
1026
|
+
const segments = Math.min(16, Math.max(1, Math.ceil(Math.abs(sweep) / (Math.PI / 2))));
|
|
1027
|
+
const step = sweep / segments;
|
|
1028
|
+
const k = 4 / 3 * Math.tan(step / 4);
|
|
1029
|
+
const { sx, sy } = sink;
|
|
1030
|
+
let a = t0;
|
|
1031
|
+
let px = x0;
|
|
1032
|
+
let py = y0;
|
|
1033
|
+
for (let i = 0; i < segments; i += 1) {
|
|
1034
|
+
const b = a + step;
|
|
1035
|
+
const x = cx + wR * Math.cos(b);
|
|
1036
|
+
const y = cy + hR * Math.sin(b);
|
|
1037
|
+
const pushed = emit(sink, {
|
|
1038
|
+
op: "C",
|
|
1039
|
+
x1: (px - k * wR * Math.sin(a)) * sx,
|
|
1040
|
+
y1: (py + k * hR * Math.cos(a)) * sy,
|
|
1041
|
+
x2: (x + k * wR * Math.sin(b)) * sx,
|
|
1042
|
+
y2: (y - k * hR * Math.cos(b)) * sy,
|
|
1043
|
+
x: x * sx,
|
|
1044
|
+
y: y * sy
|
|
1045
|
+
});
|
|
1046
|
+
if (!pushed) break;
|
|
1047
|
+
px = x;
|
|
1048
|
+
py = y;
|
|
1049
|
+
a = b;
|
|
1050
|
+
}
|
|
1051
|
+
return { x: px, y: py };
|
|
1052
|
+
}
|
|
1053
|
+
function evaluatePath(path, vars, w, h, budget) {
|
|
1054
|
+
const sink = {
|
|
1055
|
+
out: [],
|
|
1056
|
+
sx: path.w ? w / path.w : 1,
|
|
1057
|
+
sy: path.h ? h / path.h : 1,
|
|
1058
|
+
budget
|
|
1059
|
+
};
|
|
1060
|
+
const { sx, sy } = sink;
|
|
1061
|
+
const v = (token) => operand(token, vars);
|
|
1062
|
+
let cur = { x: 0, y: 0 };
|
|
1063
|
+
let start = cur;
|
|
1064
|
+
let open = false;
|
|
1065
|
+
const cmds = path.cmds;
|
|
1066
|
+
const n = Math.min(cmds.length, MAX_COMMANDS);
|
|
1067
|
+
for (let i = 0; i < n && budget.left > 0; i += 1) {
|
|
1068
|
+
const cmd = cmds[i];
|
|
1069
|
+
switch (cmd[0]) {
|
|
1070
|
+
case "M":
|
|
1071
|
+
cur = { x: v(cmd[1]), y: v(cmd[2]) };
|
|
1072
|
+
start = cur;
|
|
1073
|
+
open = true;
|
|
1074
|
+
emit(sink, { op: "M", x: cur.x * sx, y: cur.y * sy });
|
|
1075
|
+
break;
|
|
1076
|
+
case "L":
|
|
1077
|
+
if (!open) break;
|
|
1078
|
+
cur = { x: v(cmd[1]), y: v(cmd[2]) };
|
|
1079
|
+
emit(sink, { op: "L", x: cur.x * sx, y: cur.y * sy });
|
|
1080
|
+
break;
|
|
1081
|
+
case "A":
|
|
1082
|
+
if (!open) break;
|
|
1083
|
+
cur = arcToBeziers(
|
|
1084
|
+
cur.x,
|
|
1085
|
+
cur.y,
|
|
1086
|
+
v(cmd[1]),
|
|
1087
|
+
v(cmd[2]),
|
|
1088
|
+
v(cmd[3]) / ANGLE,
|
|
1089
|
+
v(cmd[4]) / ANGLE,
|
|
1090
|
+
sink
|
|
1091
|
+
);
|
|
1092
|
+
break;
|
|
1093
|
+
case "Q": {
|
|
1094
|
+
if (!open) break;
|
|
1095
|
+
const x = v(cmd[3]);
|
|
1096
|
+
const y = v(cmd[4]);
|
|
1097
|
+
emit(sink, { op: "Q", x1: v(cmd[1]) * sx, y1: v(cmd[2]) * sy, x: x * sx, y: y * sy });
|
|
1098
|
+
cur = { x, y };
|
|
1099
|
+
break;
|
|
1100
|
+
}
|
|
1101
|
+
case "C": {
|
|
1102
|
+
if (!open) break;
|
|
1103
|
+
const x = v(cmd[5]);
|
|
1104
|
+
const y = v(cmd[6]);
|
|
1105
|
+
emit(sink, {
|
|
1106
|
+
op: "C",
|
|
1107
|
+
x1: v(cmd[1]) * sx,
|
|
1108
|
+
y1: v(cmd[2]) * sy,
|
|
1109
|
+
x2: v(cmd[3]) * sx,
|
|
1110
|
+
y2: v(cmd[4]) * sy,
|
|
1111
|
+
x: x * sx,
|
|
1112
|
+
y: y * sy
|
|
1113
|
+
});
|
|
1114
|
+
cur = { x, y };
|
|
1115
|
+
break;
|
|
1116
|
+
}
|
|
1117
|
+
case "Z":
|
|
1118
|
+
if (open) emit(sink, { op: "Z" });
|
|
1119
|
+
cur = start;
|
|
1120
|
+
break;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
return { commands: sink.out, fill: path.fill ?? "norm", stroke: path.stroke !== false };
|
|
1124
|
+
}
|
|
1125
|
+
function evaluateGeometry(def, w, h, adjust) {
|
|
1126
|
+
const vars = builtins(w, h);
|
|
1127
|
+
defineGuides(vars, def.av, adjust);
|
|
1128
|
+
defineGuides(vars, def.gd);
|
|
1129
|
+
const budget = { left: MAX_GEOMETRY_COMMANDS };
|
|
1130
|
+
const paths = def.paths.map((p) => evaluatePath(p, vars, w, h, budget));
|
|
1131
|
+
const rv = (t, d) => vars.get(t) ?? (Number.isFinite(Number(t)) ? Number(t) : d);
|
|
1132
|
+
const textRect = def.rect ? { l: rv(def.rect[0], 0), t: rv(def.rect[1], 0), r: rv(def.rect[2], w), b: rv(def.rect[3], h) } : { l: 0, t: 0, r: w, b: h };
|
|
1133
|
+
return { paths, textRect };
|
|
1134
|
+
}
|
|
1135
|
+
var MIRRORED_PRESETS = { upArrow: "downArrow" };
|
|
1136
|
+
function mirrorVertically(g, h) {
|
|
1137
|
+
const y = (v) => h - v;
|
|
1138
|
+
return {
|
|
1139
|
+
...g,
|
|
1140
|
+
paths: g.paths.map((p) => ({
|
|
1141
|
+
...p,
|
|
1142
|
+
commands: p.commands.map(
|
|
1143
|
+
(c) => c.op === "Z" ? c : c.op === "C" ? { ...c, y1: y(c.y1), y2: y(c.y2), y: y(c.y) } : c.op === "Q" ? { ...c, y1: y(c.y1), y: y(c.y) } : { ...c, y: y(c.y) }
|
|
1144
|
+
)
|
|
1145
|
+
})),
|
|
1146
|
+
textRect: { ...g.textRect, t: y(g.textRect.b), b: y(g.textRect.t) }
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
var own = (record2, key) => Object.prototype.hasOwnProperty.call(record2, key);
|
|
1150
|
+
function evaluatePresetGeometry(name, w, h, adjust) {
|
|
1151
|
+
const mirror = own(MIRRORED_PRESETS, name) ? MIRRORED_PRESETS[name] : void 0;
|
|
1152
|
+
if (mirror) return mirrorVertically(evaluateGeometry(PRESET_SHAPES[mirror], w, h, adjust), h);
|
|
1153
|
+
const def = own(PRESET_SHAPES, name) ? PRESET_SHAPES[name] : void 0;
|
|
1154
|
+
if (!def)
|
|
1155
|
+
return {
|
|
1156
|
+
...evaluateGeometry(PRESET_SHAPES.rect, w, h, /* @__PURE__ */ new Map()),
|
|
1157
|
+
unknownPreset: name
|
|
1158
|
+
};
|
|
1159
|
+
return evaluateGeometry(def, w, h, adjust);
|
|
1160
|
+
}
|
|
1161
|
+
function drawingChild(el, localName) {
|
|
1162
|
+
if (!el) return void 0;
|
|
1163
|
+
for (const c of el.childElements())
|
|
1164
|
+
if (c.namespaceUri === DRAWINGML_MAIN_NAMESPACE_URI && c.localName === localName) return c;
|
|
1165
|
+
return void 0;
|
|
1166
|
+
}
|
|
1167
|
+
function drawingChildren(el, localName) {
|
|
1168
|
+
if (!el) return [];
|
|
1169
|
+
const out = [];
|
|
1170
|
+
for (const c of el.childElements())
|
|
1171
|
+
if (c.namespaceUri === DRAWINGML_MAIN_NAMESPACE_URI && c.localName === localName) out.push(c);
|
|
1172
|
+
return out;
|
|
1173
|
+
}
|
|
1174
|
+
function pathSize(raw) {
|
|
1175
|
+
if (raw === void 0 || !/^-?\d{1,15}$/.test(raw.trim())) return void 0;
|
|
1176
|
+
const v = Number(raw);
|
|
1177
|
+
return Number.isSafeInteger(v) ? v : void 0;
|
|
1178
|
+
}
|
|
1179
|
+
function customGeometryDefinition(cust) {
|
|
1180
|
+
const guides = (list) => drawingChildren(list, "gd").map((g) => [
|
|
1181
|
+
g.attribute("name") ?? "",
|
|
1182
|
+
g.attribute("fmla") ?? "val 0"
|
|
1183
|
+
]);
|
|
1184
|
+
const rect = drawingChild(cust, "rect");
|
|
1185
|
+
const paths = drawingChildren(drawingChild(cust, "pathLst"), "path").map((p) => {
|
|
1186
|
+
const cmds = [];
|
|
1187
|
+
for (const c of p.childElements()) {
|
|
1188
|
+
const pts = drawingChildren(c, "pt").map(
|
|
1189
|
+
(pt2) => [pt2.attribute("x") ?? "0", pt2.attribute("y") ?? "0"]
|
|
1190
|
+
);
|
|
1191
|
+
switch (c.localName) {
|
|
1192
|
+
case "moveTo":
|
|
1193
|
+
if (pts[0]) cmds.push(["M", pts[0][0], pts[0][1]]);
|
|
1194
|
+
break;
|
|
1195
|
+
case "lnTo":
|
|
1196
|
+
if (pts[0]) cmds.push(["L", pts[0][0], pts[0][1]]);
|
|
1197
|
+
break;
|
|
1198
|
+
case "arcTo":
|
|
1199
|
+
cmds.push([
|
|
1200
|
+
"A",
|
|
1201
|
+
c.attribute("wR") ?? "0",
|
|
1202
|
+
c.attribute("hR") ?? "0",
|
|
1203
|
+
c.attribute("stAng") ?? "0",
|
|
1204
|
+
c.attribute("swAng") ?? "0"
|
|
1205
|
+
]);
|
|
1206
|
+
break;
|
|
1207
|
+
case "quadBezTo":
|
|
1208
|
+
if (pts[1]) cmds.push(["Q", pts[0][0], pts[0][1], pts[1][0], pts[1][1]]);
|
|
1209
|
+
break;
|
|
1210
|
+
case "cubicBezTo":
|
|
1211
|
+
if (pts[2])
|
|
1212
|
+
cmds.push(["C", pts[0][0], pts[0][1], pts[1][0], pts[1][1], pts[2][0], pts[2][1]]);
|
|
1213
|
+
break;
|
|
1214
|
+
case "close":
|
|
1215
|
+
cmds.push(["Z"]);
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
const fill = p.attribute("fill");
|
|
1220
|
+
const stroke = p.attribute("stroke");
|
|
1221
|
+
const w = pathSize(p.attribute("w"));
|
|
1222
|
+
const h = pathSize(p.attribute("h"));
|
|
1223
|
+
return {
|
|
1224
|
+
...w ? { w } : {},
|
|
1225
|
+
...h ? { h } : {},
|
|
1226
|
+
// A fill mode outside `ST_PathFillMode` reads as the default, `norm`.
|
|
1227
|
+
...fill && PATH_FILL_MODES.has(fill) ? { fill } : {},
|
|
1228
|
+
...stroke === "0" || stroke === "false" ? { stroke: false } : {},
|
|
1229
|
+
cmds
|
|
1230
|
+
};
|
|
1231
|
+
});
|
|
1232
|
+
return {
|
|
1233
|
+
av: guides(drawingChild(cust, "avLst")),
|
|
1234
|
+
gd: guides(drawingChild(cust, "gdLst")),
|
|
1235
|
+
...rect ? {
|
|
1236
|
+
rect: [
|
|
1237
|
+
rect.attribute("l") ?? "l",
|
|
1238
|
+
rect.attribute("t") ?? "t",
|
|
1239
|
+
rect.attribute("r") ?? "r",
|
|
1240
|
+
rect.attribute("b") ?? "b"
|
|
1241
|
+
]
|
|
1242
|
+
} : {},
|
|
1243
|
+
paths
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
// src/layout/metrics.ts
|
|
1248
|
+
var PRINT_PROFILE = Object.freeze({
|
|
1249
|
+
pixelsPerInch: 72,
|
|
1250
|
+
rowPadding: 2,
|
|
1251
|
+
rowScale: 14 / 15
|
|
1252
|
+
});
|
|
1253
|
+
var SCREEN_PROFILE = Object.freeze({
|
|
1254
|
+
pixelsPerInch: 72,
|
|
1255
|
+
rowPadding: 2,
|
|
1256
|
+
rowScale: 1
|
|
1257
|
+
});
|
|
1258
|
+
var zoomProfile = (zoom) => ({
|
|
1259
|
+
...SCREEN_PROFILE,
|
|
1260
|
+
pixelsPerInch: 96 * zoom
|
|
1261
|
+
});
|
|
1262
|
+
var DIGITS = "0123456789";
|
|
1263
|
+
var FONT_CACHE_LIMIT = 4096;
|
|
1264
|
+
var fontCaches = /* @__PURE__ */ new WeakMap();
|
|
1265
|
+
function fontPixels(measurer, font, profile) {
|
|
1266
|
+
let cache = fontCaches.get(measurer);
|
|
1267
|
+
if (!cache) {
|
|
1268
|
+
cache = /* @__PURE__ */ new Map();
|
|
1269
|
+
fontCaches.set(measurer, cache);
|
|
1270
|
+
}
|
|
1271
|
+
const key = `${font.family}\0${font.bold}|${font.italic}|${font.sizePt}|${profile.pixelsPerInch}`;
|
|
1272
|
+
const hit = cache.get(key);
|
|
1273
|
+
if (hit) return hit;
|
|
1274
|
+
if (cache.size >= FONT_CACHE_LIMIT) cache.clear();
|
|
1275
|
+
const facts = measureFont(measurer, font, profile);
|
|
1276
|
+
cache.set(key, facts);
|
|
1277
|
+
return facts;
|
|
1278
|
+
}
|
|
1279
|
+
function measureFont(measurer, font, profile) {
|
|
1280
|
+
const face = measurer.resolve({ family: font.family, bold: font.bold, italic: font.italic });
|
|
1281
|
+
const sizePx = font.sizePt * profile.pixelsPerInch / 72;
|
|
1282
|
+
const ascent = Math.round(face.metrics.ascent * sizePx);
|
|
1283
|
+
const descent = Math.round(face.metrics.descent * sizePx);
|
|
1284
|
+
let widest = 0;
|
|
1285
|
+
for (const advance of measurer.advances(face, DIGITS)) widest = Math.max(widest, advance);
|
|
1286
|
+
return {
|
|
1287
|
+
face,
|
|
1288
|
+
sizePx,
|
|
1289
|
+
ascent,
|
|
1290
|
+
descent,
|
|
1291
|
+
lineHeight: ascent + descent,
|
|
1292
|
+
maxDigitWidth: Math.max(1, Math.round(widest * sizePx))
|
|
1293
|
+
};
|
|
1294
|
+
}
|
|
1295
|
+
function pixelWidth(advances, sizePx) {
|
|
1296
|
+
let width = 0;
|
|
1297
|
+
for (let i = 0; i < advances.length; i += 1) {
|
|
1298
|
+
const a = advances[i];
|
|
1299
|
+
if (a !== 0) width += Math.round(a * sizePx);
|
|
1300
|
+
}
|
|
1301
|
+
return width;
|
|
1302
|
+
}
|
|
1303
|
+
function autoRowHeight(font, profile) {
|
|
1304
|
+
return (font.lineHeight + profile.rowPadding) * 72 / profile.pixelsPerInch;
|
|
1305
|
+
}
|
|
1306
|
+
function rowSize(height, profile) {
|
|
1307
|
+
const ptPerPx = 72 / profile.pixelsPerInch;
|
|
1308
|
+
return Math.floor(height / ptPerPx * profile.rowScale + 1e-9) * ptPerPx;
|
|
1309
|
+
}
|
|
1310
|
+
function gridMetrics(pkg, index, measurer, profile) {
|
|
1311
|
+
const font = fontPixels(measurer, defaultFont(pkg, index), profile);
|
|
1312
|
+
return {
|
|
1313
|
+
maxDigitWidth: font.maxDigitWidth,
|
|
1314
|
+
pixelsPerInch: profile.pixelsPerInch,
|
|
1315
|
+
rowScale: profile.rowScale,
|
|
1316
|
+
defaultRowHeight: autoRowHeight(font, profile)
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
// src/layout/number-fit.ts
|
|
1321
|
+
var MAX_HASHES = 1e3;
|
|
1322
|
+
var GENERAL_SCIENTIFIC_DIGITS = 5;
|
|
1323
|
+
var trimZeros = (s) => s.includes(".") ? s.replace(/0+$/, "").replace(/\.$/, "") : s;
|
|
1324
|
+
var NOISE = 1e-6;
|
|
1325
|
+
var fitsWidth = (width, available, general) => general ? width < available - NOISE : width <= available + NOISE;
|
|
1326
|
+
function fitNumber(value, text, general, decimal, available, width) {
|
|
1327
|
+
const fits = (candidate) => fitsWidth(width(candidate), available, general);
|
|
1328
|
+
if (fits(text)) return text;
|
|
1329
|
+
if (general && Number.isFinite(value)) {
|
|
1330
|
+
const abs = Math.abs(value);
|
|
1331
|
+
const sign = value < 0 ? "-" : "";
|
|
1332
|
+
const local = (s) => sign + s.replace(".", decimal);
|
|
1333
|
+
const fixedDecimals = Math.min(20, Math.max(0, (text.split(decimal)[1] ?? "").length - 1));
|
|
1334
|
+
if (abs >= 1e-4 && abs < 1e11)
|
|
1335
|
+
for (let d = fixedDecimals; d >= 0; d -= 1) {
|
|
1336
|
+
const fixed = trimZeros(abs.toFixed(d));
|
|
1337
|
+
if (Number(fixed) === 0) {
|
|
1338
|
+
if (fits("0")) return "0";
|
|
1339
|
+
break;
|
|
1340
|
+
}
|
|
1341
|
+
const candidate = local(fixed);
|
|
1342
|
+
if (fits(candidate)) return candidate;
|
|
1343
|
+
}
|
|
1344
|
+
for (let d = GENERAL_SCIENTIFIC_DIGITS; d >= 0; d -= 1) {
|
|
1345
|
+
const [mantissa = "0", exp = "0"] = abs.toExponential(d).split("e");
|
|
1346
|
+
const e = Number(exp);
|
|
1347
|
+
const candidate = local(trimZeros(mantissa)) + `E${e < 0 ? "-" : "+"}${String(Math.abs(e)).padStart(2, "0")}`;
|
|
1348
|
+
if (fits(candidate)) return candidate;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
const hash = width("#");
|
|
1352
|
+
const count = hash > 0 ? Math.min(MAX_HASHES, Math.floor(available / hash)) : 0;
|
|
1353
|
+
return "#".repeat(Math.max(0, count));
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
// src/layout/cell-text.ts
|
|
1357
|
+
var LONG_TEXT_CHARS = 64 * 1024;
|
|
1358
|
+
var LONG_TEXTS_KEPT = 2;
|
|
1359
|
+
var longTextBreaks = /* @__PURE__ */ new Map();
|
|
1360
|
+
function breaksOf(text) {
|
|
1361
|
+
if (text.length < LONG_TEXT_CHARS) return breakOpportunities(text);
|
|
1362
|
+
const known = longTextBreaks.get(text) ?? breakOpportunities(text);
|
|
1363
|
+
longTextBreaks.delete(text);
|
|
1364
|
+
longTextBreaks.set(text, known);
|
|
1365
|
+
if (longTextBreaks.size > LONG_TEXTS_KEPT)
|
|
1366
|
+
longTextBreaks.delete(longTextBreaks.keys().next().value);
|
|
1367
|
+
return known;
|
|
1368
|
+
}
|
|
1369
|
+
function forgetLongTexts() {
|
|
1370
|
+
longTextBreaks.clear();
|
|
1371
|
+
}
|
|
1372
|
+
function valueKind(v) {
|
|
1373
|
+
if (v.kind === "number" || v.kind === "date") return "number";
|
|
1374
|
+
if (v.kind === "boolean" || v.kind === "error") return v.kind;
|
|
1375
|
+
return "text";
|
|
1376
|
+
}
|
|
1377
|
+
var MAX_CELL_LINES = 500;
|
|
1378
|
+
var INDENT_DIGITS = 1;
|
|
1379
|
+
var LEFT_GRIDLINE = 1;
|
|
1380
|
+
var textMargin = (maxDigitWidth) => Math.floor(maxDigitWidth / 3);
|
|
1381
|
+
var TOP_GRIDLINE = 1;
|
|
1382
|
+
function measureRuns(input, ctx, scale) {
|
|
1383
|
+
let text = "";
|
|
1384
|
+
for (const run of input.runs) text += run.text;
|
|
1385
|
+
const widths = new Float64Array(text.length);
|
|
1386
|
+
const runOf = new Uint16Array(text.length);
|
|
1387
|
+
const fonts = [];
|
|
1388
|
+
const pitches = [];
|
|
1389
|
+
const styles = [];
|
|
1390
|
+
let at = 0;
|
|
1391
|
+
input.runs.forEach((run, r) => {
|
|
1392
|
+
const font = scale === 1 ? run.font : { ...run.font, sizePt: run.font.sizePt * scale };
|
|
1393
|
+
const fp = fontPixels(ctx.measurer, font, ctx.profile);
|
|
1394
|
+
fonts.push(fp);
|
|
1395
|
+
pitches.push(
|
|
1396
|
+
rowSize(autoRowHeight(fp, ctx.profile), ctx.profile) * ctx.profile.pixelsPerInch / 72
|
|
1397
|
+
);
|
|
1398
|
+
styles.push({
|
|
1399
|
+
faceId: fp.face.id,
|
|
1400
|
+
family: fp.face.family,
|
|
1401
|
+
sizePt: font.sizePt,
|
|
1402
|
+
bold: font.bold,
|
|
1403
|
+
italic: font.italic,
|
|
1404
|
+
synthBold: fp.face.synthBold,
|
|
1405
|
+
synthItalic: fp.face.synthItalic,
|
|
1406
|
+
underline: font.underline,
|
|
1407
|
+
strike: font.strike,
|
|
1408
|
+
color: input.color ?? font.color,
|
|
1409
|
+
metrics: fp.face.metrics
|
|
1410
|
+
});
|
|
1411
|
+
const advances = ctx.measurer.advances(fp.face, run.text);
|
|
1412
|
+
for (let i = 0; i < run.text.length; i += 1) {
|
|
1413
|
+
const c = run.text.charCodeAt(i);
|
|
1414
|
+
const a = advances[i];
|
|
1415
|
+
widths[at + i] = c === 10 || c === 13 || a === 0 ? 0 : Math.round(a * fp.sizePx);
|
|
1416
|
+
runOf[at + i] = Math.min(r, 65535);
|
|
1417
|
+
}
|
|
1418
|
+
for (const pad of run.pads ?? [])
|
|
1419
|
+
if (pad.index >= 0 && pad.index < run.text.length)
|
|
1420
|
+
widths[at + pad.index] = padWidth(ctx.measurer, fp, pad.char);
|
|
1421
|
+
at += run.text.length;
|
|
1422
|
+
});
|
|
1423
|
+
return { text, widths, runOf, fonts, pitches, styles };
|
|
1424
|
+
}
|
|
1425
|
+
var isSpace2 = (c) => c === 32 || c === 9 || c === 12288;
|
|
1426
|
+
var isBreak = (c) => c === 10 || c === 13;
|
|
1427
|
+
function breakLines(m, limit, wrap, stacked) {
|
|
1428
|
+
const { text, widths } = m;
|
|
1429
|
+
const n = text.length;
|
|
1430
|
+
if (!wrap && !stacked) return [[0, n]];
|
|
1431
|
+
const ops = breaksOf(text);
|
|
1432
|
+
const lines = [];
|
|
1433
|
+
let pos = 0;
|
|
1434
|
+
while (pos < n && lines.length < MAX_CELL_LINES) {
|
|
1435
|
+
if (stacked) {
|
|
1436
|
+
let end2 = pos + 1;
|
|
1437
|
+
while (end2 < n && widths[end2] === 0 && !isBreak(text.charCodeAt(end2))) end2 += 1;
|
|
1438
|
+
if (!isBreak(text.charCodeAt(pos))) lines.push([pos, end2]);
|
|
1439
|
+
pos = end2;
|
|
1440
|
+
continue;
|
|
1441
|
+
}
|
|
1442
|
+
let width = 0;
|
|
1443
|
+
let lastBreak = -1;
|
|
1444
|
+
let end = n;
|
|
1445
|
+
let next = n;
|
|
1446
|
+
for (let i = pos; i < n; i += 1) {
|
|
1447
|
+
const c = text.charCodeAt(i);
|
|
1448
|
+
if (c === 10 || c === 13 && text.charCodeAt(i + 1) !== 10) {
|
|
1449
|
+
end = i;
|
|
1450
|
+
next = i + 1;
|
|
1451
|
+
break;
|
|
1452
|
+
}
|
|
1453
|
+
width += widths[i];
|
|
1454
|
+
if (!isSpace2(c) && width > limit && i > pos) {
|
|
1455
|
+
end = lastBreak > pos ? lastBreak : i;
|
|
1456
|
+
next = end;
|
|
1457
|
+
break;
|
|
1458
|
+
}
|
|
1459
|
+
if (ops[i + 1]) lastBreak = i + 1;
|
|
1460
|
+
}
|
|
1461
|
+
lines.push([pos, end]);
|
|
1462
|
+
pos = Math.max(next, pos + 1);
|
|
1463
|
+
}
|
|
1464
|
+
return lines;
|
|
1465
|
+
}
|
|
1466
|
+
function placeLine(m, start, end, trim) {
|
|
1467
|
+
let last = end;
|
|
1468
|
+
if (trim) while (last > start && isSpace2(m.text.charCodeAt(last - 1))) last -= 1;
|
|
1469
|
+
let width = 0;
|
|
1470
|
+
let spaces = 0;
|
|
1471
|
+
let ascent = 0;
|
|
1472
|
+
let height = 0;
|
|
1473
|
+
let pitch = 0;
|
|
1474
|
+
for (let i = start; i < last; i += 1) {
|
|
1475
|
+
width += m.widths[i];
|
|
1476
|
+
if (isSpace2(m.text.charCodeAt(i))) spaces += 1;
|
|
1477
|
+
}
|
|
1478
|
+
const runs = /* @__PURE__ */ new Set();
|
|
1479
|
+
for (let i = start; i < end; i += 1) runs.add(m.runOf[i]);
|
|
1480
|
+
if (runs.size === 0) runs.add(m.runOf[Math.min(start, m.runOf.length - 1)] ?? 0);
|
|
1481
|
+
for (const r of runs) {
|
|
1482
|
+
const f = m.fonts[r] ?? m.fonts[0];
|
|
1483
|
+
ascent = Math.max(ascent, f.ascent);
|
|
1484
|
+
height = Math.max(height, f.lineHeight);
|
|
1485
|
+
pitch = Math.max(pitch, m.pitches[r] ?? m.pitches[0]);
|
|
1486
|
+
}
|
|
1487
|
+
return { start, end: last, width, spaces, ascent, height, pitch };
|
|
1488
|
+
}
|
|
1489
|
+
function spansOf(m, line, x, k, gap) {
|
|
1490
|
+
const spans = [];
|
|
1491
|
+
let i = line.start;
|
|
1492
|
+
let at = x;
|
|
1493
|
+
while (i < line.end) {
|
|
1494
|
+
const r = m.runOf[i];
|
|
1495
|
+
let j = i;
|
|
1496
|
+
let w = 0;
|
|
1497
|
+
let text = "";
|
|
1498
|
+
const positions = [];
|
|
1499
|
+
while (j < line.end && m.runOf[j] === r) {
|
|
1500
|
+
const c = m.text.charCodeAt(j);
|
|
1501
|
+
if (!isBreak(c)) {
|
|
1502
|
+
text += m.text[j];
|
|
1503
|
+
positions.push((at + w) * k);
|
|
1504
|
+
}
|
|
1505
|
+
w += m.widths[j] + (isSpace2(c) ? gap : 0);
|
|
1506
|
+
j += 1;
|
|
1507
|
+
}
|
|
1508
|
+
if (text.length) spans.push({ text, x: at * k, width: w * k, positions, style: m.styles[r] });
|
|
1509
|
+
at += w;
|
|
1510
|
+
i = j;
|
|
1511
|
+
}
|
|
1512
|
+
return spans;
|
|
1513
|
+
}
|
|
1514
|
+
function horizontalOf(alignment, kind) {
|
|
1515
|
+
const h = alignment.horizontal;
|
|
1516
|
+
if (h !== "general") return h;
|
|
1517
|
+
return kind === "number" ? "right" : kind === "text" ? "left" : "center";
|
|
1518
|
+
}
|
|
1519
|
+
function indentSides(a, horizontal, maxDigitWidth) {
|
|
1520
|
+
const indent = a.indent * INDENT_DIGITS * maxDigitWidth;
|
|
1521
|
+
return {
|
|
1522
|
+
left: horizontal === "left" || horizontal === "distributed" || horizontal === "justify" ? indent : 0,
|
|
1523
|
+
right: horizontal === "right" || horizontal === "distributed" ? indent : 0
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
function indentWidth(alignment, kind, ctx) {
|
|
1527
|
+
const sides = indentSides(alignment, horizontalOf(alignment, kind), ctx.maxDigitWidth);
|
|
1528
|
+
return (sides.left + sides.right) * 72 / ctx.profile.pixelsPerInch;
|
|
1529
|
+
}
|
|
1530
|
+
function layoutCellText(input, ctx) {
|
|
1531
|
+
const k = 72 / ctx.profile.pixelsPerInch;
|
|
1532
|
+
const a = input.alignment;
|
|
1533
|
+
const h = horizontalOf(a, input.alignKind ?? input.kind);
|
|
1534
|
+
const boxLeft = input.box.x / k;
|
|
1535
|
+
const boxRight = (input.box.x + input.box.width) / k;
|
|
1536
|
+
const top = input.box.y / k + TOP_GRIDLINE;
|
|
1537
|
+
const bottom = (input.box.y + input.box.height) / k;
|
|
1538
|
+
const stacked = a.textRotation === 255;
|
|
1539
|
+
const angle = a.textRotation > 0 && a.textRotation <= 90 ? a.textRotation : a.textRotation > 90 && a.textRotation <= 180 ? -(a.textRotation - 90) : 0;
|
|
1540
|
+
const wrap = !angle && !stacked && (a.wrapText || h === "justify" || h === "distributed");
|
|
1541
|
+
const { left: leftIndent, right: rightIndent } = indentSides(a, h, ctx.maxDigitWidth);
|
|
1542
|
+
const areaOf = (fonts) => {
|
|
1543
|
+
const pad2 = textMargin(fonts[0]?.maxDigitWidth ?? ctx.maxDigitWidth);
|
|
1544
|
+
const l = boxLeft + LEFT_GRIDLINE + pad2;
|
|
1545
|
+
const r = boxRight - pad2;
|
|
1546
|
+
return { l, r, left: l + leftIndent, right: r - rightIndent };
|
|
1547
|
+
};
|
|
1548
|
+
let m = measureRuns(input, ctx, 1);
|
|
1549
|
+
let area = areaOf(m.fonts);
|
|
1550
|
+
if (a.shrinkToFit && !wrap && !angle && !stacked) {
|
|
1551
|
+
let total2 = 0;
|
|
1552
|
+
for (const w of m.widths) total2 += w;
|
|
1553
|
+
const room = Math.max(0, area.right - area.left);
|
|
1554
|
+
if (!fitsWidth(total2, room, false) && total2 > 0) {
|
|
1555
|
+
const size = input.runs[0]?.font.sizePt ?? 11;
|
|
1556
|
+
const scale = Math.max(1, Math.floor(size * (room / total2))) / size;
|
|
1557
|
+
m = measureRuns(input, ctx, scale);
|
|
1558
|
+
area = areaOf(m.fonts);
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
const { left, right } = area;
|
|
1562
|
+
const avail = Math.max(0, right - left);
|
|
1563
|
+
if (h === "fill" && !wrap && !angle && !stacked && m.text.length > 0) {
|
|
1564
|
+
let w = 0;
|
|
1565
|
+
for (const x of m.widths) w += x;
|
|
1566
|
+
const copies = w > 0 ? Math.max(1, Math.min(MAX_CELL_LINES, Math.floor(avail / w))) : 1;
|
|
1567
|
+
if (copies > 1)
|
|
1568
|
+
m = measureRuns(
|
|
1569
|
+
{ ...input, runs: Array.from({ length: copies }, () => input.runs).flat() },
|
|
1570
|
+
ctx,
|
|
1571
|
+
1
|
|
1572
|
+
);
|
|
1573
|
+
}
|
|
1574
|
+
const ranges = breakLines(m, avail, wrap, stacked);
|
|
1575
|
+
const placed = ranges.map(([s, e]) => placeLine(m, s, e, wrap));
|
|
1576
|
+
const total = placed.reduce((sum, p) => sum + p.pitch, 0);
|
|
1577
|
+
const last = placed[placed.length - 1];
|
|
1578
|
+
const inked = last ? total - last.pitch + last.height : 0;
|
|
1579
|
+
const pad = textMargin(m.fonts[0]?.maxDigitWidth ?? ctx.maxDigitWidth);
|
|
1580
|
+
if (angle) {
|
|
1581
|
+
const rotatedText = a.horizontal === "general" && (input.alignKind ?? input.kind) === "text";
|
|
1582
|
+
const marginAbove = Math.abs(angle) === 90 && a.vertical === "bottom";
|
|
1583
|
+
return rotated(m, placed[0], angle, rotatedText ? rotatedGeneral(angle) : h, a.vertical, {
|
|
1584
|
+
left,
|
|
1585
|
+
right,
|
|
1586
|
+
top,
|
|
1587
|
+
bottom: marginAbove ? bottom - pad : bottom,
|
|
1588
|
+
k
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
const vertical = a.vertical;
|
|
1592
|
+
const y0 = vertical === "top" || vertical === "justify" ? top : vertical === "center" || vertical === "distributed" ? top + Math.round((bottom - top - total) / 2) : bottom - inked - (stacked ? pad : 0) - bottomRaise(last, ctx);
|
|
1593
|
+
const lines = [];
|
|
1594
|
+
let y = y0;
|
|
1595
|
+
let minX = Infinity;
|
|
1596
|
+
let maxX = -Infinity;
|
|
1597
|
+
placed.forEach((p, i) => {
|
|
1598
|
+
const lastLine = i === placed.length - 1;
|
|
1599
|
+
let x = left;
|
|
1600
|
+
let gap = 0;
|
|
1601
|
+
const lineH = stacked && a.horizontal === "general" ? "center" : h;
|
|
1602
|
+
if (lineH === "right") x = right - p.width;
|
|
1603
|
+
else if (lineH === "center" || lineH === "centerContinuous")
|
|
1604
|
+
x = left + Math.round((avail - p.width) / 2);
|
|
1605
|
+
else if (lineH === "justify" && !lastLine || lineH === "distributed") {
|
|
1606
|
+
if (p.spaces > 0) gap = (avail - p.width) / p.spaces;
|
|
1607
|
+
else if (lineH === "distributed") x = left + Math.round((avail - p.width) / 2);
|
|
1608
|
+
}
|
|
1609
|
+
const width = p.width + gap * p.spaces;
|
|
1610
|
+
lines.push({
|
|
1611
|
+
x: x * k,
|
|
1612
|
+
baseline: (y + p.ascent) * k,
|
|
1613
|
+
width: width * k,
|
|
1614
|
+
spans: spansOf(m, p, x, k, gap),
|
|
1615
|
+
...gap ? { wordSpacing: gap * k } : {}
|
|
1616
|
+
});
|
|
1617
|
+
minX = Math.min(minX, x);
|
|
1618
|
+
maxX = Math.max(maxX, x + width);
|
|
1619
|
+
y += p.pitch;
|
|
1620
|
+
});
|
|
1621
|
+
const single = !wrap && !stacked && placed.length === 1;
|
|
1622
|
+
return {
|
|
1623
|
+
lines,
|
|
1624
|
+
left: (Number.isFinite(minX) ? minX : left) * k,
|
|
1625
|
+
right: (Number.isFinite(maxX) ? maxX : left) * k,
|
|
1626
|
+
areaLeft: area.l * k,
|
|
1627
|
+
areaRight: area.r * k,
|
|
1628
|
+
mayOverflow: single && input.kind === "text" && h !== "fill" && !a.shrinkToFit
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
var rotatedGeneral = (angle) => angle > 0 && angle < 90 ? "left" : "right";
|
|
1632
|
+
function rotated(m, p, angle, h, vertical, area) {
|
|
1633
|
+
const { k } = area;
|
|
1634
|
+
const descent = p.height - p.ascent;
|
|
1635
|
+
const rad = angle * Math.PI / 180;
|
|
1636
|
+
const cos = Math.cos(rad);
|
|
1637
|
+
const sin = Math.sin(rad);
|
|
1638
|
+
const xs = [];
|
|
1639
|
+
const ys = [];
|
|
1640
|
+
for (const [x, y] of [
|
|
1641
|
+
[0, -p.ascent],
|
|
1642
|
+
[p.width, -p.ascent],
|
|
1643
|
+
[0, descent],
|
|
1644
|
+
[p.width, descent]
|
|
1645
|
+
]) {
|
|
1646
|
+
xs.push(x * cos + y * sin);
|
|
1647
|
+
ys.push(-x * sin + y * cos);
|
|
1648
|
+
}
|
|
1649
|
+
const minX = Math.min(xs[0], xs[1], xs[2], xs[3]);
|
|
1650
|
+
const maxX = Math.max(xs[0], xs[1], xs[2], xs[3]);
|
|
1651
|
+
const minY = Math.min(ys[0], ys[1], ys[2], ys[3]);
|
|
1652
|
+
const maxY = Math.max(ys[0], ys[1], ys[2], ys[3]);
|
|
1653
|
+
const bw = maxX - minX;
|
|
1654
|
+
const bh = maxY - minY;
|
|
1655
|
+
const bx = h === "right" ? area.right - RIGHT_ROTATED - bw : h === "center" || h === "centerContinuous" || h === "distributed" ? area.left + (area.right - area.left - bw) / 2 : area.left;
|
|
1656
|
+
const by = vertical === "top" || vertical === "justify" ? area.top : vertical === "center" || vertical === "distributed" ? area.top + (area.bottom - area.top - bh) / 2 : area.bottom - bh;
|
|
1657
|
+
const originX = bx - minX;
|
|
1658
|
+
let originY = by - minY;
|
|
1659
|
+
if (vertical === "bottom") {
|
|
1660
|
+
const corner = Math.floor(originY + ys[0] + SNAP_EPSILON);
|
|
1661
|
+
originY = corner - ys[0];
|
|
1662
|
+
}
|
|
1663
|
+
return {
|
|
1664
|
+
lines: [{ x: 0, baseline: 0, width: p.width * k, spans: spansOf(m, p, 0, k, 0) }],
|
|
1665
|
+
rotation: { angle, originX: originX * k, originY: originY * k },
|
|
1666
|
+
left: bx * k,
|
|
1667
|
+
right: (bx + bw) * k,
|
|
1668
|
+
areaLeft: area.left * k,
|
|
1669
|
+
areaRight: area.right * k,
|
|
1670
|
+
mayOverflow: false
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
var RIGHT_ROTATED = 1;
|
|
1674
|
+
var SNAP_EPSILON = 1e-9;
|
|
1675
|
+
function padWidth(measurer, fp, char) {
|
|
1676
|
+
let w = 0;
|
|
1677
|
+
for (const a of measurer.advances(fp.face, char)) w += Math.round(a * fp.sizePx);
|
|
1678
|
+
return w;
|
|
1679
|
+
}
|
|
1680
|
+
function bottomRaise(last, ctx) {
|
|
1681
|
+
if (!last) return 0;
|
|
1682
|
+
return Math.max(0, (ctx.minDescent ?? 0) - (last.height - last.ascent));
|
|
1683
|
+
}
|
|
1684
|
+
function textWidth(ctx, text, font, pads = []) {
|
|
1685
|
+
const fp = fontPixels(ctx.measurer, font, ctx.profile);
|
|
1686
|
+
const advances = ctx.measurer.advances(fp.face, text);
|
|
1687
|
+
const widths = new Float64Array(advances.length);
|
|
1688
|
+
for (let i = 0; i < advances.length; i += 1) widths[i] = Math.round(advances[i] * fp.sizePx);
|
|
1689
|
+
for (const pad of pads)
|
|
1690
|
+
if (pad.index >= 0 && pad.index < widths.length)
|
|
1691
|
+
widths[pad.index] = padWidth(ctx.measurer, fp, pad.char);
|
|
1692
|
+
let w = 0;
|
|
1693
|
+
for (const x of widths) w += x;
|
|
1694
|
+
return w * 72 / ctx.profile.pixelsPerInch;
|
|
1695
|
+
}
|
|
1696
|
+
function textArea(box, ctx, font) {
|
|
1697
|
+
const k = 72 / ctx.profile.pixelsPerInch;
|
|
1698
|
+
const pad = textMargin(fontPixels(ctx.measurer, font, ctx.profile).maxDigitWidth);
|
|
1699
|
+
return Math.max(0, box.width - (LEFT_GRIDLINE + 2 * pad) * k);
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
// src/layout/row-height.ts
|
|
1703
|
+
function wraps(format) {
|
|
1704
|
+
const a = format.alignment;
|
|
1705
|
+
return a.textRotation === 0 && (a.wrapText || a.horizontal === "justify" || a.horizontal === "distributed");
|
|
1706
|
+
}
|
|
1707
|
+
var WRAP_MEASURE_BUDGET_CHARS = 4e6;
|
|
1708
|
+
function estimatedLines(runs, digit, width) {
|
|
1709
|
+
let lines = 0;
|
|
1710
|
+
let length = 0;
|
|
1711
|
+
let cr = false;
|
|
1712
|
+
for (const { text } of runs) {
|
|
1713
|
+
for (let i = 0; i < text.length; i++) {
|
|
1714
|
+
const c = text.charCodeAt(i);
|
|
1715
|
+
if (c === 10 || cr) {
|
|
1716
|
+
lines += Math.max(1, Math.ceil(length * digit / width));
|
|
1717
|
+
length = 0;
|
|
1718
|
+
if (lines >= MAX_CELL_LINES) return MAX_CELL_LINES;
|
|
1719
|
+
}
|
|
1720
|
+
if (c === 10) cr = false;
|
|
1721
|
+
else if (c === 13) cr = true;
|
|
1722
|
+
else {
|
|
1723
|
+
cr = false;
|
|
1724
|
+
length += 1;
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
if (cr) {
|
|
1729
|
+
lines += Math.max(1, Math.ceil(length * digit / width));
|
|
1730
|
+
length = 0;
|
|
1731
|
+
}
|
|
1732
|
+
if (length === 0 && lines > 0) return Math.min(MAX_CELL_LINES, lines);
|
|
1733
|
+
return Math.min(MAX_CELL_LINES, lines + Math.max(1, Math.ceil(length * digit / width)));
|
|
1734
|
+
}
|
|
1735
|
+
var fitted = /* @__PURE__ */ new WeakMap();
|
|
1736
|
+
var NONE = [];
|
|
1737
|
+
var rowHeights = /* @__PURE__ */ new WeakMap();
|
|
1738
|
+
var tokens = /* @__PURE__ */ new WeakMap();
|
|
1739
|
+
var profileKey = (p) => {
|
|
1740
|
+
const fields = {
|
|
1741
|
+
pixelsPerInch: p.pixelsPerInch,
|
|
1742
|
+
rowPadding: p.rowPadding,
|
|
1743
|
+
rowScale: p.rowScale
|
|
1744
|
+
};
|
|
1745
|
+
return Object.values(fields).join("|");
|
|
1746
|
+
};
|
|
1747
|
+
function tokenOf(keys, key) {
|
|
1748
|
+
let map = tokens;
|
|
1749
|
+
let node;
|
|
1750
|
+
for (const k of keys) {
|
|
1751
|
+
node = map.get(k);
|
|
1752
|
+
if (!node) map.set(k, node = { next: /* @__PURE__ */ new WeakMap() });
|
|
1753
|
+
map = node.next;
|
|
1754
|
+
}
|
|
1755
|
+
const byKey = node.value ??= /* @__PURE__ */ new Map();
|
|
1756
|
+
let token = byKey.get(key);
|
|
1757
|
+
if (!token) {
|
|
1758
|
+
if (byKey.size > 8) byKey.clear();
|
|
1759
|
+
byKey.set(key, token = {});
|
|
1760
|
+
}
|
|
1761
|
+
return token;
|
|
1762
|
+
}
|
|
1763
|
+
var itemTokens = /* @__PURE__ */ new WeakMap();
|
|
1764
|
+
function itemsTokenOf(items) {
|
|
1765
|
+
let token = itemTokens.get(items);
|
|
1766
|
+
if (!token) itemTokens.set(items, token = {});
|
|
1767
|
+
return token;
|
|
1768
|
+
}
|
|
1769
|
+
function sameItems(hit, items) {
|
|
1770
|
+
for (let k = 0; k < hit.indexes.length; k++) {
|
|
1771
|
+
const i = hit.indexes[k];
|
|
1772
|
+
if (i >= 0 && items[i] !== hit.read[k]) return false;
|
|
1773
|
+
}
|
|
1774
|
+
return true;
|
|
1775
|
+
}
|
|
1776
|
+
var rowsMeasured = 0;
|
|
1777
|
+
var rowsCached = 0;
|
|
1778
|
+
function rowAutoHeight(pkg, index, items, ctx, defaultHeight, merges) {
|
|
1779
|
+
const formats = /* @__PURE__ */ new Map();
|
|
1780
|
+
const text = tokenOf([ctx.measurer], `${profileKey(ctx.profile)}|${ctx.maxDigitWidth}`);
|
|
1781
|
+
const fontHeight = (font) => autoRowHeight(fontPixels(ctx.measurer, font, ctx.profile), ctx.profile);
|
|
1782
|
+
let measured = 0;
|
|
1783
|
+
const richRuns = /* @__PURE__ */ new Map();
|
|
1784
|
+
const richRunsOf = (list, font) => {
|
|
1785
|
+
let byFont = richRuns.get(list);
|
|
1786
|
+
if (!byFont) richRuns.set(list, byFont = /* @__PURE__ */ new Map());
|
|
1787
|
+
let known = byFont.get(font);
|
|
1788
|
+
if (!known) {
|
|
1789
|
+
const runs = richTextRuns(list, font, pkg, index);
|
|
1790
|
+
let chars = 0;
|
|
1791
|
+
let line = 0;
|
|
1792
|
+
for (const run of runs) {
|
|
1793
|
+
chars += run.text.length;
|
|
1794
|
+
line = Math.max(line, fontHeight(run.font));
|
|
1795
|
+
}
|
|
1796
|
+
known = { runs, chars, line };
|
|
1797
|
+
byFont.set(font, known);
|
|
1798
|
+
}
|
|
1799
|
+
return known;
|
|
1800
|
+
};
|
|
1801
|
+
const wrappedHeight = (cell, format, width) => {
|
|
1802
|
+
const hit = fitted.get(cell);
|
|
1803
|
+
const itemIndex = attr(cell, "t") === "s" ? cellSharedStringIndex(cell) ?? -1 : -1;
|
|
1804
|
+
const item = itemIndex >= 0 ? items[itemIndex] : void 0;
|
|
1805
|
+
if (hit && measured + hit.chars <= WRAP_MEASURE_BUDGET_CHARS && hit.format === format && hit.width === width && hit.item === item && hit.text === text) {
|
|
1806
|
+
measured += hit.chars;
|
|
1807
|
+
return hit.height;
|
|
1808
|
+
}
|
|
1809
|
+
const v = cellValue(pkg, index, cell, false).value;
|
|
1810
|
+
if (v.kind !== "string") return void 0;
|
|
1811
|
+
let rich;
|
|
1812
|
+
if (v.runs && v.runs.length > 0) rich = richRunsOf(v.runs, format.font);
|
|
1813
|
+
else {
|
|
1814
|
+
const text2 = displayValue(v, format, { locale: EN_US, date1904: index.date1904 }).text;
|
|
1815
|
+
rich = {
|
|
1816
|
+
runs: [{ text: text2, font: format.font }],
|
|
1817
|
+
chars: text2.length,
|
|
1818
|
+
line: fontHeight(format.font)
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
const { runs, chars, line } = rich;
|
|
1822
|
+
measured += chars + runs.length;
|
|
1823
|
+
if (measured > WRAP_MEASURE_BUDGET_CHARS)
|
|
1824
|
+
return estimatedLines(runs, ctx.maxDigitWidth * 72 / ctx.profile.pixelsPerInch, width) * line;
|
|
1825
|
+
const laid = layoutCellText(
|
|
1826
|
+
{
|
|
1827
|
+
runs,
|
|
1828
|
+
kind: "text",
|
|
1829
|
+
alignment: format.alignment,
|
|
1830
|
+
box: { x: 0, y: 0, width, height: 0 }
|
|
1831
|
+
},
|
|
1832
|
+
ctx
|
|
1833
|
+
);
|
|
1834
|
+
const height = Math.max(1, laid.lines.length) * line;
|
|
1835
|
+
fitted.set(cell, { chars: chars + runs.length, format, width, item, text, height });
|
|
1836
|
+
return height;
|
|
1837
|
+
};
|
|
1838
|
+
const token = tokenOf(
|
|
1839
|
+
[styleLists(pkg, index), workbookTheme(pkg, index), ctx.measurer],
|
|
1840
|
+
`${profileKey(ctx.profile)}|${defaultHeight}`
|
|
1841
|
+
);
|
|
1842
|
+
const itemsToken = itemsTokenOf(items);
|
|
1843
|
+
return (row, rowIndex, columns) => {
|
|
1844
|
+
const hit = rowHeights.get(row);
|
|
1845
|
+
if (hit && hit.token === token && (hit.itemsToken === itemsToken || sameItems(hit, items))) {
|
|
1846
|
+
hit.itemsToken = itemsToken;
|
|
1847
|
+
rowsCached += 1;
|
|
1848
|
+
return hit.height;
|
|
1849
|
+
}
|
|
1850
|
+
rowsMeasured += 1;
|
|
1851
|
+
let tallest = defaultHeight;
|
|
1852
|
+
let col = -1;
|
|
1853
|
+
let indexes;
|
|
1854
|
+
let read;
|
|
1855
|
+
let wrapped = false;
|
|
1856
|
+
for (const node of row.children) {
|
|
1857
|
+
if (node.type !== "element" || node.local !== "c") continue;
|
|
1858
|
+
const r = attr(node, "r");
|
|
1859
|
+
col = r === void 0 ? col + 1 : parseCellRef(r)?.col ?? col + 1;
|
|
1860
|
+
const s = attr(node, "s");
|
|
1861
|
+
let known = formats.get(s);
|
|
1862
|
+
if (!known) {
|
|
1863
|
+
const format2 = cellFormat(pkg, index, s).format;
|
|
1864
|
+
known = { format: format2, height: fontHeight(format2.font) };
|
|
1865
|
+
formats.set(s, known);
|
|
1866
|
+
}
|
|
1867
|
+
const format = known.format;
|
|
1868
|
+
tallest = Math.max(tallest, known.height);
|
|
1869
|
+
if (attr(node, "t") === "s") {
|
|
1870
|
+
const i = cellSharedStringIndex(node) ?? -1;
|
|
1871
|
+
(indexes ??= []).push(i);
|
|
1872
|
+
(read ??= []).push(i >= 0 ? items[i] : void 0);
|
|
1873
|
+
const v = cellValue(pkg, index, node, false).value;
|
|
1874
|
+
if (v.kind === "string" && v.runs)
|
|
1875
|
+
tallest = Math.max(tallest, richRunsOf(v.runs, format.font).line);
|
|
1876
|
+
}
|
|
1877
|
+
if (wraps(format)) {
|
|
1878
|
+
wrapped = true;
|
|
1879
|
+
if (mergeAt(merges, rowIndex, col)) continue;
|
|
1880
|
+
const width = columns.sizeOf(col);
|
|
1881
|
+
const height = width > 0 ? wrappedHeight(node, format, width) : void 0;
|
|
1882
|
+
if (height !== void 0) tallest = Math.max(tallest, height);
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
if (!wrapped)
|
|
1886
|
+
rowHeights.set(row, {
|
|
1887
|
+
token,
|
|
1888
|
+
itemsToken,
|
|
1889
|
+
indexes: indexes ?? NONE,
|
|
1890
|
+
read: read ?? NONE,
|
|
1891
|
+
height: tallest
|
|
1892
|
+
});
|
|
1893
|
+
return tallest;
|
|
1894
|
+
};
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
// src/layout/fit.ts
|
|
1898
|
+
function sheetOf(pkg, sheetName) {
|
|
1899
|
+
const index = workbookIndex(pkg);
|
|
1900
|
+
const entry = index ? sheetByName(index, sheetName) : void 0;
|
|
1901
|
+
const part = xmlPartOf(pkg, entry?.partName);
|
|
1902
|
+
if (!index || !entry || entry.kind !== "worksheet" || !part) return void 0;
|
|
1903
|
+
return { index, sheet: sheetIndex(part) };
|
|
1904
|
+
}
|
|
1905
|
+
var hasValue = (cell) => children(cell, "x:v").length + children(cell, "x:is").length > 0;
|
|
1906
|
+
function hiddenColumns(root) {
|
|
1907
|
+
const segments = [];
|
|
1908
|
+
for (const c of child(root, "x:cols")?.children ?? []) {
|
|
1909
|
+
if (c.type !== "element" || c.local !== "col") continue;
|
|
1910
|
+
const min = numberAttr(c, "min", 1, MAX_COLS);
|
|
1911
|
+
const max = numberAttr(c, "max", 1, MAX_COLS);
|
|
1912
|
+
if (min === void 0 || max === void 0 || !Number.isInteger(min) || !Number.isInteger(max))
|
|
1913
|
+
continue;
|
|
1914
|
+
segments.push({ first: min - 1, last: max - 1, size: flag(c, "hidden") ? 1 : 0 });
|
|
1915
|
+
}
|
|
1916
|
+
return new AxisIndex(MAX_COLS, 0, segments);
|
|
1917
|
+
}
|
|
1918
|
+
var unbroken = (text) => text.replace(/[\n\r]/g, "");
|
|
1919
|
+
function textOf2(cell, ctx) {
|
|
1920
|
+
if (cell.runs.length > 1)
|
|
1921
|
+
return cell.runs.reduce((w, r) => w + textWidth(ctx, unbroken(r.text), r.font), 0);
|
|
1922
|
+
const { text, font } = cell.runs[0];
|
|
1923
|
+
return textWidth(ctx, cell.pads.length ? text : unbroken(text), font, cell.pads);
|
|
1924
|
+
}
|
|
1925
|
+
function fitsBox(cell, text, width, ctx) {
|
|
1926
|
+
const available = textArea({ x: 0, y: 0, width, height: 0 }, ctx, cell.marginFont) - indentWidth(cell.alignment, cell.kind, ctx);
|
|
1927
|
+
return fitsWidth(text, available, cell.general);
|
|
1928
|
+
}
|
|
1929
|
+
function fitCells(pkg, found, first, last, locale) {
|
|
1930
|
+
const { index, sheet } = found;
|
|
1931
|
+
const stale = sheetStale(index, sheet.root);
|
|
1932
|
+
const checks = { left: LAYOUT_CHECK_BUDGET };
|
|
1933
|
+
const cells = [];
|
|
1934
|
+
const unknown = /* @__PURE__ */ new Set();
|
|
1935
|
+
const hiddenRow = (row) => {
|
|
1936
|
+
const el = sheet.rows.get(row);
|
|
1937
|
+
return el !== void 0 && flag(el, "hidden");
|
|
1938
|
+
};
|
|
1939
|
+
const ranges = mergedRanges(sheet.root).ranges.filter(
|
|
1940
|
+
(m) => m.lastCol >= first && m.firstCol <= last
|
|
1941
|
+
);
|
|
1942
|
+
const across = mergeCoverage(ranges.filter((m) => m.lastCol > m.firstCol));
|
|
1943
|
+
const below = mergeCoverage(
|
|
1944
|
+
ranges.filter((m) => m.lastCol === m.firstCol && m.lastRow > m.firstRow).map((m) => ({ ...m, firstRow: m.firstRow + 1 }))
|
|
1945
|
+
);
|
|
1946
|
+
const entries = [...sheet.cells.values()].filter((e) => e.col >= first && e.col <= last && !hiddenRow(e.row)).sort((a, b) => a.row - b.row || a.col - b.col);
|
|
1947
|
+
for (const entry of entries) {
|
|
1948
|
+
if (across(entry.row, entry.col) || below(entry.row, entry.col)) continue;
|
|
1949
|
+
const resolved = cellValue(pkg, index, entry.el, stale);
|
|
1950
|
+
const v = resolved.value;
|
|
1951
|
+
if (v.kind === "empty") continue;
|
|
1952
|
+
const base = cellFormat(pkg, index, attr(entry.el, "s")).format;
|
|
1953
|
+
const format = conditionalFormat(pkg, index, sheet.root, entry.row, entry.col, v, base, checks);
|
|
1954
|
+
if (checks.left <= 0) unknown.add(entry.col);
|
|
1955
|
+
const a = format.alignment;
|
|
1956
|
+
if (a.textRotation !== 0 || a.wrapText) continue;
|
|
1957
|
+
if (a.horizontal === "justify" || a.horizontal === "distributed") continue;
|
|
1958
|
+
if (a.horizontal === "centerContinuous") continue;
|
|
1959
|
+
if (v.kind === "string" && v.runs && v.runs.length > 0) {
|
|
1960
|
+
const all = richTextRuns(v.runs, format.font, pkg, index);
|
|
1961
|
+
const runs = all.filter((r) => r.text !== "");
|
|
1962
|
+
if (runs.length > 0)
|
|
1963
|
+
cells.push({
|
|
1964
|
+
col: entry.col,
|
|
1965
|
+
runs,
|
|
1966
|
+
marginFont: all[0].font,
|
|
1967
|
+
pads: [],
|
|
1968
|
+
kind: "text",
|
|
1969
|
+
alignment: a,
|
|
1970
|
+
general: false
|
|
1971
|
+
});
|
|
1972
|
+
continue;
|
|
1973
|
+
}
|
|
1974
|
+
const shown = displayValue(v, format, { locale, date1904: index.date1904 });
|
|
1975
|
+
if (shown.text === "") continue;
|
|
1976
|
+
const kind = shown.alignAsText ? "text" : valueKind(v);
|
|
1977
|
+
cells.push({
|
|
1978
|
+
col: entry.col,
|
|
1979
|
+
runs: [{ text: shown.text, font: format.font }],
|
|
1980
|
+
marginFont: format.font,
|
|
1981
|
+
pads: shown.pads ?? [],
|
|
1982
|
+
kind,
|
|
1983
|
+
alignment: a,
|
|
1984
|
+
general: kind === "number" && v.kind === "number" && formatCodeOf(format, locale).toLowerCase() === "general"
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1987
|
+
return { cells, unknown };
|
|
1988
|
+
}
|
|
1989
|
+
function fitColumnWidths(pkg, sheetName, first, last, options) {
|
|
1990
|
+
const found = sheetOf(pkg, sheetName);
|
|
1991
|
+
if (!found) return void 0;
|
|
1992
|
+
const locale = options.locale ?? EN_US;
|
|
1993
|
+
const byColumn = /* @__PURE__ */ new Map();
|
|
1994
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1995
|
+
const ids = /* @__PURE__ */ new Map();
|
|
1996
|
+
const id = (o) => ids.get(o) ?? (ids.set(o, ids.size), ids.size - 1);
|
|
1997
|
+
const { cells: fitted2, unknown } = fitCells(pkg, found, first, last, locale);
|
|
1998
|
+
for (const cell of fitted2) {
|
|
1999
|
+
const key = cell.runs.length === 1 && cell.pads.length === 0 ? `${cell.col}:${id(cell.runs[0].font)}:${id(cell.marginFont)}:${id(cell.alignment)}:${cell.kind}:${cell.general}:${cell.runs[0].text}` : void 0;
|
|
2000
|
+
if (key !== void 0) {
|
|
2001
|
+
if (seen.has(key)) continue;
|
|
2002
|
+
seen.add(key);
|
|
2003
|
+
}
|
|
2004
|
+
const list = byColumn.get(cell.col);
|
|
2005
|
+
if (list) list.push(cell);
|
|
2006
|
+
else byColumn.set(cell.col, [cell]);
|
|
2007
|
+
}
|
|
2008
|
+
const hidden = hiddenColumns(found.sheet.root);
|
|
2009
|
+
for (const col of byColumn.keys())
|
|
2010
|
+
if (hidden.sizeOf(col) > 0 || unknown.has(col)) byColumn.delete(col);
|
|
2011
|
+
const views = [.../* @__PURE__ */ new Set([1, ...options.zooms ?? []])].map((zoom) => {
|
|
2012
|
+
const profile = { ...options.profile, pixelsPerInch: options.profile.pixelsPerInch * zoom };
|
|
2013
|
+
const metrics = gridMetrics(pkg, found.index, options.measurer, profile);
|
|
2014
|
+
const ctx = {
|
|
2015
|
+
measurer: options.measurer,
|
|
2016
|
+
profile,
|
|
2017
|
+
maxDigitWidth: metrics.maxDigitWidth
|
|
2018
|
+
};
|
|
2019
|
+
return { ctx, mdw: metrics.maxDigitWidth, pointsPerPixel: 72 / profile.pixelsPerInch };
|
|
2020
|
+
});
|
|
2021
|
+
const base = gridMetrics(pkg, found.index, options.measurer, options.profile).maxDigitWidth;
|
|
2022
|
+
const most = columnPixels(MAX_COLUMN_WIDTH, base);
|
|
2023
|
+
const widths = /* @__PURE__ */ new Map();
|
|
2024
|
+
for (const [col, cells] of byColumn) {
|
|
2025
|
+
const groups = views.map(() => /* @__PURE__ */ new Map());
|
|
2026
|
+
for (const cell of cells) {
|
|
2027
|
+
const key = `${id(cell.marginFont)}:${id(cell.alignment)}:${cell.kind}:${cell.general}`;
|
|
2028
|
+
const texts = views.map((view) => textOf2(cell, view.ctx));
|
|
2029
|
+
if (texts.every((text) => text === 0)) continue;
|
|
2030
|
+
texts.forEach((text, v) => {
|
|
2031
|
+
const hit = groups[v].get(key);
|
|
2032
|
+
if (!hit || text > hit.text) groups[v].set(key, { cell, text });
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
if (groups.every((g) => g.size === 0)) continue;
|
|
2036
|
+
const widest = groups.map((g) => [...g.values()]);
|
|
2037
|
+
const fits = (pixels) => {
|
|
2038
|
+
const width = columnWidthForPixels(pixels, base);
|
|
2039
|
+
return views.every(
|
|
2040
|
+
(view, v) => widest[v].every(
|
|
2041
|
+
({ cell, text }) => fitsBox(cell, text, columnPixels(width, view.mdw) * view.pointsPerPixel, view.ctx)
|
|
2042
|
+
)
|
|
2043
|
+
);
|
|
2044
|
+
};
|
|
2045
|
+
let lo = 0;
|
|
2046
|
+
let hi = most;
|
|
2047
|
+
if (!fits(hi)) lo = hi;
|
|
2048
|
+
while (lo < hi) {
|
|
2049
|
+
const mid = Math.floor((lo + hi) / 2);
|
|
2050
|
+
if (fits(mid)) hi = mid;
|
|
2051
|
+
else lo = mid + 1;
|
|
2052
|
+
}
|
|
2053
|
+
widths.set(col, columnWidthForPixels(lo, base));
|
|
2054
|
+
}
|
|
2055
|
+
return widths;
|
|
2056
|
+
}
|
|
2057
|
+
function fitRowHeights(pkg, sheetName, first, last, options) {
|
|
2058
|
+
const found = sheetOf(pkg, sheetName);
|
|
2059
|
+
if (!found) return void 0;
|
|
2060
|
+
const { index, sheet } = found;
|
|
2061
|
+
const { measurer } = options;
|
|
2062
|
+
const metrics = gridMetrics(pkg, index, measurer, options.profile);
|
|
2063
|
+
const items = sharedStringItems(pkg, index);
|
|
2064
|
+
const merges = mergedRanges(sheet.root);
|
|
2065
|
+
const views = [.../* @__PURE__ */ new Set([1, ...options.zooms ?? []])].map((zoom) => {
|
|
2066
|
+
const profile = { ...options.profile, pixelsPerInch: options.profile.pixelsPerInch * zoom };
|
|
2067
|
+
const zoomed = gridMetrics(pkg, index, measurer, profile);
|
|
2068
|
+
const ctx = { measurer, profile, maxDigitWidth: zoomed.maxDigitWidth };
|
|
2069
|
+
return {
|
|
2070
|
+
auto: rowAutoHeight(pkg, index, items, ctx, zoomed.defaultRowHeight, merges),
|
|
2071
|
+
columns: sheetGeometry(sheet, zoomed).columns,
|
|
2072
|
+
pixel: zoom === 1 ? 0 : 72 / profile.pixelsPerInch
|
|
2073
|
+
};
|
|
2074
|
+
});
|
|
2075
|
+
const auto = (el, r, wrapped) => {
|
|
2076
|
+
let most;
|
|
2077
|
+
for (const view of wrapped ? views : views.slice(0, 1)) {
|
|
2078
|
+
const h = view.auto(el, r, view.columns);
|
|
2079
|
+
const need = h === void 0 ? void 0 : h - view.pixel;
|
|
2080
|
+
if (need !== void 0 && (most === void 0 || need > most)) most = need;
|
|
2081
|
+
}
|
|
2082
|
+
return most;
|
|
2083
|
+
};
|
|
2084
|
+
const formatPr = child(sheet.root, "x:sheetFormatPr");
|
|
2085
|
+
const customDefault = flag(formatPr, "customHeight") ? numberAttr(formatPr, "defaultRowHeight", 0, MAX_ROW_HEIGHT) : void 0;
|
|
2086
|
+
const heights = /* @__PURE__ */ new Map();
|
|
2087
|
+
for (const [r, el] of sheet.rows) {
|
|
2088
|
+
if (r < first || r > last || flag(el, "hidden")) continue;
|
|
2089
|
+
const formats = children(el, "x:c").filter((cell) => hasValue(cell)).map((cell) => cellFormat(pkg, index, attr(cell, "s")).format);
|
|
2090
|
+
if (formats.some((format) => format.alignment.textRotation !== 0)) continue;
|
|
2091
|
+
const valued = customDefault === void 0 || formats.length > 0;
|
|
2092
|
+
const fitted2 = (valued ? auto(el, r, formats.some(wraps)) : void 0) ?? customDefault ?? metrics.defaultRowHeight;
|
|
2093
|
+
const height = Math.min(MAX_ROW_HEIGHT, Math.max(0, Math.ceil(fitted2 * 1e8 - 1e-4) / 1e8));
|
|
2094
|
+
const ht = numberAttr(el, "ht", 0, MAX_ROW_HEIGHT);
|
|
2095
|
+
const shown = ht ?? customDefault ?? height;
|
|
2096
|
+
if (!flag(el, "customHeight") && shown === height) continue;
|
|
2097
|
+
heights.set(r, height);
|
|
2098
|
+
}
|
|
2099
|
+
return heights;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
// src/layout/drawings.ts
|
|
2103
|
+
var MAX_ANCHORS = 1e4;
|
|
2104
|
+
var MAX_COORDINATE = 27273042316900;
|
|
2105
|
+
var numberText = (el, min, max) => {
|
|
2106
|
+
if (!el) return void 0;
|
|
2107
|
+
const raw = textOf(el).trim();
|
|
2108
|
+
if (raw.length === 0 || raw.length > 20) return void 0;
|
|
2109
|
+
const n = Number(raw);
|
|
2110
|
+
return Number.isInteger(n) && n >= min && n <= max ? n : void 0;
|
|
2111
|
+
};
|
|
2112
|
+
var numberAttr2 = (el, name, min, max) => {
|
|
2113
|
+
const raw = attr(el, name);
|
|
2114
|
+
if (raw === void 0 || raw.length === 0 || raw.length > 20) return void 0;
|
|
2115
|
+
const n = Number(raw);
|
|
2116
|
+
return Number.isFinite(n) && n >= min && n <= max ? n : void 0;
|
|
2117
|
+
};
|
|
2118
|
+
function point(el) {
|
|
2119
|
+
const col = numberText(child(el, "xdr:col"), 0, MAX_COLS - 1);
|
|
2120
|
+
const row = numberText(child(el, "xdr:row"), 0, MAX_ROWS - 1);
|
|
2121
|
+
if (col === void 0 || row === void 0) return void 0;
|
|
2122
|
+
return {
|
|
2123
|
+
col,
|
|
2124
|
+
row,
|
|
2125
|
+
colOff: numberText(child(el, "xdr:colOff"), -MAX_COORDINATE, MAX_COORDINATE) ?? 0,
|
|
2126
|
+
rowOff: numberText(child(el, "xdr:rowOff"), -MAX_COORDINATE, MAX_COORDINATE) ?? 0
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
function extent(el) {
|
|
2130
|
+
const cx = numberAttr2(el, "cx", 0, MAX_COORDINATE);
|
|
2131
|
+
const cy = numberAttr2(el, "cy", 0, MAX_COORDINATE);
|
|
2132
|
+
return cx === void 0 || cy === void 0 ? void 0 : { cx, cy };
|
|
2133
|
+
}
|
|
2134
|
+
function placementOf(anchor) {
|
|
2135
|
+
if (anchor.local === "twoCellAnchor") {
|
|
2136
|
+
const from = point(child(anchor, "xdr:from"));
|
|
2137
|
+
const to = point(child(anchor, "xdr:to"));
|
|
2138
|
+
return from && to ? { kind: "twoCell", from, to } : void 0;
|
|
2139
|
+
}
|
|
2140
|
+
const ext = extent(child(anchor, "xdr:ext"));
|
|
2141
|
+
if (!ext) return void 0;
|
|
2142
|
+
if (anchor.local === "oneCellAnchor") {
|
|
2143
|
+
const from = point(child(anchor, "xdr:from"));
|
|
2144
|
+
return from ? { kind: "oneCell", from, ...ext } : void 0;
|
|
2145
|
+
}
|
|
2146
|
+
const pos = child(anchor, "xdr:pos");
|
|
2147
|
+
const x = numberAttr2(pos, "x", -MAX_COORDINATE, MAX_COORDINATE);
|
|
2148
|
+
const y = numberAttr2(pos, "y", -MAX_COORDINATE, MAX_COORDINATE);
|
|
2149
|
+
return x === void 0 || y === void 0 ? void 0 : { kind: "absolute", x, y, ...ext };
|
|
2150
|
+
}
|
|
2151
|
+
var OBJECTS = /* @__PURE__ */ new Set(["sp", "pic", "cxnSp", "grpSp", "graphicFrame", "contentPart"]);
|
|
2152
|
+
var ANCHORS = /* @__PURE__ */ new Set(["twoCellAnchor", "oneCellAnchor", "absoluteAnchor"]);
|
|
2153
|
+
function anchorsOf(root) {
|
|
2154
|
+
const out = [];
|
|
2155
|
+
for (const el of elements(root)) {
|
|
2156
|
+
if (out.length >= MAX_ANCHORS) break;
|
|
2157
|
+
if (el.ns === NS.xdr && ANCHORS.has(el.local)) out.push(el);
|
|
2158
|
+
else if (el.ns === NS.mc && el.local === "AlternateContent") {
|
|
2159
|
+
const fallback = child(el, "mc:Fallback");
|
|
2160
|
+
for (const inner of elements(fallback))
|
|
2161
|
+
if (inner.ns === NS.xdr && ANCHORS.has(inner.local) && out.length < MAX_ANCHORS)
|
|
2162
|
+
out.push(inner);
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
return out;
|
|
2166
|
+
}
|
|
2167
|
+
var parsedCache = /* @__PURE__ */ new WeakMap();
|
|
2168
|
+
function parsedAnchors(root) {
|
|
2169
|
+
const hit = parsedCache.get(root);
|
|
2170
|
+
if (hit) return hit;
|
|
2171
|
+
const out = [];
|
|
2172
|
+
anchorsOf(root).forEach((anchor, index) => {
|
|
2173
|
+
const placement = placementOf(anchor);
|
|
2174
|
+
if (!placement) return;
|
|
2175
|
+
const object = elements(anchor).find((el) => el.ns === NS.xdr && OBJECTS.has(el.local));
|
|
2176
|
+
out.push({ index, placement, object });
|
|
2177
|
+
});
|
|
2178
|
+
parsedCache.set(root, out);
|
|
2179
|
+
return out;
|
|
2180
|
+
}
|
|
2181
|
+
function drawingPartOf(pkg, sheetPart, worksheet) {
|
|
2182
|
+
const id = attr(child(worksheet, "x:drawing"), "r:id");
|
|
2183
|
+
if (!id) return void 0;
|
|
2184
|
+
const rel = relationshipById(pkg, sheetPart, id);
|
|
2185
|
+
return rel && !rel.external && rel.type === REL.drawing ? rel.target : void 0;
|
|
2186
|
+
}
|
|
2187
|
+
var pt = (emu) => emu / EMU_PER_POINT;
|
|
2188
|
+
var normalizedDegrees = (deg) => {
|
|
2189
|
+
const d = deg % 360;
|
|
2190
|
+
return d < 0 ? d + 360 : d === 0 ? 0 : d;
|
|
2191
|
+
};
|
|
2192
|
+
function drawingBounds(d) {
|
|
2193
|
+
const rad = d.rotation * Math.PI / 180;
|
|
2194
|
+
const cos = Math.abs(Math.cos(rad));
|
|
2195
|
+
const sin = Math.abs(Math.sin(rad));
|
|
2196
|
+
const w = d.rect.width * cos + d.rect.height * sin;
|
|
2197
|
+
const h = d.rect.width * sin + d.rect.height * cos;
|
|
2198
|
+
const grow = d.kind === "shape" && d.line ? d.line.width / 2 : 0;
|
|
2199
|
+
const cx = d.rect.x + d.rect.width / 2;
|
|
2200
|
+
const cy = d.rect.y + d.rect.height / 2;
|
|
2201
|
+
return { x: cx - w / 2 - grow, y: cy - h / 2 - grow, width: w + 2 * grow, height: h + 2 * grow };
|
|
2202
|
+
}
|
|
2203
|
+
function cellPoint(geometry, p) {
|
|
2204
|
+
const clamp = (offset, size) => Math.min(Math.max(0, offset), size);
|
|
2205
|
+
return {
|
|
2206
|
+
x: geometry.columns.offsetOf(p.col) + clamp(pt(p.colOff), geometry.columns.sizeOf(p.col)),
|
|
2207
|
+
y: geometry.rows.offsetOf(p.row) + clamp(pt(p.rowOff), geometry.rows.sizeOf(p.row))
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2210
|
+
function rectOf(geometry, placement) {
|
|
2211
|
+
if (placement.kind === "absolute")
|
|
2212
|
+
return {
|
|
2213
|
+
x: pt(placement.x),
|
|
2214
|
+
y: pt(placement.y),
|
|
2215
|
+
width: pt(placement.cx),
|
|
2216
|
+
height: pt(placement.cy)
|
|
2217
|
+
};
|
|
2218
|
+
const from = cellPoint(geometry, placement.from);
|
|
2219
|
+
if (placement.kind === "oneCell")
|
|
2220
|
+
return { x: from.x, y: from.y, width: pt(placement.cx), height: pt(placement.cy) };
|
|
2221
|
+
const to = cellPoint(geometry, placement.to);
|
|
2222
|
+
return {
|
|
2223
|
+
x: Math.min(from.x, to.x),
|
|
2224
|
+
y: Math.min(from.y, to.y),
|
|
2225
|
+
width: Math.abs(to.x - from.x),
|
|
2226
|
+
height: Math.abs(to.y - from.y)
|
|
2227
|
+
};
|
|
2228
|
+
}
|
|
2229
|
+
var SCHEME_INDEX = Object.freeze({
|
|
2230
|
+
lt1: 0,
|
|
2231
|
+
bg1: 0,
|
|
2232
|
+
dk1: 1,
|
|
2233
|
+
tx1: 1,
|
|
2234
|
+
lt2: 2,
|
|
2235
|
+
bg2: 2,
|
|
2236
|
+
dk2: 3,
|
|
2237
|
+
tx2: 3,
|
|
2238
|
+
accent1: 4,
|
|
2239
|
+
accent2: 5,
|
|
2240
|
+
accent3: 6,
|
|
2241
|
+
accent4: 7,
|
|
2242
|
+
accent5: 8,
|
|
2243
|
+
accent6: 9,
|
|
2244
|
+
hlink: 10,
|
|
2245
|
+
folHlink: 11
|
|
2246
|
+
});
|
|
2247
|
+
function colorOf(el, theme) {
|
|
2248
|
+
const model = elements(el).find((c) => c.ns === NS.a);
|
|
2249
|
+
if (!model) return void 0;
|
|
2250
|
+
return resolveDrawingColor(
|
|
2251
|
+
{
|
|
2252
|
+
model: model.local,
|
|
2253
|
+
readAttribute: (name) => attr(model, name),
|
|
2254
|
+
transforms: elements(model).filter((t) => t.ns === NS.a).map((t) => {
|
|
2255
|
+
const val = attr(t, "val");
|
|
2256
|
+
return val === void 0 ? { name: t.local } : { name: t.local, val };
|
|
2257
|
+
})
|
|
2258
|
+
},
|
|
2259
|
+
(name) => {
|
|
2260
|
+
const i = Object.hasOwn(SCHEME_INDEX, name) ? SCHEME_INDEX[name] : void 0;
|
|
2261
|
+
return i === void 0 ? void 0 : parseHex(theme.palette[i]);
|
|
2262
|
+
}
|
|
2263
|
+
);
|
|
2264
|
+
}
|
|
2265
|
+
function geometryElement(el) {
|
|
2266
|
+
return {
|
|
2267
|
+
namespaceUri: el.ns,
|
|
2268
|
+
localName: el.local,
|
|
2269
|
+
attribute: (name) => attr(el, name),
|
|
2270
|
+
childElements: () => elements(el).map(geometryElement)
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
2273
|
+
function adjustValues(prst) {
|
|
2274
|
+
const out = /* @__PURE__ */ new Map();
|
|
2275
|
+
for (const gd of elements(child(prst, "a:avLst"))) {
|
|
2276
|
+
const name = attr(gd, "name");
|
|
2277
|
+
const fmla = attr(gd, "fmla") ?? "";
|
|
2278
|
+
if (!name || !fmla.startsWith("val ") || fmla.length > 32) continue;
|
|
2279
|
+
const v = Number(fmla.slice(4));
|
|
2280
|
+
if (Number.isFinite(v)) out.set(name, v);
|
|
2281
|
+
}
|
|
2282
|
+
return out;
|
|
2283
|
+
}
|
|
2284
|
+
function shapeOf(object, common, theme) {
|
|
2285
|
+
const spPr = child(object, "xdr:spPr");
|
|
2286
|
+
const w = common.rect.width * EMU_PER_POINT;
|
|
2287
|
+
const h = common.rect.height * EMU_PER_POINT;
|
|
2288
|
+
const prst = child(spPr, "a:prstGeom");
|
|
2289
|
+
const cust = child(spPr, "a:custGeom");
|
|
2290
|
+
let geometry;
|
|
2291
|
+
if (prst)
|
|
2292
|
+
geometry = evaluatePresetGeometry(attr(prst, "prst") ?? "rect", w, h, adjustValues(prst));
|
|
2293
|
+
else if (cust) geometry = evaluateGeometry(customGeometryDefinition(geometryElement(cust)), w, h);
|
|
2294
|
+
else return { ...common, kind: "unsupported", element: object.local };
|
|
2295
|
+
const toPoints = (v) => v / EMU_PER_POINT;
|
|
2296
|
+
const scaled = {
|
|
2297
|
+
...geometry,
|
|
2298
|
+
paths: geometry.paths.map((p) => ({
|
|
2299
|
+
...p,
|
|
2300
|
+
commands: p.commands.map((c) => {
|
|
2301
|
+
if (c.op === "Z") return c;
|
|
2302
|
+
if (c.op === "C")
|
|
2303
|
+
return {
|
|
2304
|
+
op: "C",
|
|
2305
|
+
x1: toPoints(c.x1),
|
|
2306
|
+
y1: toPoints(c.y1),
|
|
2307
|
+
x2: toPoints(c.x2),
|
|
2308
|
+
y2: toPoints(c.y2),
|
|
2309
|
+
x: toPoints(c.x),
|
|
2310
|
+
y: toPoints(c.y)
|
|
2311
|
+
};
|
|
2312
|
+
if (c.op === "Q")
|
|
2313
|
+
return {
|
|
2314
|
+
op: "Q",
|
|
2315
|
+
x1: toPoints(c.x1),
|
|
2316
|
+
y1: toPoints(c.y1),
|
|
2317
|
+
x: toPoints(c.x),
|
|
2318
|
+
y: toPoints(c.y)
|
|
2319
|
+
};
|
|
2320
|
+
return { op: c.op, x: toPoints(c.x), y: toPoints(c.y) };
|
|
2321
|
+
})
|
|
2322
|
+
})),
|
|
2323
|
+
textRect: {
|
|
2324
|
+
l: toPoints(geometry.textRect.l),
|
|
2325
|
+
t: toPoints(geometry.textRect.t),
|
|
2326
|
+
r: toPoints(geometry.textRect.r),
|
|
2327
|
+
b: toPoints(geometry.textRect.b)
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2330
|
+
const style = child(object, "xdr:style");
|
|
2331
|
+
const fill = child(spPr, "a:noFill") ? void 0 : colorOf(child(spPr, "a:solidFill"), theme) ?? (object.local === "sp" ? colorOf(child(style, "a:fillRef"), theme) : void 0);
|
|
2332
|
+
const ln = child(spPr, "a:ln");
|
|
2333
|
+
const lineColor = child(ln, "a:noFill") ? void 0 : colorOf(child(ln, "a:solidFill"), theme) ?? colorOf(child(style, "a:lnRef"), theme);
|
|
2334
|
+
const lineWidth = numberAttr2(ln, "w", 0, 20116800) ?? 9525;
|
|
2335
|
+
return {
|
|
2336
|
+
...common,
|
|
2337
|
+
kind: "shape",
|
|
2338
|
+
geometry: scaled,
|
|
2339
|
+
fill,
|
|
2340
|
+
line: lineColor ? { color: lineColor, width: lineWidth / EMU_PER_POINT } : void 0
|
|
2341
|
+
};
|
|
2342
|
+
}
|
|
2343
|
+
function objectLayout(pkg, drawingPart, anchor, rect, theme) {
|
|
2344
|
+
const object = anchor.object;
|
|
2345
|
+
if (!object) return void 0;
|
|
2346
|
+
const nv = elements(object).find((el) => el.local.startsWith("nv"));
|
|
2347
|
+
const cNvPr = elements(nv).find((el) => el.local === "cNvPr");
|
|
2348
|
+
if (attr(cNvPr, "hidden") === "1" || attr(cNvPr, "hidden") === "true") return void 0;
|
|
2349
|
+
const xfrm = child(child(object, "xdr:spPr"), "a:xfrm");
|
|
2350
|
+
const common = {
|
|
2351
|
+
index: anchor.index,
|
|
2352
|
+
name: (attr(cNvPr, "name") ?? "").slice(0, 255),
|
|
2353
|
+
rect,
|
|
2354
|
+
rotation: normalizedDegrees(
|
|
2355
|
+
(numberAttr2(xfrm, "rot", -216e5 * 100, 216e5 * 100) ?? 0) / 6e4
|
|
2356
|
+
),
|
|
2357
|
+
flipH: attr(xfrm, "flipH") === "1" || attr(xfrm, "flipH") === "true",
|
|
2358
|
+
flipV: attr(xfrm, "flipV") === "1" || attr(xfrm, "flipV") === "true"
|
|
2359
|
+
};
|
|
2360
|
+
if (object.local === "pic") {
|
|
2361
|
+
const blip = child(child(object, "xdr:blipFill"), "a:blip");
|
|
2362
|
+
const embed = attr(blip, "r:embed");
|
|
2363
|
+
const rel = embed ? relationshipById(pkg, drawingPart, embed) : void 0;
|
|
2364
|
+
if (rel?.external || !embed && attr(blip, "r:link") !== void 0)
|
|
2365
|
+
return { ...common, kind: "unsupported", element: "externalImage" };
|
|
2366
|
+
const target = embed ? relTarget(pkg, drawingPart, embed) : void 0;
|
|
2367
|
+
if (!target || rel?.type !== REL.image || !partOf(pkg, target))
|
|
2368
|
+
return { ...common, kind: "unsupported", element: "missingImage" };
|
|
2369
|
+
return {
|
|
2370
|
+
...common,
|
|
2371
|
+
kind: "picture",
|
|
2372
|
+
partName: target,
|
|
2373
|
+
contentType: contentTypeOf(pkg, target)
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2376
|
+
if (object.local === "sp" || object.local === "cxnSp") return shapeOf(object, common, theme);
|
|
2377
|
+
return { ...common, kind: "unsupported", element: object.local };
|
|
2378
|
+
}
|
|
2379
|
+
var layoutCache = /* @__PURE__ */ new WeakMap();
|
|
2380
|
+
function sheetDrawings(pkg, drawingPart, geometry, theme) {
|
|
2381
|
+
const part = xmlPartOf(pkg, drawingPart);
|
|
2382
|
+
if (!drawingPart || !part || part.root.ns !== NS.xdr || part.root.local !== "wsDr") return [];
|
|
2383
|
+
let byGeometry = layoutCache.get(part.root);
|
|
2384
|
+
if (!byGeometry) {
|
|
2385
|
+
byGeometry = /* @__PURE__ */ new WeakMap();
|
|
2386
|
+
layoutCache.set(part.root, byGeometry);
|
|
2387
|
+
}
|
|
2388
|
+
const hit = byGeometry.get(geometry);
|
|
2389
|
+
if (hit && hit.theme === theme) return hit.layouts;
|
|
2390
|
+
const layouts = [];
|
|
2391
|
+
for (const anchor of parsedAnchors(part.root)) {
|
|
2392
|
+
const layout = objectLayout(
|
|
2393
|
+
pkg,
|
|
2394
|
+
drawingPart,
|
|
2395
|
+
anchor,
|
|
2396
|
+
rectOf(geometry, anchor.placement),
|
|
2397
|
+
theme
|
|
2398
|
+
);
|
|
2399
|
+
if (layout) layouts.push(layout);
|
|
2400
|
+
}
|
|
2401
|
+
byGeometry.set(geometry, { theme, layouts });
|
|
2402
|
+
return layouts;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
// src/layout/shared-cell-text.ts
|
|
2406
|
+
var MANY_RUNS = 256;
|
|
2407
|
+
var lineSizes = (text) => text.lines.map((line) => line.spans.reduce((size, s) => Math.max(size, s.style.sizePt), 0));
|
|
2408
|
+
function firstReaching(spans, reaches) {
|
|
2409
|
+
let low = 0;
|
|
2410
|
+
let high = spans.length;
|
|
2411
|
+
while (low < high) {
|
|
2412
|
+
const mid = low + high >>> 1;
|
|
2413
|
+
if (reaches(spans[mid])) high = mid;
|
|
2414
|
+
else low = mid + 1;
|
|
2415
|
+
}
|
|
2416
|
+
return low;
|
|
2417
|
+
}
|
|
2418
|
+
var PlacedCellText = class {
|
|
2419
|
+
constructor(shared, dx, dy) {
|
|
2420
|
+
this.shared = shared;
|
|
2421
|
+
this.dx = dx;
|
|
2422
|
+
this.dy = dy;
|
|
2423
|
+
const { text } = shared;
|
|
2424
|
+
this.text = {
|
|
2425
|
+
...text,
|
|
2426
|
+
left: text.left + dx,
|
|
2427
|
+
right: text.right + dx,
|
|
2428
|
+
areaLeft: text.areaLeft + dx,
|
|
2429
|
+
areaRight: text.areaRight + dx
|
|
2430
|
+
};
|
|
2431
|
+
}
|
|
2432
|
+
shared;
|
|
2433
|
+
dx;
|
|
2434
|
+
dy;
|
|
2435
|
+
/** The layout in the coordinates of the sheet. Its lines are those of the shared layout. */
|
|
2436
|
+
text;
|
|
2437
|
+
/** The complete text of the cell, with its lines joined by a space. */
|
|
2438
|
+
get shownText() {
|
|
2439
|
+
return this.shared.shownText;
|
|
2440
|
+
}
|
|
2441
|
+
/** The layout moved by the pane offset, with the spans that can reach `clip`. */
|
|
2442
|
+
inView(clip, paneDx, paneDy) {
|
|
2443
|
+
const x = this.dx + paneDx;
|
|
2444
|
+
const y = this.dy + paneDy;
|
|
2445
|
+
const lines = this.shared.text.lines.map((line, i) => {
|
|
2446
|
+
const size = this.shared.sizes[i];
|
|
2447
|
+
const baseline = line.baseline + y;
|
|
2448
|
+
const near = baseline + size * 2 >= clip.y && baseline - size * 2 <= clip.y + clip.height;
|
|
2449
|
+
const right = clip.x + clip.width;
|
|
2450
|
+
const from = firstReaching(line.spans, (s) => s.x + x + s.width + size >= clip.x);
|
|
2451
|
+
const to = firstReaching(line.spans, (s) => s.x + x - size > right);
|
|
2452
|
+
const spans = near ? line.spans.slice(from, Math.max(from, to)) : [];
|
|
2453
|
+
return {
|
|
2454
|
+
...line,
|
|
2455
|
+
x: line.x + x,
|
|
2456
|
+
baseline,
|
|
2457
|
+
spans: spans.map((s) => ({
|
|
2458
|
+
...s,
|
|
2459
|
+
x: s.x + x,
|
|
2460
|
+
positions: s.positions.map((p) => p + x)
|
|
2461
|
+
}))
|
|
2462
|
+
};
|
|
2463
|
+
});
|
|
2464
|
+
return {
|
|
2465
|
+
...this.shared.text,
|
|
2466
|
+
lines,
|
|
2467
|
+
left: this.shared.text.left + x,
|
|
2468
|
+
right: this.shared.text.right + x,
|
|
2469
|
+
areaLeft: this.shared.text.areaLeft + x,
|
|
2470
|
+
areaRight: this.shared.text.areaRight + x
|
|
2471
|
+
};
|
|
2472
|
+
}
|
|
2473
|
+
};
|
|
2474
|
+
var SharedCellTexts = class {
|
|
2475
|
+
known = /* @__PURE__ */ new Map();
|
|
2476
|
+
/** The layout of `runs` in `format` for `box`, when a cell of the pane already made it. */
|
|
2477
|
+
find(runs, format, box) {
|
|
2478
|
+
const shared = this.known.get(runs)?.find(
|
|
2479
|
+
(s) => s.format.font === format.font && s.format.alignment === format.alignment && s.box.width === box.width && s.box.height === box.height
|
|
2480
|
+
);
|
|
2481
|
+
return shared && new PlacedCellText(shared, box.x - shared.box.x, box.y - shared.box.y);
|
|
2482
|
+
}
|
|
2483
|
+
/** Keeps the layout `text` of `runs` that was made for `box`. */
|
|
2484
|
+
add(runs, format, box, text) {
|
|
2485
|
+
const shownText = text.lines.map((l) => l.spans.map((s) => s.text).join("")).join(" ");
|
|
2486
|
+
const shared = { format, box, text, sizes: lineSizes(text), shownText };
|
|
2487
|
+
const list = this.known.get(runs);
|
|
2488
|
+
if (list) list.push(shared);
|
|
2489
|
+
else this.known.set(runs, [shared]);
|
|
2490
|
+
return new PlacedCellText(shared, 0, 0);
|
|
2491
|
+
}
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
// src/layout/sheet-layout.ts
|
|
2495
|
+
var MAX_WINDOW = 2e3;
|
|
2496
|
+
var OVERFLOW_REACH = 64;
|
|
2497
|
+
var MAX_PROBLEMS = 200;
|
|
2498
|
+
var keyCache = /* @__PURE__ */ new WeakMap();
|
|
2499
|
+
function sortedKeys(sheet) {
|
|
2500
|
+
let keys = keyCache.get(sheet);
|
|
2501
|
+
if (!keys) {
|
|
2502
|
+
keys = Float64Array.from(sheet.order).sort();
|
|
2503
|
+
keyCache.set(sheet, keys);
|
|
2504
|
+
}
|
|
2505
|
+
return keys;
|
|
2506
|
+
}
|
|
2507
|
+
function lowerBound(keys, key) {
|
|
2508
|
+
let lo = 0;
|
|
2509
|
+
let hi = keys.length;
|
|
2510
|
+
work.searches += 1;
|
|
2511
|
+
while (lo < hi) {
|
|
2512
|
+
work.searchSteps += 1;
|
|
2513
|
+
const mid = lo + hi >> 1;
|
|
2514
|
+
if (keys[mid] < key) lo = mid + 1;
|
|
2515
|
+
else hi = mid;
|
|
2516
|
+
}
|
|
2517
|
+
return lo;
|
|
2518
|
+
}
|
|
2519
|
+
var geometryCache = /* @__PURE__ */ new WeakMap();
|
|
2520
|
+
function geometrySlot(keys) {
|
|
2521
|
+
let map = geometryCache;
|
|
2522
|
+
let node;
|
|
2523
|
+
for (const key of keys) {
|
|
2524
|
+
node = map.get(key);
|
|
2525
|
+
if (!node) {
|
|
2526
|
+
node = { next: /* @__PURE__ */ new WeakMap() };
|
|
2527
|
+
map.set(key, node);
|
|
2528
|
+
}
|
|
2529
|
+
map = node.next;
|
|
2530
|
+
}
|
|
2531
|
+
return node.value ??= /* @__PURE__ */ new Map();
|
|
2532
|
+
}
|
|
2533
|
+
function record(ctx, problem) {
|
|
2534
|
+
if (ctx.problems.length < MAX_PROBLEMS) ctx.problems.push(problem);
|
|
2535
|
+
}
|
|
2536
|
+
function geometryOf(pkg, index, sheet, measurer, profile) {
|
|
2537
|
+
const byProfile = geometrySlot([
|
|
2538
|
+
sheet,
|
|
2539
|
+
styleLists(pkg, index),
|
|
2540
|
+
sharedStringItems(pkg, index),
|
|
2541
|
+
workbookTheme(pkg, index),
|
|
2542
|
+
measurer
|
|
2543
|
+
]);
|
|
2544
|
+
const metrics = gridMetrics(pkg, index, measurer, profile);
|
|
2545
|
+
const key = `${profile.pixelsPerInch}|${profile.rowPadding}|${profile.rowScale}|${metrics.maxDigitWidth}|${metrics.defaultRowHeight}`;
|
|
2546
|
+
const hit = byProfile.get(key);
|
|
2547
|
+
if (hit) return hit;
|
|
2548
|
+
const autoHeight = rowAutoHeight(
|
|
2549
|
+
pkg,
|
|
2550
|
+
index,
|
|
2551
|
+
sharedStringItems(pkg, index),
|
|
2552
|
+
{ measurer, profile, maxDigitWidth: metrics.maxDigitWidth },
|
|
2553
|
+
metrics.defaultRowHeight,
|
|
2554
|
+
mergedRanges(sheet.root)
|
|
2555
|
+
);
|
|
2556
|
+
const result = { metrics, geometry: sheetGeometry(sheet, metrics, autoHeight) };
|
|
2557
|
+
if (byProfile.size > 8) byProfile.clear();
|
|
2558
|
+
byProfile.set(key, result);
|
|
2559
|
+
return result;
|
|
2560
|
+
}
|
|
2561
|
+
var flagOf = (el, name, fallback) => {
|
|
2562
|
+
const v = attr(el, name);
|
|
2563
|
+
return v === void 0 ? fallback : v === "1" || v === "true";
|
|
2564
|
+
};
|
|
2565
|
+
var EMPTY = Object.freeze({ kind: "empty" });
|
|
2566
|
+
function conditionalWithin(ctx, row, col, value, format) {
|
|
2567
|
+
work.ruleChecks += 1;
|
|
2568
|
+
const before = ctx.checks.left;
|
|
2569
|
+
const shown = conditionalFormat(
|
|
2570
|
+
ctx.pkg,
|
|
2571
|
+
ctx.index,
|
|
2572
|
+
ctx.sheet.root,
|
|
2573
|
+
row,
|
|
2574
|
+
col,
|
|
2575
|
+
value,
|
|
2576
|
+
format,
|
|
2577
|
+
ctx.checks
|
|
2578
|
+
);
|
|
2579
|
+
if (before > 0 && ctx.checks.left <= 0) record(ctx, { code: "conditional-budget" });
|
|
2580
|
+
return shown;
|
|
2581
|
+
}
|
|
2582
|
+
function rowHasShownRulesWithin(ctx, row) {
|
|
2583
|
+
work.ruleChecks += 1;
|
|
2584
|
+
const before = ctx.checks.left;
|
|
2585
|
+
const meets = rowHasShownRules(ctx.sheet.root, row, ctx.checks);
|
|
2586
|
+
if (before > 0 && ctx.checks.left <= 0) record(ctx, { code: "conditional-budget" });
|
|
2587
|
+
return meets;
|
|
2588
|
+
}
|
|
2589
|
+
var work = {
|
|
2590
|
+
/** The cell positions that the layout looks up (`resolveCell`). */
|
|
2591
|
+
looked: 0,
|
|
2592
|
+
/** The looked-up positions that hold a cell. */
|
|
2593
|
+
resolved: 0,
|
|
2594
|
+
/** The binary searches of the sorted cell keys, and their steps. */
|
|
2595
|
+
searches: 0,
|
|
2596
|
+
searchSteps: 0,
|
|
2597
|
+
/** The sorted cell keys that the row loops read: in the window and on each side of it. */
|
|
2598
|
+
keySteps: 0,
|
|
2599
|
+
/** The merged ranges that the merge search reads for each pane (`mergesIn`). */
|
|
2600
|
+
mergesRead: 0,
|
|
2601
|
+
/** The rows and cells that the layout checks against conditional formatting rules. */
|
|
2602
|
+
ruleChecks: 0,
|
|
2603
|
+
/** The drawings that the layout tests against each pane. */
|
|
2604
|
+
drawingsRead: 0
|
|
2605
|
+
};
|
|
2606
|
+
function resolveCell(ctx, row, col) {
|
|
2607
|
+
work.looked += 1;
|
|
2608
|
+
const entry = ctx.sheet.cells.get(cellKey(row, col));
|
|
2609
|
+
if (!entry) return void 0;
|
|
2610
|
+
work.resolved += 1;
|
|
2611
|
+
const value = cellValue(ctx.pkg, ctx.index, entry.el, ctx.stale);
|
|
2612
|
+
const format = cellFormat(ctx.pkg, ctx.index, attr(entry.el, "s"));
|
|
2613
|
+
if (value.problem) record(ctx, { ...value.problem, row, col });
|
|
2614
|
+
for (const p of format.problems) record(ctx, { ...p, row, col });
|
|
2615
|
+
const unknown = value.formula && value.value.kind === "empty";
|
|
2616
|
+
const shown = unknown ? format.format : conditionalWithin(ctx, row, col, value.value, format.format);
|
|
2617
|
+
return { el: entry.el, value, format: shown };
|
|
2618
|
+
}
|
|
2619
|
+
var hasValue2 = (r) => !!r && (r.value.value.kind !== "empty" || r.value.formula);
|
|
2620
|
+
function manyRunsOf(cell) {
|
|
2621
|
+
const v = cell.value.value;
|
|
2622
|
+
const { textRotation, horizontal } = cell.format.alignment;
|
|
2623
|
+
if (v.kind !== "string" || !v.runs || v.runs.length < MANY_RUNS) return void 0;
|
|
2624
|
+
return textRotation === 0 && horizontal !== "centerContinuous" ? v.runs : void 0;
|
|
2625
|
+
}
|
|
2626
|
+
function textOf3(ctx, cell, box) {
|
|
2627
|
+
const v = cell.value.value;
|
|
2628
|
+
const font = cell.format.font;
|
|
2629
|
+
if (v.kind === "empty") return void 0;
|
|
2630
|
+
if (v.kind === "string" && v.runs && v.runs.length > 0)
|
|
2631
|
+
return {
|
|
2632
|
+
kind: "text",
|
|
2633
|
+
runs: richTextRuns(v.runs, font, ctx.pkg, ctx.index)
|
|
2634
|
+
};
|
|
2635
|
+
const shown = displayValue(v, cell.format, { locale: ctx.locale, date1904: ctx.index.date1904 });
|
|
2636
|
+
if (shown.problem) record(ctx, { ...shown.problem });
|
|
2637
|
+
const kind = valueKind(v);
|
|
2638
|
+
let alignKind = shown.alignAsText ? "text" : shown.fill && shown.text === "" && shown.fill.char === "#" ? "error" : void 0;
|
|
2639
|
+
const available = textArea(box, ctx.text, font) - indentWidth(cell.format.alignment, alignKind ?? kind, ctx.text);
|
|
2640
|
+
const width = (s, at = []) => textWidth(ctx.text, s, font, at);
|
|
2641
|
+
let text = shown.text;
|
|
2642
|
+
let pads = shown.pads ?? [];
|
|
2643
|
+
if (shown.fill) {
|
|
2644
|
+
const room = available - width(text, pads);
|
|
2645
|
+
const unit = width(shown.fill.char);
|
|
2646
|
+
const count = unit > 0 && room > 0 ? Math.min(1e3, Math.floor(room / unit)) : 0;
|
|
2647
|
+
const at = shown.fill.index;
|
|
2648
|
+
text = text.slice(0, at) + shown.fill.char.repeat(count) + text.slice(at);
|
|
2649
|
+
pads = pads.map((p) => p.index >= at ? { index: p.index + count, char: p.char } : p);
|
|
2650
|
+
}
|
|
2651
|
+
if (kind === "number" && !cell.format.alignment.wrapText && cell.format.alignment.textRotation === 0) {
|
|
2652
|
+
const general = formatCodeOf(cell.format, ctx.locale).toLowerCase() === "general";
|
|
2653
|
+
const value = v.kind === "number" ? v.value : Number.NaN;
|
|
2654
|
+
const fitted2 = fitNumber(
|
|
2655
|
+
value,
|
|
2656
|
+
text,
|
|
2657
|
+
general && v.kind === "number",
|
|
2658
|
+
ctx.locale.decimal,
|
|
2659
|
+
available,
|
|
2660
|
+
(s) => width(s, s === text ? pads : [])
|
|
2661
|
+
);
|
|
2662
|
+
if (fitted2 !== text) {
|
|
2663
|
+
pads = [];
|
|
2664
|
+
if (/^#+$/.test(fitted2)) alignKind = "error";
|
|
2665
|
+
}
|
|
2666
|
+
text = fitted2;
|
|
2667
|
+
}
|
|
2668
|
+
return {
|
|
2669
|
+
kind,
|
|
2670
|
+
runs: [{ text, font, ...pads.length ? { pads } : {} }],
|
|
2671
|
+
...alignKind ? { alignKind } : {},
|
|
2672
|
+
...shown.color ? { color: shown.color } : {}
|
|
2673
|
+
};
|
|
2674
|
+
}
|
|
2675
|
+
function sheetRect(geometry, r) {
|
|
2676
|
+
const x = geometry.columns.offsetOf(r.firstCol);
|
|
2677
|
+
const y = geometry.rows.offsetOf(r.firstRow);
|
|
2678
|
+
return {
|
|
2679
|
+
x,
|
|
2680
|
+
y,
|
|
2681
|
+
width: geometry.columns.offsetOf(r.lastCol + 1) - x,
|
|
2682
|
+
height: geometry.rows.offsetOf(r.lastRow + 1) - y
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2685
|
+
var cellRect = (g, row, col) => sheetRect(g, { firstRow: row, lastRow: row, firstCol: col, lastCol: col });
|
|
2686
|
+
var shift = (r, dx, dy) => ({ ...r, x: r.x + dx, y: r.y + dy });
|
|
2687
|
+
var intersect = (a, b) => {
|
|
2688
|
+
const x = Math.max(a.x, b.x);
|
|
2689
|
+
const y = Math.max(a.y, b.y);
|
|
2690
|
+
return {
|
|
2691
|
+
x,
|
|
2692
|
+
y,
|
|
2693
|
+
width: Math.max(0, Math.min(a.x + a.width, b.x + b.width) - x),
|
|
2694
|
+
height: Math.max(0, Math.min(a.y + a.height, b.y + b.height) - y)
|
|
2695
|
+
};
|
|
2696
|
+
};
|
|
2697
|
+
var paints = (format) => {
|
|
2698
|
+
const b = format.border;
|
|
2699
|
+
return format.fill.kind !== "none" || b.left.style !== "none" || b.right.style !== "none" || b.top.style !== "none" || b.bottom.style !== "none" || b.diagonal.style !== "none" && (b.diagonalUp || b.diagonalDown);
|
|
2700
|
+
};
|
|
2701
|
+
function formatOfIndex(ctx, s) {
|
|
2702
|
+
if (s === void 0 || s === 0) return void 0;
|
|
2703
|
+
return cellFormat(ctx.pkg, ctx.index, String(s)).format;
|
|
2704
|
+
}
|
|
2705
|
+
function columnFormatOf(ctx, col) {
|
|
2706
|
+
return columnFormats(ctx.sheet.root, col, col).get(col);
|
|
2707
|
+
}
|
|
2708
|
+
function layoutPane(ctx, pane, merges, drawings) {
|
|
2709
|
+
const g = ctx.geometry;
|
|
2710
|
+
const { range } = pane;
|
|
2711
|
+
const lastRow = Math.min(range.lastRow, range.firstRow + MAX_WINDOW - 1);
|
|
2712
|
+
const lastCol = Math.min(range.lastCol, range.firstCol + MAX_WINDOW - 1);
|
|
2713
|
+
if (lastRow < range.lastRow || lastCol < range.lastCol) record(ctx, { code: "window-truncated" });
|
|
2714
|
+
const columns = [];
|
|
2715
|
+
for (let c = range.firstCol; c <= lastCol; c += 1)
|
|
2716
|
+
if (g.columns.sizeOf(c) > 0)
|
|
2717
|
+
columns.push({ index: c, start: g.columns.offsetOf(c) + pane.dx, size: g.columns.sizeOf(c) });
|
|
2718
|
+
const rows = [];
|
|
2719
|
+
for (let r = range.firstRow; r <= lastRow; r += 1)
|
|
2720
|
+
if (g.rows.sizeOf(r) > 0)
|
|
2721
|
+
rows.push({ index: r, start: g.rows.offsetOf(r) + pane.dy, size: g.rows.sizeOf(r) });
|
|
2722
|
+
const span = { ...range, lastRow, lastCol };
|
|
2723
|
+
const band = {
|
|
2724
|
+
...span,
|
|
2725
|
+
firstCol: Math.max(0, span.firstCol - OVERFLOW_REACH),
|
|
2726
|
+
lastCol: Math.min(g.columns.count - 1, lastCol + OVERFLOW_REACH)
|
|
2727
|
+
};
|
|
2728
|
+
const inBand = mergesIn(merges, band, work);
|
|
2729
|
+
const inPane = inBand.filter((m) => m.firstCol <= lastCol && m.lastCol >= span.firstCol);
|
|
2730
|
+
const isCovered = mergeCoverage(inBand);
|
|
2731
|
+
const blocked = (r, c) => isCovered(r, c) || hasValue2(resolveCell(ctx, r, c));
|
|
2732
|
+
const cells = [];
|
|
2733
|
+
const texts = [];
|
|
2734
|
+
const sharedTexts = new SharedCellTexts();
|
|
2735
|
+
const addText = (row, col, cell, sheetBox, overflow) => {
|
|
2736
|
+
const manyRuns = manyRunsOf(cell);
|
|
2737
|
+
let shared = manyRuns && sharedTexts.find(manyRuns, cell.format, sheetBox);
|
|
2738
|
+
const content = shared ? void 0 : textOf3(ctx, cell, sheetBox);
|
|
2739
|
+
if (!shared && !content) {
|
|
2740
|
+
if (!cell.value.formula || !cell.value.stale) return;
|
|
2741
|
+
const clip2 = intersect(shift(sheetBox, pane.dx, pane.dy), pane.clip);
|
|
2742
|
+
if (clip2.width <= 0 || clip2.height <= 0) return;
|
|
2743
|
+
const none = { lines: [], left: 0, right: 0, areaLeft: 0, areaRight: 0, mayOverflow: false };
|
|
2744
|
+
texts.push({ row, col, clip: clip2, text: none, stale: true });
|
|
2745
|
+
return;
|
|
2746
|
+
}
|
|
2747
|
+
let own2;
|
|
2748
|
+
let box = sheetBox;
|
|
2749
|
+
if (cell.format.alignment.horizontal === "centerContinuous" && overflow) {
|
|
2750
|
+
let end = col;
|
|
2751
|
+
for (let c = col + 1; c <= col + OVERFLOW_REACH && c < g.columns.count; c += 1) {
|
|
2752
|
+
const next = resolveCell(ctx, row, c);
|
|
2753
|
+
if (hasValue2(next) || next?.format.alignment.horizontal !== "centerContinuous") break;
|
|
2754
|
+
end = c;
|
|
2755
|
+
}
|
|
2756
|
+
if (end > col)
|
|
2757
|
+
box = sheetRect(g, { firstRow: row, lastRow: row, firstCol: col, lastCol: end });
|
|
2758
|
+
}
|
|
2759
|
+
if (!shared && content) {
|
|
2760
|
+
const laid = layoutCellText(
|
|
2761
|
+
{
|
|
2762
|
+
runs: content.runs,
|
|
2763
|
+
kind: content.kind,
|
|
2764
|
+
...content.alignKind ? { alignKind: content.alignKind } : {},
|
|
2765
|
+
alignment: cell.format.alignment,
|
|
2766
|
+
box,
|
|
2767
|
+
...content.color ? { color: content.color } : {}
|
|
2768
|
+
},
|
|
2769
|
+
ctx.text
|
|
2770
|
+
);
|
|
2771
|
+
if (manyRuns) shared = sharedTexts.add(manyRuns, cell.format, box, laid);
|
|
2772
|
+
else own2 = laid;
|
|
2773
|
+
}
|
|
2774
|
+
const text = shared?.text ?? own2;
|
|
2775
|
+
let clipLeft = box.x;
|
|
2776
|
+
let clipRight = box.x + box.width;
|
|
2777
|
+
if (overflow && text.mayOverflow) {
|
|
2778
|
+
if (text.right > text.areaRight)
|
|
2779
|
+
for (let c = col + 1; c <= col + OVERFLOW_REACH && c < g.columns.count; c += 1) {
|
|
2780
|
+
if (blocked(row, c)) break;
|
|
2781
|
+
clipRight = g.columns.offsetOf(c + 1);
|
|
2782
|
+
if (clipRight >= text.right) break;
|
|
2783
|
+
}
|
|
2784
|
+
if (text.left < text.areaLeft)
|
|
2785
|
+
for (let c = col - 1; c >= Math.max(0, col - OVERFLOW_REACH); c -= 1) {
|
|
2786
|
+
if (blocked(row, c)) break;
|
|
2787
|
+
clipLeft = g.columns.offsetOf(c);
|
|
2788
|
+
if (clipLeft <= text.left) break;
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
const clip = intersect(
|
|
2792
|
+
{
|
|
2793
|
+
x: clipLeft + pane.dx,
|
|
2794
|
+
y: box.y + pane.dy,
|
|
2795
|
+
width: clipRight - clipLeft,
|
|
2796
|
+
height: box.height
|
|
2797
|
+
},
|
|
2798
|
+
pane.clip
|
|
2799
|
+
);
|
|
2800
|
+
if (clip.width <= 0 || clip.height <= 0) return;
|
|
2801
|
+
const stale = cell.value.stale;
|
|
2802
|
+
if (shared) {
|
|
2803
|
+
const inView = shared.inView(clip, pane.dx, pane.dy);
|
|
2804
|
+
texts.push({ row, col, clip, text: inView, stale, shownText: shared.shownText });
|
|
2805
|
+
} else texts.push({ row, col, clip, text: moveText(text, pane.dx, pane.dy), stale });
|
|
2806
|
+
};
|
|
2807
|
+
const windowColumns = columnFormats(ctx.sheet.root, span.firstCol, lastCol);
|
|
2808
|
+
const columnStyle = (c) => c >= span.firstCol && c <= lastCol ? windowColumns.get(c) : columnFormatOf(ctx, c);
|
|
2809
|
+
const emptyFormat = (r, c) => formatOfIndex(ctx, rowFormat(ctx.sheet.rows.get(r)) ?? columnStyle(c));
|
|
2810
|
+
const formatAt = (r, c) => resolveCell(ctx, r, c)?.format ?? emptyFormat(r, c);
|
|
2811
|
+
const hasRules = sheetRules(ctx.sheet.root).rules.some((r) => r.test);
|
|
2812
|
+
const defaultFormat = cellFormat(ctx.pkg, ctx.index, void 0).format;
|
|
2813
|
+
const blankFormat = (r, c) => {
|
|
2814
|
+
const own2 = emptyFormat(r, c);
|
|
2815
|
+
if (!hasRules) return own2;
|
|
2816
|
+
const base = own2 ?? defaultFormat;
|
|
2817
|
+
const shown = conditionalWithin(ctx, r, c, EMPTY, base);
|
|
2818
|
+
return shown === base ? own2 : shown;
|
|
2819
|
+
};
|
|
2820
|
+
for (const m of inPane) {
|
|
2821
|
+
const top = resolveCell(ctx, m.firstRow, m.firstCol);
|
|
2822
|
+
const topFormat = top?.format ?? blankFormat(m.firstRow, m.firstCol);
|
|
2823
|
+
const rect = sheetRect(g, m);
|
|
2824
|
+
if (topFormat) {
|
|
2825
|
+
const right = m.lastCol === m.firstCol ? topFormat : formatAt(m.firstRow, m.lastCol);
|
|
2826
|
+
const bottom = m.lastRow === m.firstRow ? topFormat : formatAt(m.lastRow, m.firstCol);
|
|
2827
|
+
const border = {
|
|
2828
|
+
...topFormat.border,
|
|
2829
|
+
right: right?.border.right ?? topFormat.border.right,
|
|
2830
|
+
bottom: bottom?.border.bottom ?? topFormat.border.bottom
|
|
2831
|
+
};
|
|
2832
|
+
if (paints({ ...topFormat, border }))
|
|
2833
|
+
cells.push({
|
|
2834
|
+
row: m.firstRow,
|
|
2835
|
+
col: m.firstCol,
|
|
2836
|
+
rect: shift(rect, pane.dx, pane.dy),
|
|
2837
|
+
fill: topFormat.fill,
|
|
2838
|
+
border,
|
|
2839
|
+
merge: m
|
|
2840
|
+
});
|
|
2841
|
+
if (top) addText(m.firstRow, m.firstCol, top, rect, false);
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
const paintedColumns = [];
|
|
2845
|
+
for (const [c, s] of windowColumns) {
|
|
2846
|
+
const format = formatOfIndex(ctx, s);
|
|
2847
|
+
if (format && paints(format) && g.columns.sizeOf(c) > 0) paintedColumns.push([c, format]);
|
|
2848
|
+
}
|
|
2849
|
+
const keys = ctx.keys;
|
|
2850
|
+
for (const { index: r } of rows) {
|
|
2851
|
+
const begin = lowerBound(keys, cellKey(r, span.firstCol));
|
|
2852
|
+
const end = lowerBound(keys, cellKey(r, lastCol + 1));
|
|
2853
|
+
for (let i = begin - 1; i >= 0; i -= 1) {
|
|
2854
|
+
work.keySteps += 1;
|
|
2855
|
+
const c = keys[i] - cellKey(r, 0);
|
|
2856
|
+
if (c < band.firstCol) break;
|
|
2857
|
+
const covered = isCovered(r, c);
|
|
2858
|
+
const cell = resolveCell(ctx, r, c);
|
|
2859
|
+
if (!hasValue2(cell) && !covered) continue;
|
|
2860
|
+
if (!covered) addText(r, c, cell, cellRect(g, r, c), true);
|
|
2861
|
+
break;
|
|
2862
|
+
}
|
|
2863
|
+
const rowStyle = rowFormat(ctx.sheet.rows.get(r));
|
|
2864
|
+
const rowPaint = rowStyle === void 0 ? void 0 : formatOfIndex(ctx, rowStyle);
|
|
2865
|
+
const empties = rowStyle === void 0 ? paintedColumns : rowPaint && paints(rowPaint) ? columns.map((col) => [col.index, rowPaint]) : [];
|
|
2866
|
+
const rowRules = hasRules && rowHasShownRulesWithin(ctx, r);
|
|
2867
|
+
const blanks = rowRules ? columns.map((col) => [col.index, void 0]) : empties;
|
|
2868
|
+
for (const [c, rowOrColumn] of blanks) {
|
|
2869
|
+
if (ctx.sheet.cells.has(cellKey(r, c)) || isCovered(r, c) || g.columns.sizeOf(c) === 0)
|
|
2870
|
+
continue;
|
|
2871
|
+
const format = rowRules ? blankFormat(r, c) : rowOrColumn;
|
|
2872
|
+
if (!format || !paints(format)) continue;
|
|
2873
|
+
cells.push({
|
|
2874
|
+
row: r,
|
|
2875
|
+
col: c,
|
|
2876
|
+
rect: shift(cellRect(g, r, c), pane.dx, pane.dy),
|
|
2877
|
+
fill: format.fill,
|
|
2878
|
+
border: format.border
|
|
2879
|
+
});
|
|
2880
|
+
}
|
|
2881
|
+
for (let i = begin; i < end; i += 1) {
|
|
2882
|
+
work.keySteps += 1;
|
|
2883
|
+
const c = keys[i] - cellKey(r, 0);
|
|
2884
|
+
if (g.columns.sizeOf(c) === 0 || isCovered(r, c)) continue;
|
|
2885
|
+
const cell = resolveCell(ctx, r, c);
|
|
2886
|
+
if (!cell) continue;
|
|
2887
|
+
const rect = sheetRect(g, { firstRow: r, lastRow: r, firstCol: c, lastCol: c });
|
|
2888
|
+
if (paints(cell.format))
|
|
2889
|
+
cells.push({
|
|
2890
|
+
row: r,
|
|
2891
|
+
col: c,
|
|
2892
|
+
rect: shift(rect, pane.dx, pane.dy),
|
|
2893
|
+
fill: cell.format.fill,
|
|
2894
|
+
border: cell.format.border
|
|
2895
|
+
});
|
|
2896
|
+
addText(r, c, cell, rect, true);
|
|
2897
|
+
}
|
|
2898
|
+
for (let i = end; i < keys.length; i += 1) {
|
|
2899
|
+
work.keySteps += 1;
|
|
2900
|
+
const c = keys[i] - cellKey(r, 0);
|
|
2901
|
+
if (c > band.lastCol) break;
|
|
2902
|
+
const covered = isCovered(r, c);
|
|
2903
|
+
const cell = resolveCell(ctx, r, c);
|
|
2904
|
+
if (!hasValue2(cell) && !covered) continue;
|
|
2905
|
+
if (!covered) addText(r, c, cell, cellRect(g, r, c), true);
|
|
2906
|
+
break;
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
const sheetClip = shift(pane.clip, -pane.dx, -pane.dy);
|
|
2910
|
+
const visibleDrawings = drawings.filter((d) => {
|
|
2911
|
+
work.drawingsRead += 1;
|
|
2912
|
+
const b = drawingBounds(d);
|
|
2913
|
+
return b.x <= sheetClip.x + sheetClip.width && b.x + b.width >= sheetClip.x && b.y <= sheetClip.y + sheetClip.height && b.y + b.height >= sheetClip.y;
|
|
2914
|
+
}).map((d) => ({ ...d, rect: shift(d.rect, pane.dx, pane.dy) }));
|
|
2915
|
+
return {
|
|
2916
|
+
range: span,
|
|
2917
|
+
clip: pane.clip,
|
|
2918
|
+
sheetOrigin: { x: pane.dx, y: pane.dy },
|
|
2919
|
+
columns,
|
|
2920
|
+
rows,
|
|
2921
|
+
cells,
|
|
2922
|
+
texts,
|
|
2923
|
+
drawings: visibleDrawings
|
|
2924
|
+
};
|
|
2925
|
+
}
|
|
2926
|
+
function moveText(t, dx, dy) {
|
|
2927
|
+
if (t.rotation)
|
|
2928
|
+
return {
|
|
2929
|
+
...t,
|
|
2930
|
+
rotation: {
|
|
2931
|
+
...t.rotation,
|
|
2932
|
+
originX: t.rotation.originX + dx,
|
|
2933
|
+
originY: t.rotation.originY + dy
|
|
2934
|
+
},
|
|
2935
|
+
left: t.left + dx,
|
|
2936
|
+
right: t.right + dx,
|
|
2937
|
+
areaLeft: t.areaLeft + dx,
|
|
2938
|
+
areaRight: t.areaRight + dx
|
|
2939
|
+
};
|
|
2940
|
+
return {
|
|
2941
|
+
...t,
|
|
2942
|
+
lines: t.lines.map((l) => ({
|
|
2943
|
+
...l,
|
|
2944
|
+
x: l.x + dx,
|
|
2945
|
+
baseline: l.baseline + dy,
|
|
2946
|
+
spans: l.spans.map((s) => ({
|
|
2947
|
+
...s,
|
|
2948
|
+
x: s.x + dx,
|
|
2949
|
+
positions: s.positions.map((p) => p + dx)
|
|
2950
|
+
}))
|
|
2951
|
+
})),
|
|
2952
|
+
left: t.left + dx,
|
|
2953
|
+
right: t.right + dx,
|
|
2954
|
+
areaLeft: t.areaLeft + dx,
|
|
2955
|
+
areaRight: t.areaRight + dx
|
|
2956
|
+
};
|
|
2957
|
+
}
|
|
2958
|
+
function sheetContext(pkg, sheetName, options) {
|
|
2959
|
+
const index = workbookIndex(pkg);
|
|
2960
|
+
const entry = index ? sheetByName(index, sheetName) : void 0;
|
|
2961
|
+
const part = xmlPartOf(pkg, entry?.partName);
|
|
2962
|
+
if (!index || !entry || entry.kind !== "worksheet" || !part) return void 0;
|
|
2963
|
+
const { profile, measurer } = options;
|
|
2964
|
+
const sheet = sheetIndex(part);
|
|
2965
|
+
const { metrics, geometry } = geometryOf(pkg, index, sheet, measurer, profile);
|
|
2966
|
+
const ctx = {
|
|
2967
|
+
pkg,
|
|
2968
|
+
index,
|
|
2969
|
+
sheet,
|
|
2970
|
+
keys: sortedKeys(sheet),
|
|
2971
|
+
stale: sheetStale(index, sheet.root),
|
|
2972
|
+
locale: options.locale ?? EN_US,
|
|
2973
|
+
text: {
|
|
2974
|
+
measurer,
|
|
2975
|
+
profile,
|
|
2976
|
+
maxDigitWidth: metrics.maxDigitWidth,
|
|
2977
|
+
minDescent: fontPixels(measurer, defaultFont(pkg, index), profile).descent
|
|
2978
|
+
},
|
|
2979
|
+
geometry,
|
|
2980
|
+
problems: [],
|
|
2981
|
+
checks: { left: LAYOUT_CHECK_BUDGET }
|
|
2982
|
+
};
|
|
2983
|
+
return { ctx, part, metrics, name: entry.name };
|
|
2984
|
+
}
|
|
2985
|
+
function shownGeneralReader(pkg, sheetName, options) {
|
|
2986
|
+
let opened = null;
|
|
2987
|
+
return (row, col) => {
|
|
2988
|
+
opened ??= sheetContext(pkg, sheetName, options);
|
|
2989
|
+
if (!opened) return void 0;
|
|
2990
|
+
const { ctx } = opened;
|
|
2991
|
+
const cell = resolveCell(ctx, row, col);
|
|
2992
|
+
if (!cell || cell.value.value.kind !== "number") return void 0;
|
|
2993
|
+
if (formatCodeOf(cell.format, ctx.locale).toLowerCase() !== "general") return void 0;
|
|
2994
|
+
const merge = mergeAnchoredAt(mergedRanges(ctx.sheet.root), row, col);
|
|
2995
|
+
const box = sheetRect(
|
|
2996
|
+
ctx.geometry,
|
|
2997
|
+
merge ?? { firstRow: row, lastRow: row, firstCol: col, lastCol: col }
|
|
2998
|
+
);
|
|
2999
|
+
return textOf3(ctx, cell, box)?.runs[0]?.text;
|
|
3000
|
+
};
|
|
3001
|
+
}
|
|
3002
|
+
function layoutSheet(pkg, sheetName, viewport, options) {
|
|
3003
|
+
const opened = sheetContext(pkg, sheetName, options);
|
|
3004
|
+
if (!opened) return void 0;
|
|
3005
|
+
const { ctx, part, metrics, name } = opened;
|
|
3006
|
+
const { index, sheet, geometry } = ctx;
|
|
3007
|
+
const frozen = frozenPanes(sheet.root);
|
|
3008
|
+
const merges = mergedRanges(sheet.root);
|
|
3009
|
+
if (merges.dropped > 0) record(ctx, { code: "merges-dropped", detail: String(merges.dropped) });
|
|
3010
|
+
if (merges.overlapping > 0)
|
|
3011
|
+
record(ctx, { code: "merges-overlapping", detail: String(merges.overlapping) });
|
|
3012
|
+
const drawings = sheetDrawings(
|
|
3013
|
+
pkg,
|
|
3014
|
+
drawingPartOf(pkg, part.partName, sheet.root),
|
|
3015
|
+
geometry,
|
|
3016
|
+
workbookTheme(pkg, index)
|
|
3017
|
+
);
|
|
3018
|
+
for (const d of drawings)
|
|
3019
|
+
if (d.kind === "unsupported" && d.element === "missingImage")
|
|
3020
|
+
record(ctx, { code: "image-missing", detail: d.name });
|
|
3021
|
+
const frozenWidth = geometry.columns.offsetOf(frozen.cols);
|
|
3022
|
+
const frozenHeight = geometry.rows.offsetOf(frozen.rows);
|
|
3023
|
+
const panes = windowPanes(geometry.rows, geometry.columns, frozen, viewport).map((p) => {
|
|
3024
|
+
const left = p.range.firstCol < frozen.cols;
|
|
3025
|
+
const top = p.range.firstRow < frozen.rows;
|
|
3026
|
+
const clip = {
|
|
3027
|
+
x: left ? 0 : frozenWidth,
|
|
3028
|
+
y: top ? 0 : frozenHeight,
|
|
3029
|
+
width: Math.max(
|
|
3030
|
+
0,
|
|
3031
|
+
left ? Math.min(frozenWidth, viewport.width) : viewport.width - frozenWidth
|
|
3032
|
+
),
|
|
3033
|
+
height: Math.max(
|
|
3034
|
+
0,
|
|
3035
|
+
top ? Math.min(frozenHeight, viewport.height) : viewport.height - frozenHeight
|
|
3036
|
+
)
|
|
3037
|
+
};
|
|
3038
|
+
const map = {
|
|
3039
|
+
range: p.range,
|
|
3040
|
+
dx: p.x - geometry.columns.offsetOf(p.range.firstCol),
|
|
3041
|
+
dy: p.y - geometry.rows.offsetOf(p.range.firstRow),
|
|
3042
|
+
clip
|
|
3043
|
+
};
|
|
3044
|
+
return layoutPane(ctx, map, merges, drawings);
|
|
3045
|
+
});
|
|
3046
|
+
const view = child(child(sheet.root, "x:sheetViews"), "x:sheetView");
|
|
3047
|
+
return {
|
|
3048
|
+
sheet: name,
|
|
3049
|
+
metrics,
|
|
3050
|
+
geometry,
|
|
3051
|
+
frozen,
|
|
3052
|
+
showGridLines: flagOf(view, "showGridLines", true),
|
|
3053
|
+
printGridLines: flagOf(child(sheet.root, "x:printOptions"), "gridLines", false),
|
|
3054
|
+
frozenEdges: {
|
|
3055
|
+
...frozen.cols > 0 ? { x: Math.min(frozenWidth, viewport.width) } : {},
|
|
3056
|
+
...frozen.rows > 0 ? { y: Math.min(frozenHeight, viewport.height) } : {}
|
|
3057
|
+
},
|
|
3058
|
+
panes,
|
|
3059
|
+
problems: ctx.problems,
|
|
3060
|
+
conditionalCut: ctx.checks.left <= 0
|
|
3061
|
+
};
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
export {
|
|
3065
|
+
EMU_PER_POINT,
|
|
3066
|
+
CSS_PIXELS_PER_INCH,
|
|
3067
|
+
POINTS_PER_PIXEL,
|
|
3068
|
+
emuToPoints,
|
|
3069
|
+
pixelsToPoints,
|
|
3070
|
+
pointsToPixels,
|
|
3071
|
+
APPROXIMATIONS,
|
|
3072
|
+
FONT_SUBSTITUTES,
|
|
3073
|
+
DEFAULT_FALLBACK_FAMILY,
|
|
3074
|
+
EAST_ASIAN_FALLBACK_FAMILIES,
|
|
3075
|
+
eastAsianFallbackFamilies,
|
|
3076
|
+
createFixedMeasurer,
|
|
3077
|
+
isIdeographic,
|
|
3078
|
+
breakOpportunities,
|
|
3079
|
+
initializeHarfBuzz,
|
|
3080
|
+
isHarfBuzzReady,
|
|
3081
|
+
HOST_SUBSTITUTE_ORIGIN,
|
|
3082
|
+
createHarfBuzzMeasurer,
|
|
3083
|
+
AxisIndex,
|
|
3084
|
+
columnPixels,
|
|
3085
|
+
columnWidthForPixels,
|
|
3086
|
+
rowHeightForPixels,
|
|
3087
|
+
baseColumnWidth,
|
|
3088
|
+
sheetGeometry,
|
|
3089
|
+
PRINT_PROFILE,
|
|
3090
|
+
SCREEN_PROFILE,
|
|
3091
|
+
zoomProfile,
|
|
3092
|
+
fontPixels,
|
|
3093
|
+
pixelWidth,
|
|
3094
|
+
autoRowHeight,
|
|
3095
|
+
gridMetrics,
|
|
3096
|
+
fitNumber,
|
|
3097
|
+
forgetLongTexts,
|
|
3098
|
+
layoutCellText,
|
|
3099
|
+
fitColumnWidths,
|
|
3100
|
+
fitRowHeights,
|
|
3101
|
+
MAX_ANCHORS,
|
|
3102
|
+
drawingPartOf,
|
|
3103
|
+
drawingBounds,
|
|
3104
|
+
sheetDrawings,
|
|
3105
|
+
MAX_WINDOW,
|
|
3106
|
+
OVERFLOW_REACH,
|
|
3107
|
+
shownGeneralReader,
|
|
3108
|
+
layoutSheet
|
|
3109
|
+
};
|
|
3110
|
+
/*!
|
|
3111
|
+
* ECMA-376 preset shape geometry. The guide formulas and paths below are derived from
|
|
3112
|
+
* presetShapeDefinitions.xml in ECMA-376 Part 1, 5th edition (2016), (c) Ecma International. They
|
|
3113
|
+
* are a derivative work under item (iv) of the Ecma copyright notice, and the Ecma terms below
|
|
3114
|
+
* apply to them, not the Apache License of @xlsx-editor.dev/core.
|
|
3115
|
+
*
|
|
3116
|
+
* COPYRIGHT NOTICE
|
|
3117
|
+
*
|
|
3118
|
+
* © Ecma International
|
|
3119
|
+
*
|
|
3120
|
+
* By obtaining and/or copying this work, you (the licensee) agree that you have read, understood,
|
|
3121
|
+
* and will comply with the following terms and conditions.
|
|
3122
|
+
*
|
|
3123
|
+
* This document may be copied, published and distributed to others, and certain derivative works
|
|
3124
|
+
* of it may be prepared, copied, published, and distributed, in whole or in part, provided that
|
|
3125
|
+
* the above copyright notice and this Copyright License and Disclaimer are included on all such
|
|
3126
|
+
* copies and derivative works. The only derivative works that are permissible under this Copyright
|
|
3127
|
+
* License and Disclaimer are:
|
|
3128
|
+
*
|
|
3129
|
+
* (i) works which incorporate all or portion of this document for the purpose of providing
|
|
3130
|
+
* commentary or explanation (such as an annotated version of the document),
|
|
3131
|
+
*
|
|
3132
|
+
* (ii) works which incorporate all or portion of this document for the purpose of incorporating
|
|
3133
|
+
* features that provide accessibility,
|
|
3134
|
+
*
|
|
3135
|
+
* (iii) translations of this document into languages other than English and into different formats
|
|
3136
|
+
* and
|
|
3137
|
+
*
|
|
3138
|
+
* (iv) works by making use of this specification in standard conformant products by implementing
|
|
3139
|
+
* (e.g. by copy and paste wholly or partly) the functionality therein.
|
|
3140
|
+
*
|
|
3141
|
+
* However, the content of this document itself may not be modified in any way, including by
|
|
3142
|
+
* removing the copyright notice or references to Ecma International, except as required to
|
|
3143
|
+
* translate it into languages other than English or into a different format.
|
|
3144
|
+
*
|
|
3145
|
+
* The official version of an Ecma International document is the English language version on the
|
|
3146
|
+
* Ecma International website. In the event of discrepancies between a translated version and the
|
|
3147
|
+
* official version, the official version shall govern.
|
|
3148
|
+
*
|
|
3149
|
+
* The limited permissions granted above are perpetual and will not be revoked by Ecma
|
|
3150
|
+
* International or its successors or assigns.
|
|
3151
|
+
*
|
|
3152
|
+
* This document and the information contained herein is provided on an "AS IS" basis and ECMA
|
|
3153
|
+
* INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
|
|
3154
|
+
* WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY
|
|
3155
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
3156
|
+
*/
|