docxkeun 0.1.3 → 0.3.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/CHANGELOG.md +74 -0
- package/README.md +166 -16
- package/dist/api/editor.d.ts +231 -7
- package/dist/api/editor.js +1125 -26
- package/dist/api/headers.d.ts +51 -0
- package/dist/api/headers.js +133 -0
- package/dist/api/index.d.ts +6 -1
- package/dist/api/index.js +4 -1
- package/dist/api/lists.d.ts +37 -0
- package/dist/api/lists.js +132 -0
- package/dist/api/parts.js +1 -0
- package/dist/api/positions.js +1 -0
- package/dist/api/revisions.d.ts +61 -0
- package/dist/api/revisions.js +401 -0
- package/dist/api/selection.d.ts +57 -0
- package/dist/api/selection.js +91 -0
- package/dist/api/tables.d.ts +60 -0
- package/dist/api/tables.js +138 -0
- package/dist/charts/color.d.ts +45 -0
- package/dist/charts/color.js +322 -0
- package/dist/charts/format.d.ts +12 -0
- package/dist/charts/format.js +459 -0
- package/dist/charts/index.d.ts +11 -0
- package/dist/charts/index.js +8 -0
- package/dist/charts/model.d.ts +225 -0
- package/dist/charts/model.js +758 -0
- package/dist/charts/outline.d.ts +17 -0
- package/dist/charts/outline.js +214 -0
- package/dist/charts/render.d.ts +20 -0
- package/dist/charts/render.js +1772 -0
- package/dist/drawing/arrows.d.ts +37 -0
- package/dist/drawing/arrows.js +99 -0
- package/dist/drawing/formula.d.ts +40 -0
- package/dist/drawing/formula.js +159 -0
- package/dist/drawing/geometry.d.ts +61 -0
- package/dist/drawing/geometry.js +286 -0
- package/dist/drawing/index.d.ts +12 -0
- package/dist/drawing/index.js +8 -0
- package/dist/drawing/presets.d.ts +72 -0
- package/dist/drawing/presets.js +2874 -0
- package/dist/fonts/shaping/apply.d.ts +94 -0
- package/dist/fonts/shaping/apply.js +349 -0
- package/dist/fonts/shaping/arabic.d.ts +28 -0
- package/dist/fonts/shaping/arabic.js +235 -0
- package/dist/fonts/shaping/buffer.d.ts +53 -0
- package/dist/fonts/shaping/buffer.js +95 -0
- package/dist/fonts/shaping/gdef.d.ts +30 -0
- package/dist/fonts/shaping/gdef.js +66 -0
- package/dist/fonts/shaping/gpos.d.ts +86 -0
- package/dist/fonts/shaping/gpos.js +428 -0
- package/dist/fonts/shaping/gsub.d.ts +65 -0
- package/dist/fonts/shaping/gsub.js +313 -0
- package/dist/fonts/shaping/index.d.ts +32 -0
- package/dist/fonts/shaping/index.js +402 -0
- package/dist/fonts/shaping/indic.d.ts +6 -0
- package/dist/fonts/shaping/indic.js +805 -0
- package/dist/fonts/shaping/layout-common.d.ts +124 -0
- package/dist/fonts/shaping/layout-common.js +349 -0
- package/dist/fonts/shaping/plan.d.ts +87 -0
- package/dist/fonts/shaping/plan.js +152 -0
- package/dist/fonts/shaping/scripts.d.ts +26 -0
- package/dist/fonts/shaping/scripts.js +160 -0
- package/dist/fonts/shaping/shaper.d.ts +23 -0
- package/dist/fonts/shaping/shaper.js +5 -0
- package/dist/fonts/shaping/unicode.d.ts +34 -0
- package/dist/fonts/shaping/unicode.js +138 -0
- package/dist/images/bmp.d.ts +9 -0
- package/dist/images/bmp.js +234 -0
- package/dist/images/gif.d.ts +9 -0
- package/dist/images/gif.js +215 -0
- package/dist/images/index.d.ts +18 -0
- package/dist/images/index.js +63 -0
- package/dist/images/png-encode.d.ts +4 -0
- package/dist/images/png-encode.js +73 -0
- package/dist/images/size.d.ts +10 -0
- package/dist/images/size.js +83 -0
- package/dist/images/tiff.d.ts +14 -0
- package/dist/images/tiff.js +407 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +5 -0
- package/dist/layout/bidi.d.ts +18 -0
- package/dist/layout/bidi.js +71 -0
- package/dist/layout/blocks.d.ts +20 -3
- package/dist/layout/blocks.js +88 -58
- package/dist/layout/cache.d.ts +31 -0
- package/dist/layout/cache.js +38 -0
- package/dist/layout/drawing.d.ts +30 -0
- package/dist/layout/drawing.js +120 -0
- package/dist/layout/engine.d.ts +3 -0
- package/dist/layout/engine.js +218 -11
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +1 -0
- package/dist/layout/lines.d.ts +63 -5
- package/dist/layout/lines.js +245 -20
- package/dist/layout/paint.d.ts +25 -3
- package/dist/layout/paint.js +26 -10
- package/dist/layout/shapes.d.ts +7 -0
- package/dist/layout/shapes.js +338 -0
- package/dist/layout/style.d.ts +4 -0
- package/dist/layout/style.js +2 -0
- package/dist/layout/types.d.ts +89 -2
- package/dist/math/boxes.d.ts +88 -0
- package/dist/math/boxes.js +166 -0
- package/dist/math/index.d.ts +29 -0
- package/dist/math/index.js +44 -0
- package/dist/math/layout.d.ts +13 -0
- package/dist/math/layout.js +771 -0
- package/dist/math/linear.d.ts +3 -0
- package/dist/math/linear.js +152 -0
- package/dist/math/omml.d.ts +15 -0
- package/dist/math/omml.js +57 -0
- package/dist/math/paths.d.ts +61 -0
- package/dist/math/paths.js +450 -0
- package/dist/math/symbols.d.ts +49 -0
- package/dist/math/symbols.js +269 -0
- package/dist/math/text.d.ts +53 -0
- package/dist/math/text.js +316 -0
- package/dist/metafile/canvas.d.ts +80 -0
- package/dist/metafile/canvas.js +515 -0
- package/dist/metafile/dib.d.ts +27 -0
- package/dist/metafile/dib.js +300 -0
- package/dist/metafile/emf.d.ts +31 -0
- package/dist/metafile/emf.js +591 -0
- package/dist/metafile/geometry.d.ts +49 -0
- package/dist/metafile/geometry.js +85 -0
- package/dist/metafile/index.d.ts +27 -0
- package/dist/metafile/index.js +34 -0
- package/dist/metafile/reader.d.ts +28 -0
- package/dist/metafile/reader.js +59 -0
- package/dist/metafile/state.d.ts +118 -0
- package/dist/metafile/state.js +172 -0
- package/dist/metafile/text.d.ts +17 -0
- package/dist/metafile/text.js +130 -0
- package/dist/metafile/wmf.d.ts +33 -0
- package/dist/metafile/wmf.js +395 -0
- package/dist/model/content.d.ts +92 -7
- package/dist/model/content.js +251 -17
- package/dist/model/document.d.ts +34 -1
- package/dist/model/document.js +80 -1
- package/dist/model/fields.d.ts +4 -0
- package/dist/model/fields.js +10 -0
- package/dist/model/numbering.d.ts +2 -0
- package/dist/model/numbering.js +22 -0
- package/dist/model/props.d.ts +2 -0
- package/dist/model/props.js +3 -0
- package/dist/opc/index.d.ts +1 -1
- package/dist/opc/package.d.ts +34 -0
- package/dist/opc/package.js +58 -4
- package/dist/pdf/export.js +97 -6
- package/dist/pdf/images.d.ts +7 -0
- package/dist/pdf/images.js +39 -2
- package/dist/render/activity.d.ts +179 -0
- package/dist/render/activity.js +1003 -0
- package/dist/render/clipboard.d.ts +29 -0
- package/dist/render/clipboard.js +401 -0
- package/dist/render/comments.d.ts +166 -0
- package/dist/render/comments.js +779 -0
- package/dist/render/context-menu.d.ts +124 -0
- package/dist/render/context-menu.js +525 -0
- package/dist/render/editing.d.ts +146 -5
- package/dist/render/editing.js +678 -53
- package/dist/render/index.d.ts +12 -0
- package/dist/render/index.js +11 -0
- package/dist/render/navigation-panel.d.ts +76 -0
- package/dist/render/navigation-panel.js +431 -0
- package/dist/render/selection.js +5 -0
- package/dist/render/svg.d.ts +4 -6
- package/dist/render/svg.js +69 -7
- package/dist/render/toolbar.d.ts +83 -0
- package/dist/render/toolbar.js +505 -0
- package/dist/render/ui/comment-layout.d.ts +39 -0
- package/dist/render/ui/comment-layout.js +79 -0
- package/dist/render/ui/icons.d.ts +6 -0
- package/dist/render/ui/icons.js +38 -0
- package/dist/render/ui/menu.d.ts +38 -0
- package/dist/render/ui/menu.js +274 -0
- package/dist/render/ui/nav-model.d.ts +11 -0
- package/dist/render/ui/nav-model.js +34 -0
- package/dist/render/ui/overflow.d.ts +5 -0
- package/dist/render/ui/overflow.js +18 -0
- package/dist/render/ui/popover.d.ts +18 -0
- package/dist/render/ui/popover.js +109 -0
- package/dist/render/ui/theme.d.ts +2 -0
- package/dist/render/ui/theme.js +29 -0
- package/dist/render/undo.d.ts +76 -0
- package/dist/render/undo.js +144 -0
- package/dist/render/viewer.d.ts +100 -7
- package/dist/render/viewer.js +304 -92
- package/dist/security/policy.d.ts +3 -0
- package/dist/security/policy.js +6 -2
- package/dist/security/protection.d.ts +1 -0
- package/dist/security/protection.js +1 -1
- package/dist/text/bidi-data.d.ts +53 -0
- package/dist/text/bidi-data.js +318 -0
- package/dist/text/bidi.d.ts +37 -0
- package/dist/text/bidi.js +508 -0
- package/dist/xml/ns.d.ts +5 -0
- package/dist/xml/ns.js +7 -0
- package/package.json +9 -2
|
@@ -0,0 +1,2874 @@
|
|
|
1
|
+
const FILLS = new Set(['none', 'lighten', 'lightenLess', 'darken', 'darkenLess']);
|
|
2
|
+
function parseAv(src) {
|
|
3
|
+
if (!src)
|
|
4
|
+
return [];
|
|
5
|
+
const t = src.trim().split(/\s+/);
|
|
6
|
+
const out = [];
|
|
7
|
+
for (let i = 0; i + 1 < t.length; i += 2)
|
|
8
|
+
out.push({ name: t[i], fmla: `val ${t[i + 1]}` });
|
|
9
|
+
return out;
|
|
10
|
+
}
|
|
11
|
+
function parseGd(src) {
|
|
12
|
+
if (!src)
|
|
13
|
+
return [];
|
|
14
|
+
const out = [];
|
|
15
|
+
for (const raw of src.split(/[\n;]/)) {
|
|
16
|
+
const line = raw.trim();
|
|
17
|
+
if (!line)
|
|
18
|
+
continue;
|
|
19
|
+
const i = line.indexOf(' ');
|
|
20
|
+
if (i < 0)
|
|
21
|
+
throw new Error(`Bad guide "${line}"`);
|
|
22
|
+
out.push({ name: line.slice(0, i), fmla: line.slice(i + 1).trim() });
|
|
23
|
+
}
|
|
24
|
+
return out;
|
|
25
|
+
}
|
|
26
|
+
function parsePath(src) {
|
|
27
|
+
const bar = src.indexOf('|');
|
|
28
|
+
const opts = bar < 0 ? [] : src.slice(0, bar).trim().split(/\s+/).filter(Boolean);
|
|
29
|
+
const body = (bar < 0 ? src : src.slice(bar + 1)).trim().split(/\s+/).filter(Boolean);
|
|
30
|
+
const def = { w: 0, h: 0, fill: 'norm', stroke: true, extrusionOk: true, commands: [] };
|
|
31
|
+
for (const o of opts) {
|
|
32
|
+
if (FILLS.has(o))
|
|
33
|
+
def.fill = o;
|
|
34
|
+
else if (o === 'nostroke')
|
|
35
|
+
def.stroke = false;
|
|
36
|
+
else if (o === 'noext')
|
|
37
|
+
def.extrusionOk = false;
|
|
38
|
+
else if (o.startsWith('w='))
|
|
39
|
+
def.w = Number(o.slice(2));
|
|
40
|
+
else if (o.startsWith('h='))
|
|
41
|
+
def.h = Number(o.slice(2));
|
|
42
|
+
else
|
|
43
|
+
throw new Error(`Bad path option "${o}"`);
|
|
44
|
+
}
|
|
45
|
+
let i = 0;
|
|
46
|
+
const next = () => {
|
|
47
|
+
const t = body[i++];
|
|
48
|
+
if (t === undefined)
|
|
49
|
+
throw new Error(`Path ends early: ${src}`);
|
|
50
|
+
return t;
|
|
51
|
+
};
|
|
52
|
+
const pt = () => ({ x: next(), y: next() });
|
|
53
|
+
while (i < body.length) {
|
|
54
|
+
const op = next();
|
|
55
|
+
switch (op) {
|
|
56
|
+
case 'M':
|
|
57
|
+
def.commands.push({ op: 'moveTo', pt: pt() });
|
|
58
|
+
break;
|
|
59
|
+
case 'L':
|
|
60
|
+
def.commands.push({ op: 'lnTo', pt: pt() });
|
|
61
|
+
break;
|
|
62
|
+
case 'A':
|
|
63
|
+
def.commands.push({ op: 'arcTo', wR: next(), hR: next(), stAng: next(), swAng: next() });
|
|
64
|
+
break;
|
|
65
|
+
case 'Q':
|
|
66
|
+
def.commands.push({ op: 'quadBezTo', pts: [pt(), pt()] });
|
|
67
|
+
break;
|
|
68
|
+
case 'C':
|
|
69
|
+
def.commands.push({ op: 'cubicBezTo', pts: [pt(), pt(), pt()] });
|
|
70
|
+
break;
|
|
71
|
+
case 'Z':
|
|
72
|
+
def.commands.push({ op: 'close' });
|
|
73
|
+
break;
|
|
74
|
+
default:
|
|
75
|
+
throw new Error(`Bad path command "${op}" in ${src}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return def;
|
|
79
|
+
}
|
|
80
|
+
function parseSrc(src) {
|
|
81
|
+
const def = {
|
|
82
|
+
avLst: parseAv(src.av),
|
|
83
|
+
gdLst: parseGd(src.gd),
|
|
84
|
+
pathLst: (Array.isArray(src.path) ? src.path : [src.path]).map(parsePath),
|
|
85
|
+
};
|
|
86
|
+
if (src.rect) {
|
|
87
|
+
const [l = 'l', t = 't', r = 'r', b = 'b'] = src.rect.trim().split(/\s+/);
|
|
88
|
+
def.textRect = { l, t, r, b };
|
|
89
|
+
}
|
|
90
|
+
return def;
|
|
91
|
+
}
|
|
92
|
+
// ---------------------------------------------------------------------------------------------
|
|
93
|
+
// Shared fragments
|
|
94
|
+
const RECT_PATH = 'M l t L r t L r b L l b Z';
|
|
95
|
+
const ELLIPSE_PATH = 'M l vc A wd2 hd2 cd2 cd4 A wd2 hd2 3cd4 cd4 A wd2 hd2 0 cd4 A wd2 hd2 cd4 cd4 Z';
|
|
96
|
+
/** The text box inscribed in an ellipse, used by every round shape. */
|
|
97
|
+
const ELLIPSE_RECT_GD = `idx cos wd2 2700000
|
|
98
|
+
idy sin hd2 2700000
|
|
99
|
+
il +- hc 0 idx
|
|
100
|
+
ir +- hc idx 0
|
|
101
|
+
it +- vc 0 idy
|
|
102
|
+
ib +- vc idy 0`;
|
|
103
|
+
/** The wedge callouts: where the tail leaves the body depends on which side the tip is on. */
|
|
104
|
+
const WEDGE_GD = `dxPos */ w adj1 100000
|
|
105
|
+
dyPos */ h adj2 100000
|
|
106
|
+
xPos +- hc dxPos 0
|
|
107
|
+
yPos +- vc dyPos 0
|
|
108
|
+
dx */ dxPos h 1
|
|
109
|
+
dy */ dyPos w 1
|
|
110
|
+
adx abs dx
|
|
111
|
+
ady abs dy
|
|
112
|
+
dq +- adx 0 ady
|
|
113
|
+
xg1 ?: dxPos 7 2
|
|
114
|
+
xg2 ?: dxPos 10 5
|
|
115
|
+
x1 */ w xg1 12
|
|
116
|
+
x2 */ w xg2 12
|
|
117
|
+
yg1 ?: dyPos 7 2
|
|
118
|
+
yg2 ?: dyPos 10 5
|
|
119
|
+
y1 */ h yg1 12
|
|
120
|
+
y2 */ h yg2 12
|
|
121
|
+
t1 ?: dxPos l xPos
|
|
122
|
+
xl ?: dq t1 l
|
|
123
|
+
t2 ?: dyPos x1 xPos
|
|
124
|
+
xt ?: dq x1 t2
|
|
125
|
+
t3 ?: dxPos xPos r
|
|
126
|
+
xr ?: dq t3 r
|
|
127
|
+
t4 ?: dyPos xPos x1
|
|
128
|
+
xb ?: dq x1 t4
|
|
129
|
+
t5 ?: dxPos y1 yPos
|
|
130
|
+
yl ?: dq t5 y1
|
|
131
|
+
t6 ?: dyPos t yPos
|
|
132
|
+
yt ?: dq t t6
|
|
133
|
+
t7 ?: dxPos yPos y1
|
|
134
|
+
yr ?: dq t7 y1
|
|
135
|
+
t8 ?: dyPos yPos b
|
|
136
|
+
yb ?: dq b t8`;
|
|
137
|
+
const CLOUD_RECT_GD = `il */ w 2977 21600
|
|
138
|
+
it */ h 3262 21600
|
|
139
|
+
ir */ w 17087 21600
|
|
140
|
+
ib */ h 17337 21600`;
|
|
141
|
+
const CLOUD_OUTLINE = 'w=43200 h=43200 | M 3900 14370 A 6753 9190 -11429249 7426832 A 5333 7267 -8646143 5396714 ' +
|
|
142
|
+
'A 4365 5945 -8748475 5983381 A 4857 6595 -7859164 7034504 A 5333 7273 -4722533 6541615 ' +
|
|
143
|
+
'A 6775 9220 -2776035 7816140 A 5785 7867 37501 6842000 A 6752 9215 1347096 6910353 ' +
|
|
144
|
+
'A 7720 10543 3974558 4542661 A 4360 5918 -16496525 8804134 A 4345 5945 -14809710 9151131 Z';
|
|
145
|
+
const CLOUD_DETAIL = 'none noext w=43200 h=43200 | M 4693 26177 A 4345 5945 5204520 1585770 M 6928 34899 A 4360 5918 4416628 686848 ' +
|
|
146
|
+
'M 16478 39090 A 6752 9215 8257449 844866 M 28827 34751 A 6752 9215 387196 959901 ' +
|
|
147
|
+
'M 34129 22954 A 5785 7867 -4217541 4255042 M 41798 15354 A 5333 7273 1819082 1665090 ' +
|
|
148
|
+
'M 38324 5426 A 4857 6595 -824660 891534 M 29078 3952 A 4857 6595 -8950887 1091722 ' +
|
|
149
|
+
'M 22141 4720 A 4365 5945 -9809656 1061181 M 14000 5192 A 6753 9190 -4002417 739161 ' +
|
|
150
|
+
'M 4127 15789 A 6753 9190 9459261 711490';
|
|
151
|
+
/** Callouts keep their leader line ends as fractions of the box in adj1…adj8 (y, x pairs). */
|
|
152
|
+
function calloutGd(n) {
|
|
153
|
+
const lines = [];
|
|
154
|
+
for (let i = 1; i <= n; i++)
|
|
155
|
+
lines.push(`y${i} */ h adj${2 * i - 1} 100000`, `x${i} */ w adj${2 * i} 100000`);
|
|
156
|
+
return lines.join('\n');
|
|
157
|
+
}
|
|
158
|
+
const CALLOUT_AV = [
|
|
159
|
+
'adj1 18750 adj2 -8333 adj3 112500 adj4 -38333',
|
|
160
|
+
'adj1 18750 adj2 -8333 adj3 18750 adj4 -16667 adj5 112500 adj6 -46667',
|
|
161
|
+
'adj1 18750 adj2 -8333 adj3 18750 adj4 -16667 adj5 100000 adj6 -16667 adj7 112963 adj8 -8333',
|
|
162
|
+
];
|
|
163
|
+
function leader(n) {
|
|
164
|
+
let s = 'none noext | M x1 y1';
|
|
165
|
+
for (let i = 2; i <= n + 1; i++)
|
|
166
|
+
s += ` L x${i} y${i}`;
|
|
167
|
+
return s;
|
|
168
|
+
}
|
|
169
|
+
/** callout1-3, borderCallout1-3, accentCallout1-3, accentBorderCallout1-3. */
|
|
170
|
+
function callout(n, border, accent) {
|
|
171
|
+
const path = [border ? RECT_PATH : `nostroke | ${RECT_PATH}`];
|
|
172
|
+
if (accent)
|
|
173
|
+
path.push('none noext | M x1 t L x1 b');
|
|
174
|
+
path.push(leader(n));
|
|
175
|
+
return { av: CALLOUT_AV[n - 1], gd: calloutGd(n + 1), path };
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* star16, star24 and star32 are regular stars whose points the spec lists as cos/sin multiples;
|
|
179
|
+
* generating them from the same angles gives the same coordinates without hand-copying 64 points.
|
|
180
|
+
* Outer points start at the left (180°) and run clockwise, inner points sit halfway between.
|
|
181
|
+
*/
|
|
182
|
+
function regularStar(n, adj) {
|
|
183
|
+
const gd = ['a pin 0 adj 50000', 'iwd2 */ wd2 a 50000', 'ihd2 */ hd2 a 50000'];
|
|
184
|
+
let path = '';
|
|
185
|
+
const step = 360 / n;
|
|
186
|
+
for (let k = 0; k < n; k++) {
|
|
187
|
+
const outer = Math.round((180 + k * step) * 60000);
|
|
188
|
+
const inner = Math.round((180 + (k + 0.5) * step) * 60000);
|
|
189
|
+
gd.push(`odx${k} cos wd2 ${outer}`, `ody${k} sin hd2 ${outer}`, `ox${k} +- hc odx${k} 0`, `oy${k} +- vc ody${k} 0`);
|
|
190
|
+
gd.push(`idx${k} cos iwd2 ${inner}`, `idy${k} sin ihd2 ${inner}`, `ix${k} +- hc idx${k} 0`, `iy${k} +- vc idy${k} 0`);
|
|
191
|
+
path += `${k === 0 ? 'M' : 'L'} ox${k} oy${k} L ix${k} iy${k} `;
|
|
192
|
+
}
|
|
193
|
+
// Text box corners on the inner radius at the last inner angle below 45°, as the spec does.
|
|
194
|
+
let off = 0;
|
|
195
|
+
for (let k = 0; (k + 0.5) * step <= 45; k++)
|
|
196
|
+
off = (k + 0.5) * step;
|
|
197
|
+
const c = Math.round(off * 60000);
|
|
198
|
+
gd.push(`tdx cos iwd2 ${c}`, `tdy cos ihd2 ${c}`, `tl +- hc 0 tdx`, `tt +- vc 0 tdy`, `tr +- hc tdx 0`, `tb +- vc tdy 0`);
|
|
199
|
+
return { av: `adj ${adj}`, gd: gd.join('\n'), rect: 'tl tt tr tb', path: `${path}Z` };
|
|
200
|
+
}
|
|
201
|
+
// ---------------------------------------------------------------------------------------------
|
|
202
|
+
// The table
|
|
203
|
+
const SOURCES = {
|
|
204
|
+
// --- Lines and connectors -------------------------------------------------------------------
|
|
205
|
+
line: { path: 'none | M l t L r b' },
|
|
206
|
+
lineInv: { path: 'none | M l b L r t' },
|
|
207
|
+
straightConnector1: { path: 'none | M l t L r b' },
|
|
208
|
+
bentConnector2: { path: 'none | M l t L r t L r b' },
|
|
209
|
+
bentConnector3: {
|
|
210
|
+
av: 'adj1 50000',
|
|
211
|
+
gd: 'x1 */ w adj1 100000',
|
|
212
|
+
path: 'none | M l t L x1 t L x1 b L r b',
|
|
213
|
+
},
|
|
214
|
+
bentConnector4: {
|
|
215
|
+
av: 'adj1 50000 adj2 50000',
|
|
216
|
+
gd: `x1 */ w adj1 100000
|
|
217
|
+
x2 +/ x1 r 2
|
|
218
|
+
y2 */ h adj2 100000
|
|
219
|
+
y1 +/ t y2 2`,
|
|
220
|
+
path: 'none | M l t L x1 t L x1 y2 L r y2 L r b',
|
|
221
|
+
},
|
|
222
|
+
bentConnector5: {
|
|
223
|
+
av: 'adj1 50000 adj2 50000 adj3 50000',
|
|
224
|
+
gd: `x1 */ w adj1 100000
|
|
225
|
+
x3 */ w adj3 100000
|
|
226
|
+
x2 +/ x1 x3 2
|
|
227
|
+
y2 */ h adj2 100000
|
|
228
|
+
y1 +/ t y2 2
|
|
229
|
+
y3 +/ b y2 2`,
|
|
230
|
+
path: 'none | M l t L x1 t L x1 y2 L x3 y2 L x3 b L r b',
|
|
231
|
+
},
|
|
232
|
+
curvedConnector2: { path: 'none | M l t C wd2 t r hd2 r b' },
|
|
233
|
+
curvedConnector3: {
|
|
234
|
+
av: 'adj1 50000',
|
|
235
|
+
gd: `x2 */ w adj1 100000
|
|
236
|
+
x1 +/ l x2 2
|
|
237
|
+
x3 +/ r x2 2
|
|
238
|
+
y3 */ h 3 4`,
|
|
239
|
+
path: 'none | M l t C x1 t x2 hd4 x2 vc C x2 y3 x3 b r b',
|
|
240
|
+
},
|
|
241
|
+
curvedConnector4: {
|
|
242
|
+
av: 'adj1 50000 adj2 50000',
|
|
243
|
+
gd: `x2 */ w adj1 100000
|
|
244
|
+
x1 +/ l x2 2
|
|
245
|
+
x3 +/ r x2 2
|
|
246
|
+
x4 +/ x2 x3 2
|
|
247
|
+
x5 +/ x3 r 2
|
|
248
|
+
y4 */ h adj2 100000
|
|
249
|
+
y1 +/ t y4 2
|
|
250
|
+
y2 +/ t y1 2
|
|
251
|
+
y3 +/ y1 y4 2
|
|
252
|
+
y5 +/ b y4 2`,
|
|
253
|
+
path: 'none | M l t C x1 t x2 y2 x2 y1 C x2 y3 x4 y4 x3 y4 C x5 y4 r y5 r b',
|
|
254
|
+
},
|
|
255
|
+
curvedConnector5: {
|
|
256
|
+
av: 'adj1 50000 adj2 50000 adj3 50000',
|
|
257
|
+
gd: `x3 */ w adj1 100000
|
|
258
|
+
x6 */ w adj3 100000
|
|
259
|
+
x1 +/ x3 x6 2
|
|
260
|
+
x2 +/ l x3 2
|
|
261
|
+
x4 +/ x3 x1 2
|
|
262
|
+
x5 +/ x6 x1 2
|
|
263
|
+
x7 +/ x6 r 2
|
|
264
|
+
y4 */ h adj2 100000
|
|
265
|
+
y1 +/ t y4 2
|
|
266
|
+
y2 +/ t y1 2
|
|
267
|
+
y3 +/ y1 y4 2
|
|
268
|
+
y5 +/ b y4 2
|
|
269
|
+
y6 +/ y5 y4 2
|
|
270
|
+
y7 +/ y5 b 2`,
|
|
271
|
+
path: 'none | 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',
|
|
272
|
+
},
|
|
273
|
+
// --- Rectangles -----------------------------------------------------------------------------
|
|
274
|
+
rect: { path: RECT_PATH },
|
|
275
|
+
roundRect: {
|
|
276
|
+
av: 'adj 16667',
|
|
277
|
+
gd: `a pin 0 adj 50000
|
|
278
|
+
x1 */ ss a 100000
|
|
279
|
+
x2 +- r 0 x1
|
|
280
|
+
y2 +- b 0 x1
|
|
281
|
+
il */ x1 29289 100000
|
|
282
|
+
ir +- r 0 il
|
|
283
|
+
ib +- b 0 il`,
|
|
284
|
+
rect: 'il il ir ib',
|
|
285
|
+
path: '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',
|
|
286
|
+
},
|
|
287
|
+
round1Rect: {
|
|
288
|
+
av: 'adj 16667',
|
|
289
|
+
gd: `a pin 0 adj 50000
|
|
290
|
+
dx1 */ ss a 100000
|
|
291
|
+
x1 +- r 0 dx1
|
|
292
|
+
idx */ dx1 29289 100000
|
|
293
|
+
ir +- r 0 idx`,
|
|
294
|
+
rect: 'l t ir b',
|
|
295
|
+
path: 'M l t L x1 t A dx1 dx1 3cd4 cd4 L r b L l b Z',
|
|
296
|
+
},
|
|
297
|
+
round2SameRect: {
|
|
298
|
+
av: 'adj1 16667 adj2 0',
|
|
299
|
+
gd: `a1 pin 0 adj1 50000
|
|
300
|
+
a2 pin 0 adj2 50000
|
|
301
|
+
tx1 */ ss a1 100000
|
|
302
|
+
tx2 +- r 0 tx1
|
|
303
|
+
bx1 */ ss a2 100000
|
|
304
|
+
bx2 +- r 0 bx1
|
|
305
|
+
by1 +- b 0 bx1
|
|
306
|
+
d +- tx1 0 bx1
|
|
307
|
+
tdx */ tx1 29289 100000
|
|
308
|
+
bdx */ bx1 29289 100000
|
|
309
|
+
il ?: d tdx bdx
|
|
310
|
+
ir +- r 0 il
|
|
311
|
+
ib +- b 0 bdx`,
|
|
312
|
+
rect: 'il tdx ir ib',
|
|
313
|
+
path: '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',
|
|
314
|
+
},
|
|
315
|
+
round2DiagRect: {
|
|
316
|
+
av: 'adj1 16667 adj2 0',
|
|
317
|
+
gd: `a1 pin 0 adj1 50000
|
|
318
|
+
a2 pin 0 adj2 50000
|
|
319
|
+
x1 */ ss a1 100000
|
|
320
|
+
y1 +- b 0 x1
|
|
321
|
+
a */ ss a2 100000
|
|
322
|
+
x2 +- r 0 a
|
|
323
|
+
y2 +- b 0 a
|
|
324
|
+
dx1 */ x1 29289 100000
|
|
325
|
+
dx2 */ a 29289 100000
|
|
326
|
+
d +- dx1 0 dx2
|
|
327
|
+
dx ?: d dx1 dx2
|
|
328
|
+
ir +- r 0 dx
|
|
329
|
+
ib +- b 0 dx`,
|
|
330
|
+
rect: 'dx dx ir ib',
|
|
331
|
+
path: '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',
|
|
332
|
+
},
|
|
333
|
+
snip1Rect: {
|
|
334
|
+
av: 'adj 16667',
|
|
335
|
+
gd: `a pin 0 adj 50000
|
|
336
|
+
dx1 */ ss a 100000
|
|
337
|
+
x1 +- r 0 dx1
|
|
338
|
+
it */ dx1 1 2
|
|
339
|
+
ir +/ x1 r 2`,
|
|
340
|
+
rect: 'l it ir b',
|
|
341
|
+
path: 'M l t L x1 t L r dx1 L r b L l b Z',
|
|
342
|
+
},
|
|
343
|
+
snip2SameRect: {
|
|
344
|
+
av: 'adj1 16667 adj2 0',
|
|
345
|
+
gd: `a1 pin 0 adj1 50000
|
|
346
|
+
a2 pin 0 adj2 50000
|
|
347
|
+
tx1 */ ss a1 100000
|
|
348
|
+
tx2 +- r 0 tx1
|
|
349
|
+
bx1 */ ss a2 100000
|
|
350
|
+
bx2 +- r 0 bx1
|
|
351
|
+
by1 +- b 0 bx1
|
|
352
|
+
d +- tx1 0 bx1
|
|
353
|
+
dx ?: d tx1 bx1
|
|
354
|
+
il */ dx 1 2
|
|
355
|
+
ir +- r 0 il
|
|
356
|
+
it */ tx1 1 2
|
|
357
|
+
ib +/ by1 b 2`,
|
|
358
|
+
rect: 'il it ir ib',
|
|
359
|
+
path: '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',
|
|
360
|
+
},
|
|
361
|
+
snip2DiagRect: {
|
|
362
|
+
av: 'adj1 0 adj2 16667',
|
|
363
|
+
gd: `a1 pin 0 adj1 50000
|
|
364
|
+
a2 pin 0 adj2 50000
|
|
365
|
+
lx1 */ ss a1 100000
|
|
366
|
+
lx2 +- r 0 lx1
|
|
367
|
+
ly1 +- b 0 lx1
|
|
368
|
+
rx1 */ ss a2 100000
|
|
369
|
+
rx2 +- r 0 rx1
|
|
370
|
+
ry1 +- b 0 rx1
|
|
371
|
+
d +- lx1 0 rx1
|
|
372
|
+
dx ?: d lx1 rx1
|
|
373
|
+
il */ dx 1 2
|
|
374
|
+
ir +- r 0 il
|
|
375
|
+
ib +- b 0 il`,
|
|
376
|
+
rect: 'il il ir ib',
|
|
377
|
+
path: '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',
|
|
378
|
+
},
|
|
379
|
+
snipRoundRect: {
|
|
380
|
+
av: 'adj1 16667 adj2 16667',
|
|
381
|
+
gd: `a1 pin 0 adj1 50000
|
|
382
|
+
a2 pin 0 adj2 50000
|
|
383
|
+
x1 */ ss a1 100000
|
|
384
|
+
dx2 */ ss a2 100000
|
|
385
|
+
x2 +- r 0 dx2
|
|
386
|
+
il */ x1 29289 100000
|
|
387
|
+
ir +/ x2 r 2`,
|
|
388
|
+
rect: 'il il ir b',
|
|
389
|
+
path: 'M x1 t L x2 t L r dx2 L r b L l b L l x1 A x1 x1 cd2 cd4 Z',
|
|
390
|
+
},
|
|
391
|
+
// --- Basic shapes ---------------------------------------------------------------------------
|
|
392
|
+
ellipse: { gd: ELLIPSE_RECT_GD, rect: 'il it ir ib', path: ELLIPSE_PATH },
|
|
393
|
+
triangle: {
|
|
394
|
+
av: 'adj 50000',
|
|
395
|
+
gd: `a pin 0 adj 100000
|
|
396
|
+
x1 */ w a 200000
|
|
397
|
+
x2 */ w a 100000
|
|
398
|
+
x3 +- x1 wd2 0`,
|
|
399
|
+
rect: 'x1 vc x3 b',
|
|
400
|
+
path: 'M l b L x2 t L r b Z',
|
|
401
|
+
},
|
|
402
|
+
rtTriangle: {
|
|
403
|
+
gd: `it */ h 7 12
|
|
404
|
+
ir */ w 7 12
|
|
405
|
+
ib */ h 11 12`,
|
|
406
|
+
rect: 'l it ir ib',
|
|
407
|
+
path: 'M l b L l t L r b Z',
|
|
408
|
+
},
|
|
409
|
+
parallelogram: {
|
|
410
|
+
av: 'adj 25000',
|
|
411
|
+
gd: `maxAdj */ 100000 w ss
|
|
412
|
+
a pin 0 adj maxAdj
|
|
413
|
+
x1 */ ss a 200000
|
|
414
|
+
x2 */ ss a 100000
|
|
415
|
+
x6 +- r 0 x1
|
|
416
|
+
x5 +- r 0 x2
|
|
417
|
+
x3 */ x5 1 2
|
|
418
|
+
x4 +- r 0 x3
|
|
419
|
+
il */ wd2 a maxAdj
|
|
420
|
+
q1 */ 5 a maxAdj
|
|
421
|
+
q2 +/ 1 q1 12
|
|
422
|
+
il */ q2 w 1
|
|
423
|
+
it */ q2 h 1
|
|
424
|
+
ir +- r 0 il
|
|
425
|
+
ib +- b 0 it
|
|
426
|
+
q3 */ h hc x2
|
|
427
|
+
y1 pin 0 q3 h
|
|
428
|
+
y2 +- b 0 y1`,
|
|
429
|
+
rect: 'il it ir ib',
|
|
430
|
+
path: 'M l b L x2 t L r t L x5 b Z',
|
|
431
|
+
},
|
|
432
|
+
trapezoid: {
|
|
433
|
+
av: 'adj 25000',
|
|
434
|
+
gd: `maxAdj */ 50000 w ss
|
|
435
|
+
a pin 0 adj maxAdj
|
|
436
|
+
x1 */ ss a 200000
|
|
437
|
+
x2 */ ss a 100000
|
|
438
|
+
x3 +- r 0 x2
|
|
439
|
+
x4 +- r 0 x1
|
|
440
|
+
il */ wd3 a maxAdj
|
|
441
|
+
it */ hd3 a maxAdj
|
|
442
|
+
ir +- r 0 il`,
|
|
443
|
+
rect: 'il it ir b',
|
|
444
|
+
path: 'M l b L x2 t L x3 t L r b Z',
|
|
445
|
+
},
|
|
446
|
+
diamond: {
|
|
447
|
+
gd: `ir */ w 3 4
|
|
448
|
+
ib */ h 3 4`,
|
|
449
|
+
rect: 'wd4 hd4 ir ib',
|
|
450
|
+
path: 'M l vc L hc t L r vc L hc b Z',
|
|
451
|
+
},
|
|
452
|
+
pentagon: {
|
|
453
|
+
av: 'hf 105146 vf 110557',
|
|
454
|
+
gd: `swd2 */ wd2 hf 100000
|
|
455
|
+
shd2 */ hd2 vf 100000
|
|
456
|
+
svc */ vc vf 100000
|
|
457
|
+
dx1 cos swd2 1080000
|
|
458
|
+
dx2 cos swd2 18360000
|
|
459
|
+
dy1 sin shd2 1080000
|
|
460
|
+
dy2 sin shd2 18360000
|
|
461
|
+
x1 +- hc 0 dx1
|
|
462
|
+
x2 +- hc 0 dx2
|
|
463
|
+
x3 +- hc dx2 0
|
|
464
|
+
x4 +- hc dx1 0
|
|
465
|
+
y1 +- svc 0 dy1
|
|
466
|
+
y2 +- svc 0 dy2
|
|
467
|
+
it */ y1 dx2 dx1`,
|
|
468
|
+
rect: 'x2 it x3 y2',
|
|
469
|
+
path: 'M x1 y1 L hc t L x4 y1 L x3 y2 L x2 y2 Z',
|
|
470
|
+
},
|
|
471
|
+
hexagon: {
|
|
472
|
+
av: 'adj 25000 vf 115470',
|
|
473
|
+
gd: `maxAdj */ 50000 w ss
|
|
474
|
+
a pin 0 adj maxAdj
|
|
475
|
+
shd2 */ hd2 vf 100000
|
|
476
|
+
x1 */ ss a 100000
|
|
477
|
+
x2 +- r 0 x1
|
|
478
|
+
dy1 sin shd2 3600000
|
|
479
|
+
y1 +- vc 0 dy1
|
|
480
|
+
y2 +- vc dy1 0
|
|
481
|
+
q1 */ maxAdj -1 2
|
|
482
|
+
q2 +- a q1 0
|
|
483
|
+
q3 ?: q2 4 2
|
|
484
|
+
q4 ?: q2 3 2
|
|
485
|
+
q5 ?: q2 q1 0
|
|
486
|
+
q6 +/ a q5 q1
|
|
487
|
+
q7 */ q6 q4 -1
|
|
488
|
+
q8 +- q3 q7 0
|
|
489
|
+
il */ w q8 24
|
|
490
|
+
it */ h q8 24
|
|
491
|
+
ir +- r 0 il
|
|
492
|
+
ib +- b 0 it`,
|
|
493
|
+
rect: 'il it ir ib',
|
|
494
|
+
path: 'M l vc L x1 y1 L x2 y1 L r vc L x2 y2 L x1 y2 Z',
|
|
495
|
+
},
|
|
496
|
+
heptagon: {
|
|
497
|
+
av: 'hf 102572 vf 105210',
|
|
498
|
+
gd: `swd2 */ wd2 hf 100000
|
|
499
|
+
shd2 */ hd2 vf 100000
|
|
500
|
+
svc */ vc vf 100000
|
|
501
|
+
dx1 */ swd2 97493 100000
|
|
502
|
+
dx2 */ swd2 78183 100000
|
|
503
|
+
dx3 */ swd2 43388 100000
|
|
504
|
+
dy1 */ shd2 62349 100000
|
|
505
|
+
dy2 */ shd2 22252 100000
|
|
506
|
+
dy3 */ shd2 90097 100000
|
|
507
|
+
x1 +- hc 0 dx1
|
|
508
|
+
x2 +- hc 0 dx2
|
|
509
|
+
x3 +- hc 0 dx3
|
|
510
|
+
x4 +- hc dx3 0
|
|
511
|
+
x5 +- hc dx2 0
|
|
512
|
+
x6 +- hc dx1 0
|
|
513
|
+
y1 +- svc 0 dy1
|
|
514
|
+
y2 +- svc dy2 0
|
|
515
|
+
y3 +- svc dy3 0
|
|
516
|
+
ib +- b 0 y1`,
|
|
517
|
+
rect: 'x2 y1 x5 ib',
|
|
518
|
+
path: 'M x1 y2 L x2 y1 L hc t L x5 y1 L x6 y2 L x4 y3 L x3 y3 Z',
|
|
519
|
+
},
|
|
520
|
+
octagon: {
|
|
521
|
+
av: 'adj 29289',
|
|
522
|
+
gd: `a pin 0 adj 50000
|
|
523
|
+
x1 */ ss a 100000
|
|
524
|
+
x2 +- r 0 x1
|
|
525
|
+
y2 +- b 0 x1
|
|
526
|
+
il */ x1 1 2
|
|
527
|
+
ir +- r 0 il
|
|
528
|
+
ib +- b 0 il`,
|
|
529
|
+
rect: 'il il ir ib',
|
|
530
|
+
path: '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',
|
|
531
|
+
},
|
|
532
|
+
decagon: {
|
|
533
|
+
av: 'vf 105146',
|
|
534
|
+
gd: `shd2 */ hd2 vf 100000
|
|
535
|
+
dx1 cos wd2 2160000
|
|
536
|
+
dx2 cos wd2 4320000
|
|
537
|
+
x1 +- hc 0 dx1
|
|
538
|
+
x2 +- hc 0 dx2
|
|
539
|
+
x3 +- hc dx2 0
|
|
540
|
+
x4 +- hc dx1 0
|
|
541
|
+
dy1 sin shd2 4320000
|
|
542
|
+
dy2 sin shd2 2160000
|
|
543
|
+
y1 +- vc 0 dy1
|
|
544
|
+
y2 +- vc 0 dy2
|
|
545
|
+
y3 +- vc dy2 0
|
|
546
|
+
y4 +- vc dy1 0`,
|
|
547
|
+
rect: 'x1 y2 x4 y3',
|
|
548
|
+
path: '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',
|
|
549
|
+
},
|
|
550
|
+
dodecagon: {
|
|
551
|
+
gd: `x1 */ w 2894 21600
|
|
552
|
+
x2 */ w 7906 21600
|
|
553
|
+
x3 */ w 13694 21600
|
|
554
|
+
x4 */ w 18706 21600
|
|
555
|
+
y1 */ h 2894 21600
|
|
556
|
+
y2 */ h 7906 21600
|
|
557
|
+
y3 */ h 13694 21600
|
|
558
|
+
y4 */ h 18706 21600`,
|
|
559
|
+
rect: 'x1 y1 x4 y4',
|
|
560
|
+
path: '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',
|
|
561
|
+
},
|
|
562
|
+
// --- Stars ----------------------------------------------------------------------------------
|
|
563
|
+
star4: {
|
|
564
|
+
av: 'adj 12500',
|
|
565
|
+
gd: `a pin 0 adj 50000
|
|
566
|
+
iwd2 */ wd2 a 50000
|
|
567
|
+
ihd2 */ hd2 a 50000
|
|
568
|
+
sdx cos iwd2 2700000
|
|
569
|
+
sdy sin ihd2 2700000
|
|
570
|
+
sx1 +- hc 0 sdx
|
|
571
|
+
sx2 +- hc sdx 0
|
|
572
|
+
sy1 +- vc 0 sdy
|
|
573
|
+
sy2 +- vc sdy 0
|
|
574
|
+
yAdj +- vc 0 ihd2`,
|
|
575
|
+
rect: 'sx1 sy1 sx2 sy2',
|
|
576
|
+
path: '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',
|
|
577
|
+
},
|
|
578
|
+
star5: {
|
|
579
|
+
av: 'adj 19098 hf 105146 vf 110557',
|
|
580
|
+
gd: `a pin 0 adj 50000
|
|
581
|
+
swd2 */ wd2 hf 100000
|
|
582
|
+
shd2 */ hd2 vf 100000
|
|
583
|
+
svc */ vc vf 100000
|
|
584
|
+
dx1 cos swd2 1080000
|
|
585
|
+
dx2 cos swd2 18360000
|
|
586
|
+
dy1 sin shd2 1080000
|
|
587
|
+
dy2 sin shd2 18360000
|
|
588
|
+
x1 +- hc 0 dx1
|
|
589
|
+
x2 +- hc 0 dx2
|
|
590
|
+
x3 +- hc dx2 0
|
|
591
|
+
x4 +- hc dx1 0
|
|
592
|
+
y1 +- svc 0 dy1
|
|
593
|
+
y2 +- svc 0 dy2
|
|
594
|
+
iwd2 */ swd2 a 50000
|
|
595
|
+
ihd2 */ shd2 a 50000
|
|
596
|
+
sdx1 cos iwd2 20520000
|
|
597
|
+
sdx2 cos iwd2 3240000
|
|
598
|
+
sdy1 sin ihd2 3240000
|
|
599
|
+
sdy2 sin ihd2 20520000
|
|
600
|
+
sx1 +- hc 0 sdx1
|
|
601
|
+
sx2 +- hc 0 sdx2
|
|
602
|
+
sx3 +- hc sdx2 0
|
|
603
|
+
sx4 +- hc sdx1 0
|
|
604
|
+
sy1 +- svc 0 sdy1
|
|
605
|
+
sy2 +- svc 0 sdy2
|
|
606
|
+
sy3 +- svc ihd2 0
|
|
607
|
+
yAdj +- svc 0 ihd2`,
|
|
608
|
+
rect: 'sx1 sy1 sx4 sy3',
|
|
609
|
+
path: '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',
|
|
610
|
+
},
|
|
611
|
+
star6: {
|
|
612
|
+
av: 'adj 28868 hf 115470',
|
|
613
|
+
gd: `a pin 0 adj 50000
|
|
614
|
+
swd2 */ wd2 hf 100000
|
|
615
|
+
dx1 cos swd2 1800000
|
|
616
|
+
x1 +- hc 0 dx1
|
|
617
|
+
x2 +- hc dx1 0
|
|
618
|
+
y2 +- vc hd4 0
|
|
619
|
+
iwd2 */ swd2 a 50000
|
|
620
|
+
ihd2 */ hd2 a 50000
|
|
621
|
+
sdx2 */ iwd2 1 2
|
|
622
|
+
sx1 +- hc 0 iwd2
|
|
623
|
+
sx2 +- hc 0 sdx2
|
|
624
|
+
sx3 +- hc sdx2 0
|
|
625
|
+
sx4 +- hc iwd2 0
|
|
626
|
+
sdy1 sin ihd2 3600000
|
|
627
|
+
sy1 +- vc 0 sdy1
|
|
628
|
+
sy2 +- vc sdy1 0
|
|
629
|
+
yAdj +- vc 0 ihd2`,
|
|
630
|
+
rect: 'x1 hd4 x2 y2',
|
|
631
|
+
path: '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',
|
|
632
|
+
},
|
|
633
|
+
star7: {
|
|
634
|
+
av: 'adj 34601 hf 102572 vf 105210',
|
|
635
|
+
gd: `a pin 0 adj 50000
|
|
636
|
+
swd2 */ wd2 hf 100000
|
|
637
|
+
shd2 */ hd2 vf 100000
|
|
638
|
+
svc */ vc vf 100000
|
|
639
|
+
dx1 */ swd2 97493 100000
|
|
640
|
+
dx2 */ swd2 78183 100000
|
|
641
|
+
dx3 */ swd2 43388 100000
|
|
642
|
+
dy1 */ shd2 62349 100000
|
|
643
|
+
dy2 */ shd2 22252 100000
|
|
644
|
+
dy3 */ shd2 90097 100000
|
|
645
|
+
x1 +- hc 0 dx1
|
|
646
|
+
x2 +- hc 0 dx2
|
|
647
|
+
x3 +- hc 0 dx3
|
|
648
|
+
x4 +- hc dx3 0
|
|
649
|
+
x5 +- hc dx2 0
|
|
650
|
+
x6 +- hc dx1 0
|
|
651
|
+
y1 +- svc 0 dy1
|
|
652
|
+
y2 +- svc dy2 0
|
|
653
|
+
y3 +- svc dy3 0
|
|
654
|
+
iwd2 */ swd2 a 50000
|
|
655
|
+
ihd2 */ shd2 a 50000
|
|
656
|
+
sdx1 */ iwd2 97493 100000
|
|
657
|
+
sdx2 */ iwd2 78183 100000
|
|
658
|
+
sdx3 */ iwd2 43388 100000
|
|
659
|
+
sx1 +- hc 0 sdx1
|
|
660
|
+
sx2 +- hc 0 sdx2
|
|
661
|
+
sx3 +- hc 0 sdx3
|
|
662
|
+
sx4 +- hc sdx3 0
|
|
663
|
+
sx5 +- hc sdx2 0
|
|
664
|
+
sx6 +- hc sdx1 0
|
|
665
|
+
sdy1 */ ihd2 90097 100000
|
|
666
|
+
sdy2 */ ihd2 22252 100000
|
|
667
|
+
sdy3 */ ihd2 62349 100000
|
|
668
|
+
sy1 +- svc 0 sdy1
|
|
669
|
+
sy2 +- svc 0 sdy2
|
|
670
|
+
sy3 +- svc sdy3 0
|
|
671
|
+
sy4 +- svc ihd2 0
|
|
672
|
+
yAdj +- svc 0 ihd2`,
|
|
673
|
+
rect: 'sx2 sy1 sx5 sy3',
|
|
674
|
+
path: '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',
|
|
675
|
+
},
|
|
676
|
+
star8: {
|
|
677
|
+
av: 'adj 38250',
|
|
678
|
+
gd: `a pin 0 adj 50000
|
|
679
|
+
dx1 cos wd2 2700000
|
|
680
|
+
x1 +- hc 0 dx1
|
|
681
|
+
x2 +- hc dx1 0
|
|
682
|
+
dy1 sin hd2 2700000
|
|
683
|
+
y1 +- vc 0 dy1
|
|
684
|
+
y2 +- vc dy1 0
|
|
685
|
+
iwd2 */ wd2 a 50000
|
|
686
|
+
ihd2 */ hd2 a 50000
|
|
687
|
+
sdx1 */ iwd2 92388 100000
|
|
688
|
+
sdx2 */ iwd2 38268 100000
|
|
689
|
+
sdy1 */ ihd2 92388 100000
|
|
690
|
+
sdy2 */ ihd2 38268 100000
|
|
691
|
+
sx1 +- hc 0 sdx1
|
|
692
|
+
sx2 +- hc 0 sdx2
|
|
693
|
+
sx3 +- hc sdx2 0
|
|
694
|
+
sx4 +- hc sdx1 0
|
|
695
|
+
sy1 +- vc 0 sdy1
|
|
696
|
+
sy2 +- vc 0 sdy2
|
|
697
|
+
sy3 +- vc sdy2 0
|
|
698
|
+
sy4 +- vc sdy1 0
|
|
699
|
+
yAdj +- vc 0 ihd2`,
|
|
700
|
+
rect: 'sx1 sy1 sx4 sy4',
|
|
701
|
+
path: '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',
|
|
702
|
+
},
|
|
703
|
+
star10: {
|
|
704
|
+
av: 'adj 42533 hf 105146',
|
|
705
|
+
gd: `a pin 0 adj 50000
|
|
706
|
+
swd2 */ wd2 hf 100000
|
|
707
|
+
dx1 */ swd2 95106 100000
|
|
708
|
+
dx2 */ swd2 58779 100000
|
|
709
|
+
x1 +- hc 0 dx1
|
|
710
|
+
x2 +- hc 0 dx2
|
|
711
|
+
x3 +- hc dx2 0
|
|
712
|
+
x4 +- hc dx1 0
|
|
713
|
+
dy1 */ hd2 80902 100000
|
|
714
|
+
dy2 */ hd2 30902 100000
|
|
715
|
+
y1 +- vc 0 dy1
|
|
716
|
+
y2 +- vc 0 dy2
|
|
717
|
+
y3 +- vc dy2 0
|
|
718
|
+
y4 +- vc dy1 0
|
|
719
|
+
iwd2 */ swd2 a 50000
|
|
720
|
+
ihd2 */ hd2 a 50000
|
|
721
|
+
sdx1 */ iwd2 80902 100000
|
|
722
|
+
sdx2 */ iwd2 30902 100000
|
|
723
|
+
sdy1 */ ihd2 95106 100000
|
|
724
|
+
sdy2 */ ihd2 58779 100000
|
|
725
|
+
sx1 +- hc 0 iwd2
|
|
726
|
+
sx2 +- hc 0 sdx1
|
|
727
|
+
sx3 +- hc 0 sdx2
|
|
728
|
+
sx4 +- hc sdx2 0
|
|
729
|
+
sx5 +- hc sdx1 0
|
|
730
|
+
sx6 +- hc iwd2 0
|
|
731
|
+
sy1 +- vc 0 sdy1
|
|
732
|
+
sy2 +- vc 0 sdy2
|
|
733
|
+
sy3 +- vc sdy2 0
|
|
734
|
+
sy4 +- vc sdy1 0
|
|
735
|
+
yAdj +- vc 0 ihd2`,
|
|
736
|
+
rect: 'sx2 y2 sx5 y3',
|
|
737
|
+
path: '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',
|
|
738
|
+
},
|
|
739
|
+
star12: {
|
|
740
|
+
av: 'adj 37500',
|
|
741
|
+
gd: `a pin 0 adj 50000
|
|
742
|
+
dx1 cos wd2 1800000
|
|
743
|
+
dy1 sin hd2 3600000
|
|
744
|
+
x1 +- hc 0 dx1
|
|
745
|
+
x3 */ w 3 4
|
|
746
|
+
x4 +- hc dx1 0
|
|
747
|
+
y1 +- vc 0 dy1
|
|
748
|
+
y3 */ h 3 4
|
|
749
|
+
y4 +- vc dy1 0
|
|
750
|
+
iwd2 */ wd2 a 50000
|
|
751
|
+
ihd2 */ hd2 a 50000
|
|
752
|
+
sdx1 cos iwd2 900000
|
|
753
|
+
sdx2 cos iwd2 2700000
|
|
754
|
+
sdx3 cos iwd2 4500000
|
|
755
|
+
sdy1 sin ihd2 4500000
|
|
756
|
+
sdy2 sin ihd2 2700000
|
|
757
|
+
sdy3 sin ihd2 900000
|
|
758
|
+
sx1 +- hc 0 sdx1
|
|
759
|
+
sx2 +- hc 0 sdx2
|
|
760
|
+
sx3 +- hc 0 sdx3
|
|
761
|
+
sx4 +- hc sdx3 0
|
|
762
|
+
sx5 +- hc sdx2 0
|
|
763
|
+
sx6 +- hc sdx1 0
|
|
764
|
+
sy1 +- vc 0 sdy1
|
|
765
|
+
sy2 +- vc 0 sdy2
|
|
766
|
+
sy3 +- vc 0 sdy3
|
|
767
|
+
sy4 +- vc sdy3 0
|
|
768
|
+
sy5 +- vc sdy2 0
|
|
769
|
+
sy6 +- vc sdy1 0
|
|
770
|
+
yAdj +- vc 0 ihd2`,
|
|
771
|
+
rect: 'sx2 sy2 sx5 sy5',
|
|
772
|
+
path: '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 ' +
|
|
773
|
+
'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',
|
|
774
|
+
},
|
|
775
|
+
star16: regularStar(16, 37500),
|
|
776
|
+
star24: regularStar(24, 37500),
|
|
777
|
+
star32: regularStar(32, 37500),
|
|
778
|
+
// --- Crosses and math -----------------------------------------------------------------------
|
|
779
|
+
plus: {
|
|
780
|
+
av: 'adj 25000',
|
|
781
|
+
gd: `a pin 0 adj 50000
|
|
782
|
+
x1 */ ss a 100000
|
|
783
|
+
x2 +- r 0 x1
|
|
784
|
+
y2 +- b 0 x1
|
|
785
|
+
d +- w 0 h
|
|
786
|
+
il ?: d l x1
|
|
787
|
+
ir ?: d r x2
|
|
788
|
+
it ?: d x1 t
|
|
789
|
+
ib ?: d y2 b`,
|
|
790
|
+
rect: 'il it ir ib',
|
|
791
|
+
path: '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',
|
|
792
|
+
},
|
|
793
|
+
mathPlus: {
|
|
794
|
+
av: 'adj1 23520',
|
|
795
|
+
gd: `a1 pin 0 adj1 73490
|
|
796
|
+
dx1 */ w 73490 200000
|
|
797
|
+
dy1 */ h 73490 200000
|
|
798
|
+
dx2 */ ss a1 200000
|
|
799
|
+
x1 +- hc 0 dx1
|
|
800
|
+
x2 +- hc 0 dx2
|
|
801
|
+
x3 +- hc dx2 0
|
|
802
|
+
x4 +- hc dx1 0
|
|
803
|
+
y1 +- vc 0 dy1
|
|
804
|
+
y2 +- vc 0 dx2
|
|
805
|
+
y3 +- vc dx2 0
|
|
806
|
+
y4 +- vc dy1 0`,
|
|
807
|
+
rect: 'x1 y2 x4 y3',
|
|
808
|
+
path: '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',
|
|
809
|
+
},
|
|
810
|
+
mathMinus: {
|
|
811
|
+
av: 'adj1 23520',
|
|
812
|
+
gd: `a1 pin 0 adj1 100000
|
|
813
|
+
dy1 */ h a1 200000
|
|
814
|
+
dx1 */ w 73490 200000
|
|
815
|
+
y1 +- vc 0 dy1
|
|
816
|
+
y2 +- vc dy1 0
|
|
817
|
+
x1 +- hc 0 dx1
|
|
818
|
+
x2 +- hc dx1 0`,
|
|
819
|
+
rect: 'x1 y1 x2 y2',
|
|
820
|
+
path: 'M x1 y1 L x2 y1 L x2 y2 L x1 y2 Z',
|
|
821
|
+
},
|
|
822
|
+
mathMultiply: {
|
|
823
|
+
av: 'adj1 23520',
|
|
824
|
+
gd: `a1 pin 0 adj1 51965
|
|
825
|
+
th */ ss a1 100000
|
|
826
|
+
a at2 w h
|
|
827
|
+
sa sin 1 a
|
|
828
|
+
ca cos 1 a
|
|
829
|
+
ta tan 1 a
|
|
830
|
+
dl mod w h 0
|
|
831
|
+
rw */ dl 51965 100000
|
|
832
|
+
lM +- dl 0 rw
|
|
833
|
+
xM */ ca lM 2
|
|
834
|
+
yM */ sa lM 2
|
|
835
|
+
dxAM */ sa th 2
|
|
836
|
+
dyAM */ ca th 2
|
|
837
|
+
xA +- xM 0 dxAM
|
|
838
|
+
yA +- yM dyAM 0
|
|
839
|
+
xB +- xM dxAM 0
|
|
840
|
+
yB +- yM 0 dyAM
|
|
841
|
+
xBC +- hc 0 xB
|
|
842
|
+
yBC */ xBC ta 1
|
|
843
|
+
yC +- yBC yB 0
|
|
844
|
+
xD +- r 0 xB
|
|
845
|
+
xE +- r 0 xA
|
|
846
|
+
yFE +- vc 0 yA
|
|
847
|
+
xFE */ yFE 1 ta
|
|
848
|
+
xF +- xE 0 xFE
|
|
849
|
+
xL +- xA xFE 0
|
|
850
|
+
yG +- b 0 yA
|
|
851
|
+
yH +- b 0 yB
|
|
852
|
+
yI +- b 0 yC
|
|
853
|
+
xC2 +- r 0 xL
|
|
854
|
+
yC3 +- b 0 yC`,
|
|
855
|
+
rect: 'xA yB xE yH',
|
|
856
|
+
path: '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',
|
|
857
|
+
},
|
|
858
|
+
mathDivide: {
|
|
859
|
+
av: 'adj1 23520 adj2 5880 adj3 11760',
|
|
860
|
+
gd: `a1 pin 1000 adj1 36745
|
|
861
|
+
ma1 +- 0 0 a1
|
|
862
|
+
ma3h +/ 73490 ma1 4
|
|
863
|
+
ma3w */ 36745 w h
|
|
864
|
+
maxAdj3 min ma3h ma3w
|
|
865
|
+
a3 pin 1000 adj3 maxAdj3
|
|
866
|
+
m4a3 */ -4 a3 1
|
|
867
|
+
maxAdj2 +- 73490 m4a3 a1
|
|
868
|
+
a2 pin 0 adj2 maxAdj2
|
|
869
|
+
dy1 */ h a1 200000
|
|
870
|
+
yg */ h a2 100000
|
|
871
|
+
rad */ h a3 100000
|
|
872
|
+
dx1 */ w 73490 200000
|
|
873
|
+
y3 +- vc 0 dy1
|
|
874
|
+
y4 +- vc dy1 0
|
|
875
|
+
a +- yg rad 0
|
|
876
|
+
y2 +- y3 0 a
|
|
877
|
+
y1 +- y2 0 rad
|
|
878
|
+
y5 +- b 0 y1
|
|
879
|
+
x1 +- hc 0 dx1
|
|
880
|
+
x3 +- hc dx1 0
|
|
881
|
+
x2 +- hc 0 rad`,
|
|
882
|
+
rect: 'x1 y3 x3 y4',
|
|
883
|
+
path: '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',
|
|
884
|
+
},
|
|
885
|
+
mathEqual: {
|
|
886
|
+
av: 'adj1 23520 adj2 11760',
|
|
887
|
+
gd: `a1 pin 0 adj1 36745
|
|
888
|
+
2a1 */ a1 2 1
|
|
889
|
+
mAdj2 +- 100000 0 2a1
|
|
890
|
+
a2 pin 0 adj2 mAdj2
|
|
891
|
+
dy1 */ h a1 100000
|
|
892
|
+
dy2 */ h a2 200000
|
|
893
|
+
dx1 */ w 73490 200000
|
|
894
|
+
y2 +- vc 0 dy2
|
|
895
|
+
y3 +- vc dy2 0
|
|
896
|
+
y1 +- y2 0 dy1
|
|
897
|
+
y4 +- y3 dy1 0
|
|
898
|
+
x1 +- hc 0 dx1
|
|
899
|
+
x2 +- hc dx1 0
|
|
900
|
+
yC1 +/ y1 y2 2
|
|
901
|
+
yC2 +/ y3 y4 2`,
|
|
902
|
+
rect: 'x1 y1 x2 y4',
|
|
903
|
+
path: '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',
|
|
904
|
+
},
|
|
905
|
+
mathNotEqual: {
|
|
906
|
+
av: 'adj1 23520 adj2 6600000 adj3 11760',
|
|
907
|
+
gd: `a1 pin 0 adj1 50000
|
|
908
|
+
crAng pin 4200000 adj2 6600000
|
|
909
|
+
2a1 */ a1 2 1
|
|
910
|
+
maxAdj3 +- 100000 0 2a1
|
|
911
|
+
a3 pin 0 adj3 maxAdj3
|
|
912
|
+
dy1 */ h a1 100000
|
|
913
|
+
dy2 */ h a3 200000
|
|
914
|
+
dx1 */ w 73490 200000
|
|
915
|
+
x1 +- hc 0 dx1
|
|
916
|
+
x8 +- hc dx1 0
|
|
917
|
+
y2 +- vc 0 dy2
|
|
918
|
+
y3 +- vc dy2 0
|
|
919
|
+
y1 +- y2 0 dy1
|
|
920
|
+
y4 +- y3 dy1 0
|
|
921
|
+
cadj2 +- crAng 0 cd4
|
|
922
|
+
xadj2 tan hd2 cadj2
|
|
923
|
+
len mod xadj2 hd2 0
|
|
924
|
+
bhw */ len dy1 hd2
|
|
925
|
+
bhw2 */ bhw 1 2
|
|
926
|
+
x7 +- hc xadj2 bhw2
|
|
927
|
+
dx67 */ xadj2 y1 hd2
|
|
928
|
+
x6 +- x7 0 dx67
|
|
929
|
+
dx57 */ xadj2 y2 hd2
|
|
930
|
+
x5 +- x7 0 dx57
|
|
931
|
+
dx47 */ xadj2 y3 hd2
|
|
932
|
+
x4 +- x7 0 dx47
|
|
933
|
+
dx37 */ xadj2 y4 hd2
|
|
934
|
+
x3 +- x7 0 dx37
|
|
935
|
+
dx27 */ xadj2 2 1
|
|
936
|
+
x2 +- x7 0 dx27
|
|
937
|
+
rx7 +- x7 bhw 0
|
|
938
|
+
rx6 +- x6 bhw 0
|
|
939
|
+
rx5 +- x5 bhw 0
|
|
940
|
+
rx4 +- x4 bhw 0
|
|
941
|
+
rx3 +- x3 bhw 0
|
|
942
|
+
rx2 +- x2 bhw 0
|
|
943
|
+
dx7 */ dy1 hd2 len
|
|
944
|
+
rxt +- x7 dx7 0
|
|
945
|
+
lxt +- rx7 0 dx7
|
|
946
|
+
rx ?: cadj2 rxt rx7
|
|
947
|
+
lx ?: cadj2 x7 lxt
|
|
948
|
+
dy3 */ dy1 xadj2 len
|
|
949
|
+
dy4 +- 0 0 dy3
|
|
950
|
+
ry ?: cadj2 dy3 t
|
|
951
|
+
ly ?: cadj2 t dy4
|
|
952
|
+
dlx +- w 0 rx
|
|
953
|
+
drx +- w 0 lx
|
|
954
|
+
dly +- h 0 ry
|
|
955
|
+
dry +- h 0 ly`,
|
|
956
|
+
rect: 'x1 y1 x8 y4',
|
|
957
|
+
path: '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 ' +
|
|
958
|
+
'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',
|
|
959
|
+
},
|
|
960
|
+
// --- Rings, arcs and solids -----------------------------------------------------------------
|
|
961
|
+
donut: {
|
|
962
|
+
av: 'adj 25000',
|
|
963
|
+
gd: `a pin 0 adj 50000
|
|
964
|
+
dr */ ss a 100000
|
|
965
|
+
iwd2 +- wd2 0 dr
|
|
966
|
+
ihd2 +- hd2 0 dr
|
|
967
|
+
${ELLIPSE_RECT_GD}`,
|
|
968
|
+
rect: 'il it ir ib',
|
|
969
|
+
path: `${ELLIPSE_PATH} M dr vc A iwd2 ihd2 cd2 -5400000 A iwd2 ihd2 cd4 -5400000 ` +
|
|
970
|
+
'A iwd2 ihd2 0 -5400000 A iwd2 ihd2 3cd4 -5400000 Z',
|
|
971
|
+
},
|
|
972
|
+
noSmoking: {
|
|
973
|
+
av: 'adj 18750',
|
|
974
|
+
gd: `a pin 0 adj 50000
|
|
975
|
+
dr */ ss a 100000
|
|
976
|
+
iwd2 +- wd2 0 dr
|
|
977
|
+
ihd2 +- hd2 0 dr
|
|
978
|
+
ang at2 w h
|
|
979
|
+
ct cos ihd2 ang
|
|
980
|
+
st sin iwd2 ang
|
|
981
|
+
m mod ct st 0
|
|
982
|
+
n */ iwd2 ihd2 m
|
|
983
|
+
drd2 */ dr 1 2
|
|
984
|
+
dang at2 n drd2
|
|
985
|
+
2dang */ dang 2 1
|
|
986
|
+
swAng +- -10800000 2dang 0
|
|
987
|
+
t3 at2 w h
|
|
988
|
+
stAng1 +- t3 0 dang
|
|
989
|
+
stAng2 +- stAng1 0 cd2
|
|
990
|
+
ct1 cos ihd2 stAng1
|
|
991
|
+
st1 sin iwd2 stAng1
|
|
992
|
+
m1 mod ct1 st1 0
|
|
993
|
+
n1 */ iwd2 ihd2 m1
|
|
994
|
+
dx1 cos n1 stAng1
|
|
995
|
+
dy1 sin n1 stAng1
|
|
996
|
+
x1 +- hc dx1 0
|
|
997
|
+
y1 +- vc dy1 0
|
|
998
|
+
x2 +- hc 0 dx1
|
|
999
|
+
y2 +- vc 0 dy1
|
|
1000
|
+
${ELLIPSE_RECT_GD}`,
|
|
1001
|
+
rect: 'il it ir ib',
|
|
1002
|
+
path: `${ELLIPSE_PATH} M x1 y1 A iwd2 ihd2 stAng1 swAng Z M x2 y2 A iwd2 ihd2 stAng2 swAng Z`,
|
|
1003
|
+
},
|
|
1004
|
+
blockArc: {
|
|
1005
|
+
av: 'adj1 10800000 adj2 0 adj3 25000',
|
|
1006
|
+
gd: `stAng pin 0 adj1 21599999
|
|
1007
|
+
istAng pin 0 adj2 21599999
|
|
1008
|
+
a3 pin 0 adj3 50000
|
|
1009
|
+
sw11 +- istAng 0 stAng
|
|
1010
|
+
sw12 +- sw11 21600000 0
|
|
1011
|
+
swAng ?: sw11 sw11 sw12
|
|
1012
|
+
iswAng +- 0 0 swAng
|
|
1013
|
+
wt1 sin wd2 stAng
|
|
1014
|
+
ht1 cos hd2 stAng
|
|
1015
|
+
wt3 sin wd2 istAng
|
|
1016
|
+
ht3 cos hd2 istAng
|
|
1017
|
+
dx1 cat2 wd2 ht1 wt1
|
|
1018
|
+
dy1 sat2 hd2 ht1 wt1
|
|
1019
|
+
dx3 cat2 wd2 ht3 wt3
|
|
1020
|
+
dy3 sat2 hd2 ht3 wt3
|
|
1021
|
+
x1 +- hc dx1 0
|
|
1022
|
+
y1 +- vc dy1 0
|
|
1023
|
+
x3 +- hc dx3 0
|
|
1024
|
+
y3 +- vc dy3 0
|
|
1025
|
+
dr */ ss a3 100000
|
|
1026
|
+
iwd2 +- wd2 0 dr
|
|
1027
|
+
ihd2 +- hd2 0 dr
|
|
1028
|
+
wt2 sin iwd2 istAng
|
|
1029
|
+
ht2 cos ihd2 istAng
|
|
1030
|
+
wt4 sin iwd2 stAng
|
|
1031
|
+
ht4 cos ihd2 stAng
|
|
1032
|
+
dx2 cat2 iwd2 ht2 wt2
|
|
1033
|
+
dy2 sat2 ihd2 ht2 wt2
|
|
1034
|
+
dx4 cat2 iwd2 ht4 wt4
|
|
1035
|
+
dy4 sat2 ihd2 ht4 wt4
|
|
1036
|
+
x2 +- hc dx2 0
|
|
1037
|
+
y2 +- vc dy2 0
|
|
1038
|
+
x4 +- hc dx4 0
|
|
1039
|
+
y4 +- vc dy4 0
|
|
1040
|
+
sw0 +- 21600000 0 stAng
|
|
1041
|
+
da1 +- swAng 0 sw0
|
|
1042
|
+
g1 max x1 x2
|
|
1043
|
+
g2 max x3 x4
|
|
1044
|
+
g3 max g1 g2
|
|
1045
|
+
ir ?: da1 r g3
|
|
1046
|
+
sw1 +- cd4 0 stAng
|
|
1047
|
+
sw2 +- 27000000 0 stAng
|
|
1048
|
+
sw3 ?: sw1 sw1 sw2
|
|
1049
|
+
da2 +- swAng 0 sw3
|
|
1050
|
+
g5 max y1 y2
|
|
1051
|
+
g6 max y3 y4
|
|
1052
|
+
g7 max g5 g6
|
|
1053
|
+
ib ?: da2 b g7
|
|
1054
|
+
sw4 +- cd2 0 stAng
|
|
1055
|
+
sw5 +- 32400000 0 stAng
|
|
1056
|
+
sw6 ?: sw4 sw4 sw5
|
|
1057
|
+
da3 +- swAng 0 sw6
|
|
1058
|
+
g9 min x1 x2
|
|
1059
|
+
g10 min x3 x4
|
|
1060
|
+
g11 min g9 g10
|
|
1061
|
+
il ?: da3 l g11
|
|
1062
|
+
sw7 +- 3cd4 0 stAng
|
|
1063
|
+
sw8 +- 37800000 0 stAng
|
|
1064
|
+
sw9 ?: sw7 sw7 sw8
|
|
1065
|
+
da4 +- swAng 0 sw9
|
|
1066
|
+
g13 min y1 y2
|
|
1067
|
+
g14 min y3 y4
|
|
1068
|
+
g15 min g13 g14
|
|
1069
|
+
it ?: da4 t g15`,
|
|
1070
|
+
rect: 'il it ir ib',
|
|
1071
|
+
path: 'M x1 y1 A wd2 hd2 stAng swAng L x2 y2 A iwd2 ihd2 istAng iswAng Z',
|
|
1072
|
+
},
|
|
1073
|
+
can: {
|
|
1074
|
+
av: 'adj 25000',
|
|
1075
|
+
gd: `maxAdj */ 50000 h ss
|
|
1076
|
+
a pin 0 adj maxAdj
|
|
1077
|
+
y1 */ ss a 200000
|
|
1078
|
+
y2 +- y1 y1 0
|
|
1079
|
+
y3 +- b 0 y1`,
|
|
1080
|
+
rect: 'l y2 r y3',
|
|
1081
|
+
path: [
|
|
1082
|
+
'nostroke noext | M l y1 A wd2 y1 cd2 -10800000 L r y3 A wd2 y1 0 cd4 A wd2 y1 cd4 cd4 Z',
|
|
1083
|
+
'lighten nostroke noext | M l y1 A wd2 y1 cd2 cd2 A wd2 y1 0 cd2 Z',
|
|
1084
|
+
'none | M r y1 A wd2 y1 0 cd2 A wd2 y1 cd2 cd2 L r y3 A wd2 y1 0 cd4 A wd2 y1 cd4 cd4 L l y1',
|
|
1085
|
+
],
|
|
1086
|
+
},
|
|
1087
|
+
cube: {
|
|
1088
|
+
av: 'adj 25000',
|
|
1089
|
+
gd: `a pin 0 adj 100000
|
|
1090
|
+
y1 */ ss a 100000
|
|
1091
|
+
y4 +- b 0 y1
|
|
1092
|
+
y2 */ y4 1 2
|
|
1093
|
+
y3 +/ y1 b 2
|
|
1094
|
+
x4 +- r 0 y1
|
|
1095
|
+
x2 */ x4 1 2
|
|
1096
|
+
x3 +/ y1 r 2`,
|
|
1097
|
+
rect: 'l y1 x4 b',
|
|
1098
|
+
path: [
|
|
1099
|
+
'nostroke noext | M l y1 L x4 y1 L x4 b L l b Z',
|
|
1100
|
+
'darkenLess nostroke noext | M x4 y1 L r t L r y4 L x4 b Z',
|
|
1101
|
+
'lightenLess nostroke noext | M l y1 L y1 t L r t L x4 y1 Z',
|
|
1102
|
+
'none noext | 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',
|
|
1103
|
+
],
|
|
1104
|
+
},
|
|
1105
|
+
bevel: {
|
|
1106
|
+
av: 'adj 12500',
|
|
1107
|
+
gd: `a pin 0 adj 50000
|
|
1108
|
+
x1 */ ss a 100000
|
|
1109
|
+
x2 +- r 0 x1
|
|
1110
|
+
y2 +- b 0 x1`,
|
|
1111
|
+
rect: 'x1 x1 x2 y2',
|
|
1112
|
+
path: [
|
|
1113
|
+
'nostroke noext | M x1 x1 L x2 x1 L x2 y2 L x1 y2 Z',
|
|
1114
|
+
'lightenLess nostroke noext | M l t L r t L x2 x1 L x1 x1 Z',
|
|
1115
|
+
'darkenLess nostroke noext | M l b L x1 y2 L x2 y2 L r b Z',
|
|
1116
|
+
'lighten nostroke noext | M l t L x1 x1 L x1 y2 L l b Z',
|
|
1117
|
+
'darken nostroke noext | M r t L r b L x2 y2 L x2 x1 Z',
|
|
1118
|
+
'none noext | 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',
|
|
1119
|
+
],
|
|
1120
|
+
},
|
|
1121
|
+
frame: {
|
|
1122
|
+
av: 'adj1 12500',
|
|
1123
|
+
gd: `a1 pin 0 adj1 50000
|
|
1124
|
+
x1 */ ss a1 100000
|
|
1125
|
+
x4 +- r 0 x1
|
|
1126
|
+
y4 +- b 0 x1`,
|
|
1127
|
+
rect: 'x1 x1 x4 y4',
|
|
1128
|
+
path: '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',
|
|
1129
|
+
},
|
|
1130
|
+
halfFrame: {
|
|
1131
|
+
av: 'adj1 33333 adj2 33333',
|
|
1132
|
+
gd: `maxAdj2 */ 100000 w ss
|
|
1133
|
+
a2 pin 0 adj2 maxAdj2
|
|
1134
|
+
x1 */ ss a2 100000
|
|
1135
|
+
g1 */ h x1 w
|
|
1136
|
+
g2 +- h 0 g1
|
|
1137
|
+
maxAdj1 */ 100000 g2 ss
|
|
1138
|
+
a1 pin 0 adj1 maxAdj1
|
|
1139
|
+
y1 */ ss a1 100000
|
|
1140
|
+
dx2 */ y1 w h
|
|
1141
|
+
x2 +- r 0 dx2
|
|
1142
|
+
dy2 */ x1 h w
|
|
1143
|
+
y2 +- b 0 dy2`,
|
|
1144
|
+
path: 'M l t L r t L x2 y1 L x1 y1 L x1 y2 L l b Z',
|
|
1145
|
+
},
|
|
1146
|
+
corner: {
|
|
1147
|
+
av: 'adj1 50000 adj2 50000',
|
|
1148
|
+
gd: `maxAdj1 */ 100000 h ss
|
|
1149
|
+
maxAdj2 */ 100000 w ss
|
|
1150
|
+
a1 pin 0 adj1 maxAdj1
|
|
1151
|
+
a2 pin 0 adj2 maxAdj2
|
|
1152
|
+
x1 */ ss a2 100000
|
|
1153
|
+
dy1 */ ss a1 100000
|
|
1154
|
+
y1 +- b 0 dy1
|
|
1155
|
+
d +- w 0 h
|
|
1156
|
+
it ?: d y1 t
|
|
1157
|
+
ir ?: d r x1`,
|
|
1158
|
+
rect: 'l it ir b',
|
|
1159
|
+
path: 'M l t L x1 t L x1 y1 L r y1 L r b L l b Z',
|
|
1160
|
+
},
|
|
1161
|
+
diagStripe: {
|
|
1162
|
+
av: 'adj 50000',
|
|
1163
|
+
gd: `a pin 0 adj 100000
|
|
1164
|
+
x2 */ w a 100000
|
|
1165
|
+
x1 */ x2 1 2
|
|
1166
|
+
x3 +/ x2 r 2
|
|
1167
|
+
y2 */ h a 100000
|
|
1168
|
+
y1 */ y2 1 2
|
|
1169
|
+
y3 +/ y2 b 2`,
|
|
1170
|
+
rect: 'l t x3 y3',
|
|
1171
|
+
path: 'M l y2 L x2 t L r t L l b Z',
|
|
1172
|
+
},
|
|
1173
|
+
plaque: {
|
|
1174
|
+
av: 'adj 16667',
|
|
1175
|
+
gd: `a pin 0 adj 50000
|
|
1176
|
+
x1 */ ss a 100000
|
|
1177
|
+
x2 +- r 0 x1
|
|
1178
|
+
y2 +- b 0 x1
|
|
1179
|
+
il */ x1 70711 100000
|
|
1180
|
+
ir +- r 0 il
|
|
1181
|
+
ib +- b 0 il`,
|
|
1182
|
+
rect: 'il il ir ib',
|
|
1183
|
+
path: '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',
|
|
1184
|
+
},
|
|
1185
|
+
foldedCorner: {
|
|
1186
|
+
av: 'adj 16667',
|
|
1187
|
+
gd: `a pin 0 adj 50000
|
|
1188
|
+
dy2 */ ss a 100000
|
|
1189
|
+
dy1 */ dy2 1 5
|
|
1190
|
+
x1 +- r 0 dy2
|
|
1191
|
+
x2 +- x1 dy1 0
|
|
1192
|
+
y2 +- b 0 dy2
|
|
1193
|
+
y1 +- y2 dy1 0`,
|
|
1194
|
+
rect: 'l t r y2',
|
|
1195
|
+
path: [
|
|
1196
|
+
'nostroke noext | M l t L r t L r y2 L x1 b L l b Z',
|
|
1197
|
+
'darkenLess nostroke noext | M x1 b L x2 y1 L r y2 Z',
|
|
1198
|
+
'none noext | M x1 b L x2 y1 L r y2 L x1 b L l b L l t L r t L r y2',
|
|
1199
|
+
],
|
|
1200
|
+
},
|
|
1201
|
+
smileyFace: {
|
|
1202
|
+
av: 'adj 4653',
|
|
1203
|
+
gd: `a pin -4653 adj 4653
|
|
1204
|
+
x1 */ w 4969 21699
|
|
1205
|
+
x2 */ w 6215 21600
|
|
1206
|
+
x3 */ w 13135 21600
|
|
1207
|
+
x4 */ w 16640 21600
|
|
1208
|
+
y1 */ h 7570 21600
|
|
1209
|
+
y3 */ h 16515 21600
|
|
1210
|
+
dy2 */ h a 100000
|
|
1211
|
+
y2 +- y3 0 dy2
|
|
1212
|
+
y4 +- y3 dy2 0
|
|
1213
|
+
dy3 */ h a 50000
|
|
1214
|
+
y5 +- y4 dy3 0
|
|
1215
|
+
${ELLIPSE_RECT_GD}
|
|
1216
|
+
wR */ w 1125 21600
|
|
1217
|
+
hR */ h 1125 21600`,
|
|
1218
|
+
rect: 'il it ir ib',
|
|
1219
|
+
path: [
|
|
1220
|
+
'nostroke noext | M l vc A wd2 hd2 cd2 21600000 Z',
|
|
1221
|
+
'darkenLess noext | M x2 y1 A wR hR cd2 21600000 M x3 y1 A wR hR cd2 21600000',
|
|
1222
|
+
'none noext | M x1 y2 Q hc y5 x4 y2',
|
|
1223
|
+
'none | M l vc A wd2 hd2 cd2 21600000 Z',
|
|
1224
|
+
],
|
|
1225
|
+
},
|
|
1226
|
+
heart: {
|
|
1227
|
+
gd: `dx1 */ w 49 48
|
|
1228
|
+
dx2 */ w 10 48
|
|
1229
|
+
x1 +- hc 0 dx1
|
|
1230
|
+
x2 +- hc 0 dx2
|
|
1231
|
+
x3 +- hc dx2 0
|
|
1232
|
+
x4 +- hc dx1 0
|
|
1233
|
+
y1 +- t 0 hd3
|
|
1234
|
+
il */ w 1 6
|
|
1235
|
+
ir */ w 5 6
|
|
1236
|
+
ib */ h 2 3`,
|
|
1237
|
+
rect: 'il hd4 ir ib',
|
|
1238
|
+
path: 'M hc hd4 C x3 y1 x4 hd4 hc b C x1 hd4 x2 y1 hc hd4 Z',
|
|
1239
|
+
},
|
|
1240
|
+
lightningBolt: {
|
|
1241
|
+
gd: `x1 */ w 5022 21600
|
|
1242
|
+
x3 */ w 8472 21600
|
|
1243
|
+
x4 */ w 8757 21600
|
|
1244
|
+
x5 */ w 10012 21600
|
|
1245
|
+
x8 */ w 12860 21600
|
|
1246
|
+
x9 */ w 13917 21600
|
|
1247
|
+
x11 */ w 16577 21600
|
|
1248
|
+
y1 */ h 3890 21600
|
|
1249
|
+
y2 */ h 6080 21600
|
|
1250
|
+
y4 */ h 7437 21600
|
|
1251
|
+
y6 */ h 9705 21600
|
|
1252
|
+
y7 */ h 12007 21600
|
|
1253
|
+
y10 */ h 14277 21600
|
|
1254
|
+
y11 */ h 14915 21600`,
|
|
1255
|
+
rect: 'x4 y4 x9 y10',
|
|
1256
|
+
path: 'w=21600 h=21600 | M 8472 0 L 12860 6080 L 11050 6797 L 16577 12007 L 14767 12877 L 21600 21600 ' +
|
|
1257
|
+
'L 10012 14915 L 12222 13987 L 5022 9705 L 7602 8382 L 0 3890 Z',
|
|
1258
|
+
},
|
|
1259
|
+
sun: {
|
|
1260
|
+
av: 'adj 25000',
|
|
1261
|
+
gd: `a pin 12500 adj 46875
|
|
1262
|
+
g0 +- 50000 0 a
|
|
1263
|
+
g1 */ g0 30274 32768
|
|
1264
|
+
g2 */ g0 12540 32768
|
|
1265
|
+
g3 +- g1 50000 0
|
|
1266
|
+
g4 +- g2 50000 0
|
|
1267
|
+
g5 +- 50000 0 g1
|
|
1268
|
+
g6 +- 50000 0 g2
|
|
1269
|
+
g7 */ g0 23170 32768
|
|
1270
|
+
g8 +- 50000 g7 0
|
|
1271
|
+
g9 +- 50000 0 g7
|
|
1272
|
+
g10 */ g5 3 4
|
|
1273
|
+
g11 */ g6 3 4
|
|
1274
|
+
g12 +- g10 3662 0
|
|
1275
|
+
g13 +- g11 3662 0
|
|
1276
|
+
g14 +- g11 12500 0
|
|
1277
|
+
g15 +- 100000 0 g10
|
|
1278
|
+
g16 +- 100000 0 g12
|
|
1279
|
+
g17 +- 100000 0 g13
|
|
1280
|
+
g18 +- 100000 0 g14
|
|
1281
|
+
ox1 */ w 18436 21600
|
|
1282
|
+
oy1 */ h 3163 21600
|
|
1283
|
+
ox2 */ w 3163 21600
|
|
1284
|
+
oy2 */ h 18436 21600
|
|
1285
|
+
x8 */ w g8 100000
|
|
1286
|
+
x9 */ w g9 100000
|
|
1287
|
+
x10 */ w g10 100000
|
|
1288
|
+
x12 */ w g12 100000
|
|
1289
|
+
x13 */ w g13 100000
|
|
1290
|
+
x14 */ w g14 100000
|
|
1291
|
+
x15 */ w g15 100000
|
|
1292
|
+
x16 */ w g16 100000
|
|
1293
|
+
x17 */ w g17 100000
|
|
1294
|
+
x18 */ w g18 100000
|
|
1295
|
+
x19 */ w a 100000
|
|
1296
|
+
wR */ w g0 100000
|
|
1297
|
+
hR */ h g0 100000
|
|
1298
|
+
y8 */ h g8 100000
|
|
1299
|
+
y9 */ h g9 100000
|
|
1300
|
+
y10 */ h g10 100000
|
|
1301
|
+
y12 */ h g12 100000
|
|
1302
|
+
y13 */ h g13 100000
|
|
1303
|
+
y14 */ h g14 100000
|
|
1304
|
+
y15 */ h g15 100000
|
|
1305
|
+
y16 */ h g16 100000
|
|
1306
|
+
y17 */ h g17 100000
|
|
1307
|
+
y18 */ h g18 100000`,
|
|
1308
|
+
rect: 'x9 y9 x8 y8',
|
|
1309
|
+
path: '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 ' +
|
|
1310
|
+
'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 ' +
|
|
1311
|
+
'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',
|
|
1312
|
+
},
|
|
1313
|
+
moon: {
|
|
1314
|
+
av: 'adj 50000',
|
|
1315
|
+
gd: `a pin 0 adj 87500
|
|
1316
|
+
g0 */ ss a 100000
|
|
1317
|
+
g0w */ g0 w ss
|
|
1318
|
+
g1 +- ss 0 g0
|
|
1319
|
+
g2 */ g0 g0 g1
|
|
1320
|
+
g3 */ ss ss g1
|
|
1321
|
+
g4 */ g3 2 1
|
|
1322
|
+
g5 +- g4 0 g2
|
|
1323
|
+
g6 +- g5 0 g0
|
|
1324
|
+
g6w */ g6 w ss
|
|
1325
|
+
g7 */ g5 1 2
|
|
1326
|
+
g8 +- g7 0 g0
|
|
1327
|
+
dy1 */ g8 hd2 ss
|
|
1328
|
+
g10h +- vc 0 dy1
|
|
1329
|
+
g11h +- vc dy1 0
|
|
1330
|
+
g12 */ g0 9598 32768
|
|
1331
|
+
g12w */ g12 w ss
|
|
1332
|
+
g13 +- ss 0 g12
|
|
1333
|
+
q1 */ ss ss 1
|
|
1334
|
+
q2 */ g13 g13 1
|
|
1335
|
+
q3 +- q1 0 q2
|
|
1336
|
+
q4 sqrt q3
|
|
1337
|
+
dy4 */ q4 hd2 ss
|
|
1338
|
+
g15h +- vc 0 dy4
|
|
1339
|
+
g16h +- vc dy4 0
|
|
1340
|
+
g17w +- g6w 0 g0w
|
|
1341
|
+
g18w */ g17w 1 2
|
|
1342
|
+
dx2p +- g0w g18w w
|
|
1343
|
+
dx2 */ dx2p -1 1
|
|
1344
|
+
dy2 */ hd2 -1 1
|
|
1345
|
+
stAng1 at2 dx2 dy2
|
|
1346
|
+
enAngp1 at2 dx2 hd2
|
|
1347
|
+
enAng1 +- enAngp1 0 21600000
|
|
1348
|
+
swAng1 +- enAng1 0 stAng1`,
|
|
1349
|
+
rect: 'g12w g15h g0w g16h',
|
|
1350
|
+
path: 'M r b A w hd2 cd4 cd2 A g18w dy1 stAng1 swAng1 Z',
|
|
1351
|
+
},
|
|
1352
|
+
cloud: {
|
|
1353
|
+
gd: CLOUD_RECT_GD,
|
|
1354
|
+
rect: 'il it ir ib',
|
|
1355
|
+
path: [CLOUD_OUTLINE, CLOUD_DETAIL],
|
|
1356
|
+
},
|
|
1357
|
+
arc: {
|
|
1358
|
+
av: 'adj1 16200000 adj2 0',
|
|
1359
|
+
gd: `stAng pin 0 adj1 21599999
|
|
1360
|
+
enAng pin 0 adj2 21599999
|
|
1361
|
+
sw11 +- enAng 0 stAng
|
|
1362
|
+
sw12 +- sw11 21600000 0
|
|
1363
|
+
swAng ?: sw11 sw11 sw12
|
|
1364
|
+
wt1 sin wd2 stAng
|
|
1365
|
+
ht1 cos hd2 stAng
|
|
1366
|
+
dx1 cat2 wd2 ht1 wt1
|
|
1367
|
+
dy1 sat2 hd2 ht1 wt1
|
|
1368
|
+
wt2 sin wd2 enAng
|
|
1369
|
+
ht2 cos hd2 enAng
|
|
1370
|
+
dx2 cat2 wd2 ht2 wt2
|
|
1371
|
+
dy2 sat2 hd2 ht2 wt2
|
|
1372
|
+
x1 +- hc dx1 0
|
|
1373
|
+
y1 +- vc dy1 0
|
|
1374
|
+
x2 +- hc dx2 0
|
|
1375
|
+
y2 +- vc dy2 0
|
|
1376
|
+
sw0 +- 21600000 0 stAng
|
|
1377
|
+
da1 +- swAng 0 sw0
|
|
1378
|
+
g1 max x1 x2
|
|
1379
|
+
ir ?: da1 r g1
|
|
1380
|
+
sw1 +- cd4 0 stAng
|
|
1381
|
+
sw2 +- 27000000 0 stAng
|
|
1382
|
+
sw3 ?: sw1 sw1 sw2
|
|
1383
|
+
da2 +- swAng 0 sw3
|
|
1384
|
+
g5 max y1 y2
|
|
1385
|
+
ib ?: da2 b g5
|
|
1386
|
+
sw4 +- cd2 0 stAng
|
|
1387
|
+
sw5 +- 32400000 0 stAng
|
|
1388
|
+
sw6 ?: sw4 sw4 sw5
|
|
1389
|
+
da3 +- swAng 0 sw6
|
|
1390
|
+
g9 min x1 x2
|
|
1391
|
+
il ?: da3 l g9
|
|
1392
|
+
sw7 +- 3cd4 0 stAng
|
|
1393
|
+
sw8 +- 37800000 0 stAng
|
|
1394
|
+
sw9 ?: sw7 sw7 sw8
|
|
1395
|
+
da4 +- swAng 0 sw9
|
|
1396
|
+
g13 min y1 y2
|
|
1397
|
+
it ?: da4 t g13`,
|
|
1398
|
+
rect: 'il it ir ib',
|
|
1399
|
+
path: ['nostroke noext | M x1 y1 A wd2 hd2 stAng swAng L hc vc Z', 'none | M x1 y1 A wd2 hd2 stAng swAng'],
|
|
1400
|
+
},
|
|
1401
|
+
chord: {
|
|
1402
|
+
av: 'adj1 2700000 adj2 16200000',
|
|
1403
|
+
gd: `stAng pin 0 adj1 21599999
|
|
1404
|
+
enAng pin 0 adj2 21599999
|
|
1405
|
+
sw1 +- enAng 0 stAng
|
|
1406
|
+
sw2 +- sw1 21600000 0
|
|
1407
|
+
swAng ?: sw1 sw1 sw2
|
|
1408
|
+
wt1 sin wd2 stAng
|
|
1409
|
+
ht1 cos hd2 stAng
|
|
1410
|
+
dx1 cat2 wd2 ht1 wt1
|
|
1411
|
+
dy1 sat2 hd2 ht1 wt1
|
|
1412
|
+
wt2 sin wd2 enAng
|
|
1413
|
+
ht2 cos hd2 enAng
|
|
1414
|
+
dx2 cat2 wd2 ht2 wt2
|
|
1415
|
+
dy2 sat2 hd2 ht2 wt2
|
|
1416
|
+
x1 +- hc dx1 0
|
|
1417
|
+
y1 +- vc dy1 0
|
|
1418
|
+
x2 +- hc dx2 0
|
|
1419
|
+
y2 +- vc dy2 0
|
|
1420
|
+
x3 +/ x1 x2 2
|
|
1421
|
+
y3 +/ y1 y2 2
|
|
1422
|
+
midAng0 */ swAng 1 2
|
|
1423
|
+
midAng +- stAng midAng0 cd2
|
|
1424
|
+
${ELLIPSE_RECT_GD}`,
|
|
1425
|
+
rect: 'il it ir ib',
|
|
1426
|
+
path: 'M x1 y1 A wd2 hd2 stAng swAng Z',
|
|
1427
|
+
},
|
|
1428
|
+
pie: {
|
|
1429
|
+
av: 'adj1 0 adj2 16200000',
|
|
1430
|
+
gd: `stAng pin 0 adj1 21599999
|
|
1431
|
+
enAng pin 0 adj2 21599999
|
|
1432
|
+
sw1 +- enAng 0 stAng
|
|
1433
|
+
sw2 +- sw1 21600000 0
|
|
1434
|
+
swAng ?: sw1 sw1 sw2
|
|
1435
|
+
wt1 sin wd2 stAng
|
|
1436
|
+
ht1 cos hd2 stAng
|
|
1437
|
+
dx1 cat2 wd2 ht1 wt1
|
|
1438
|
+
dy1 sat2 hd2 ht1 wt1
|
|
1439
|
+
x1 +- hc dx1 0
|
|
1440
|
+
y1 +- vc dy1 0
|
|
1441
|
+
wt2 sin wd2 enAng
|
|
1442
|
+
ht2 cos hd2 enAng
|
|
1443
|
+
dx2 cat2 wd2 ht2 wt2
|
|
1444
|
+
dy2 sat2 hd2 ht2 wt2
|
|
1445
|
+
x2 +- hc dx2 0
|
|
1446
|
+
y2 +- vc dy2 0
|
|
1447
|
+
${ELLIPSE_RECT_GD}`,
|
|
1448
|
+
rect: 'il it ir ib',
|
|
1449
|
+
path: 'M x1 y1 A wd2 hd2 stAng swAng L hc vc Z',
|
|
1450
|
+
},
|
|
1451
|
+
pieWedge: {
|
|
1452
|
+
gd: `g1 cos w 13500000
|
|
1453
|
+
g2 sin h 13500000
|
|
1454
|
+
x1 +- r g1 0
|
|
1455
|
+
y1 +- b g2 0`,
|
|
1456
|
+
rect: 'x1 y1 r b',
|
|
1457
|
+
path: 'M l b A w h cd2 cd4 L r b Z',
|
|
1458
|
+
},
|
|
1459
|
+
teardrop: {
|
|
1460
|
+
av: 'adj 100000',
|
|
1461
|
+
gd: `a pin 0 adj 200000
|
|
1462
|
+
r2 sqrt 2
|
|
1463
|
+
tw */ r2 wd2 1
|
|
1464
|
+
th */ r2 hd2 1
|
|
1465
|
+
sw */ tw a 100000
|
|
1466
|
+
sh */ th a 100000
|
|
1467
|
+
dx1 cos sw 2700000
|
|
1468
|
+
dy1 sin sh 2700000
|
|
1469
|
+
x1 +- hc dx1 0
|
|
1470
|
+
y1 +- vc 0 dy1
|
|
1471
|
+
x2 +/ hc x1 2
|
|
1472
|
+
y2 +/ vc y1 2
|
|
1473
|
+
${ELLIPSE_RECT_GD}`,
|
|
1474
|
+
rect: 'il it ir ib',
|
|
1475
|
+
path: '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',
|
|
1476
|
+
},
|
|
1477
|
+
// --- Brackets and braces --------------------------------------------------------------------
|
|
1478
|
+
bracketPair: {
|
|
1479
|
+
av: 'adj 16667',
|
|
1480
|
+
gd: `a pin 0 adj 50000
|
|
1481
|
+
x1 */ ss a 100000
|
|
1482
|
+
x2 +- r 0 x1
|
|
1483
|
+
y2 +- b 0 x1
|
|
1484
|
+
il */ x1 29289 100000
|
|
1485
|
+
ir +- r 0 il
|
|
1486
|
+
ib +- b 0 il`,
|
|
1487
|
+
rect: 'il il ir ib',
|
|
1488
|
+
path: [
|
|
1489
|
+
'nostroke noext | 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',
|
|
1490
|
+
'none | 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',
|
|
1491
|
+
],
|
|
1492
|
+
},
|
|
1493
|
+
bracePair: {
|
|
1494
|
+
av: 'adj 8333',
|
|
1495
|
+
gd: `a pin 0 adj 25000
|
|
1496
|
+
x1 */ ss a 100000
|
|
1497
|
+
x2 */ ss a 50000
|
|
1498
|
+
x3 +- r 0 x2
|
|
1499
|
+
x4 +- r 0 x1
|
|
1500
|
+
y2 +- vc 0 x1
|
|
1501
|
+
y3 +- vc x1 0
|
|
1502
|
+
y4 +- b 0 x1
|
|
1503
|
+
it */ x1 29289 100000
|
|
1504
|
+
il +- x1 it 0
|
|
1505
|
+
ir +- r 0 il
|
|
1506
|
+
ib +- b 0 it`,
|
|
1507
|
+
rect: 'il il ir ib',
|
|
1508
|
+
path: [
|
|
1509
|
+
'nostroke noext | 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 ' +
|
|
1510
|
+
'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',
|
|
1511
|
+
'none | 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 ' +
|
|
1512
|
+
'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',
|
|
1513
|
+
],
|
|
1514
|
+
},
|
|
1515
|
+
leftBracket: {
|
|
1516
|
+
av: 'adj 8333',
|
|
1517
|
+
gd: `maxAdj */ 50000 h ss
|
|
1518
|
+
a pin 0 adj maxAdj
|
|
1519
|
+
y1 */ ss a 100000
|
|
1520
|
+
y2 +- b 0 y1
|
|
1521
|
+
dx1 cos w 2700000
|
|
1522
|
+
dy1 sin y1 2700000
|
|
1523
|
+
il +- r 0 dx1
|
|
1524
|
+
it +- y1 0 dy1
|
|
1525
|
+
ib +- b dy1 y1`,
|
|
1526
|
+
rect: 'il it r ib',
|
|
1527
|
+
path: [
|
|
1528
|
+
'nostroke noext | M r b A w y1 cd4 cd4 L l y1 A w y1 cd2 cd4 Z',
|
|
1529
|
+
'none | M r b A w y1 cd4 cd4 L l y1 A w y1 cd2 cd4',
|
|
1530
|
+
],
|
|
1531
|
+
},
|
|
1532
|
+
rightBracket: {
|
|
1533
|
+
av: 'adj 8333',
|
|
1534
|
+
gd: `maxAdj */ 50000 h ss
|
|
1535
|
+
a pin 0 adj maxAdj
|
|
1536
|
+
y1 */ ss a 100000
|
|
1537
|
+
y2 +- b 0 y1
|
|
1538
|
+
dx1 cos w 2700000
|
|
1539
|
+
dy1 sin y1 2700000
|
|
1540
|
+
ir +- l dx1 0
|
|
1541
|
+
it +- y1 0 dy1
|
|
1542
|
+
ib +- b dy1 y1`,
|
|
1543
|
+
rect: 'l it ir ib',
|
|
1544
|
+
path: [
|
|
1545
|
+
'nostroke noext | M l t A w y1 3cd4 cd4 L r y2 A w y1 0 cd4 Z',
|
|
1546
|
+
'none | M l t A w y1 3cd4 cd4 L r y2 A w y1 0 cd4',
|
|
1547
|
+
],
|
|
1548
|
+
},
|
|
1549
|
+
leftBrace: {
|
|
1550
|
+
av: 'adj1 8333 adj2 50000',
|
|
1551
|
+
gd: `a2 pin 0 adj2 100000
|
|
1552
|
+
q1 +- 100000 0 a2
|
|
1553
|
+
q2 min q1 a2
|
|
1554
|
+
q3 */ q2 1 2
|
|
1555
|
+
maxAdj1 */ q3 h ss
|
|
1556
|
+
a1 pin 0 adj1 maxAdj1
|
|
1557
|
+
y1 */ ss a1 100000
|
|
1558
|
+
y3 */ h a2 100000
|
|
1559
|
+
y4 +- y3 y1 0
|
|
1560
|
+
dx1 cos wd2 2700000
|
|
1561
|
+
dy1 sin y1 2700000
|
|
1562
|
+
il +- r 0 dx1
|
|
1563
|
+
it +- y1 0 dy1
|
|
1564
|
+
ib +- b dy1 y1`,
|
|
1565
|
+
rect: 'il it r ib',
|
|
1566
|
+
path: [
|
|
1567
|
+
'nostroke noext | 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',
|
|
1568
|
+
'none | 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',
|
|
1569
|
+
],
|
|
1570
|
+
},
|
|
1571
|
+
rightBrace: {
|
|
1572
|
+
av: 'adj1 8333 adj2 50000',
|
|
1573
|
+
gd: `a2 pin 0 adj2 100000
|
|
1574
|
+
q1 +- 100000 0 a2
|
|
1575
|
+
q2 min q1 a2
|
|
1576
|
+
q3 */ q2 1 2
|
|
1577
|
+
maxAdj1 */ q3 h ss
|
|
1578
|
+
a1 pin 0 adj1 maxAdj1
|
|
1579
|
+
y1 */ ss a1 100000
|
|
1580
|
+
y3 */ h a2 100000
|
|
1581
|
+
y2 +- y3 0 y1
|
|
1582
|
+
y4 +- b 0 y1
|
|
1583
|
+
dx1 cos wd2 2700000
|
|
1584
|
+
dy1 sin y1 2700000
|
|
1585
|
+
ir +- l dx1 0
|
|
1586
|
+
it +- y1 0 dy1
|
|
1587
|
+
ib +- b dy1 y1`,
|
|
1588
|
+
rect: 'l it ir ib',
|
|
1589
|
+
path: [
|
|
1590
|
+
'nostroke noext | 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',
|
|
1591
|
+
'none | 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',
|
|
1592
|
+
],
|
|
1593
|
+
},
|
|
1594
|
+
// --- Block arrows ---------------------------------------------------------------------------
|
|
1595
|
+
rightArrow: {
|
|
1596
|
+
av: 'adj1 50000 adj2 50000',
|
|
1597
|
+
gd: `maxAdj2 */ 100000 w ss
|
|
1598
|
+
a1 pin 0 adj1 100000
|
|
1599
|
+
a2 pin 0 adj2 maxAdj2
|
|
1600
|
+
dx1 */ ss a2 100000
|
|
1601
|
+
x1 +- r 0 dx1
|
|
1602
|
+
dy1 */ h a1 200000
|
|
1603
|
+
y1 +- vc 0 dy1
|
|
1604
|
+
y2 +- vc dy1 0
|
|
1605
|
+
dx2 */ y1 dx1 hd2
|
|
1606
|
+
x2 +- x1 dx2 0`,
|
|
1607
|
+
rect: 'l y1 x2 y2',
|
|
1608
|
+
path: 'M l y1 L x1 y1 L x1 t L r vc L x1 b L x1 y2 L l y2 Z',
|
|
1609
|
+
},
|
|
1610
|
+
leftArrow: {
|
|
1611
|
+
av: 'adj1 50000 adj2 50000',
|
|
1612
|
+
gd: `maxAdj2 */ 100000 w ss
|
|
1613
|
+
a1 pin 0 adj1 100000
|
|
1614
|
+
a2 pin 0 adj2 maxAdj2
|
|
1615
|
+
dx2 */ ss a2 100000
|
|
1616
|
+
x2 +- l dx2 0
|
|
1617
|
+
dy1 */ h a1 200000
|
|
1618
|
+
y1 +- vc 0 dy1
|
|
1619
|
+
y2 +- vc dy1 0
|
|
1620
|
+
dx1 */ y1 dx2 hd2
|
|
1621
|
+
x1 +- x2 0 dx1`,
|
|
1622
|
+
rect: 'x1 y1 r y2',
|
|
1623
|
+
path: 'M l vc L x2 t L x2 y1 L r y1 L r y2 L x2 y2 L x2 b Z',
|
|
1624
|
+
},
|
|
1625
|
+
upArrow: {
|
|
1626
|
+
av: 'adj1 50000 adj2 50000',
|
|
1627
|
+
gd: `maxAdj2 */ 100000 h ss
|
|
1628
|
+
a1 pin 0 adj1 100000
|
|
1629
|
+
a2 pin 0 adj2 maxAdj2
|
|
1630
|
+
dy2 */ ss a2 100000
|
|
1631
|
+
y2 +- t dy2 0
|
|
1632
|
+
dx1 */ w a1 200000
|
|
1633
|
+
x1 +- hc 0 dx1
|
|
1634
|
+
x2 +- hc dx1 0
|
|
1635
|
+
dy1 */ x1 dy2 wd2
|
|
1636
|
+
y1 +- y2 0 dy1`,
|
|
1637
|
+
rect: 'x1 y1 x2 b',
|
|
1638
|
+
path: 'M l y2 L hc t L r y2 L x2 y2 L x2 b L x1 b L x1 y2 Z',
|
|
1639
|
+
},
|
|
1640
|
+
downArrow: {
|
|
1641
|
+
av: 'adj1 50000 adj2 50000',
|
|
1642
|
+
gd: `maxAdj2 */ 100000 h ss
|
|
1643
|
+
a1 pin 0 adj1 100000
|
|
1644
|
+
a2 pin 0 adj2 maxAdj2
|
|
1645
|
+
dy1 */ ss a2 100000
|
|
1646
|
+
y1 +- b 0 dy1
|
|
1647
|
+
dx1 */ w a1 200000
|
|
1648
|
+
x1 +- hc 0 dx1
|
|
1649
|
+
x2 +- hc dx1 0
|
|
1650
|
+
dy2 */ x1 dy1 wd2
|
|
1651
|
+
y2 +- y1 dy2 0`,
|
|
1652
|
+
rect: 'x1 t x2 y2',
|
|
1653
|
+
path: 'M l y1 L x1 y1 L x1 t L x2 t L x2 y1 L r y1 L hc b Z',
|
|
1654
|
+
},
|
|
1655
|
+
leftRightArrow: {
|
|
1656
|
+
av: 'adj1 50000 adj2 50000',
|
|
1657
|
+
gd: `maxAdj2 */ 50000 w ss
|
|
1658
|
+
a1 pin 0 adj1 100000
|
|
1659
|
+
a2 pin 0 adj2 maxAdj2
|
|
1660
|
+
x2 */ ss a2 100000
|
|
1661
|
+
x3 +- r 0 x2
|
|
1662
|
+
dy */ h a1 200000
|
|
1663
|
+
y1 +- vc 0 dy
|
|
1664
|
+
y2 +- vc dy 0
|
|
1665
|
+
dx1 */ y1 x2 hd2
|
|
1666
|
+
x1 +- x2 0 dx1
|
|
1667
|
+
x4 +- x3 dx1 0`,
|
|
1668
|
+
rect: 'x1 y1 x4 y2',
|
|
1669
|
+
path: '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',
|
|
1670
|
+
},
|
|
1671
|
+
upDownArrow: {
|
|
1672
|
+
av: 'adj1 50000 adj2 50000',
|
|
1673
|
+
gd: `maxAdj2 */ 50000 h ss
|
|
1674
|
+
a1 pin 0 adj1 100000
|
|
1675
|
+
a2 pin 0 adj2 maxAdj2
|
|
1676
|
+
y2 */ ss a2 100000
|
|
1677
|
+
y3 +- b 0 y2
|
|
1678
|
+
dx1 */ w a1 200000
|
|
1679
|
+
x1 +- hc 0 dx1
|
|
1680
|
+
x2 +- hc dx1 0
|
|
1681
|
+
dy1 */ x1 y2 wd2
|
|
1682
|
+
y1 +- y2 0 dy1
|
|
1683
|
+
y4 +- y3 dy1 0`,
|
|
1684
|
+
rect: 'x1 y1 x2 y4',
|
|
1685
|
+
path: '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',
|
|
1686
|
+
},
|
|
1687
|
+
quadArrow: {
|
|
1688
|
+
av: 'adj1 22500 adj2 22500 adj3 22500',
|
|
1689
|
+
gd: `a2 pin 0 adj2 50000
|
|
1690
|
+
maxAdj1 */ a2 2 1
|
|
1691
|
+
a1 pin 0 adj1 maxAdj1
|
|
1692
|
+
q1 +- 100000 0 maxAdj1
|
|
1693
|
+
maxAdj3 */ q1 1 2
|
|
1694
|
+
a3 pin 0 adj3 maxAdj3
|
|
1695
|
+
x1 */ ss a3 100000
|
|
1696
|
+
dx2 */ ss a2 100000
|
|
1697
|
+
x2 +- hc 0 dx2
|
|
1698
|
+
x5 +- hc dx2 0
|
|
1699
|
+
dx3 */ ss a1 200000
|
|
1700
|
+
x3 +- hc 0 dx3
|
|
1701
|
+
x4 +- hc dx3 0
|
|
1702
|
+
x6 +- r 0 x1
|
|
1703
|
+
y2 +- vc 0 dx2
|
|
1704
|
+
y5 +- vc dx2 0
|
|
1705
|
+
y3 +- vc 0 dx3
|
|
1706
|
+
y4 +- vc dx3 0
|
|
1707
|
+
y6 +- b 0 x1
|
|
1708
|
+
il */ dx3 x1 dx2
|
|
1709
|
+
ir +- r 0 il`,
|
|
1710
|
+
rect: 'il y3 ir y4',
|
|
1711
|
+
path: '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 ' +
|
|
1712
|
+
'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',
|
|
1713
|
+
},
|
|
1714
|
+
leftRightUpArrow: {
|
|
1715
|
+
av: 'adj1 25000 adj2 25000 adj3 25000',
|
|
1716
|
+
gd: `a2 pin 0 adj2 50000
|
|
1717
|
+
maxAdj1 */ a2 2 1
|
|
1718
|
+
a1 pin 0 adj1 maxAdj1
|
|
1719
|
+
q1 +- 100000 0 maxAdj1
|
|
1720
|
+
maxAdj3 */ q1 1 2
|
|
1721
|
+
a3 pin 0 adj3 maxAdj3
|
|
1722
|
+
x1 */ ss a3 100000
|
|
1723
|
+
dx2 */ ss a2 100000
|
|
1724
|
+
x2 +- hc 0 dx2
|
|
1725
|
+
x5 +- hc dx2 0
|
|
1726
|
+
dx3 */ ss a1 200000
|
|
1727
|
+
x3 +- hc 0 dx3
|
|
1728
|
+
x4 +- hc dx3 0
|
|
1729
|
+
x6 +- r 0 x1
|
|
1730
|
+
dy2 */ ss a2 50000
|
|
1731
|
+
y2 +- b 0 dy2
|
|
1732
|
+
y4 +- b 0 dx2
|
|
1733
|
+
y3 +- y4 0 dx3
|
|
1734
|
+
y5 +- y4 dx3 0
|
|
1735
|
+
il */ dx3 x1 dx2
|
|
1736
|
+
ir +- r 0 il`,
|
|
1737
|
+
rect: 'il y3 ir y5',
|
|
1738
|
+
path: '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 ' +
|
|
1739
|
+
'L x6 b L x6 y5 L x1 y5 L x1 b Z',
|
|
1740
|
+
},
|
|
1741
|
+
notchedRightArrow: {
|
|
1742
|
+
av: 'adj1 50000 adj2 50000',
|
|
1743
|
+
gd: `maxAdj2 */ 100000 w ss
|
|
1744
|
+
a1 pin 0 adj1 100000
|
|
1745
|
+
a2 pin 0 adj2 maxAdj2
|
|
1746
|
+
dx2 */ ss a2 100000
|
|
1747
|
+
x2 +- r 0 dx2
|
|
1748
|
+
dy1 */ h a1 200000
|
|
1749
|
+
y1 +- vc 0 dy1
|
|
1750
|
+
y2 +- vc dy1 0
|
|
1751
|
+
x1 */ dy1 dx2 hd2
|
|
1752
|
+
x3 +- r 0 x1`,
|
|
1753
|
+
rect: 'x1 y1 x3 y2',
|
|
1754
|
+
path: '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',
|
|
1755
|
+
},
|
|
1756
|
+
stripedRightArrow: {
|
|
1757
|
+
av: 'adj1 50000 adj2 50000',
|
|
1758
|
+
gd: `maxAdj2 */ 84375 w ss
|
|
1759
|
+
a1 pin 0 adj1 100000
|
|
1760
|
+
a2 pin 0 adj2 maxAdj2
|
|
1761
|
+
x4 */ ss 5 32
|
|
1762
|
+
dx5 */ ss a2 100000
|
|
1763
|
+
x5 +- r 0 dx5
|
|
1764
|
+
dy1 */ h a1 200000
|
|
1765
|
+
y1 +- vc 0 dy1
|
|
1766
|
+
y2 +- vc dy1 0
|
|
1767
|
+
dx6 */ dy1 dx5 hd2
|
|
1768
|
+
x6 +- r 0 dx6`,
|
|
1769
|
+
rect: 'x4 y1 x6 y2',
|
|
1770
|
+
path: '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 ' +
|
|
1771
|
+
'M x4 y1 L x5 y1 L x5 t L r vc L x5 b L x5 y2 L x4 y2 Z',
|
|
1772
|
+
},
|
|
1773
|
+
chevron: {
|
|
1774
|
+
av: 'adj 50000',
|
|
1775
|
+
gd: `maxAdj */ 100000 w ss
|
|
1776
|
+
a pin 0 adj maxAdj
|
|
1777
|
+
x1 */ ss a 100000
|
|
1778
|
+
x2 +- r 0 x1
|
|
1779
|
+
x3 */ x2 1 2
|
|
1780
|
+
dx +- x2 0 x1
|
|
1781
|
+
il ?: dx x1 l
|
|
1782
|
+
ir ?: dx x2 r`,
|
|
1783
|
+
rect: 'il t ir b',
|
|
1784
|
+
path: 'M l t L x2 t L r vc L x2 b L l b L x1 vc Z',
|
|
1785
|
+
},
|
|
1786
|
+
homePlate: {
|
|
1787
|
+
av: 'adj 50000',
|
|
1788
|
+
gd: `maxAdj */ 100000 w ss
|
|
1789
|
+
a pin 0 adj maxAdj
|
|
1790
|
+
dx1 */ ss a 100000
|
|
1791
|
+
x1 +- r 0 dx1
|
|
1792
|
+
ir +/ x1 r 2
|
|
1793
|
+
x2 */ x1 1 2`,
|
|
1794
|
+
rect: 'l t ir b',
|
|
1795
|
+
path: 'M l t L x1 t L r vc L x1 b L l b Z',
|
|
1796
|
+
},
|
|
1797
|
+
bentArrow: {
|
|
1798
|
+
av: 'adj1 25000 adj2 25000 adj3 25000 adj4 43750',
|
|
1799
|
+
gd: `a2 pin 0 adj2 50000
|
|
1800
|
+
maxAdj1 */ a2 2 1
|
|
1801
|
+
a1 pin 0 adj1 maxAdj1
|
|
1802
|
+
a3 pin 0 adj3 50000
|
|
1803
|
+
th */ ss a1 100000
|
|
1804
|
+
aw2 */ ss a2 100000
|
|
1805
|
+
th2 */ th 1 2
|
|
1806
|
+
dh2 +- aw2 0 th2
|
|
1807
|
+
ah */ ss a3 100000
|
|
1808
|
+
bw +- r 0 ah
|
|
1809
|
+
bh +- b 0 dh2
|
|
1810
|
+
bs min bw bh
|
|
1811
|
+
maxAdj4 */ 100000 bs ss
|
|
1812
|
+
a4 pin 0 adj4 maxAdj4
|
|
1813
|
+
bd */ ss a4 100000
|
|
1814
|
+
bd3 +- bd 0 th
|
|
1815
|
+
bd2 max bd3 0
|
|
1816
|
+
x3 +- th bd2 0
|
|
1817
|
+
x4 +- r 0 ah
|
|
1818
|
+
y3 +- dh2 th 0
|
|
1819
|
+
y4 +- y3 dh2 0
|
|
1820
|
+
y5 +- dh2 bd 0
|
|
1821
|
+
y6 +- y3 bd2 0`,
|
|
1822
|
+
path: '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',
|
|
1823
|
+
},
|
|
1824
|
+
uturnArrow: {
|
|
1825
|
+
av: 'adj1 25000 adj2 25000 adj3 25000 adj4 43750 adj5 75000',
|
|
1826
|
+
gd: `a2 pin 0 adj2 25000
|
|
1827
|
+
maxAdj1 */ a2 2 1
|
|
1828
|
+
a1 pin 0 adj1 maxAdj1
|
|
1829
|
+
q2 */ a1 ss h
|
|
1830
|
+
q3 +- 100000 0 q2
|
|
1831
|
+
maxAdj3 */ q3 h ss
|
|
1832
|
+
a3 pin 0 adj3 maxAdj3
|
|
1833
|
+
q1 +- a3 a1 0
|
|
1834
|
+
minAdj5 */ q1 ss h
|
|
1835
|
+
a5 pin minAdj5 adj5 100000
|
|
1836
|
+
th */ ss a1 100000
|
|
1837
|
+
aw2 */ ss a2 100000
|
|
1838
|
+
th2 */ th 1 2
|
|
1839
|
+
dh2 +- aw2 0 th2
|
|
1840
|
+
y5 */ h a5 100000
|
|
1841
|
+
ah */ ss a3 100000
|
|
1842
|
+
y4 +- y5 0 ah
|
|
1843
|
+
x9 +- r 0 dh2
|
|
1844
|
+
bw */ x9 1 2
|
|
1845
|
+
bs min bw y4
|
|
1846
|
+
maxAdj4 */ bs 100000 ss
|
|
1847
|
+
a4 pin 0 adj4 maxAdj4
|
|
1848
|
+
bd */ ss a4 100000
|
|
1849
|
+
bd3 +- bd 0 th
|
|
1850
|
+
bd2 max bd3 0
|
|
1851
|
+
x3 +- th bd2 0
|
|
1852
|
+
x8 +- r 0 aw2
|
|
1853
|
+
x6 +- x8 0 aw2
|
|
1854
|
+
x7 +- x6 dh2 0
|
|
1855
|
+
x4 +- x9 0 bd
|
|
1856
|
+
x5 +- x7 0 bd2
|
|
1857
|
+
cx +/ th x7 2`,
|
|
1858
|
+
rect: 'l t x9 y4',
|
|
1859
|
+
path: '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 ' +
|
|
1860
|
+
'A bd2 bd2 0 -5400000 L x3 th A bd2 bd2 3cd4 -5400000 L th b Z',
|
|
1861
|
+
},
|
|
1862
|
+
curvedRightArrow: {
|
|
1863
|
+
av: 'adj1 25000 adj2 50000 adj3 25000',
|
|
1864
|
+
gd: `maxAdj2 */ 50000 h ss
|
|
1865
|
+
a2 pin 0 adj2 maxAdj2
|
|
1866
|
+
a1 pin 0 adj1 a2
|
|
1867
|
+
th */ ss a1 100000
|
|
1868
|
+
aw */ ss a2 100000
|
|
1869
|
+
q1 +/ th aw 4
|
|
1870
|
+
hR +- hd2 0 q1
|
|
1871
|
+
q7 */ hR 2 1
|
|
1872
|
+
q8 */ q7 q7 1
|
|
1873
|
+
q9 */ th th 1
|
|
1874
|
+
q10 +- q8 0 q9
|
|
1875
|
+
q11 sqrt q10
|
|
1876
|
+
idx */ q11 w q7
|
|
1877
|
+
maxAdj3 */ 100000 idx ss
|
|
1878
|
+
a3 pin 0 adj3 maxAdj3
|
|
1879
|
+
ah */ ss a3 100000
|
|
1880
|
+
y3 +- hR th 0
|
|
1881
|
+
q2 */ w w 1
|
|
1882
|
+
q3 */ ah ah 1
|
|
1883
|
+
q4 +- q2 0 q3
|
|
1884
|
+
q5 sqrt q4
|
|
1885
|
+
dy */ q5 hR w
|
|
1886
|
+
y5 +- hR dy 0
|
|
1887
|
+
y7 +- y3 dy 0
|
|
1888
|
+
q6 +- aw 0 th
|
|
1889
|
+
dh */ q6 1 2
|
|
1890
|
+
y4 +- y5 0 dh
|
|
1891
|
+
y8 +- y7 dh 0
|
|
1892
|
+
aw2 */ aw 1 2
|
|
1893
|
+
y6 +- b 0 aw2
|
|
1894
|
+
x1 +- r 0 ah
|
|
1895
|
+
swAng at2 ah dy
|
|
1896
|
+
stAng +- cd2 0 swAng
|
|
1897
|
+
mswAng +- 0 0 swAng
|
|
1898
|
+
ix +- r 0 idx
|
|
1899
|
+
iy +/ hR y3 2
|
|
1900
|
+
q12 */ th 1 2
|
|
1901
|
+
dang2 at2 idx q12
|
|
1902
|
+
swAng2 +- dang2 0 cd4
|
|
1903
|
+
swAng3 +- cd4 dang2 0
|
|
1904
|
+
stAng3 +- cd2 0 dang2`,
|
|
1905
|
+
path: [
|
|
1906
|
+
'nostroke noext | 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',
|
|
1907
|
+
'darkenLess nostroke noext | M r th A w hR 3cd4 swAng2 A w hR stAng3 swAng3 Z',
|
|
1908
|
+
'none noext | 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',
|
|
1909
|
+
],
|
|
1910
|
+
},
|
|
1911
|
+
curvedLeftArrow: {
|
|
1912
|
+
av: 'adj1 25000 adj2 50000 adj3 25000',
|
|
1913
|
+
gd: `maxAdj2 */ 50000 h ss
|
|
1914
|
+
a2 pin 0 adj2 maxAdj2
|
|
1915
|
+
a1 pin 0 adj1 a2
|
|
1916
|
+
th */ ss a1 100000
|
|
1917
|
+
aw */ ss a2 100000
|
|
1918
|
+
q1 +/ th aw 4
|
|
1919
|
+
hR +- hd2 0 q1
|
|
1920
|
+
q7 */ hR 2 1
|
|
1921
|
+
q8 */ q7 q7 1
|
|
1922
|
+
q9 */ th th 1
|
|
1923
|
+
q10 +- q8 0 q9
|
|
1924
|
+
q11 sqrt q10
|
|
1925
|
+
idx */ q11 w q7
|
|
1926
|
+
maxAdj3 */ 100000 idx ss
|
|
1927
|
+
a3 pin 0 adj3 maxAdj3
|
|
1928
|
+
ah */ ss a3 100000
|
|
1929
|
+
y3 +- hR th 0
|
|
1930
|
+
q2 */ w w 1
|
|
1931
|
+
q3 */ ah ah 1
|
|
1932
|
+
q4 +- q2 0 q3
|
|
1933
|
+
q5 sqrt q4
|
|
1934
|
+
dy */ q5 hR w
|
|
1935
|
+
y5 +- hR dy 0
|
|
1936
|
+
y7 +- y3 dy 0
|
|
1937
|
+
q6 +- aw 0 th
|
|
1938
|
+
dh */ q6 1 2
|
|
1939
|
+
y4 +- y5 0 dh
|
|
1940
|
+
y8 +- y7 dh 0
|
|
1941
|
+
aw2 */ aw 1 2
|
|
1942
|
+
y6 +- b 0 aw2
|
|
1943
|
+
x1 +- l ah 0
|
|
1944
|
+
swAng at2 ah dy
|
|
1945
|
+
mswAng +- 0 0 swAng
|
|
1946
|
+
ix +- l idx 0
|
|
1947
|
+
iy +/ hR y3 2
|
|
1948
|
+
q12 */ th 1 2
|
|
1949
|
+
dang2 at2 idx q12
|
|
1950
|
+
swAng2 +- dang2 0 swAng
|
|
1951
|
+
swAng3 +- swAng dang2 0
|
|
1952
|
+
stAng3 +- 0 0 dang2`,
|
|
1953
|
+
path: [
|
|
1954
|
+
'nostroke noext | M l y6 L x1 y4 L x1 y5 A w hR swAng swAng2 A w hR stAng3 swAng3 L x1 y8 Z',
|
|
1955
|
+
'darkenLess nostroke noext | M r y3 A w hR 0 -5400000 L l t A w hR 3cd4 cd4 Z',
|
|
1956
|
+
'none noext | 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',
|
|
1957
|
+
],
|
|
1958
|
+
},
|
|
1959
|
+
curvedUpArrow: {
|
|
1960
|
+
av: 'adj1 25000 adj2 50000 adj3 25000',
|
|
1961
|
+
gd: `maxAdj2 */ 50000 w ss
|
|
1962
|
+
a2 pin 0 adj2 maxAdj2
|
|
1963
|
+
a1 pin 0 adj1 100000
|
|
1964
|
+
th */ ss a1 100000
|
|
1965
|
+
aw */ ss a2 100000
|
|
1966
|
+
q1 +/ th aw 4
|
|
1967
|
+
wR +- wd2 0 q1
|
|
1968
|
+
q7 */ wR 2 1
|
|
1969
|
+
q8 */ q7 q7 1
|
|
1970
|
+
q9 */ th th 1
|
|
1971
|
+
q10 +- q8 0 q9
|
|
1972
|
+
q11 sqrt q10
|
|
1973
|
+
idy */ q11 h q7
|
|
1974
|
+
maxAdj3 */ 100000 idy ss
|
|
1975
|
+
a3 pin 0 adj3 maxAdj3
|
|
1976
|
+
ah */ ss a3 100000
|
|
1977
|
+
x3 +- wR th 0
|
|
1978
|
+
q2 */ h h 1
|
|
1979
|
+
q3 */ ah ah 1
|
|
1980
|
+
q4 +- q2 0 q3
|
|
1981
|
+
q5 sqrt q4
|
|
1982
|
+
dx */ q5 wR h
|
|
1983
|
+
x5 +- wR dx 0
|
|
1984
|
+
x7 +- x3 dx 0
|
|
1985
|
+
q6 +- aw 0 th
|
|
1986
|
+
dh */ q6 1 2
|
|
1987
|
+
x4 +- x5 0 dh
|
|
1988
|
+
x8 +- x7 dh 0
|
|
1989
|
+
aw2 */ aw 1 2
|
|
1990
|
+
x6 +- r 0 aw2
|
|
1991
|
+
y1 +- t ah 0
|
|
1992
|
+
swAng at2 ah dx
|
|
1993
|
+
mswAng +- 0 0 swAng
|
|
1994
|
+
iy +- t idy 0
|
|
1995
|
+
ix +/ wR x3 2
|
|
1996
|
+
q12 */ th 1 2
|
|
1997
|
+
dang2 at2 idy q12
|
|
1998
|
+
swAng2 +- dang2 0 swAng
|
|
1999
|
+
mswAng2 +- 0 0 swAng2
|
|
2000
|
+
stAng3 +- cd4 0 swAng
|
|
2001
|
+
swAng3 +- swAng dang2 0
|
|
2002
|
+
stAng2 +- cd4 0 dang2`,
|
|
2003
|
+
path: [
|
|
2004
|
+
'nostroke noext | M x6 t L x8 y1 L x7 y1 A wR h stAng3 swAng3 A wR h stAng2 swAng2 L x4 y1 Z',
|
|
2005
|
+
'darkenLess nostroke noext | M wR b A wR h cd4 cd4 L th t A wR h cd2 -5400000 Z',
|
|
2006
|
+
'none noext | M ix iy A wR h stAng2 swAng2 L x4 y1 L x6 t L x8 y1 L x7 y1 A wR h stAng3 swAng3 L wR b A wR h cd4 cd4 L th t A wR h cd2 -5400000',
|
|
2007
|
+
],
|
|
2008
|
+
},
|
|
2009
|
+
curvedDownArrow: {
|
|
2010
|
+
av: 'adj1 25000 adj2 50000 adj3 25000',
|
|
2011
|
+
gd: `maxAdj2 */ 50000 w ss
|
|
2012
|
+
a2 pin 0 adj2 maxAdj2
|
|
2013
|
+
a1 pin 0 adj1 100000
|
|
2014
|
+
th */ ss a1 100000
|
|
2015
|
+
aw */ ss a2 100000
|
|
2016
|
+
q1 +/ th aw 4
|
|
2017
|
+
wR +- wd2 0 q1
|
|
2018
|
+
q7 */ wR 2 1
|
|
2019
|
+
q8 */ q7 q7 1
|
|
2020
|
+
q9 */ th th 1
|
|
2021
|
+
q10 +- q8 0 q9
|
|
2022
|
+
q11 sqrt q10
|
|
2023
|
+
idy */ q11 h q7
|
|
2024
|
+
maxAdj3 */ 100000 idy ss
|
|
2025
|
+
a3 pin 0 adj3 maxAdj3
|
|
2026
|
+
ah */ ss a3 100000
|
|
2027
|
+
x3 +- wR th 0
|
|
2028
|
+
q2 */ h h 1
|
|
2029
|
+
q3 */ ah ah 1
|
|
2030
|
+
q4 +- q2 0 q3
|
|
2031
|
+
q5 sqrt q4
|
|
2032
|
+
dx */ q5 wR h
|
|
2033
|
+
x5 +- wR dx 0
|
|
2034
|
+
x7 +- x3 dx 0
|
|
2035
|
+
q6 +- aw 0 th
|
|
2036
|
+
dh */ q6 1 2
|
|
2037
|
+
x4 +- x5 0 dh
|
|
2038
|
+
x8 +- x7 dh 0
|
|
2039
|
+
aw2 */ aw 1 2
|
|
2040
|
+
x6 +- r 0 aw2
|
|
2041
|
+
y1 +- b 0 ah
|
|
2042
|
+
swAng at2 ah dx
|
|
2043
|
+
mswAng +- 0 0 swAng
|
|
2044
|
+
iy +- b 0 idy
|
|
2045
|
+
ix +/ wR x3 2
|
|
2046
|
+
q12 */ th 1 2
|
|
2047
|
+
dang2 at2 idy q12
|
|
2048
|
+
stAng +- 3cd4 swAng 0
|
|
2049
|
+
stAng2 +- 3cd4 0 dang2
|
|
2050
|
+
swAng2 +- dang2 0 cd4
|
|
2051
|
+
swAng3 +- cd4 dang2 0`,
|
|
2052
|
+
path: [
|
|
2053
|
+
'nostroke noext | 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',
|
|
2054
|
+
'darkenLess nostroke noext | M ix iy A wR h stAng2 swAng2 L l b A wR h cd2 swAng3 Z',
|
|
2055
|
+
'none noext | 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',
|
|
2056
|
+
],
|
|
2057
|
+
},
|
|
2058
|
+
circularArrow: {
|
|
2059
|
+
av: 'adj1 12500 adj2 1142319 adj3 20457681 adj4 10800000 adj5 12500',
|
|
2060
|
+
gd: `a5 pin 0 adj5 25000
|
|
2061
|
+
maxAdj1 */ a5 2 1
|
|
2062
|
+
a1 pin 0 adj1 maxAdj1
|
|
2063
|
+
enAng pin 1 adj3 21599999
|
|
2064
|
+
stAng pin 0 adj4 21599999
|
|
2065
|
+
th */ ss a1 100000
|
|
2066
|
+
thh */ ss a5 100000
|
|
2067
|
+
th2 */ th 1 2
|
|
2068
|
+
rw1 +- wd2 th2 thh
|
|
2069
|
+
rh1 +- hd2 th2 thh
|
|
2070
|
+
rw2 +- rw1 0 th
|
|
2071
|
+
rh2 +- rh1 0 th
|
|
2072
|
+
rw3 +- rw2 th2 0
|
|
2073
|
+
rh3 +- rh2 th2 0
|
|
2074
|
+
wtH sin rw3 enAng
|
|
2075
|
+
htH cos rh3 enAng
|
|
2076
|
+
dxH cat2 rw3 htH wtH
|
|
2077
|
+
dyH sat2 rh3 htH wtH
|
|
2078
|
+
xH +- hc dxH 0
|
|
2079
|
+
yH +- vc dyH 0
|
|
2080
|
+
rI min rw2 rh2
|
|
2081
|
+
u1 */ dxH dxH 1
|
|
2082
|
+
u2 */ dyH dyH 1
|
|
2083
|
+
u3 */ rI rI 1
|
|
2084
|
+
u4 +- u1 0 u3
|
|
2085
|
+
u5 +- u2 0 u3
|
|
2086
|
+
u6 */ u4 u5 u1
|
|
2087
|
+
u7 */ u6 1 u2
|
|
2088
|
+
u8 +- 1 0 u7
|
|
2089
|
+
u9 sqrt u8
|
|
2090
|
+
u10 */ u4 1 dxH
|
|
2091
|
+
u11 */ u10 1 dyH
|
|
2092
|
+
u12 +/ 1 u9 u11
|
|
2093
|
+
u13 at2 1 u12
|
|
2094
|
+
u14 +- u13 21600000 0
|
|
2095
|
+
u15 ?: u13 u13 u14
|
|
2096
|
+
u16 +- u15 0 enAng
|
|
2097
|
+
u17 +- u16 21600000 0
|
|
2098
|
+
u18 ?: u16 u16 u17
|
|
2099
|
+
u19 +- u18 0 cd2
|
|
2100
|
+
u20 +- u18 0 21600000
|
|
2101
|
+
u21 ?: u19 u20 u18
|
|
2102
|
+
maxAng abs u21
|
|
2103
|
+
aAng pin 0 adj2 maxAng
|
|
2104
|
+
ptAng +- enAng aAng 0
|
|
2105
|
+
wtA sin rw3 ptAng
|
|
2106
|
+
htA cos rh3 ptAng
|
|
2107
|
+
dxA cat2 rw3 htA wtA
|
|
2108
|
+
dyA sat2 rh3 htA wtA
|
|
2109
|
+
xA +- hc dxA 0
|
|
2110
|
+
yA +- vc dyA 0
|
|
2111
|
+
wtE sin rw1 stAng
|
|
2112
|
+
htE cos rh1 stAng
|
|
2113
|
+
dxE cat2 rw1 htE wtE
|
|
2114
|
+
dyE sat2 rh1 htE wtE
|
|
2115
|
+
xE +- hc dxE 0
|
|
2116
|
+
yE +- vc dyE 0
|
|
2117
|
+
dxG cos thh ptAng
|
|
2118
|
+
dyG sin thh ptAng
|
|
2119
|
+
xG +- xH dxG 0
|
|
2120
|
+
yG +- yH dyG 0
|
|
2121
|
+
dxB cos thh ptAng
|
|
2122
|
+
dyB sin thh ptAng
|
|
2123
|
+
xB +- xH 0 dxB
|
|
2124
|
+
yB +- yH 0 dyB
|
|
2125
|
+
sx1 +- xB 0 hc
|
|
2126
|
+
sy1 +- yB 0 vc
|
|
2127
|
+
sx2 +- xG 0 hc
|
|
2128
|
+
sy2 +- yG 0 vc
|
|
2129
|
+
rO min rw1 rh1
|
|
2130
|
+
x1O */ sx1 rO rw1
|
|
2131
|
+
y1O */ sy1 rO rh1
|
|
2132
|
+
x2O */ sx2 rO rw1
|
|
2133
|
+
y2O */ sy2 rO rh1
|
|
2134
|
+
dxO +- x2O 0 x1O
|
|
2135
|
+
dyO +- y2O 0 y1O
|
|
2136
|
+
dO mod dxO dyO 0
|
|
2137
|
+
q1 */ x1O y2O 1
|
|
2138
|
+
q2 */ x2O y1O 1
|
|
2139
|
+
DO +- q1 0 q2
|
|
2140
|
+
q3 */ rO rO 1
|
|
2141
|
+
q4 */ dO dO 1
|
|
2142
|
+
q5 */ q3 q4 1
|
|
2143
|
+
q6 */ DO DO 1
|
|
2144
|
+
q7 +- q5 0 q6
|
|
2145
|
+
q8 max q7 0
|
|
2146
|
+
sdelO sqrt q8
|
|
2147
|
+
ndyO */ dyO -1 1
|
|
2148
|
+
sdyO ?: ndyO -1 1
|
|
2149
|
+
q9 */ sdyO dxO 1
|
|
2150
|
+
q10 */ q9 sdelO 1
|
|
2151
|
+
q11 */ DO dyO 1
|
|
2152
|
+
dxF1 +/ q11 q10 q4
|
|
2153
|
+
q12 +- q11 0 q10
|
|
2154
|
+
dxF2 */ q12 1 q4
|
|
2155
|
+
adyO abs dyO
|
|
2156
|
+
q13 */ adyO sdelO 1
|
|
2157
|
+
q14 */ DO dxO -1
|
|
2158
|
+
dyF1 +/ q14 q13 q4
|
|
2159
|
+
q15 +- q14 0 q13
|
|
2160
|
+
dyF2 */ q15 1 q4
|
|
2161
|
+
q16 +- x2O 0 dxF1
|
|
2162
|
+
q17 +- x2O 0 dxF2
|
|
2163
|
+
q18 +- y2O 0 dyF1
|
|
2164
|
+
q19 +- y2O 0 dyF2
|
|
2165
|
+
q20 mod q16 q18 0
|
|
2166
|
+
q21 mod q17 q19 0
|
|
2167
|
+
q22 +- q21 0 q20
|
|
2168
|
+
dxF ?: q22 dxF1 dxF2
|
|
2169
|
+
dyF ?: q22 dyF1 dyF2
|
|
2170
|
+
sdxF */ dxF rw1 rO
|
|
2171
|
+
sdyF */ dyF rh1 rO
|
|
2172
|
+
xF +- hc sdxF 0
|
|
2173
|
+
yF +- vc sdyF 0
|
|
2174
|
+
x1I */ sx1 rI rw2
|
|
2175
|
+
y1I */ sy1 rI rh2
|
|
2176
|
+
x2I */ sx2 rI rw2
|
|
2177
|
+
y2I */ sy2 rI rh2
|
|
2178
|
+
dxI +- x2I 0 x1I
|
|
2179
|
+
dyI +- y2I 0 y1I
|
|
2180
|
+
dI mod dxI dyI 0
|
|
2181
|
+
v1 */ x1I y2I 1
|
|
2182
|
+
v2 */ x2I y1I 1
|
|
2183
|
+
DI +- v1 0 v2
|
|
2184
|
+
v3 */ rI rI 1
|
|
2185
|
+
v4 */ dI dI 1
|
|
2186
|
+
v5 */ v3 v4 1
|
|
2187
|
+
v6 */ DI DI 1
|
|
2188
|
+
v7 +- v5 0 v6
|
|
2189
|
+
v8 max v7 0
|
|
2190
|
+
sdelI sqrt v8
|
|
2191
|
+
v9 */ sdyO dxI 1
|
|
2192
|
+
v10 */ v9 sdelI 1
|
|
2193
|
+
v11 */ DI dyI 1
|
|
2194
|
+
dxC1 +/ v11 v10 v4
|
|
2195
|
+
v12 +- v11 0 v10
|
|
2196
|
+
dxC2 */ v12 1 v4
|
|
2197
|
+
adyI abs dyI
|
|
2198
|
+
v13 */ adyI sdelI 1
|
|
2199
|
+
v14 */ DI dxI -1
|
|
2200
|
+
dyC1 +/ v14 v13 v4
|
|
2201
|
+
v15 +- v14 0 v13
|
|
2202
|
+
dyC2 */ v15 1 v4
|
|
2203
|
+
v16 +- x1I 0 dxC1
|
|
2204
|
+
v17 +- x1I 0 dxC2
|
|
2205
|
+
v18 +- y1I 0 dyC1
|
|
2206
|
+
v19 +- y1I 0 dyC2
|
|
2207
|
+
v20 mod v16 v18 0
|
|
2208
|
+
v21 mod v17 v19 0
|
|
2209
|
+
v22 +- v21 0 v20
|
|
2210
|
+
dxC ?: v22 dxC1 dxC2
|
|
2211
|
+
dyC ?: v22 dyC1 dyC2
|
|
2212
|
+
sdxC */ dxC rw2 rI
|
|
2213
|
+
sdyC */ dyC rh2 rI
|
|
2214
|
+
xC +- hc sdxC 0
|
|
2215
|
+
yC +- vc sdyC 0
|
|
2216
|
+
ist0 at2 sdxC sdyC
|
|
2217
|
+
ist1 +- ist0 21600000 0
|
|
2218
|
+
istAng ?: ist0 ist0 ist1
|
|
2219
|
+
isw1 +- stAng 0 istAng
|
|
2220
|
+
isw2 +- isw1 0 21600000
|
|
2221
|
+
iswAng ?: isw1 isw2 isw1
|
|
2222
|
+
p1 +- xF 0 xC
|
|
2223
|
+
p2 +- yF 0 yC
|
|
2224
|
+
p3 mod p1 p2 0
|
|
2225
|
+
p4 */ p3 1 2
|
|
2226
|
+
p5 +- p4 0 thh
|
|
2227
|
+
xGp ?: p5 xF xG
|
|
2228
|
+
yGp ?: p5 yF yG
|
|
2229
|
+
xBp ?: p5 xC xB
|
|
2230
|
+
yBp ?: p5 yC yB
|
|
2231
|
+
en0 at2 sdxF sdyF
|
|
2232
|
+
en1 +- en0 21600000 0
|
|
2233
|
+
en2 ?: en0 en0 en1
|
|
2234
|
+
sw0 +- en2 0 stAng
|
|
2235
|
+
sw1 +- sw0 21600000 0
|
|
2236
|
+
swAng ?: sw0 sw0 sw1
|
|
2237
|
+
idx cos rw1 2700000
|
|
2238
|
+
idy sin rh1 2700000
|
|
2239
|
+
il +- hc 0 idx
|
|
2240
|
+
ir +- hc idx 0
|
|
2241
|
+
it +- vc 0 idy
|
|
2242
|
+
ib +- vc idy 0`,
|
|
2243
|
+
rect: 'il it ir ib',
|
|
2244
|
+
path: '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',
|
|
2245
|
+
},
|
|
2246
|
+
// --- Callouts -------------------------------------------------------------------------------
|
|
2247
|
+
rightArrowCallout: {
|
|
2248
|
+
av: 'adj1 25000 adj2 25000 adj3 25000 adj4 64977',
|
|
2249
|
+
gd: `maxAdj2 */ 50000 h ss
|
|
2250
|
+
a2 pin 0 adj2 maxAdj2
|
|
2251
|
+
maxAdj1 */ a2 2 1
|
|
2252
|
+
a1 pin 0 adj1 maxAdj1
|
|
2253
|
+
maxAdj3 */ 100000 w ss
|
|
2254
|
+
a3 pin 0 adj3 maxAdj3
|
|
2255
|
+
q2 */ a3 ss w
|
|
2256
|
+
maxAdj4 +- 100000 0 q2
|
|
2257
|
+
a4 pin 0 adj4 maxAdj4
|
|
2258
|
+
dy1 */ ss a2 100000
|
|
2259
|
+
dy2 */ ss a1 200000
|
|
2260
|
+
y1 +- vc 0 dy1
|
|
2261
|
+
y2 +- vc 0 dy2
|
|
2262
|
+
y3 +- vc dy2 0
|
|
2263
|
+
y4 +- vc dy1 0
|
|
2264
|
+
dx3 */ ss a3 100000
|
|
2265
|
+
x3 +- r 0 dx3
|
|
2266
|
+
x2 */ w a4 100000
|
|
2267
|
+
x1 */ x2 1 2`,
|
|
2268
|
+
rect: 'l t x2 b',
|
|
2269
|
+
path: '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',
|
|
2270
|
+
},
|
|
2271
|
+
leftArrowCallout: {
|
|
2272
|
+
av: 'adj1 25000 adj2 25000 adj3 25000 adj4 64977',
|
|
2273
|
+
gd: `maxAdj2 */ 50000 h ss
|
|
2274
|
+
a2 pin 0 adj2 maxAdj2
|
|
2275
|
+
maxAdj1 */ a2 2 1
|
|
2276
|
+
a1 pin 0 adj1 maxAdj1
|
|
2277
|
+
maxAdj3 */ 100000 w ss
|
|
2278
|
+
a3 pin 0 adj3 maxAdj3
|
|
2279
|
+
q2 */ a3 ss w
|
|
2280
|
+
maxAdj4 +- 100000 0 q2
|
|
2281
|
+
a4 pin 0 adj4 maxAdj4
|
|
2282
|
+
dy1 */ ss a2 100000
|
|
2283
|
+
dy2 */ ss a1 200000
|
|
2284
|
+
y1 +- vc 0 dy1
|
|
2285
|
+
y2 +- vc 0 dy2
|
|
2286
|
+
y3 +- vc dy2 0
|
|
2287
|
+
y4 +- vc dy1 0
|
|
2288
|
+
x1 */ ss a3 100000
|
|
2289
|
+
dx2 */ w a4 100000
|
|
2290
|
+
x2 +- r 0 dx2
|
|
2291
|
+
x3 +/ x2 r 2`,
|
|
2292
|
+
rect: 'x2 t r b',
|
|
2293
|
+
path: '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',
|
|
2294
|
+
},
|
|
2295
|
+
upArrowCallout: {
|
|
2296
|
+
av: 'adj1 25000 adj2 25000 adj3 25000 adj4 64977',
|
|
2297
|
+
gd: `maxAdj2 */ 50000 w ss
|
|
2298
|
+
a2 pin 0 adj2 maxAdj2
|
|
2299
|
+
maxAdj1 */ a2 2 1
|
|
2300
|
+
a1 pin 0 adj1 maxAdj1
|
|
2301
|
+
maxAdj3 */ 100000 h ss
|
|
2302
|
+
a3 pin 0 adj3 maxAdj3
|
|
2303
|
+
q2 */ a3 ss h
|
|
2304
|
+
maxAdj4 +- 100000 0 q2
|
|
2305
|
+
a4 pin 0 adj4 maxAdj4
|
|
2306
|
+
dx1 */ ss a2 100000
|
|
2307
|
+
dx2 */ ss a1 200000
|
|
2308
|
+
x1 +- hc 0 dx1
|
|
2309
|
+
x2 +- hc 0 dx2
|
|
2310
|
+
x3 +- hc dx2 0
|
|
2311
|
+
x4 +- hc dx1 0
|
|
2312
|
+
y1 */ ss a3 100000
|
|
2313
|
+
dy2 */ h a4 100000
|
|
2314
|
+
y2 +- b 0 dy2
|
|
2315
|
+
y3 +/ y2 b 2`,
|
|
2316
|
+
rect: 'l y2 r b',
|
|
2317
|
+
path: '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',
|
|
2318
|
+
},
|
|
2319
|
+
downArrowCallout: {
|
|
2320
|
+
av: 'adj1 25000 adj2 25000 adj3 25000 adj4 64977',
|
|
2321
|
+
gd: `maxAdj2 */ 50000 w ss
|
|
2322
|
+
a2 pin 0 adj2 maxAdj2
|
|
2323
|
+
maxAdj1 */ a2 2 1
|
|
2324
|
+
a1 pin 0 adj1 maxAdj1
|
|
2325
|
+
maxAdj3 */ 100000 h ss
|
|
2326
|
+
a3 pin 0 adj3 maxAdj3
|
|
2327
|
+
q2 */ a3 ss h
|
|
2328
|
+
maxAdj4 +- 100000 0 q2
|
|
2329
|
+
a4 pin 0 adj4 maxAdj4
|
|
2330
|
+
dx1 */ ss a2 100000
|
|
2331
|
+
dx2 */ ss a1 200000
|
|
2332
|
+
x1 +- hc 0 dx1
|
|
2333
|
+
x2 +- hc 0 dx2
|
|
2334
|
+
x3 +- hc dx2 0
|
|
2335
|
+
x4 +- hc dx1 0
|
|
2336
|
+
dy3 */ ss a3 100000
|
|
2337
|
+
y3 +- b 0 dy3
|
|
2338
|
+
y2 */ h a4 100000
|
|
2339
|
+
y1 */ y2 1 2`,
|
|
2340
|
+
rect: 'l t r y2',
|
|
2341
|
+
path: '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',
|
|
2342
|
+
},
|
|
2343
|
+
leftRightArrowCallout: {
|
|
2344
|
+
av: 'adj1 25000 adj2 25000 adj3 25000 adj4 48123',
|
|
2345
|
+
gd: `maxAdj2 */ 50000 h ss
|
|
2346
|
+
a2 pin 0 adj2 maxAdj2
|
|
2347
|
+
maxAdj1 */ a2 2 1
|
|
2348
|
+
a1 pin 0 adj1 maxAdj1
|
|
2349
|
+
maxAdj3 */ 50000 w ss
|
|
2350
|
+
a3 pin 0 adj3 maxAdj3
|
|
2351
|
+
q2 */ a3 ss wd2
|
|
2352
|
+
maxAdj4 +- 100000 0 q2
|
|
2353
|
+
a4 pin 0 adj4 maxAdj4
|
|
2354
|
+
dy1 */ ss a2 100000
|
|
2355
|
+
dy2 */ ss a1 200000
|
|
2356
|
+
y1 +- vc 0 dy1
|
|
2357
|
+
y2 +- vc 0 dy2
|
|
2358
|
+
y3 +- vc dy2 0
|
|
2359
|
+
y4 +- vc dy1 0
|
|
2360
|
+
x1 */ ss a3 100000
|
|
2361
|
+
x4 +- r 0 x1
|
|
2362
|
+
dx2 */ w a4 200000
|
|
2363
|
+
x2 +- hc 0 dx2
|
|
2364
|
+
x3 +- hc dx2 0`,
|
|
2365
|
+
rect: 'x2 t x3 b',
|
|
2366
|
+
path: '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 ' +
|
|
2367
|
+
'L x3 y3 L x3 b L x2 b L x2 y3 L x1 y3 L x1 y4 Z',
|
|
2368
|
+
},
|
|
2369
|
+
wedgeRectCallout: {
|
|
2370
|
+
av: 'adj1 -20833 adj2 62500',
|
|
2371
|
+
gd: WEDGE_GD,
|
|
2372
|
+
path: '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',
|
|
2373
|
+
},
|
|
2374
|
+
wedgeRoundRectCallout: {
|
|
2375
|
+
av: 'adj1 -20833 adj2 62500 adj3 16667',
|
|
2376
|
+
gd: `${WEDGE_GD}
|
|
2377
|
+
u1 */ ss adj3 100000
|
|
2378
|
+
u2 +- r 0 u1
|
|
2379
|
+
v2 +- b 0 u1
|
|
2380
|
+
il */ u1 29289 100000
|
|
2381
|
+
ir +- r 0 il
|
|
2382
|
+
ib +- b 0 il`,
|
|
2383
|
+
rect: 'il il ir ib',
|
|
2384
|
+
path: '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 ' +
|
|
2385
|
+
'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',
|
|
2386
|
+
},
|
|
2387
|
+
wedgeEllipseCallout: {
|
|
2388
|
+
av: 'adj1 -20833 adj2 62500',
|
|
2389
|
+
gd: `dxPos */ w adj1 100000
|
|
2390
|
+
dyPos */ h adj2 100000
|
|
2391
|
+
xPos +- hc dxPos 0
|
|
2392
|
+
yPos +- vc dyPos 0
|
|
2393
|
+
sdx */ dxPos h 1
|
|
2394
|
+
sdy */ dyPos w 1
|
|
2395
|
+
pang at2 sdx sdy
|
|
2396
|
+
stAng +- pang 660000 0
|
|
2397
|
+
enAng +- pang 0 660000
|
|
2398
|
+
dx1 cos wd2 stAng
|
|
2399
|
+
dy1 sin hd2 stAng
|
|
2400
|
+
x1 +- hc dx1 0
|
|
2401
|
+
y1 +- vc dy1 0
|
|
2402
|
+
dx2 cos wd2 enAng
|
|
2403
|
+
dy2 sin hd2 enAng
|
|
2404
|
+
x2 +- hc dx2 0
|
|
2405
|
+
y2 +- vc dy2 0
|
|
2406
|
+
stAng1 at2 dx1 dy1
|
|
2407
|
+
enAng1 at2 dx2 dy2
|
|
2408
|
+
swAng1 +- enAng1 0 stAng1
|
|
2409
|
+
swAng2 +- swAng1 21600000 0
|
|
2410
|
+
swAng ?: swAng1 swAng1 swAng2
|
|
2411
|
+
${ELLIPSE_RECT_GD}`,
|
|
2412
|
+
rect: 'il it ir ib',
|
|
2413
|
+
path: 'M xPos yPos L x1 y1 A wd2 hd2 stAng1 swAng Z',
|
|
2414
|
+
},
|
|
2415
|
+
cloudCallout: {
|
|
2416
|
+
av: 'adj1 -20833 adj2 62500',
|
|
2417
|
+
gd: `dxPos */ w adj1 100000
|
|
2418
|
+
dyPos */ h adj2 100000
|
|
2419
|
+
xPos +- hc dxPos 0
|
|
2420
|
+
yPos +- vc dyPos 0
|
|
2421
|
+
ht cat2 hd2 dxPos dyPos
|
|
2422
|
+
wt sat2 wd2 dxPos dyPos
|
|
2423
|
+
g2 cat2 wd2 ht wt
|
|
2424
|
+
g3 sat2 hd2 ht wt
|
|
2425
|
+
g4 +- hc g2 0
|
|
2426
|
+
g5 +- vc g3 0
|
|
2427
|
+
g6 +- g4 0 xPos
|
|
2428
|
+
g7 +- g5 0 yPos
|
|
2429
|
+
g8 mod g6 g7 0
|
|
2430
|
+
g9 */ ss 6600 21600
|
|
2431
|
+
g10 +- g8 0 g9
|
|
2432
|
+
g11 */ g10 1 3
|
|
2433
|
+
g12 */ ss 1800 21600
|
|
2434
|
+
g13 +- g11 g12 0
|
|
2435
|
+
g14 */ g13 g6 g8
|
|
2436
|
+
g15 */ g13 g7 g8
|
|
2437
|
+
g16 +- g14 xPos 0
|
|
2438
|
+
g17 +- g15 yPos 0
|
|
2439
|
+
g18 */ ss 4800 21600
|
|
2440
|
+
g19 */ g11 2 1
|
|
2441
|
+
g20 +- g18 g19 0
|
|
2442
|
+
g21 */ g20 g6 g8
|
|
2443
|
+
g22 */ g20 g7 g8
|
|
2444
|
+
g23 +- g21 xPos 0
|
|
2445
|
+
g24 +- g22 yPos 0
|
|
2446
|
+
g25 */ ss 1200 21600
|
|
2447
|
+
g26 */ ss 600 21600
|
|
2448
|
+
x23 +- xPos g26 0
|
|
2449
|
+
x24 +- g16 g25 0
|
|
2450
|
+
x25 +- g23 g12 0
|
|
2451
|
+
${CLOUD_RECT_GD}`,
|
|
2452
|
+
rect: 'il it ir ib',
|
|
2453
|
+
path: [
|
|
2454
|
+
CLOUD_OUTLINE,
|
|
2455
|
+
'M x23 yPos A g26 g26 0 21600000 Z',
|
|
2456
|
+
'M x24 g17 A g25 g25 0 21600000 Z',
|
|
2457
|
+
'M x25 g24 A g12 g12 0 21600000 Z',
|
|
2458
|
+
CLOUD_DETAIL,
|
|
2459
|
+
],
|
|
2460
|
+
},
|
|
2461
|
+
callout1: callout(1, false, false),
|
|
2462
|
+
callout2: callout(2, false, false),
|
|
2463
|
+
callout3: callout(3, false, false),
|
|
2464
|
+
borderCallout1: callout(1, true, false),
|
|
2465
|
+
borderCallout2: callout(2, true, false),
|
|
2466
|
+
borderCallout3: callout(3, true, false),
|
|
2467
|
+
accentCallout1: callout(1, false, true),
|
|
2468
|
+
accentCallout2: callout(2, false, true),
|
|
2469
|
+
accentCallout3: callout(3, false, true),
|
|
2470
|
+
accentBorderCallout1: callout(1, true, true),
|
|
2471
|
+
accentBorderCallout2: callout(2, true, true),
|
|
2472
|
+
accentBorderCallout3: callout(3, true, true),
|
|
2473
|
+
// --- Ribbons, waves and scrolls -------------------------------------------------------------
|
|
2474
|
+
ribbon: {
|
|
2475
|
+
av: 'adj1 16667 adj2 50000',
|
|
2476
|
+
gd: `a1 pin 0 adj1 33333
|
|
2477
|
+
a2 pin 25000 adj2 75000
|
|
2478
|
+
x10 +- r 0 wd8
|
|
2479
|
+
dx2 */ w a2 200000
|
|
2480
|
+
x2 +- hc 0 dx2
|
|
2481
|
+
x9 +- hc dx2 0
|
|
2482
|
+
x3 +- x2 wd32 0
|
|
2483
|
+
x8 +- x9 0 wd32
|
|
2484
|
+
x5 +- x2 wd8 0
|
|
2485
|
+
x6 +- x9 0 wd8
|
|
2486
|
+
x4 +- x5 0 wd32
|
|
2487
|
+
x7 +- x6 wd32 0
|
|
2488
|
+
y1 */ h a1 200000
|
|
2489
|
+
y2 */ h a1 100000
|
|
2490
|
+
y4 +- b 0 y2
|
|
2491
|
+
y3 */ y4 1 2
|
|
2492
|
+
hR */ h a1 400000
|
|
2493
|
+
y5 +- b 0 hR
|
|
2494
|
+
y6 +- y2 0 hR`,
|
|
2495
|
+
rect: 'x2 y2 x9 b',
|
|
2496
|
+
path: [
|
|
2497
|
+
'nostroke noext | 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 ' +
|
|
2498
|
+
'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 ' +
|
|
2499
|
+
'L x2 y4 L l y4 L wd8 y3 Z',
|
|
2500
|
+
'darkenLess nostroke noext | M x5 hR A wd32 hR 0 cd4 L x3 y1 A wd32 hR 3cd4 -10800000 L x5 y2 Z ' +
|
|
2501
|
+
'M x6 hR A wd32 hR cd2 -5400000 L x8 y1 A wd32 hR 3cd4 cd2 L x6 y2 Z',
|
|
2502
|
+
'none noext | 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 ' +
|
|
2503
|
+
'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 ' +
|
|
2504
|
+
'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',
|
|
2505
|
+
],
|
|
2506
|
+
},
|
|
2507
|
+
ribbon2: {
|
|
2508
|
+
av: 'adj1 16667 adj2 50000',
|
|
2509
|
+
gd: `a1 pin 0 adj1 33333
|
|
2510
|
+
a2 pin 25000 adj2 75000
|
|
2511
|
+
x10 +- r 0 wd8
|
|
2512
|
+
dx2 */ w a2 200000
|
|
2513
|
+
x2 +- hc 0 dx2
|
|
2514
|
+
x9 +- hc dx2 0
|
|
2515
|
+
x3 +- x2 wd32 0
|
|
2516
|
+
x8 +- x9 0 wd32
|
|
2517
|
+
x5 +- x2 wd8 0
|
|
2518
|
+
x6 +- x9 0 wd8
|
|
2519
|
+
x4 +- x5 0 wd32
|
|
2520
|
+
x7 +- x6 wd32 0
|
|
2521
|
+
dy1 */ h a1 200000
|
|
2522
|
+
y1 +- b 0 dy1
|
|
2523
|
+
dy2 */ h a1 100000
|
|
2524
|
+
y2 +- b 0 dy2
|
|
2525
|
+
y4 +- t dy2 0
|
|
2526
|
+
y3 +/ y4 b 2
|
|
2527
|
+
hR */ h a1 400000
|
|
2528
|
+
y6 +- b 0 hR
|
|
2529
|
+
y7 +- y1 0 hR`,
|
|
2530
|
+
rect: 'x2 t x9 y2',
|
|
2531
|
+
path: [
|
|
2532
|
+
'nostroke noext | 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 ' +
|
|
2533
|
+
'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 ' +
|
|
2534
|
+
'A wd32 hR 3cd4 -5400000 L x2 y4 L l y4 L wd8 y3 Z',
|
|
2535
|
+
'darkenLess nostroke noext | M x5 y6 A wd32 hR 0 -5400000 L x3 y1 A wd32 hR cd4 cd2 L x5 y2 Z ' +
|
|
2536
|
+
'M x6 y6 A wd32 hR cd2 cd4 L x8 y1 A wd32 hR cd4 -10800000 L x6 y2 Z',
|
|
2537
|
+
'none noext | 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 ' +
|
|
2538
|
+
'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 ' +
|
|
2539
|
+
'A wd32 hR 3cd4 -5400000 L x2 y4 L l y4 L wd8 y3 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',
|
|
2540
|
+
],
|
|
2541
|
+
},
|
|
2542
|
+
wave: {
|
|
2543
|
+
av: 'adj1 12500 adj2 0',
|
|
2544
|
+
gd: `a1 pin 0 adj1 20000
|
|
2545
|
+
a2 pin -10000 adj2 10000
|
|
2546
|
+
y1 */ h a1 100000
|
|
2547
|
+
dy2 */ y1 10 3
|
|
2548
|
+
y2 +- y1 0 dy2
|
|
2549
|
+
y3 +- y1 dy2 0
|
|
2550
|
+
y4 +- b 0 y1
|
|
2551
|
+
y5 +- y4 0 dy2
|
|
2552
|
+
y6 +- y4 dy2 0
|
|
2553
|
+
dx1 */ w a2 100000
|
|
2554
|
+
of2 */ w a2 50000
|
|
2555
|
+
x1 abs dx1
|
|
2556
|
+
dx2 ?: of2 0 of2
|
|
2557
|
+
x2 +- l 0 dx2
|
|
2558
|
+
dx5 ?: of2 of2 0
|
|
2559
|
+
x5 +- r 0 dx5
|
|
2560
|
+
dx3 +/ dx2 x5 3
|
|
2561
|
+
x3 +- x2 dx3 0
|
|
2562
|
+
x4 +/ x3 x5 2
|
|
2563
|
+
x6 +- l dx5 0
|
|
2564
|
+
x10 +- r dx2 0
|
|
2565
|
+
x7 +- x6 dx3 0
|
|
2566
|
+
x8 +/ x7 x10 2
|
|
2567
|
+
x9 +- r 0 x1
|
|
2568
|
+
xAdj +- hc dx1 0
|
|
2569
|
+
xAdj2 +- hc 0 dx1
|
|
2570
|
+
il max x2 x6
|
|
2571
|
+
ir min x5 x10
|
|
2572
|
+
it */ h a1 50000
|
|
2573
|
+
ib +- b 0 it`,
|
|
2574
|
+
rect: 'il it ir ib',
|
|
2575
|
+
path: 'M x2 y1 C x3 y2 x4 y3 x5 y1 L x10 y4 C x8 y6 x7 y5 x6 y4 Z',
|
|
2576
|
+
},
|
|
2577
|
+
doubleWave: {
|
|
2578
|
+
av: 'adj1 6250 adj2 0',
|
|
2579
|
+
gd: `a1 pin 0 adj1 12500
|
|
2580
|
+
a2 pin -10000 adj2 10000
|
|
2581
|
+
y1 */ h a1 100000
|
|
2582
|
+
dy2 */ y1 10 3
|
|
2583
|
+
y2 +- y1 0 dy2
|
|
2584
|
+
y3 +- y1 dy2 0
|
|
2585
|
+
y4 +- b 0 y1
|
|
2586
|
+
y5 +- y4 0 dy2
|
|
2587
|
+
y6 +- y4 dy2 0
|
|
2588
|
+
dx1 */ w a2 100000
|
|
2589
|
+
of2 */ w a2 50000
|
|
2590
|
+
x1 abs dx1
|
|
2591
|
+
dx2 ?: of2 0 of2
|
|
2592
|
+
x2 +- l 0 dx2
|
|
2593
|
+
dx8 ?: of2 of2 0
|
|
2594
|
+
x8 +- r 0 dx8
|
|
2595
|
+
dx3 +/ dx2 x8 6
|
|
2596
|
+
x3 +- x2 dx3 0
|
|
2597
|
+
dx4 +/ dx2 x8 3
|
|
2598
|
+
x4 +- x2 dx4 0
|
|
2599
|
+
x5 +/ x2 x8 2
|
|
2600
|
+
x6 +- x5 dx3 0
|
|
2601
|
+
x7 +/ x6 x8 2
|
|
2602
|
+
x9 +- l dx8 0
|
|
2603
|
+
x15 +- r dx2 0
|
|
2604
|
+
x10 +- x9 dx3 0
|
|
2605
|
+
x11 +- x9 dx4 0
|
|
2606
|
+
x12 +/ x9 x15 2
|
|
2607
|
+
x13 +- x12 dx3 0
|
|
2608
|
+
x14 +/ x13 x15 2
|
|
2609
|
+
x16 +- r 0 x1
|
|
2610
|
+
xAdj +- hc dx1 0
|
|
2611
|
+
il max x2 x9
|
|
2612
|
+
ir min x8 x15
|
|
2613
|
+
it */ h a1 50000
|
|
2614
|
+
ib +- b 0 it`,
|
|
2615
|
+
rect: 'il it ir ib',
|
|
2616
|
+
path: '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',
|
|
2617
|
+
},
|
|
2618
|
+
horizontalScroll: {
|
|
2619
|
+
av: 'adj 12500',
|
|
2620
|
+
gd: `a pin 0 adj 25000
|
|
2621
|
+
ch */ ss a 100000
|
|
2622
|
+
ch2 */ ch 1 2
|
|
2623
|
+
ch4 */ ch 1 4
|
|
2624
|
+
y3 +- ch ch2 0
|
|
2625
|
+
y4 +- ch ch 0
|
|
2626
|
+
y6 +- b 0 ch
|
|
2627
|
+
y7 +- b 0 ch2
|
|
2628
|
+
y5 +- y6 0 ch2
|
|
2629
|
+
x3 +- r 0 ch
|
|
2630
|
+
x4 +- r 0 ch2`,
|
|
2631
|
+
rect: 'ch y4 x4 y6',
|
|
2632
|
+
path: [
|
|
2633
|
+
'nostroke noext | 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 ' +
|
|
2634
|
+
'L l y7 A ch2 ch2 cd2 -10800000 L ch y6 L x4 y6 A ch2 ch2 cd4 -5400000 Z ' +
|
|
2635
|
+
'M ch2 y4 A ch2 ch2 cd4 -5400000 A ch4 ch4 0 -10800000 Z',
|
|
2636
|
+
'darkenLess nostroke noext | M ch2 y4 A ch2 ch2 cd4 -5400000 A ch4 ch4 0 -10800000 Z ' +
|
|
2637
|
+
'M x4 ch A ch2 ch2 cd4 -16200000 A ch4 ch4 cd2 -10800000 Z',
|
|
2638
|
+
'none noext | 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 ' +
|
|
2639
|
+
'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 ' +
|
|
2640
|
+
'M ch2 y4 L ch2 y3 A ch4 ch4 cd2 cd2 A ch2 ch2 0 cd2 M ch y3 L ch y6',
|
|
2641
|
+
],
|
|
2642
|
+
},
|
|
2643
|
+
verticalScroll: {
|
|
2644
|
+
av: 'adj 12500',
|
|
2645
|
+
gd: `a pin 0 adj 25000
|
|
2646
|
+
ch */ ss a 100000
|
|
2647
|
+
ch2 */ ch 1 2
|
|
2648
|
+
ch4 */ ch 1 4
|
|
2649
|
+
x3 +- ch ch2 0
|
|
2650
|
+
x4 +- ch ch 0
|
|
2651
|
+
x6 +- r 0 ch
|
|
2652
|
+
x7 +- r 0 ch2
|
|
2653
|
+
x5 +- x6 0 ch2
|
|
2654
|
+
y3 +- b 0 ch
|
|
2655
|
+
y4 +- b 0 ch2`,
|
|
2656
|
+
rect: 'x4 ch x6 y4',
|
|
2657
|
+
path: [
|
|
2658
|
+
'nostroke noext | M ch2 b A ch2 ch2 cd4 -5400000 L ch2 y4 A ch4 ch4 cd4 cd2 L ch y3 L ch ch2 A ch2 ch2 cd2 cd4 ' +
|
|
2659
|
+
'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',
|
|
2660
|
+
'darkenLess nostroke noext | 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',
|
|
2661
|
+
'none noext | 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 ' +
|
|
2662
|
+
'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 ' +
|
|
2663
|
+
'M ch2 y3 A ch4 ch4 3cd4 cd2 L ch y4 M ch2 b A ch2 ch2 cd4 -5400000 L ch y3',
|
|
2664
|
+
],
|
|
2665
|
+
},
|
|
2666
|
+
// --- Flowchart ------------------------------------------------------------------------------
|
|
2667
|
+
flowChartProcess: { path: 'w=1 h=1 | M 0 0 L 1 0 L 1 1 L 0 1 Z' },
|
|
2668
|
+
flowChartAlternateProcess: {
|
|
2669
|
+
gd: `x2 +- r 0 ssd6
|
|
2670
|
+
y2 +- b 0 ssd6
|
|
2671
|
+
il */ ssd6 29289 100000
|
|
2672
|
+
ir +- r 0 il
|
|
2673
|
+
ib +- b 0 il`,
|
|
2674
|
+
rect: 'il il ir ib',
|
|
2675
|
+
path: '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',
|
|
2676
|
+
},
|
|
2677
|
+
flowChartDecision: {
|
|
2678
|
+
gd: `ir */ w 3 4
|
|
2679
|
+
ib */ h 3 4`,
|
|
2680
|
+
rect: 'wd4 hd4 ir ib',
|
|
2681
|
+
path: 'w=2 h=2 | M 0 1 L 1 0 L 2 1 L 1 2 Z',
|
|
2682
|
+
},
|
|
2683
|
+
flowChartInputOutput: {
|
|
2684
|
+
gd: `x3 */ w 2 5
|
|
2685
|
+
x4 */ w 3 5
|
|
2686
|
+
x5 */ w 4 5
|
|
2687
|
+
x6 */ w 9 10`,
|
|
2688
|
+
rect: 'wd5 t x5 b',
|
|
2689
|
+
path: 'w=5 h=5 | M 0 5 L 1 0 L 5 0 L 4 5 Z',
|
|
2690
|
+
},
|
|
2691
|
+
flowChartPredefinedProcess: {
|
|
2692
|
+
gd: 'x2 */ w 7 8',
|
|
2693
|
+
rect: 'wd8 t x2 b',
|
|
2694
|
+
path: [
|
|
2695
|
+
'nostroke noext w=1 h=1 | M 0 0 L 1 0 L 1 1 L 0 1 Z',
|
|
2696
|
+
'none noext w=8 h=8 | M 1 0 L 1 8 M 7 0 L 7 8',
|
|
2697
|
+
'none w=1 h=1 | M 0 0 L 1 0 L 1 1 L 0 1 Z',
|
|
2698
|
+
],
|
|
2699
|
+
},
|
|
2700
|
+
flowChartInternalStorage: {
|
|
2701
|
+
rect: 'wd8 hd8 r b',
|
|
2702
|
+
path: [
|
|
2703
|
+
'nostroke noext w=1 h=1 | M 0 0 L 1 0 L 1 1 L 0 1 Z',
|
|
2704
|
+
'none noext w=8 h=8 | M 1 0 L 1 8 M 0 1 L 8 1',
|
|
2705
|
+
'none w=1 h=1 | M 0 0 L 1 0 L 1 1 L 0 1 Z',
|
|
2706
|
+
],
|
|
2707
|
+
},
|
|
2708
|
+
flowChartDocument: {
|
|
2709
|
+
gd: `y1 */ h 17322 21600
|
|
2710
|
+
y2 */ h 20172 21600`,
|
|
2711
|
+
rect: 'l t r y1',
|
|
2712
|
+
path: 'w=21600 h=21600 | M 0 0 L 21600 0 L 21600 17322 C 10800 17322 10800 23922 0 20172 Z',
|
|
2713
|
+
},
|
|
2714
|
+
flowChartMultidocument: {
|
|
2715
|
+
gd: `y2 */ h 3675 21600
|
|
2716
|
+
y8 */ h 20782 21600
|
|
2717
|
+
x3 */ w 9298 21600
|
|
2718
|
+
x4 */ w 12286 21600
|
|
2719
|
+
x5 */ w 18595 21600`,
|
|
2720
|
+
rect: 'l y2 x5 y8',
|
|
2721
|
+
path: [
|
|
2722
|
+
'nostroke noext w=21600 h=21600 | M 0 20782 C 9298 23542 9298 18022 18595 18022 L 18595 3675 L 0 3675 Z ' +
|
|
2723
|
+
'M 1532 3675 L 1532 1815 L 20000 1815 L 20000 16252 C 19298 16252 18595 16352 18595 16352 L 18595 3675 Z ' +
|
|
2724
|
+
'M 2972 1815 L 2972 0 L 21600 0 L 21600 14392 C 20800 14392 20000 14467 20000 14467 L 20000 1815 Z',
|
|
2725
|
+
'none w=21600 h=21600 | M 0 3675 L 18595 3675 L 18595 18022 C 9298 18022 9298 23542 0 20782 Z ' +
|
|
2726
|
+
'M 1532 3675 L 1532 1815 L 20000 1815 L 20000 16252 C 19298 16252 18595 16352 18595 16352 ' +
|
|
2727
|
+
'M 2972 1815 L 2972 0 L 21600 0 L 21600 14392 C 20800 14392 20000 14467 20000 14467',
|
|
2728
|
+
],
|
|
2729
|
+
},
|
|
2730
|
+
flowChartTerminator: {
|
|
2731
|
+
gd: `il */ w 1018 21600
|
|
2732
|
+
ir */ w 20582 21600
|
|
2733
|
+
it */ h 3163 21600
|
|
2734
|
+
ib */ h 18437 21600`,
|
|
2735
|
+
rect: 'il it ir ib',
|
|
2736
|
+
path: 'w=21600 h=21600 | M 3475 0 L 18125 0 A 3475 10800 3cd4 cd2 L 3475 21600 A 3475 10800 cd4 cd2 Z',
|
|
2737
|
+
},
|
|
2738
|
+
flowChartPreparation: {
|
|
2739
|
+
gd: 'x2 */ w 4 5',
|
|
2740
|
+
rect: 'wd5 t x2 b',
|
|
2741
|
+
path: 'w=10 h=10 | M 0 5 L 2 0 L 8 0 L 10 5 L 8 10 L 2 10 Z',
|
|
2742
|
+
},
|
|
2743
|
+
flowChartManualInput: {
|
|
2744
|
+
rect: 'l hd5 r b',
|
|
2745
|
+
path: 'w=5 h=5 | M 0 1 L 5 0 L 5 5 L 0 5 Z',
|
|
2746
|
+
},
|
|
2747
|
+
flowChartManualOperation: {
|
|
2748
|
+
gd: `x3 */ w 4 5
|
|
2749
|
+
x4 */ w 9 10`,
|
|
2750
|
+
rect: 'wd5 t x3 b',
|
|
2751
|
+
path: 'w=5 h=5 | M 0 0 L 5 0 L 4 5 L 1 5 Z',
|
|
2752
|
+
},
|
|
2753
|
+
flowChartConnector: { gd: ELLIPSE_RECT_GD, rect: 'il it ir ib', path: ELLIPSE_PATH },
|
|
2754
|
+
flowChartOffpageConnector: {
|
|
2755
|
+
gd: 'y1 */ h 4 5',
|
|
2756
|
+
rect: 'l t r y1',
|
|
2757
|
+
path: 'w=10 h=10 | M 0 0 L 10 0 L 10 8 L 5 10 L 0 8 Z',
|
|
2758
|
+
},
|
|
2759
|
+
flowChartPunchedCard: {
|
|
2760
|
+
rect: 'l hd5 r b',
|
|
2761
|
+
path: 'w=5 h=5 | M 0 1 L 1 0 L 5 0 L 5 5 L 0 5 Z',
|
|
2762
|
+
},
|
|
2763
|
+
flowChartPunchedTape: {
|
|
2764
|
+
gd: `y2 */ h 9 10
|
|
2765
|
+
ib */ h 4 5`,
|
|
2766
|
+
rect: 'l hd5 r ib',
|
|
2767
|
+
path: 'w=20 h=20 | 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',
|
|
2768
|
+
},
|
|
2769
|
+
flowChartSummingJunction: {
|
|
2770
|
+
gd: ELLIPSE_RECT_GD,
|
|
2771
|
+
rect: 'il it ir ib',
|
|
2772
|
+
path: [`nostroke noext | ${ELLIPSE_PATH}`, 'none noext | M il it L ir ib M ir it L il ib', `none | ${ELLIPSE_PATH}`],
|
|
2773
|
+
},
|
|
2774
|
+
flowChartOr: {
|
|
2775
|
+
gd: ELLIPSE_RECT_GD,
|
|
2776
|
+
rect: 'il it ir ib',
|
|
2777
|
+
path: [`nostroke noext | ${ELLIPSE_PATH}`, 'none noext | M hc t L hc b M l vc L r vc', `none | ${ELLIPSE_PATH}`],
|
|
2778
|
+
},
|
|
2779
|
+
flowChartCollate: {
|
|
2780
|
+
gd: `ir */ w 3 4
|
|
2781
|
+
ib */ h 3 4`,
|
|
2782
|
+
rect: 'wd4 hd4 ir ib',
|
|
2783
|
+
path: 'w=2 h=2 | M 0 0 L 2 0 L 1 1 L 2 2 L 0 2 L 1 1 Z',
|
|
2784
|
+
},
|
|
2785
|
+
flowChartSort: {
|
|
2786
|
+
gd: `ir */ w 3 4
|
|
2787
|
+
ib */ h 3 4`,
|
|
2788
|
+
rect: 'wd4 hd4 ir ib',
|
|
2789
|
+
path: [
|
|
2790
|
+
'nostroke noext w=2 h=2 | M 0 1 L 1 0 L 2 1 L 1 2 Z',
|
|
2791
|
+
'none noext w=2 h=2 | M 0 1 L 2 1',
|
|
2792
|
+
'none w=2 h=2 | M 0 1 L 1 0 L 2 1 L 1 2 Z',
|
|
2793
|
+
],
|
|
2794
|
+
},
|
|
2795
|
+
flowChartExtract: {
|
|
2796
|
+
gd: 'x2 */ w 3 4',
|
|
2797
|
+
rect: 'wd4 vc x2 b',
|
|
2798
|
+
path: 'w=2 h=2 | M 0 2 L 1 0 L 2 2 Z',
|
|
2799
|
+
},
|
|
2800
|
+
flowChartMerge: {
|
|
2801
|
+
gd: 'x2 */ w 3 4',
|
|
2802
|
+
rect: 'wd4 t x2 vc',
|
|
2803
|
+
path: 'w=2 h=2 | M 0 0 L 2 0 L 1 2 Z',
|
|
2804
|
+
},
|
|
2805
|
+
flowChartOfflineStorage: {
|
|
2806
|
+
gd: 'x4 */ w 3 4',
|
|
2807
|
+
rect: 'wd4 t x4 vc',
|
|
2808
|
+
path: [
|
|
2809
|
+
'nostroke noext w=2 h=2 | M 0 0 L 2 0 L 1 2 Z',
|
|
2810
|
+
'none noext w=5 h=5 | M 2 4 L 3 4',
|
|
2811
|
+
'none w=2 h=2 | M 0 0 L 2 0 L 1 2 Z',
|
|
2812
|
+
],
|
|
2813
|
+
},
|
|
2814
|
+
flowChartOnlineStorage: {
|
|
2815
|
+
gd: 'x2 */ w 5 6',
|
|
2816
|
+
rect: 'wd6 t x2 b',
|
|
2817
|
+
path: 'w=6 h=6 | M 1 0 L 6 0 A 1 3 3cd4 -10800000 L 1 6 A 1 3 cd4 cd2 Z',
|
|
2818
|
+
},
|
|
2819
|
+
flowChartDelay: {
|
|
2820
|
+
gd: `idx cos wd2 2700000
|
|
2821
|
+
idy sin hd2 2700000
|
|
2822
|
+
ir +- hc idx 0
|
|
2823
|
+
it +- vc 0 idy
|
|
2824
|
+
ib +- vc idy 0`,
|
|
2825
|
+
rect: 'l it ir ib',
|
|
2826
|
+
path: 'M l t L hc t A wd2 hd2 3cd4 cd2 L l b Z',
|
|
2827
|
+
},
|
|
2828
|
+
flowChartMagneticTape: {
|
|
2829
|
+
gd: `${ELLIPSE_RECT_GD}
|
|
2830
|
+
ang1 at2 w h`,
|
|
2831
|
+
rect: 'il it ir ib',
|
|
2832
|
+
path: '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',
|
|
2833
|
+
},
|
|
2834
|
+
flowChartMagneticDisk: {
|
|
2835
|
+
gd: 'y3 */ h 3 6',
|
|
2836
|
+
rect: 'l y3 r b',
|
|
2837
|
+
path: [
|
|
2838
|
+
'nostroke noext w=6 h=6 | M 0 1 A 3 1 cd2 cd2 L 6 5 A 3 1 0 cd2 Z',
|
|
2839
|
+
'none noext w=6 h=6 | M 6 1 A 3 1 0 cd2',
|
|
2840
|
+
'none w=6 h=6 | M 0 1 A 3 1 cd2 cd2 L 6 5 A 3 1 0 cd2 Z',
|
|
2841
|
+
],
|
|
2842
|
+
},
|
|
2843
|
+
flowChartMagneticDrum: {
|
|
2844
|
+
gd: 'x2 */ w 2 3',
|
|
2845
|
+
rect: 'wd6 t x2 b',
|
|
2846
|
+
path: [
|
|
2847
|
+
'nostroke noext w=6 h=6 | M 1 0 L 5 0 A 1 3 3cd4 cd2 L 1 6 A 1 3 cd4 cd2 Z',
|
|
2848
|
+
'none noext w=6 h=6 | M 5 6 A 1 3 cd4 cd2',
|
|
2849
|
+
'none w=6 h=6 | M 1 0 L 5 0 A 1 3 3cd4 cd2 L 1 6 A 1 3 cd4 cd2 Z',
|
|
2850
|
+
],
|
|
2851
|
+
},
|
|
2852
|
+
flowChartDisplay: {
|
|
2853
|
+
gd: 'x2 */ w 5 6',
|
|
2854
|
+
rect: 'wd6 t x2 b',
|
|
2855
|
+
path: 'w=6 h=6 | M 0 3 L 1 0 L 5 0 A 1 3 3cd4 cd2 L 1 6 Z',
|
|
2856
|
+
},
|
|
2857
|
+
};
|
|
2858
|
+
const cache = new Map();
|
|
2859
|
+
/** Names of every preset this module can draw. */
|
|
2860
|
+
export const PRESET_NAMES = Object.keys(SOURCES);
|
|
2861
|
+
/** The parsed definition of a preset shape, or undefined for one this module does not have. */
|
|
2862
|
+
export function presetDefinition(name) {
|
|
2863
|
+
const hit = cache.get(name);
|
|
2864
|
+
if (hit)
|
|
2865
|
+
return hit;
|
|
2866
|
+
if (!Object.prototype.hasOwnProperty.call(SOURCES, name))
|
|
2867
|
+
return undefined;
|
|
2868
|
+
const src = SOURCES[name];
|
|
2869
|
+
if (!src)
|
|
2870
|
+
return undefined;
|
|
2871
|
+
const def = parseSrc(src);
|
|
2872
|
+
cache.set(name, def);
|
|
2873
|
+
return def;
|
|
2874
|
+
}
|