pareto-graphviz 0.2.40 → 0.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/implementation/manual/transformers/attributes/fountain_pen.js +276 -276
- package/dist/implementation/manual/transformers/attributes/low_level.js +276 -276
- package/dist/implementation/manual/transformers/high_level/low_level.js +29 -29
- package/dist/implementation/manual/transformers/high_level_simple/low_level.js +4 -4
- package/dist/implementation/manual/transformers/low_level/fountain_pen.js +37 -37
- package/dist/implementation/manual/transformers/primitives/list_of_characters.js +2 -2
- package/dist/interface/generated/liana/schemas/attributes/signatures/refiners/astn_parse_tree.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/attributes/signatures/refiners/list_of_characters.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/file_structure/signatures/refiners/astn_parse_tree.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/file_structure/signatures/refiners/list_of_characters.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/high_level/signatures/refiners/astn_parse_tree.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/high_level/signatures/refiners/list_of_characters.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/high_level_simple/signatures/refiners/astn_parse_tree.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/high_level_simple/signatures/refiners/list_of_characters.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/html/signatures/refiners/astn_parse_tree.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/html/signatures/refiners/list_of_characters.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/low_level/signatures/refiners/astn_parse_tree.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/low_level/signatures/refiners/list_of_characters.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/xml/signatures/refiners/astn_parse_tree.d.ts +1 -1
- package/dist/interface/generated/liana/schemas/xml/signatures/refiners/list_of_characters.d.ts +1 -1
- package/dist/shorthands/high_level_simple.d.ts +4 -4
- package/dist/shorthands/high_level_simple.js +6 -6
- package/dist/shorthands/low_level.d.ts +5 -5
- package/dist/shorthands/low_level.js +8 -8
- package/package.json +1 -1
|
@@ -34,580 +34,580 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Attributes = void 0;
|
|
37
|
-
const
|
|
37
|
+
const p_ = __importStar(require("pareto-core/dist/implementation/transformer"));
|
|
38
38
|
//dependencies
|
|
39
39
|
const t_primitives_to_list_of_characters = __importStar(require("../primitives/list_of_characters"));
|
|
40
40
|
//shorthands
|
|
41
41
|
const sh = __importStar(require("pareto-fountain-pen/dist/shorthands/prose"));
|
|
42
42
|
const Attributes = ($) => sh.pg.sentences($.__l_map(($) => sh.sentence([
|
|
43
|
-
|
|
43
|
+
p_.decide.state($, ($) => {
|
|
44
44
|
switch ($[0]) {
|
|
45
|
-
case 'freeform': return
|
|
45
|
+
case 'freeform': return p_.ss($, ($) => sh.ph.composed([
|
|
46
46
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($.key)),
|
|
47
47
|
sh.ph.literal("="),
|
|
48
48
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($.value))
|
|
49
49
|
]));
|
|
50
|
-
case 'color': return
|
|
50
|
+
case 'color': return p_.ss($, ($) => sh.ph.composed([
|
|
51
51
|
sh.ph.literal("color="),
|
|
52
52
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
53
53
|
]));
|
|
54
|
-
case 'fillcolor': return
|
|
54
|
+
case 'fillcolor': return p_.ss($, ($) => sh.ph.composed([
|
|
55
55
|
sh.ph.literal("fillcolor="),
|
|
56
56
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
57
57
|
]));
|
|
58
|
-
case 'penwidth': return
|
|
58
|
+
case 'penwidth': return p_.ss($, ($) => sh.ph.composed([
|
|
59
59
|
sh.ph.literal("penwidth="),
|
|
60
60
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
61
61
|
]));
|
|
62
|
-
case 'label': return
|
|
62
|
+
case 'label': return p_.ss($, ($) => sh.ph.composed([
|
|
63
63
|
sh.ph.literal("label="),
|
|
64
64
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
65
65
|
]));
|
|
66
|
-
case 'fontcolor': return
|
|
66
|
+
case 'fontcolor': return p_.ss($, ($) => sh.ph.composed([
|
|
67
67
|
sh.ph.literal("fontcolor="),
|
|
68
68
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
69
69
|
]));
|
|
70
|
-
case 'fontname': return
|
|
70
|
+
case 'fontname': return p_.ss($, ($) => sh.ph.composed([
|
|
71
71
|
sh.ph.literal("fontname="),
|
|
72
72
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
73
73
|
]));
|
|
74
|
-
case 'fontsize': return
|
|
74
|
+
case 'fontsize': return p_.ss($, ($) => sh.ph.composed([
|
|
75
75
|
sh.ph.literal("fontsize="),
|
|
76
76
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
77
77
|
]));
|
|
78
|
-
case 'URL': return
|
|
78
|
+
case 'URL': return p_.ss($, ($) => sh.ph.composed([
|
|
79
79
|
sh.ph.literal("URL="),
|
|
80
80
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
81
81
|
]));
|
|
82
|
-
case 'href': return
|
|
82
|
+
case 'href': return p_.ss($, ($) => sh.ph.composed([
|
|
83
83
|
sh.ph.literal("href="),
|
|
84
84
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
85
85
|
]));
|
|
86
|
-
case 'target': return
|
|
86
|
+
case 'target': return p_.ss($, ($) => sh.ph.composed([
|
|
87
87
|
sh.ph.literal("target="),
|
|
88
88
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
89
89
|
]));
|
|
90
|
-
case 'tooltip': return
|
|
90
|
+
case 'tooltip': return p_.ss($, ($) => sh.ph.composed([
|
|
91
91
|
sh.ph.literal("tooltip="),
|
|
92
92
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
93
93
|
]));
|
|
94
|
-
case 'id': return
|
|
94
|
+
case 'id': return p_.ss($, ($) => sh.ph.composed([
|
|
95
95
|
sh.ph.literal("id="),
|
|
96
96
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
97
97
|
]));
|
|
98
|
-
case 'class': return
|
|
98
|
+
case 'class': return p_.ss($, ($) => sh.ph.composed([
|
|
99
99
|
sh.ph.literal("class="),
|
|
100
100
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
101
101
|
]));
|
|
102
|
-
case 'comment': return
|
|
102
|
+
case 'comment': return p_.ss($, ($) => sh.ph.composed([
|
|
103
103
|
sh.ph.literal("comment="),
|
|
104
104
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
105
105
|
]));
|
|
106
|
-
case 'style': return
|
|
106
|
+
case 'style': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
107
107
|
switch ($[0]) {
|
|
108
|
-
case 'filled': return
|
|
109
|
-
case 'rounded': return
|
|
110
|
-
case 'bold': return
|
|
111
|
-
case 'solid': return
|
|
112
|
-
case 'dashed': return
|
|
113
|
-
case 'dotted': return
|
|
114
|
-
case 'striped': return
|
|
115
|
-
case 'wedged': return
|
|
116
|
-
case 'diagonals': return
|
|
117
|
-
case 'invis': return
|
|
118
|
-
case 'tapered': return
|
|
119
|
-
case 'custom': return
|
|
108
|
+
case 'filled': return p_.ss($, ($) => sh.ph.literal("style=filled"));
|
|
109
|
+
case 'rounded': return p_.ss($, ($) => sh.ph.literal("style=rounded"));
|
|
110
|
+
case 'bold': return p_.ss($, ($) => sh.ph.literal("style=bold"));
|
|
111
|
+
case 'solid': return p_.ss($, ($) => sh.ph.literal("style=solid"));
|
|
112
|
+
case 'dashed': return p_.ss($, ($) => sh.ph.literal("style=dashed"));
|
|
113
|
+
case 'dotted': return p_.ss($, ($) => sh.ph.literal("style=dotted"));
|
|
114
|
+
case 'striped': return p_.ss($, ($) => sh.ph.literal("style=striped"));
|
|
115
|
+
case 'wedged': return p_.ss($, ($) => sh.ph.literal("style=wedged"));
|
|
116
|
+
case 'diagonals': return p_.ss($, ($) => sh.ph.literal("style=diagonals"));
|
|
117
|
+
case 'invis': return p_.ss($, ($) => sh.ph.literal("style=invis"));
|
|
118
|
+
case 'tapered': return p_.ss($, ($) => sh.ph.literal("style=tapered"));
|
|
119
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
120
120
|
sh.ph.literal("style="),
|
|
121
121
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
122
122
|
]));
|
|
123
|
-
default: return
|
|
123
|
+
default: return p_.au($[0]);
|
|
124
124
|
}
|
|
125
125
|
}));
|
|
126
|
-
case 'layout': return
|
|
126
|
+
case 'layout': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
127
127
|
switch ($[0]) {
|
|
128
|
-
case 'dot': return
|
|
129
|
-
case 'neato': return
|
|
130
|
-
case 'fdp': return
|
|
131
|
-
case 'sfdp': return
|
|
132
|
-
case 'twopi': return
|
|
133
|
-
case 'circo': return
|
|
134
|
-
case 'custom': return
|
|
128
|
+
case 'dot': return p_.ss($, ($) => sh.ph.literal("layout=dot"));
|
|
129
|
+
case 'neato': return p_.ss($, ($) => sh.ph.literal("layout=neato"));
|
|
130
|
+
case 'fdp': return p_.ss($, ($) => sh.ph.literal("layout=fdp"));
|
|
131
|
+
case 'sfdp': return p_.ss($, ($) => sh.ph.literal("layout=sfdp"));
|
|
132
|
+
case 'twopi': return p_.ss($, ($) => sh.ph.literal("layout=twopi"));
|
|
133
|
+
case 'circo': return p_.ss($, ($) => sh.ph.literal("layout=circo"));
|
|
134
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
135
135
|
sh.ph.literal("layout="),
|
|
136
136
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
137
137
|
]));
|
|
138
|
-
default: return
|
|
138
|
+
default: return p_.au($[0]);
|
|
139
139
|
}
|
|
140
140
|
}));
|
|
141
|
-
case 'rankdir': return
|
|
141
|
+
case 'rankdir': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
142
142
|
switch ($[0]) {
|
|
143
|
-
case 'TB': return
|
|
144
|
-
case 'BT': return
|
|
145
|
-
case 'LR': return
|
|
146
|
-
case 'RL': return
|
|
147
|
-
default: return
|
|
143
|
+
case 'TB': return p_.ss($, ($) => sh.ph.literal("rankdir=TB"));
|
|
144
|
+
case 'BT': return p_.ss($, ($) => sh.ph.literal("rankdir=BT"));
|
|
145
|
+
case 'LR': return p_.ss($, ($) => sh.ph.literal("rankdir=LR"));
|
|
146
|
+
case 'RL': return p_.ss($, ($) => sh.ph.literal("rankdir=RL"));
|
|
147
|
+
default: return p_.au($[0]);
|
|
148
148
|
}
|
|
149
149
|
}));
|
|
150
|
-
case 'bgcolor': return
|
|
150
|
+
case 'bgcolor': return p_.ss($, ($) => sh.ph.composed([
|
|
151
151
|
sh.ph.literal("bgcolor="),
|
|
152
152
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
153
153
|
]));
|
|
154
|
-
case 'labelloc': return
|
|
154
|
+
case 'labelloc': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
155
155
|
switch ($[0]) {
|
|
156
|
-
case 't': return
|
|
157
|
-
case 'b': return
|
|
158
|
-
default: return
|
|
156
|
+
case 't': return p_.ss($, ($) => sh.ph.literal("labelloc=t"));
|
|
157
|
+
case 'b': return p_.ss($, ($) => sh.ph.literal("labelloc=b"));
|
|
158
|
+
default: return p_.au($[0]);
|
|
159
159
|
}
|
|
160
160
|
}));
|
|
161
|
-
case 'labeljust': return
|
|
161
|
+
case 'labeljust': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
162
162
|
switch ($[0]) {
|
|
163
|
-
case 'l': return
|
|
164
|
-
case 'c': return
|
|
165
|
-
case 'r': return
|
|
166
|
-
default: return
|
|
163
|
+
case 'l': return p_.ss($, ($) => sh.ph.literal("labeljust=l"));
|
|
164
|
+
case 'c': return p_.ss($, ($) => sh.ph.literal("labeljust=c"));
|
|
165
|
+
case 'r': return p_.ss($, ($) => sh.ph.literal("labeljust=r"));
|
|
166
|
+
default: return p_.au($[0]);
|
|
167
167
|
}
|
|
168
168
|
}));
|
|
169
|
-
case 'size': return
|
|
169
|
+
case 'size': return p_.ss($, ($) => sh.ph.composed([
|
|
170
170
|
sh.ph.literal("size="),
|
|
171
171
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
172
172
|
]));
|
|
173
|
-
case 'ratio': return
|
|
173
|
+
case 'ratio': return p_.ss($, ($) => sh.ph.composed([
|
|
174
174
|
sh.ph.literal("ratio="),
|
|
175
175
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
176
176
|
]));
|
|
177
|
-
case 'pad': return
|
|
177
|
+
case 'pad': return p_.ss($, ($) => sh.ph.composed([
|
|
178
178
|
sh.ph.literal("pad="),
|
|
179
179
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
180
180
|
]));
|
|
181
|
-
case 'nodesep': return
|
|
181
|
+
case 'nodesep': return p_.ss($, ($) => sh.ph.composed([
|
|
182
182
|
sh.ph.literal("nodesep="),
|
|
183
183
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
184
184
|
]));
|
|
185
|
-
case 'ranksep': return
|
|
185
|
+
case 'ranksep': return p_.ss($, ($) => sh.ph.composed([
|
|
186
186
|
sh.ph.literal("ranksep="),
|
|
187
187
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
188
188
|
]));
|
|
189
|
-
case 'dpi': return
|
|
189
|
+
case 'dpi': return p_.ss($, ($) => sh.ph.composed([
|
|
190
190
|
sh.ph.literal("dpi="),
|
|
191
191
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
192
192
|
]));
|
|
193
|
-
case 'overlap': return
|
|
193
|
+
case 'overlap': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
194
194
|
switch ($[0]) {
|
|
195
|
-
case 'true': return
|
|
196
|
-
case 'false': return
|
|
197
|
-
case 'scale': return
|
|
198
|
-
case 'scalexy': return
|
|
199
|
-
case 'orthoxy': return
|
|
200
|
-
case 'orthoyx': return
|
|
201
|
-
case 'compress': return
|
|
202
|
-
case 'vpsc': return
|
|
203
|
-
case 'ipsep': return
|
|
204
|
-
case 'prism': return
|
|
205
|
-
default: return
|
|
195
|
+
case 'true': return p_.ss($, ($) => sh.ph.literal("overlap=true"));
|
|
196
|
+
case 'false': return p_.ss($, ($) => sh.ph.literal("overlap=false"));
|
|
197
|
+
case 'scale': return p_.ss($, ($) => sh.ph.literal("overlap=scale"));
|
|
198
|
+
case 'scalexy': return p_.ss($, ($) => sh.ph.literal("overlap=scalexy"));
|
|
199
|
+
case 'orthoxy': return p_.ss($, ($) => sh.ph.literal("overlap=orthoxy"));
|
|
200
|
+
case 'orthoyx': return p_.ss($, ($) => sh.ph.literal("overlap=orthoyx"));
|
|
201
|
+
case 'compress': return p_.ss($, ($) => sh.ph.literal("overlap=compress"));
|
|
202
|
+
case 'vpsc': return p_.ss($, ($) => sh.ph.literal("overlap=vpsc"));
|
|
203
|
+
case 'ipsep': return p_.ss($, ($) => sh.ph.literal("overlap=ipsep"));
|
|
204
|
+
case 'prism': return p_.ss($, ($) => sh.ph.literal("overlap=prism"));
|
|
205
|
+
default: return p_.au($[0]);
|
|
206
206
|
}
|
|
207
207
|
}));
|
|
208
|
-
case 'pack': return
|
|
208
|
+
case 'pack': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
209
209
|
switch ($[0]) {
|
|
210
|
-
case 'true': return
|
|
211
|
-
case 'false': return
|
|
212
|
-
case 'custom': return
|
|
210
|
+
case 'true': return p_.ss($, ($) => sh.ph.literal("pack=true"));
|
|
211
|
+
case 'false': return p_.ss($, ($) => sh.ph.literal("pack=false"));
|
|
212
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
213
213
|
sh.ph.literal("pack="),
|
|
214
214
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
215
215
|
]));
|
|
216
|
-
default: return
|
|
216
|
+
default: return p_.au($[0]);
|
|
217
217
|
}
|
|
218
218
|
}));
|
|
219
|
-
case 'packmode': return
|
|
219
|
+
case 'packmode': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
220
220
|
switch ($[0]) {
|
|
221
|
-
case 'node': return
|
|
222
|
-
case 'clust': return
|
|
223
|
-
case 'graph': return
|
|
224
|
-
default: return
|
|
221
|
+
case 'node': return p_.ss($, ($) => sh.ph.literal("packmode=node"));
|
|
222
|
+
case 'clust': return p_.ss($, ($) => sh.ph.literal("packmode=clust"));
|
|
223
|
+
case 'graph': return p_.ss($, ($) => sh.ph.literal("packmode=graph"));
|
|
224
|
+
default: return p_.au($[0]);
|
|
225
225
|
}
|
|
226
226
|
}));
|
|
227
|
-
case 'concentrate': return
|
|
228
|
-
case 'compound': return
|
|
229
|
-
case 'center': return
|
|
230
|
-
case 'normalize': return
|
|
231
|
-
case 'landscape': return
|
|
232
|
-
case 'outputorder': return
|
|
227
|
+
case 'concentrate': return p_.ss($, ($) => sh.ph.literal($ ? "concentrate=true" : "concentrate=false"));
|
|
228
|
+
case 'compound': return p_.ss($, ($) => sh.ph.literal($ ? "compound=true" : "compound=false"));
|
|
229
|
+
case 'center': return p_.ss($, ($) => sh.ph.literal($ ? "center=true" : "center=false"));
|
|
230
|
+
case 'normalize': return p_.ss($, ($) => sh.ph.literal($ ? "normalize=true" : "normalize=false"));
|
|
231
|
+
case 'landscape': return p_.ss($, ($) => sh.ph.literal($ ? "landscape=true" : "landscape=false"));
|
|
232
|
+
case 'outputorder': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
233
233
|
switch ($[0]) {
|
|
234
|
-
case 'breadthfirst': return
|
|
235
|
-
case 'nodesfirst': return
|
|
236
|
-
case 'edgesfirst': return
|
|
237
|
-
default: return
|
|
234
|
+
case 'breadthfirst': return p_.ss($, ($) => sh.ph.literal("outputorder=breadthfirst"));
|
|
235
|
+
case 'nodesfirst': return p_.ss($, ($) => sh.ph.literal("outputorder=nodesfirst"));
|
|
236
|
+
case 'edgesfirst': return p_.ss($, ($) => sh.ph.literal("outputorder=edgesfirst"));
|
|
237
|
+
default: return p_.au($[0]);
|
|
238
238
|
}
|
|
239
239
|
}));
|
|
240
|
-
case 'charset': return
|
|
240
|
+
case 'charset': return p_.ss($, ($) => sh.ph.composed([
|
|
241
241
|
sh.ph.literal("charset="),
|
|
242
242
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
243
243
|
]));
|
|
244
|
-
case 'clusterrank': return
|
|
244
|
+
case 'clusterrank': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
245
245
|
switch ($[0]) {
|
|
246
|
-
case 'local': return
|
|
247
|
-
case 'global': return
|
|
248
|
-
case 'none': return
|
|
249
|
-
default: return
|
|
246
|
+
case 'local': return p_.ss($, ($) => sh.ph.literal("clusterrank=local"));
|
|
247
|
+
case 'global': return p_.ss($, ($) => sh.ph.literal("clusterrank=global"));
|
|
248
|
+
case 'none': return p_.ss($, ($) => sh.ph.literal("clusterrank=none"));
|
|
249
|
+
default: return p_.au($[0]);
|
|
250
250
|
}
|
|
251
251
|
}));
|
|
252
|
-
case 'shape': return
|
|
252
|
+
case 'shape': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
253
253
|
switch ($[0]) {
|
|
254
|
-
case 'box': return
|
|
255
|
-
case 'circle': return
|
|
256
|
-
case 'ellipse': return
|
|
257
|
-
case 'oval': return
|
|
258
|
-
case 'point': return
|
|
259
|
-
case 'egg': return
|
|
260
|
-
case 'triangle': return
|
|
261
|
-
case 'plaintext': return
|
|
262
|
-
case 'plain': return
|
|
263
|
-
case 'diamond': return
|
|
264
|
-
case 'trapezium': return
|
|
265
|
-
case 'parallelogram': return
|
|
266
|
-
case 'house': return
|
|
267
|
-
case 'pentagon': return
|
|
268
|
-
case 'hexagon': return
|
|
269
|
-
case 'septagon': return
|
|
270
|
-
case 'octagon': return
|
|
271
|
-
case 'polygon': return
|
|
272
|
-
case 'record': return
|
|
273
|
-
case 'Mrecord': return
|
|
274
|
-
case 'custom': return
|
|
254
|
+
case 'box': return p_.ss($, ($) => sh.ph.literal("shape=box"));
|
|
255
|
+
case 'circle': return p_.ss($, ($) => sh.ph.literal("shape=circle"));
|
|
256
|
+
case 'ellipse': return p_.ss($, ($) => sh.ph.literal("shape=ellipse"));
|
|
257
|
+
case 'oval': return p_.ss($, ($) => sh.ph.literal("shape=oval"));
|
|
258
|
+
case 'point': return p_.ss($, ($) => sh.ph.literal("shape=point"));
|
|
259
|
+
case 'egg': return p_.ss($, ($) => sh.ph.literal("shape=egg"));
|
|
260
|
+
case 'triangle': return p_.ss($, ($) => sh.ph.literal("shape=triangle"));
|
|
261
|
+
case 'plaintext': return p_.ss($, ($) => sh.ph.literal("shape=plaintext"));
|
|
262
|
+
case 'plain': return p_.ss($, ($) => sh.ph.literal("shape=plain"));
|
|
263
|
+
case 'diamond': return p_.ss($, ($) => sh.ph.literal("shape=diamond"));
|
|
264
|
+
case 'trapezium': return p_.ss($, ($) => sh.ph.literal("shape=trapezium"));
|
|
265
|
+
case 'parallelogram': return p_.ss($, ($) => sh.ph.literal("shape=parallelogram"));
|
|
266
|
+
case 'house': return p_.ss($, ($) => sh.ph.literal("shape=house"));
|
|
267
|
+
case 'pentagon': return p_.ss($, ($) => sh.ph.literal("shape=pentagon"));
|
|
268
|
+
case 'hexagon': return p_.ss($, ($) => sh.ph.literal("shape=hexagon"));
|
|
269
|
+
case 'septagon': return p_.ss($, ($) => sh.ph.literal("shape=septagon"));
|
|
270
|
+
case 'octagon': return p_.ss($, ($) => sh.ph.literal("shape=octagon"));
|
|
271
|
+
case 'polygon': return p_.ss($, ($) => sh.ph.literal("shape=polygon"));
|
|
272
|
+
case 'record': return p_.ss($, ($) => sh.ph.literal("shape=record"));
|
|
273
|
+
case 'Mrecord': return p_.ss($, ($) => sh.ph.literal("shape=Mrecord"));
|
|
274
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
275
275
|
sh.ph.literal("shape="),
|
|
276
276
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
277
277
|
]));
|
|
278
|
-
default: return
|
|
278
|
+
default: return p_.au($[0]);
|
|
279
279
|
}
|
|
280
280
|
}));
|
|
281
|
-
case 'width': return
|
|
281
|
+
case 'width': return p_.ss($, ($) => sh.ph.composed([
|
|
282
282
|
sh.ph.literal("width="),
|
|
283
283
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
284
284
|
]));
|
|
285
|
-
case 'height': return
|
|
285
|
+
case 'height': return p_.ss($, ($) => sh.ph.composed([
|
|
286
286
|
sh.ph.literal("height="),
|
|
287
287
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
288
288
|
]));
|
|
289
|
-
case 'fixedsize': return
|
|
290
|
-
case 'regular': return
|
|
291
|
-
case 'sides': return
|
|
289
|
+
case 'fixedsize': return p_.ss($, ($) => sh.ph.literal($ ? "fixedsize=true" : "fixedsize=false"));
|
|
290
|
+
case 'regular': return p_.ss($, ($) => sh.ph.literal($ ? "regular=true" : "regular=false"));
|
|
291
|
+
case 'sides': return p_.ss($, ($) => sh.ph.composed([
|
|
292
292
|
sh.ph.literal("sides="),
|
|
293
293
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
294
294
|
]));
|
|
295
|
-
case 'skew': return
|
|
295
|
+
case 'skew': return p_.ss($, ($) => sh.ph.composed([
|
|
296
296
|
sh.ph.literal("skew="),
|
|
297
297
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
298
298
|
]));
|
|
299
|
-
case 'distortion': return
|
|
299
|
+
case 'distortion': return p_.ss($, ($) => sh.ph.composed([
|
|
300
300
|
sh.ph.literal("distortion="),
|
|
301
301
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
302
302
|
]));
|
|
303
|
-
case 'orientation': return
|
|
303
|
+
case 'orientation': return p_.ss($, ($) => sh.ph.composed([
|
|
304
304
|
sh.ph.literal("orientation="),
|
|
305
305
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
306
306
|
]));
|
|
307
|
-
case 'peripheries': return
|
|
307
|
+
case 'peripheries': return p_.ss($, ($) => sh.ph.composed([
|
|
308
308
|
sh.ph.literal("peripheries="),
|
|
309
309
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
310
310
|
]));
|
|
311
|
-
case 'pin': return
|
|
312
|
-
case 'image': return
|
|
311
|
+
case 'pin': return p_.ss($, ($) => sh.ph.literal($ ? "pin=true" : "pin=false"));
|
|
312
|
+
case 'image': return p_.ss($, ($) => sh.ph.composed([
|
|
313
313
|
sh.ph.literal("image="),
|
|
314
314
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
315
315
|
]));
|
|
316
|
-
case 'imagepos': return
|
|
316
|
+
case 'imagepos': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
317
317
|
switch ($[0]) {
|
|
318
|
-
case 'tl': return
|
|
319
|
-
case 'tc': return
|
|
320
|
-
case 'tr': return
|
|
321
|
-
case 'ml': return
|
|
322
|
-
case 'mc': return
|
|
323
|
-
case 'mr': return
|
|
324
|
-
case 'bl': return
|
|
325
|
-
case 'bc': return
|
|
326
|
-
case 'br': return
|
|
327
|
-
default: return
|
|
318
|
+
case 'tl': return p_.ss($, ($) => sh.ph.literal("imagepos=tl"));
|
|
319
|
+
case 'tc': return p_.ss($, ($) => sh.ph.literal("imagepos=tc"));
|
|
320
|
+
case 'tr': return p_.ss($, ($) => sh.ph.literal("imagepos=tr"));
|
|
321
|
+
case 'ml': return p_.ss($, ($) => sh.ph.literal("imagepos=ml"));
|
|
322
|
+
case 'mc': return p_.ss($, ($) => sh.ph.literal("imagepos=mc"));
|
|
323
|
+
case 'mr': return p_.ss($, ($) => sh.ph.literal("imagepos=mr"));
|
|
324
|
+
case 'bl': return p_.ss($, ($) => sh.ph.literal("imagepos=bl"));
|
|
325
|
+
case 'bc': return p_.ss($, ($) => sh.ph.literal("imagepos=bc"));
|
|
326
|
+
case 'br': return p_.ss($, ($) => sh.ph.literal("imagepos=br"));
|
|
327
|
+
default: return p_.au($[0]);
|
|
328
328
|
}
|
|
329
329
|
}));
|
|
330
|
-
case 'imagescale': return
|
|
330
|
+
case 'imagescale': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
331
331
|
switch ($[0]) {
|
|
332
|
-
case 'false': return
|
|
333
|
-
case 'true': return
|
|
334
|
-
case 'width': return
|
|
335
|
-
case 'height': return
|
|
336
|
-
case 'both': return
|
|
337
|
-
default: return
|
|
332
|
+
case 'false': return p_.ss($, ($) => sh.ph.literal("imagescale=false"));
|
|
333
|
+
case 'true': return p_.ss($, ($) => sh.ph.literal("imagescale=true"));
|
|
334
|
+
case 'width': return p_.ss($, ($) => sh.ph.literal("imagescale=width"));
|
|
335
|
+
case 'height': return p_.ss($, ($) => sh.ph.literal("imagescale=height"));
|
|
336
|
+
case 'both': return p_.ss($, ($) => sh.ph.literal("imagescale=both"));
|
|
337
|
+
default: return p_.au($[0]);
|
|
338
338
|
}
|
|
339
339
|
}));
|
|
340
|
-
case 'group': return
|
|
340
|
+
case 'group': return p_.ss($, ($) => sh.ph.composed([
|
|
341
341
|
sh.ph.literal("group="),
|
|
342
342
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
343
343
|
]));
|
|
344
|
-
case 'sortv': return
|
|
344
|
+
case 'sortv': return p_.ss($, ($) => sh.ph.composed([
|
|
345
345
|
sh.ph.literal("sortv="),
|
|
346
346
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
347
347
|
]));
|
|
348
|
-
case 'area': return
|
|
348
|
+
case 'area': return p_.ss($, ($) => sh.ph.composed([
|
|
349
349
|
sh.ph.literal("area="),
|
|
350
350
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
351
351
|
]));
|
|
352
|
-
case 'z': return
|
|
352
|
+
case 'z': return p_.ss($, ($) => sh.ph.composed([
|
|
353
353
|
sh.ph.literal("z="),
|
|
354
354
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
355
355
|
]));
|
|
356
|
-
case 'margin': return
|
|
356
|
+
case 'margin': return p_.ss($, ($) => sh.ph.composed([
|
|
357
357
|
sh.ph.literal("margin="),
|
|
358
358
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
359
359
|
]));
|
|
360
|
-
case 'arrowhead': return
|
|
360
|
+
case 'arrowhead': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
361
361
|
switch ($[0]) {
|
|
362
|
-
case 'normal': return
|
|
363
|
-
case 'box': return
|
|
364
|
-
case 'crow': return
|
|
365
|
-
case 'diamond': return
|
|
366
|
-
case 'dot': return
|
|
367
|
-
case 'inv': return
|
|
368
|
-
case 'none': return
|
|
369
|
-
case 'tee': return
|
|
370
|
-
case 'vee': return
|
|
371
|
-
case 'open': return
|
|
372
|
-
case 'halfopen': return
|
|
373
|
-
case 'empty': return
|
|
374
|
-
case 'invempty': return
|
|
375
|
-
case 'odiamond': return
|
|
376
|
-
case 'odot': return
|
|
377
|
-
case 'obox': return
|
|
378
|
-
case 'custom': return
|
|
362
|
+
case 'normal': return p_.ss($, ($) => sh.ph.literal("arrowhead=normal"));
|
|
363
|
+
case 'box': return p_.ss($, ($) => sh.ph.literal("arrowhead=box"));
|
|
364
|
+
case 'crow': return p_.ss($, ($) => sh.ph.literal("arrowhead=crow"));
|
|
365
|
+
case 'diamond': return p_.ss($, ($) => sh.ph.literal("arrowhead=diamond"));
|
|
366
|
+
case 'dot': return p_.ss($, ($) => sh.ph.literal("arrowhead=dot"));
|
|
367
|
+
case 'inv': return p_.ss($, ($) => sh.ph.literal("arrowhead=inv"));
|
|
368
|
+
case 'none': return p_.ss($, ($) => sh.ph.literal("arrowhead=none"));
|
|
369
|
+
case 'tee': return p_.ss($, ($) => sh.ph.literal("arrowhead=tee"));
|
|
370
|
+
case 'vee': return p_.ss($, ($) => sh.ph.literal("arrowhead=vee"));
|
|
371
|
+
case 'open': return p_.ss($, ($) => sh.ph.literal("arrowhead=open"));
|
|
372
|
+
case 'halfopen': return p_.ss($, ($) => sh.ph.literal("arrowhead=halfopen"));
|
|
373
|
+
case 'empty': return p_.ss($, ($) => sh.ph.literal("arrowhead=empty"));
|
|
374
|
+
case 'invempty': return p_.ss($, ($) => sh.ph.literal("arrowhead=invempty"));
|
|
375
|
+
case 'odiamond': return p_.ss($, ($) => sh.ph.literal("arrowhead=odiamond"));
|
|
376
|
+
case 'odot': return p_.ss($, ($) => sh.ph.literal("arrowhead=odot"));
|
|
377
|
+
case 'obox': return p_.ss($, ($) => sh.ph.literal("arrowhead=obox"));
|
|
378
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
379
379
|
sh.ph.literal("arrowhead="),
|
|
380
380
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
381
381
|
]));
|
|
382
|
-
default: return
|
|
382
|
+
default: return p_.au($[0]);
|
|
383
383
|
}
|
|
384
384
|
}));
|
|
385
|
-
case 'arrowtail': return
|
|
385
|
+
case 'arrowtail': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
386
386
|
switch ($[0]) {
|
|
387
|
-
case 'normal': return
|
|
388
|
-
case 'box': return
|
|
389
|
-
case 'crow': return
|
|
390
|
-
case 'diamond': return
|
|
391
|
-
case 'dot': return
|
|
392
|
-
case 'inv': return
|
|
393
|
-
case 'none': return
|
|
394
|
-
case 'tee': return
|
|
395
|
-
case 'vee': return
|
|
396
|
-
case 'open': return
|
|
397
|
-
case 'halfopen': return
|
|
398
|
-
case 'empty': return
|
|
399
|
-
case 'invempty': return
|
|
400
|
-
case 'odiamond': return
|
|
401
|
-
case 'odot': return
|
|
402
|
-
case 'obox': return
|
|
403
|
-
case 'custom': return
|
|
387
|
+
case 'normal': return p_.ss($, ($) => sh.ph.literal("arrowtail=normal"));
|
|
388
|
+
case 'box': return p_.ss($, ($) => sh.ph.literal("arrowtail=box"));
|
|
389
|
+
case 'crow': return p_.ss($, ($) => sh.ph.literal("arrowtail=crow"));
|
|
390
|
+
case 'diamond': return p_.ss($, ($) => sh.ph.literal("arrowtail=diamond"));
|
|
391
|
+
case 'dot': return p_.ss($, ($) => sh.ph.literal("arrowtail=dot"));
|
|
392
|
+
case 'inv': return p_.ss($, ($) => sh.ph.literal("arrowtail=inv"));
|
|
393
|
+
case 'none': return p_.ss($, ($) => sh.ph.literal("arrowtail=none"));
|
|
394
|
+
case 'tee': return p_.ss($, ($) => sh.ph.literal("arrowtail=tee"));
|
|
395
|
+
case 'vee': return p_.ss($, ($) => sh.ph.literal("arrowtail=vee"));
|
|
396
|
+
case 'open': return p_.ss($, ($) => sh.ph.literal("arrowtail=open"));
|
|
397
|
+
case 'halfopen': return p_.ss($, ($) => sh.ph.literal("arrowtail=halfopen"));
|
|
398
|
+
case 'empty': return p_.ss($, ($) => sh.ph.literal("arrowtail=empty"));
|
|
399
|
+
case 'invempty': return p_.ss($, ($) => sh.ph.literal("arrowtail=invempty"));
|
|
400
|
+
case 'odiamond': return p_.ss($, ($) => sh.ph.literal("arrowtail=odiamond"));
|
|
401
|
+
case 'odot': return p_.ss($, ($) => sh.ph.literal("arrowtail=odot"));
|
|
402
|
+
case 'obox': return p_.ss($, ($) => sh.ph.literal("arrowtail=obox"));
|
|
403
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
404
404
|
sh.ph.literal("arrowtail="),
|
|
405
405
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
406
406
|
]));
|
|
407
|
-
default: return
|
|
407
|
+
default: return p_.au($[0]);
|
|
408
408
|
}
|
|
409
409
|
}));
|
|
410
|
-
case 'arrowsize': return
|
|
410
|
+
case 'arrowsize': return p_.ss($, ($) => sh.ph.composed([
|
|
411
411
|
sh.ph.literal("arrowsize="),
|
|
412
412
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
413
413
|
]));
|
|
414
|
-
case 'dir': return
|
|
414
|
+
case 'dir': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
415
415
|
switch ($[0]) {
|
|
416
|
-
case 'forward': return
|
|
417
|
-
case 'back': return
|
|
418
|
-
case 'both': return
|
|
419
|
-
case 'none': return
|
|
420
|
-
default: return
|
|
416
|
+
case 'forward': return p_.ss($, ($) => sh.ph.literal("dir=forward"));
|
|
417
|
+
case 'back': return p_.ss($, ($) => sh.ph.literal("dir=back"));
|
|
418
|
+
case 'both': return p_.ss($, ($) => sh.ph.literal("dir=both"));
|
|
419
|
+
case 'none': return p_.ss($, ($) => sh.ph.literal("dir=none"));
|
|
420
|
+
default: return p_.au($[0]);
|
|
421
421
|
}
|
|
422
422
|
}));
|
|
423
|
-
case 'headlabel': return
|
|
423
|
+
case 'headlabel': return p_.ss($, ($) => sh.ph.composed([
|
|
424
424
|
sh.ph.literal("headlabel="),
|
|
425
425
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
426
426
|
]));
|
|
427
|
-
case 'taillabel': return
|
|
427
|
+
case 'taillabel': return p_.ss($, ($) => sh.ph.composed([
|
|
428
428
|
sh.ph.literal("taillabel="),
|
|
429
429
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
430
430
|
]));
|
|
431
|
-
case 'labelfontcolor': return
|
|
431
|
+
case 'labelfontcolor': return p_.ss($, ($) => sh.ph.composed([
|
|
432
432
|
sh.ph.literal("labelfontcolor="),
|
|
433
433
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
434
434
|
]));
|
|
435
|
-
case 'labelfontname': return
|
|
435
|
+
case 'labelfontname': return p_.ss($, ($) => sh.ph.composed([
|
|
436
436
|
sh.ph.literal("labelfontname="),
|
|
437
437
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
438
438
|
]));
|
|
439
|
-
case 'labelfontsize': return
|
|
439
|
+
case 'labelfontsize': return p_.ss($, ($) => sh.ph.composed([
|
|
440
440
|
sh.ph.literal("labelfontsize="),
|
|
441
441
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
442
442
|
]));
|
|
443
|
-
case 'labelangle': return
|
|
443
|
+
case 'labelangle': return p_.ss($, ($) => sh.ph.composed([
|
|
444
444
|
sh.ph.literal("labelangle="),
|
|
445
445
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
446
446
|
]));
|
|
447
|
-
case 'labeldistance': return
|
|
447
|
+
case 'labeldistance': return p_.ss($, ($) => sh.ph.composed([
|
|
448
448
|
sh.ph.literal("labeldistance="),
|
|
449
449
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
450
450
|
]));
|
|
451
|
-
case 'labelfloat': return
|
|
452
|
-
case 'weight': return
|
|
451
|
+
case 'labelfloat': return p_.ss($, ($) => sh.ph.literal($ ? "labelfloat=true" : "labelfloat=false"));
|
|
452
|
+
case 'weight': return p_.ss($, ($) => sh.ph.composed([
|
|
453
453
|
sh.ph.literal("weight="),
|
|
454
454
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
455
455
|
]));
|
|
456
|
-
case 'len': return
|
|
456
|
+
case 'len': return p_.ss($, ($) => sh.ph.composed([
|
|
457
457
|
sh.ph.literal("len="),
|
|
458
458
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
459
459
|
]));
|
|
460
|
-
case 'minlen': return
|
|
460
|
+
case 'minlen': return p_.ss($, ($) => sh.ph.composed([
|
|
461
461
|
sh.ph.literal("minlen="),
|
|
462
462
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
463
463
|
]));
|
|
464
|
-
case 'constraint': return
|
|
465
|
-
case 'decorate': return
|
|
466
|
-
case 'headport': return
|
|
464
|
+
case 'constraint': return p_.ss($, ($) => sh.ph.literal($ ? "constraint=true" : "constraint=false"));
|
|
465
|
+
case 'decorate': return p_.ss($, ($) => sh.ph.literal($ ? "decorate=true" : "decorate=false"));
|
|
466
|
+
case 'headport': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
467
467
|
switch ($[0]) {
|
|
468
|
-
case 'center': return
|
|
469
|
-
case 'n': return
|
|
470
|
-
case 'ne': return
|
|
471
|
-
case 'e': return
|
|
472
|
-
case 'se': return
|
|
473
|
-
case 's': return
|
|
474
|
-
case 'sw': return
|
|
475
|
-
case 'w': return
|
|
476
|
-
case 'nw': return
|
|
477
|
-
case 'custom': return
|
|
468
|
+
case 'center': return p_.ss($, ($) => sh.ph.literal("headport=center"));
|
|
469
|
+
case 'n': return p_.ss($, ($) => sh.ph.literal("headport=n"));
|
|
470
|
+
case 'ne': return p_.ss($, ($) => sh.ph.literal("headport=ne"));
|
|
471
|
+
case 'e': return p_.ss($, ($) => sh.ph.literal("headport=e"));
|
|
472
|
+
case 'se': return p_.ss($, ($) => sh.ph.literal("headport=se"));
|
|
473
|
+
case 's': return p_.ss($, ($) => sh.ph.literal("headport=s"));
|
|
474
|
+
case 'sw': return p_.ss($, ($) => sh.ph.literal("headport=sw"));
|
|
475
|
+
case 'w': return p_.ss($, ($) => sh.ph.literal("headport=w"));
|
|
476
|
+
case 'nw': return p_.ss($, ($) => sh.ph.literal("headport=nw"));
|
|
477
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
478
478
|
sh.ph.literal("headport="),
|
|
479
479
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
480
480
|
]));
|
|
481
|
-
default: return
|
|
481
|
+
default: return p_.au($[0]);
|
|
482
482
|
}
|
|
483
483
|
}));
|
|
484
|
-
case 'tailport': return
|
|
484
|
+
case 'tailport': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
485
485
|
switch ($[0]) {
|
|
486
|
-
case 'center': return
|
|
487
|
-
case 'n': return
|
|
488
|
-
case 'ne': return
|
|
489
|
-
case 'e': return
|
|
490
|
-
case 'se': return
|
|
491
|
-
case 's': return
|
|
492
|
-
case 'sw': return
|
|
493
|
-
case 'w': return
|
|
494
|
-
case 'nw': return
|
|
495
|
-
case 'custom': return
|
|
486
|
+
case 'center': return p_.ss($, ($) => sh.ph.literal("tailport=center"));
|
|
487
|
+
case 'n': return p_.ss($, ($) => sh.ph.literal("tailport=n"));
|
|
488
|
+
case 'ne': return p_.ss($, ($) => sh.ph.literal("tailport=ne"));
|
|
489
|
+
case 'e': return p_.ss($, ($) => sh.ph.literal("tailport=e"));
|
|
490
|
+
case 'se': return p_.ss($, ($) => sh.ph.literal("tailport=se"));
|
|
491
|
+
case 's': return p_.ss($, ($) => sh.ph.literal("tailport=s"));
|
|
492
|
+
case 'sw': return p_.ss($, ($) => sh.ph.literal("tailport=sw"));
|
|
493
|
+
case 'w': return p_.ss($, ($) => sh.ph.literal("tailport=w"));
|
|
494
|
+
case 'nw': return p_.ss($, ($) => sh.ph.literal("tailport=nw"));
|
|
495
|
+
case 'custom': return p_.ss($, ($) => sh.ph.composed([
|
|
496
496
|
sh.ph.literal("tailport="),
|
|
497
497
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
498
498
|
]));
|
|
499
|
-
default: return
|
|
499
|
+
default: return p_.au($[0]);
|
|
500
500
|
}
|
|
501
501
|
}));
|
|
502
|
-
case 'headclip': return
|
|
503
|
-
case 'tailclip': return
|
|
504
|
-
case 'lhead': return
|
|
502
|
+
case 'headclip': return p_.ss($, ($) => sh.ph.literal($ ? "headclip=true" : "headclip=false"));
|
|
503
|
+
case 'tailclip': return p_.ss($, ($) => sh.ph.literal($ ? "tailclip=true" : "tailclip=false"));
|
|
504
|
+
case 'lhead': return p_.ss($, ($) => sh.ph.composed([
|
|
505
505
|
sh.ph.literal("lhead="),
|
|
506
506
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
507
507
|
]));
|
|
508
|
-
case 'ltail': return
|
|
508
|
+
case 'ltail': return p_.ss($, ($) => sh.ph.composed([
|
|
509
509
|
sh.ph.literal("ltail="),
|
|
510
510
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
511
511
|
]));
|
|
512
|
-
case 'samehead': return
|
|
512
|
+
case 'samehead': return p_.ss($, ($) => sh.ph.composed([
|
|
513
513
|
sh.ph.literal("samehead="),
|
|
514
514
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
515
515
|
]));
|
|
516
|
-
case 'sametail': return
|
|
516
|
+
case 'sametail': return p_.ss($, ($) => sh.ph.composed([
|
|
517
517
|
sh.ph.literal("sametail="),
|
|
518
518
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
519
519
|
]));
|
|
520
|
-
case 'edgeURL': return
|
|
520
|
+
case 'edgeURL': return p_.ss($, ($) => sh.ph.composed([
|
|
521
521
|
sh.ph.literal("edgeURL="),
|
|
522
522
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
523
523
|
]));
|
|
524
|
-
case 'headURL': return
|
|
524
|
+
case 'headURL': return p_.ss($, ($) => sh.ph.composed([
|
|
525
525
|
sh.ph.literal("headURL="),
|
|
526
526
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
527
527
|
]));
|
|
528
|
-
case 'tailURL': return
|
|
528
|
+
case 'tailURL': return p_.ss($, ($) => sh.ph.composed([
|
|
529
529
|
sh.ph.literal("tailURL="),
|
|
530
530
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
531
531
|
]));
|
|
532
|
-
case 'labelURL': return
|
|
532
|
+
case 'labelURL': return p_.ss($, ($) => sh.ph.composed([
|
|
533
533
|
sh.ph.literal("labelURL="),
|
|
534
534
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
535
535
|
]));
|
|
536
|
-
case 'edgehref': return
|
|
536
|
+
case 'edgehref': return p_.ss($, ($) => sh.ph.composed([
|
|
537
537
|
sh.ph.literal("edgehref="),
|
|
538
538
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
539
539
|
]));
|
|
540
|
-
case 'headhref': return
|
|
540
|
+
case 'headhref': return p_.ss($, ($) => sh.ph.composed([
|
|
541
541
|
sh.ph.literal("headhref="),
|
|
542
542
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
543
543
|
]));
|
|
544
|
-
case 'tailhref': return
|
|
544
|
+
case 'tailhref': return p_.ss($, ($) => sh.ph.composed([
|
|
545
545
|
sh.ph.literal("tailhref="),
|
|
546
546
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
547
547
|
]));
|
|
548
|
-
case 'labelhref': return
|
|
548
|
+
case 'labelhref': return p_.ss($, ($) => sh.ph.composed([
|
|
549
549
|
sh.ph.literal("labelhref="),
|
|
550
550
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
551
551
|
]));
|
|
552
|
-
case 'edgetarget': return
|
|
552
|
+
case 'edgetarget': return p_.ss($, ($) => sh.ph.composed([
|
|
553
553
|
sh.ph.literal("edgetarget="),
|
|
554
554
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
555
555
|
]));
|
|
556
|
-
case 'headtarget': return
|
|
556
|
+
case 'headtarget': return p_.ss($, ($) => sh.ph.composed([
|
|
557
557
|
sh.ph.literal("headtarget="),
|
|
558
558
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
559
559
|
]));
|
|
560
|
-
case 'tailtarget': return
|
|
560
|
+
case 'tailtarget': return p_.ss($, ($) => sh.ph.composed([
|
|
561
561
|
sh.ph.literal("tailtarget="),
|
|
562
562
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
563
563
|
]));
|
|
564
|
-
case 'edgetooltip': return
|
|
564
|
+
case 'edgetooltip': return p_.ss($, ($) => sh.ph.composed([
|
|
565
565
|
sh.ph.literal("edgetooltip="),
|
|
566
566
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
567
567
|
]));
|
|
568
|
-
case 'headtooltip': return
|
|
568
|
+
case 'headtooltip': return p_.ss($, ($) => sh.ph.composed([
|
|
569
569
|
sh.ph.literal("headtooltip="),
|
|
570
570
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
571
571
|
]));
|
|
572
|
-
case 'tailtooltip': return
|
|
572
|
+
case 'tailtooltip': return p_.ss($, ($) => sh.ph.composed([
|
|
573
573
|
sh.ph.literal("tailtooltip="),
|
|
574
574
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
575
575
|
]));
|
|
576
|
-
case 'labeltooltip': return
|
|
576
|
+
case 'labeltooltip': return p_.ss($, ($) => sh.ph.composed([
|
|
577
577
|
sh.ph.literal("labeltooltip="),
|
|
578
578
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
579
579
|
]));
|
|
580
|
-
case 'radius': return
|
|
580
|
+
case 'radius': return p_.ss($, ($) => sh.ph.composed([
|
|
581
581
|
sh.ph.literal("radius="),
|
|
582
582
|
sh.ph.serialize(t_primitives_to_list_of_characters.decimal($))
|
|
583
583
|
]));
|
|
584
|
-
case 'splines': return
|
|
584
|
+
case 'splines': return p_.ss($, ($) => p_.decide.state($, ($) => {
|
|
585
585
|
switch ($[0]) {
|
|
586
|
-
case 'true': return
|
|
587
|
-
case 'false': return
|
|
588
|
-
case 'none': return
|
|
589
|
-
case 'line': return
|
|
590
|
-
case 'spline': return
|
|
591
|
-
case 'polyline': return
|
|
592
|
-
case 'ortho': return
|
|
593
|
-
case 'curved': return
|
|
594
|
-
case 'compound': return
|
|
595
|
-
default: return
|
|
586
|
+
case 'true': return p_.ss($, ($) => sh.ph.literal("splines=true"));
|
|
587
|
+
case 'false': return p_.ss($, ($) => sh.ph.literal("splines=false"));
|
|
588
|
+
case 'none': return p_.ss($, ($) => sh.ph.literal("splines=none"));
|
|
589
|
+
case 'line': return p_.ss($, ($) => sh.ph.literal("splines=line"));
|
|
590
|
+
case 'spline': return p_.ss($, ($) => sh.ph.literal("splines=spline"));
|
|
591
|
+
case 'polyline': return p_.ss($, ($) => sh.ph.literal("splines=polyline"));
|
|
592
|
+
case 'ortho': return p_.ss($, ($) => sh.ph.literal("splines=ortho"));
|
|
593
|
+
case 'curved': return p_.ss($, ($) => sh.ph.literal("splines=curved"));
|
|
594
|
+
case 'compound': return p_.ss($, ($) => sh.ph.literal("splines=compound"));
|
|
595
|
+
default: return p_.au($[0]);
|
|
596
596
|
}
|
|
597
597
|
}));
|
|
598
|
-
case 'pos': return
|
|
598
|
+
case 'pos': return p_.ss($, ($) => sh.ph.composed([
|
|
599
599
|
sh.ph.literal("pos="),
|
|
600
600
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
601
601
|
]));
|
|
602
|
-
case 'xlabel': return
|
|
602
|
+
case 'xlabel': return p_.ss($, ($) => sh.ph.composed([
|
|
603
603
|
sh.ph.literal("xlabel="),
|
|
604
604
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
605
605
|
]));
|
|
606
|
-
case 'layer': return
|
|
606
|
+
case 'layer': return p_.ss($, ($) => sh.ph.composed([
|
|
607
607
|
sh.ph.literal("layer="),
|
|
608
608
|
sh.ph.serialize(t_primitives_to_list_of_characters.quoted($))
|
|
609
609
|
]));
|
|
610
|
-
default: return
|
|
610
|
+
default: return p_.au($[0]);
|
|
611
611
|
}
|
|
612
612
|
})
|
|
613
613
|
])));
|