@diagrammo/dgmo 0.25.2 → 0.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -884
- package/package.json +1 -1
- package/src/cli.ts +0 -9
- package/src/d3.ts +180 -46
- package/src/render.ts +80 -39
- package/src/utils/svg-embed.ts +12 -3
- package/dist/advanced.cjs +0 -62454
- package/dist/advanced.d.cts +0 -5684
- package/dist/advanced.d.ts +0 -5684
- package/dist/advanced.js +0 -62207
- package/dist/auto.cjs +0 -59764
- package/dist/auto.css +0 -214
- package/dist/auto.d.cts +0 -39
- package/dist/auto.d.ts +0 -39
- package/dist/auto.js +0 -437
- package/dist/auto.mjs +0 -59774
- package/dist/cli.cjs +0 -465
- package/dist/editor.cjs +0 -432
- package/dist/editor.d.cts +0 -26
- package/dist/editor.d.ts +0 -26
- package/dist/editor.js +0 -401
- package/dist/highlight.cjs +0 -720
- package/dist/highlight.d.cts +0 -32
- package/dist/highlight.d.ts +0 -32
- package/dist/highlight.js +0 -690
- package/dist/index.cjs +0 -58947
- package/dist/index.d.cts +0 -375
- package/dist/index.d.ts +0 -375
- package/dist/index.js +0 -58951
- package/dist/internal.cjs +0 -62456
- package/dist/internal.d.cts +0 -5684
- package/dist/internal.d.ts +0 -5684
- package/dist/internal.js +0 -62207
- package/dist/map-data/PROVENANCE.json +0 -1
- package/dist/map-data/gazetteer.json +0 -1
- package/dist/map-data/lakes.json +0 -1
- package/dist/map-data/mountain-ranges.json +0 -1
- package/dist/map-data/na-lakes.json +0 -1
- package/dist/map-data/na-land.json +0 -1
- package/dist/map-data/region-names.json +0 -1
- package/dist/map-data/rivers.json +0 -1
- package/dist/map-data/us-states.json +0 -1
- package/dist/map-data/water-bodies.json +0 -1
- package/dist/map-data/world-coarse.json +0 -1
- package/dist/map-data/world-detail.json +0 -1
- package/dist/pert.cjs +0 -325
- package/dist/pert.d.cts +0 -554
- package/dist/pert.d.ts +0 -554
- package/dist/pert.js +0 -294
- package/src/editor/dgmo.grammar.js +0 -18
- package/src/editor/dgmo.grammar.terms.js +0 -35
package/dist/editor.js
DELETED
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
// src/editor/index.ts
|
|
2
|
-
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
3
|
-
|
|
4
|
-
// src/editor/dgmo.grammar.js
|
|
5
|
-
import { LRParser } from "@lezer/lr";
|
|
6
|
-
|
|
7
|
-
// src/editor/dgmo.grammar.terms.js
|
|
8
|
-
var ChartType = 1;
|
|
9
|
-
var TagKeyword = 2;
|
|
10
|
-
var DirectiveKeyword = 3;
|
|
11
|
-
var ControlKeyword = 4;
|
|
12
|
-
var ModifierKeyword = 5;
|
|
13
|
-
|
|
14
|
-
// src/editor/keywords.ts
|
|
15
|
-
var CHART_TYPES = /* @__PURE__ */ new Set([
|
|
16
|
-
// Diagram types
|
|
17
|
-
"sequence",
|
|
18
|
-
"flowchart",
|
|
19
|
-
"class",
|
|
20
|
-
"er",
|
|
21
|
-
"org",
|
|
22
|
-
"kanban",
|
|
23
|
-
"c4",
|
|
24
|
-
"state",
|
|
25
|
-
"sitemap",
|
|
26
|
-
"infra",
|
|
27
|
-
"gantt",
|
|
28
|
-
"pert",
|
|
29
|
-
"boxes-and-lines",
|
|
30
|
-
"wireframe",
|
|
31
|
-
"tech-radar",
|
|
32
|
-
"mindmap",
|
|
33
|
-
"journey-map",
|
|
34
|
-
"pyramid",
|
|
35
|
-
"ring",
|
|
36
|
-
"raci",
|
|
37
|
-
"rasci",
|
|
38
|
-
"daci",
|
|
39
|
-
"cycle",
|
|
40
|
-
// Data chart types
|
|
41
|
-
"bar",
|
|
42
|
-
"line",
|
|
43
|
-
"pie",
|
|
44
|
-
"doughnut",
|
|
45
|
-
"area",
|
|
46
|
-
"polar-area",
|
|
47
|
-
"radar",
|
|
48
|
-
"bar-stacked",
|
|
49
|
-
"multi-line",
|
|
50
|
-
"scatter",
|
|
51
|
-
"sankey",
|
|
52
|
-
"chord",
|
|
53
|
-
"function",
|
|
54
|
-
"heatmap",
|
|
55
|
-
"funnel",
|
|
56
|
-
// Visualization types
|
|
57
|
-
"slope",
|
|
58
|
-
"wordcloud",
|
|
59
|
-
"arc",
|
|
60
|
-
"timeline",
|
|
61
|
-
"venn",
|
|
62
|
-
"quadrant",
|
|
63
|
-
"map"
|
|
64
|
-
]);
|
|
65
|
-
var METADATA_KEYS = /* @__PURE__ */ new Set([
|
|
66
|
-
"title",
|
|
67
|
-
"series",
|
|
68
|
-
"orientation",
|
|
69
|
-
"x-label",
|
|
70
|
-
"y-label",
|
|
71
|
-
"size-label",
|
|
72
|
-
"x",
|
|
73
|
-
"columns",
|
|
74
|
-
"rows",
|
|
75
|
-
"labels",
|
|
76
|
-
"rotate",
|
|
77
|
-
"max",
|
|
78
|
-
"size",
|
|
79
|
-
"order",
|
|
80
|
-
"sort",
|
|
81
|
-
"scale",
|
|
82
|
-
"values",
|
|
83
|
-
"notation",
|
|
84
|
-
"x-axis",
|
|
85
|
-
"y-axis",
|
|
86
|
-
"top-right",
|
|
87
|
-
"top-left",
|
|
88
|
-
"bottom-right",
|
|
89
|
-
"bottom-left",
|
|
90
|
-
// Tech-radar pipe metadata
|
|
91
|
-
"quadrant",
|
|
92
|
-
"ring",
|
|
93
|
-
"trend",
|
|
94
|
-
// Map (§24B) reserved metadata keys
|
|
95
|
-
"value",
|
|
96
|
-
"label",
|
|
97
|
-
"style"
|
|
98
|
-
]);
|
|
99
|
-
var TAG_KEYWORD = "tag";
|
|
100
|
-
var DIRECTIVE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
101
|
-
// Gantt
|
|
102
|
-
"start",
|
|
103
|
-
"era",
|
|
104
|
-
"marker",
|
|
105
|
-
"holiday",
|
|
106
|
-
"workweek",
|
|
107
|
-
"today-marker",
|
|
108
|
-
"critical-path",
|
|
109
|
-
"no-dependencies",
|
|
110
|
-
"sort",
|
|
111
|
-
// Tech-radar
|
|
112
|
-
"rings",
|
|
113
|
-
// Tags
|
|
114
|
-
"tags",
|
|
115
|
-
"import",
|
|
116
|
-
"active-tag",
|
|
117
|
-
"hide",
|
|
118
|
-
"mode",
|
|
119
|
-
"direction",
|
|
120
|
-
// Boxes-and-lines
|
|
121
|
-
"box-metric",
|
|
122
|
-
"show-values",
|
|
123
|
-
// ER
|
|
124
|
-
"notation",
|
|
125
|
-
// Class
|
|
126
|
-
"extends",
|
|
127
|
-
"implements",
|
|
128
|
-
"abstract",
|
|
129
|
-
"interface",
|
|
130
|
-
"enum",
|
|
131
|
-
// C4
|
|
132
|
-
"containers",
|
|
133
|
-
"components",
|
|
134
|
-
"deployment",
|
|
135
|
-
// Infra directives
|
|
136
|
-
"sub-node-label",
|
|
137
|
-
"show-sub-node-count",
|
|
138
|
-
// Infra node properties
|
|
139
|
-
"instances",
|
|
140
|
-
"max-rps",
|
|
141
|
-
"latency-ms",
|
|
142
|
-
"uptime",
|
|
143
|
-
"firewall-block",
|
|
144
|
-
"ratelimit-rps",
|
|
145
|
-
"cb-error-threshold",
|
|
146
|
-
"cb-latency-threshold-ms",
|
|
147
|
-
"buffer",
|
|
148
|
-
"drain-rate",
|
|
149
|
-
"retention-hours",
|
|
150
|
-
"partitions",
|
|
151
|
-
"slo-p90-latency-ms",
|
|
152
|
-
"slo-availability",
|
|
153
|
-
"slo-warning-margin",
|
|
154
|
-
"cache-hit",
|
|
155
|
-
"concurrency",
|
|
156
|
-
"duration-ms",
|
|
157
|
-
"cold-start-ms",
|
|
158
|
-
"rps",
|
|
159
|
-
// Sequence
|
|
160
|
-
"activations",
|
|
161
|
-
"no-activations",
|
|
162
|
-
// Map (§24B) directives — cosmetics on by default, bare `no-*` opt-outs
|
|
163
|
-
"region-metric",
|
|
164
|
-
"poi-metric",
|
|
165
|
-
"flow-metric",
|
|
166
|
-
"locale",
|
|
167
|
-
"active-tag",
|
|
168
|
-
"caption",
|
|
169
|
-
"no-legend",
|
|
170
|
-
"no-coastline",
|
|
171
|
-
"no-relief",
|
|
172
|
-
"no-context-labels",
|
|
173
|
-
"no-region-labels",
|
|
174
|
-
"no-poi-labels",
|
|
175
|
-
"no-colorize",
|
|
176
|
-
"no-cluster-pois",
|
|
177
|
-
"poi",
|
|
178
|
-
"route",
|
|
179
|
-
// Data charts
|
|
180
|
-
"stacked",
|
|
181
|
-
"no-name",
|
|
182
|
-
"no-value",
|
|
183
|
-
"no-percent",
|
|
184
|
-
// Slope
|
|
185
|
-
"period",
|
|
186
|
-
// Quadrant
|
|
187
|
-
"x-axis",
|
|
188
|
-
"y-axis",
|
|
189
|
-
"top-right",
|
|
190
|
-
"top-left",
|
|
191
|
-
"bottom-right",
|
|
192
|
-
"bottom-left",
|
|
193
|
-
// Layout
|
|
194
|
-
"direction-tb",
|
|
195
|
-
"direction-lr",
|
|
196
|
-
// Fill mode (cross-chart-type)
|
|
197
|
-
"solid-fill",
|
|
198
|
-
// Pyramid
|
|
199
|
-
"inverted",
|
|
200
|
-
// Data chart metadata
|
|
201
|
-
"title",
|
|
202
|
-
"series",
|
|
203
|
-
"orientation",
|
|
204
|
-
"x-label",
|
|
205
|
-
"y-label",
|
|
206
|
-
"size-label",
|
|
207
|
-
"columns",
|
|
208
|
-
"rows",
|
|
209
|
-
"labels",
|
|
210
|
-
"rotate",
|
|
211
|
-
"scale",
|
|
212
|
-
"values",
|
|
213
|
-
// Color (cross-chart-type)
|
|
214
|
-
"color",
|
|
215
|
-
// Title suppression (cross-chart-type)
|
|
216
|
-
"no-title",
|
|
217
|
-
// Flowchart layout
|
|
218
|
-
"orientation-vertical",
|
|
219
|
-
// RACI
|
|
220
|
-
"variant-raci",
|
|
221
|
-
"variant-rasci",
|
|
222
|
-
"variant-daci",
|
|
223
|
-
"roles",
|
|
224
|
-
// Cycle
|
|
225
|
-
"direction-counterclockwise",
|
|
226
|
-
"circle-nodes",
|
|
227
|
-
// Journey-map
|
|
228
|
-
"persona",
|
|
229
|
-
// Tech-radar
|
|
230
|
-
"show-blip-legend",
|
|
231
|
-
"trend",
|
|
232
|
-
// Gantt
|
|
233
|
-
"no-dependencies",
|
|
234
|
-
"sprint-length",
|
|
235
|
-
"sprint-number",
|
|
236
|
-
"sprint-start",
|
|
237
|
-
// Bar-stacked / data-chart layout
|
|
238
|
-
"orientation-horizontal",
|
|
239
|
-
// Function
|
|
240
|
-
"x",
|
|
241
|
-
"shade",
|
|
242
|
-
// Wordcloud
|
|
243
|
-
"max",
|
|
244
|
-
"size",
|
|
245
|
-
// Arc
|
|
246
|
-
"order",
|
|
247
|
-
// C4
|
|
248
|
-
"technology",
|
|
249
|
-
// Infra defaults + animate flags
|
|
250
|
-
"default-rps",
|
|
251
|
-
"default-latency-ms",
|
|
252
|
-
"default-uptime",
|
|
253
|
-
"animate",
|
|
254
|
-
// PERT
|
|
255
|
-
"time-unit",
|
|
256
|
-
"default-confidence",
|
|
257
|
-
"node-detail",
|
|
258
|
-
"trials",
|
|
259
|
-
"seed",
|
|
260
|
-
"scrubber-trials",
|
|
261
|
-
"start-date",
|
|
262
|
-
"end-date"
|
|
263
|
-
]);
|
|
264
|
-
var CONTROL_KEYWORDS = /* @__PURE__ */ new Set([
|
|
265
|
-
"if",
|
|
266
|
-
"else",
|
|
267
|
-
"loop",
|
|
268
|
-
"parallel",
|
|
269
|
-
"note",
|
|
270
|
-
// Wireframe elements
|
|
271
|
-
"nav",
|
|
272
|
-
"tabs",
|
|
273
|
-
"table",
|
|
274
|
-
"image",
|
|
275
|
-
"modal",
|
|
276
|
-
"skeleton",
|
|
277
|
-
"alert",
|
|
278
|
-
"progress",
|
|
279
|
-
"chart",
|
|
280
|
-
"mobile"
|
|
281
|
-
]);
|
|
282
|
-
var STATUS_KEYWORDS = /* @__PURE__ */ new Set([
|
|
283
|
-
"na",
|
|
284
|
-
"todo",
|
|
285
|
-
"wip",
|
|
286
|
-
"done",
|
|
287
|
-
"blocked",
|
|
288
|
-
"in-progress",
|
|
289
|
-
"backlog",
|
|
290
|
-
"ready"
|
|
291
|
-
// Tech-radar trend values (`new`, `up`, `down`, `stable`) are
|
|
292
|
-
// intentionally NOT in this set — they collide with common English
|
|
293
|
-
// prose ("Bring up coffee", "new requirement"). The tech-radar
|
|
294
|
-
// parser still validates them explicitly, and the completion
|
|
295
|
-
// provider still suggests them in trend-value position.
|
|
296
|
-
]);
|
|
297
|
-
var MODIFIER_KEYWORDS = /* @__PURE__ */ new Set([
|
|
298
|
-
"as",
|
|
299
|
-
"alias",
|
|
300
|
-
"aka",
|
|
301
|
-
"position",
|
|
302
|
-
"default",
|
|
303
|
-
// ER column modifiers
|
|
304
|
-
"pk",
|
|
305
|
-
"fk",
|
|
306
|
-
"nullable",
|
|
307
|
-
"unique",
|
|
308
|
-
// ER data types
|
|
309
|
-
"int",
|
|
310
|
-
"varchar",
|
|
311
|
-
"text",
|
|
312
|
-
"boolean",
|
|
313
|
-
"date",
|
|
314
|
-
"timestamp",
|
|
315
|
-
"float",
|
|
316
|
-
"decimal"
|
|
317
|
-
]);
|
|
318
|
-
|
|
319
|
-
// src/editor/tokens.ts
|
|
320
|
-
function specializeKeyword(value) {
|
|
321
|
-
if (CHART_TYPES.has(value)) return ChartType;
|
|
322
|
-
if (value === TAG_KEYWORD) return TagKeyword;
|
|
323
|
-
if (DIRECTIVE_KEYWORDS.has(value)) return DirectiveKeyword;
|
|
324
|
-
if (CONTROL_KEYWORDS.has(value)) return ControlKeyword;
|
|
325
|
-
if (STATUS_KEYWORDS.has(value)) return ModifierKeyword;
|
|
326
|
-
if (MODIFIER_KEYWORDS.has(value)) return ModifierKeyword;
|
|
327
|
-
return -1;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
// src/editor/dgmo.grammar.js
|
|
331
|
-
var parser = LRParser.deserialize({
|
|
332
|
-
version: 14,
|
|
333
|
-
states: "!WQVQPOOOOQO'#DU'#DUOOQO'#DP'#DPO%]QPO'#CdOOQO'#DO'#DOQVQPOOOOQO-E6}-E6}OOQO,59O,59OOOQO-E6|-E6|",
|
|
334
|
-
stateData: "&Q~OvOS~OPPOQPORPOSPOTPOVSOXPOYPOZPO[PO]PO^PO_PO`POaPObPOcPOdPOePOfPOgPOhPOiPOjPOkPOlPOmPOnPOoPOpPOqPOwSO~OPPOQPORPOSPOTPOXPOYPOZPO[PO]PO^PO_PO`POaPObPOcPOdPOePOfPOgPOhPOiPOjPOkPOlPOmPOnPOoPOpPOqPO~OwVO~P#]OVXYZ[]^_`ghijklmnabcdefopqk~",
|
|
335
|
-
goto: "!byPPPPPPPPzPPPPPPPPPPPPPPPPPPPPPPPPP!O!UPPPP!]TSOTQTORWTSROTRURVQORT",
|
|
336
|
-
nodeNames: "\u26A0 ChartType TagKeyword DirectiveKeyword ControlKeyword ModifierKeyword Document Comment ContentLine SyncArrow AsyncArrow Duration DateLiteral Percentage Number SectionMarker Url OpenBracket CloseBracket OpenParen CloseParen OpenAngle CloseAngle Pipe Colon Comma Plus Dash Tilde Star Question QuotedString Identifier Punct",
|
|
337
|
-
maxTerm: 40,
|
|
338
|
-
skippedNodes: [0],
|
|
339
|
-
repeatNodeCount: 2,
|
|
340
|
-
tokenData: "<v~RzOX#uXY#zYZ$VZp#upq#zqr#urs$[st#uux#uxy%eyz%lz{%s{|%z|}&R}!O&Y!O!P#u!P!Q&i!Q!['Y![!]/{!]!^#u!^!_0S!_!`0Z!`!a0h!a!b0o!b!c#u!c!}0v!}#O3|#O#P#u#P#Q4R#Q#R#u#R#S0v#S#T#u#T#[0v#[#]4Y#]#o0v#o#p#u#p#q<Y#q#r#u#r#s<a#s;'S#u;'S;=`<p<%lO#u~#zOq~~$PQv~XY#zpq#z~$[Ow~~$aUq~OY$sZr$srs%Ys;'S$s;'S;=`%_<%lO$s~$vUOY$sZr$srs%Ys;'S$s;'S;=`%_<%lO$s~%_Oo~~%bP;=`<%l$s~%lOc~q~~%sOd~q~~%zOm~q~~&ROj~q~~&YOi~q~~&aPk~q~!`!a&d~&iOX~~&nPq~!P!Q&q~&vSV~OY&qZ;'S&q;'S;=`'S<%lO&q~'VP;=`<%l&q~'a]^~q~uv(Y|}(_!O!P)[!Q![*{#R#S/g#U#V*V#W#X*]#[#]*]#a#b*j#e#f*]#g#h*]#k#l*]#m#n*]~(_O]~~(bP!Q![(e~(hP!Q![(k~(nP!Q![(q~(vQ^~|}(_!O!P(|~)PP!Q![)S~)XP^~!Q![)S~)_P!Q![)b~)gY^~uv(Y!Q![)b#U#V*V#W#X*]#[#]*]#a#b*j#e#f*]#g#h*]#k#l*]#m#n*]~*YP#W#X*]~*bPZ~!a!b*e~*jOZ~~*oQZ~!a!b*e#]#^*u~*xP#b#c*]~+Q]^~uv(Y|}(_!O!P)[!Q![+y#R#S/g#U#V*V#W#X*]#[#]*]#a#b*j#e#f*]#g#h*]#k#l*]#m#n*]~,O]^~uv(Y|}(_!O!P)[!Q![,w#R#S/g#U#V*V#W#X*]#[#]*]#a#b*j#e#f*]#g#h*]#k#l*]#m#n*]~,|]^~uv(Y}!O-u!O!P)[!Q![.l#R#S/g#U#V*V#W#X*]#[#]*]#a#b*j#e#f*]#g#h*]#k#l*]#m#n*]~-xP!Q![-{~.OP!Q![.R~.WP[~}!O.Z~.^P!Q![.a~.dP!Q![.g~.lO[~~.q[^~uv(Y!O!P)[!Q![.l#R#S/g#U#V*V#W#X*]#[#]*]#a#b*j#e#f*]#g#h*]#k#l*]#m#n*]~/jP!Q![/m~/rR^~!O!P(|!Q![/m#R#S/g~0SOh~q~~0ZOe~q~~0`Pq~!_!`0c~0hO_~~0oOf~q~~0vOn~q~~0}_p~q~qr1|st1|vw1|wx1|{|1|}!O3Q!O!P1|!P!Q1|!Q![1|!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#o1|~2R_p~qr1|st1|vw1|wx1|{|1|}!O3Q!O!P1|!P!Q1|!Q![1|!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#o1|~3T]qr1|st1|vw1|wx1|{|1|!O!P1|!P!Q1|!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#o1|~4ROa~~4YOb~q~~4aap~q~qr1|st1|vw1|wx1|{|1|}!O3Q!O!P1|!P!Q1|!Q![1|!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#h1|#h#i5f#i#o1|~5kap~qr1|st1|vw1|wx1|{|1|}!O3Q!O!P1|!P!Q1|!Q![1|!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#h1|#h#i6p#i#o1|~6uap~qr1|st1|vw1|wx1|{|1|}!O3Q!O!P1|!P!Q1|!Q![1|!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#d1|#d#e7z#e#o1|~8Pbp~qr1|st1|vw1|wx1|{|1|}!O3Q!O!P1|!P!Q1|!Q![1|![!]9X!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#g1|#g#h;R#h#o1|~9[P!P!Q9_~9bP!P!Q9e~9hYOX:WZp:Wqy:Wz|:W}!`:W!a#P:W#Q#p:W#q;'S:W;'S;=`:{<%lO:W~:]Y`~OX:WZp:Wqy:Wz|:W}!`:W!a#P:W#Q#p:W#q;'S:W;'S;=`:{<%lO:W~;OP;=`<%l:W~;W`p~qr1|st1|vw1|wx1|{|1|}!O3Q!O!P1|!P!Q1|!Q![1|![!]9X!_!`1|!a!b1|!b!c1|!c!}1|#R#S1|#T#o1|~<aOg~q~~<hPl~q~!`!a<k~<pOY~~<sP;=`<%l#u",
|
|
341
|
-
tokenizers: [0],
|
|
342
|
-
topRules: { "Document": [0, 6] },
|
|
343
|
-
specialized: [{ term: 32, get: (value, stack) => specializeKeyword(value, stack) << 1, external: specializeKeyword }],
|
|
344
|
-
tokenPrec: 204
|
|
345
|
-
});
|
|
346
|
-
|
|
347
|
-
// src/editor/highlight.ts
|
|
348
|
-
import { styleTags, tags as t } from "@lezer/highlight";
|
|
349
|
-
var dgmoHighlighting = styleTags({
|
|
350
|
-
Comment: t.lineComment,
|
|
351
|
-
ChartType: t.typeName,
|
|
352
|
-
TagKeyword: t.definitionKeyword,
|
|
353
|
-
DirectiveKeyword: t.keyword,
|
|
354
|
-
ControlKeyword: t.controlKeyword,
|
|
355
|
-
ModifierKeyword: t.modifier,
|
|
356
|
-
SyncArrow: t.operator,
|
|
357
|
-
AsyncArrow: t.operator,
|
|
358
|
-
Duration: t.number,
|
|
359
|
-
DateLiteral: t.number,
|
|
360
|
-
Number: t.number,
|
|
361
|
-
Percentage: t.number,
|
|
362
|
-
SectionMarker: t.heading,
|
|
363
|
-
OpenBracket: t.squareBracket,
|
|
364
|
-
CloseBracket: t.squareBracket,
|
|
365
|
-
OpenParen: t.paren,
|
|
366
|
-
CloseParen: t.paren,
|
|
367
|
-
OpenAngle: t.angleBracket,
|
|
368
|
-
CloseAngle: t.angleBracket,
|
|
369
|
-
Url: t.url,
|
|
370
|
-
QuotedString: t.string,
|
|
371
|
-
Pipe: t.separator,
|
|
372
|
-
Colon: t.separator,
|
|
373
|
-
Plus: t.separator,
|
|
374
|
-
Comma: t.punctuation,
|
|
375
|
-
Dash: t.operator,
|
|
376
|
-
Tilde: t.operator,
|
|
377
|
-
Star: t.operator,
|
|
378
|
-
Question: t.operator,
|
|
379
|
-
Punct: t.punctuation
|
|
380
|
-
});
|
|
381
|
-
|
|
382
|
-
// src/editor/index.ts
|
|
383
|
-
var dgmoParser = parser.configure({
|
|
384
|
-
props: [dgmoHighlighting]
|
|
385
|
-
});
|
|
386
|
-
var dgmoLanguage = LRLanguage.define({
|
|
387
|
-
name: "dgmo",
|
|
388
|
-
parser: dgmoParser
|
|
389
|
-
});
|
|
390
|
-
var dgmoLanguageSupport = new LanguageSupport(dgmoLanguage);
|
|
391
|
-
var dgmoExtension = dgmoLanguageSupport;
|
|
392
|
-
export {
|
|
393
|
-
CHART_TYPES,
|
|
394
|
-
METADATA_KEYS,
|
|
395
|
-
dgmoExtension,
|
|
396
|
-
dgmoHighlighting,
|
|
397
|
-
dgmoLanguage,
|
|
398
|
-
dgmoLanguageSupport,
|
|
399
|
-
dgmoParser
|
|
400
|
-
};
|
|
401
|
-
//# sourceMappingURL=editor.js.map
|