@cardenelabs/dragon 0.34.0 → 0.35.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.
Files changed (127) hide show
  1. package/README.md +39 -720
  2. package/dist/cli.cjs +4529 -0
  3. package/dist/cli.cjs.map +1 -0
  4. package/dist/cli.js +4523 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/export.cjs +3912 -0
  7. package/dist/export.cjs.map +1 -0
  8. package/dist/export.d.cts +36 -0
  9. package/dist/export.d.ts +36 -0
  10. package/dist/export.js +3907 -0
  11. package/dist/export.js.map +1 -0
  12. package/dist/fonts.cjs +7 -0
  13. package/dist/fonts.cjs.map +1 -0
  14. package/dist/fonts.js +4 -0
  15. package/dist/fonts.js.map +1 -0
  16. package/dist/index.cjs +4105 -20356
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +227 -5522
  19. package/dist/index.d.ts +227 -5522
  20. package/dist/index.js +4091 -20283
  21. package/dist/index.js.map +1 -1
  22. package/dist/player.global.js +2 -0
  23. package/dist/schema-BBWfniwH.d.cts +112 -0
  24. package/dist/schema-BBWfniwH.d.ts +112 -0
  25. package/package.json +39 -24
  26. package/src/cli.ts +237 -0
  27. package/src/export/capture.ts +277 -0
  28. package/src/export/fonts.ts +68 -0
  29. package/src/export/html.ts +32 -0
  30. package/src/export/index.ts +146 -0
  31. package/src/field-messages.ts +104 -0
  32. package/src/figure-text.ts +42 -0
  33. package/src/index.ts +30 -283
  34. package/src/layout/architecture.ts +381 -0
  35. package/src/layout/measure.ts +21 -0
  36. package/src/layout/scene.ts +353 -0
  37. package/src/layout/sequence.ts +189 -0
  38. package/src/load-fonts.ts +8 -0
  39. package/src/look/fonts.ts +33 -0
  40. package/src/look/palettes.json +209 -0
  41. package/src/look/values.ts +155 -0
  42. package/src/markdown.ts +35 -0
  43. package/src/messages.ts +122 -0
  44. package/src/parser.ts +342 -310
  45. package/src/player-global.ts +4 -0
  46. package/src/player.ts +271 -0
  47. package/src/printer.ts +76 -0
  48. package/src/render/icons.ts +41 -0
  49. package/src/render/motion.ts +106 -0
  50. package/src/render/parts.ts +279 -0
  51. package/src/render/svg.ts +341 -0
  52. package/src/schema.ts +161 -16
  53. package/src/schemas/diagram.schema.json +150 -0
  54. package/src/schemas/validate-diagram.d.ts +12 -0
  55. package/src/schemas/validate-diagram.js +8 -0
  56. package/src/timeline.ts +166 -0
  57. package/src/tokenize.ts +20 -281
  58. package/src/version.ts +55 -0
  59. package/src/view.ts +16 -0
  60. package/src/words.ts +79 -0
  61. package/examples/quick-start.md +0 -142
  62. package/src/canvas-bounds.ts +0 -52
  63. package/src/color.ts +0 -197
  64. package/src/compile/actor-ids.ts +0 -297
  65. package/src/compile/actor-option-notice.ts +0 -379
  66. package/src/compile/actors.ts +0 -103
  67. package/src/compile/c4.ts +0 -74
  68. package/src/compile/chain.ts +0 -93
  69. package/src/compile/chart-fields.ts +0 -193
  70. package/src/compile/deep-rewrite.ts +0 -30
  71. package/src/compile/derived-source.ts +0 -18
  72. package/src/compile/direction.ts +0 -102
  73. package/src/compile/edge-option-notice.ts +0 -112
  74. package/src/compile/er-relation.ts +0 -200
  75. package/src/compile/flow.ts +0 -54
  76. package/src/compile/flowchart.ts +0 -344
  77. package/src/compile/funnel.ts +0 -87
  78. package/src/compile/gantt.ts +0 -337
  79. package/src/compile/generic.ts +0 -696
  80. package/src/compile/hierarchy.ts +0 -92
  81. package/src/compile/journey.ts +0 -93
  82. package/src/compile/kinds.ts +0 -139
  83. package/src/compile/lanes.ts +0 -138
  84. package/src/compile/metro.ts +0 -271
  85. package/src/compile/mind.ts +0 -393
  86. package/src/compile/node-title.ts +0 -24
  87. package/src/compile/notice.ts +0 -141
  88. package/src/compile/order.ts +0 -57
  89. package/src/compile/parts-lookup.ts +0 -17
  90. package/src/compile/parts.ts +0 -2709
  91. package/src/compile/placement-apply.ts +0 -689
  92. package/src/compile/placement.ts +0 -15
  93. package/src/compile/quadrant.ts +0 -265
  94. package/src/compile/record.ts +0 -75
  95. package/src/compile/row-marks.ts +0 -128
  96. package/src/compile/rows.ts +0 -40
  97. package/src/compile/sequence.ts +0 -305
  98. package/src/compile/slug.ts +0 -37
  99. package/src/compile/stages.ts +0 -247
  100. package/src/compile/subtitle.ts +0 -35
  101. package/src/compile/swimlane-marks.ts +0 -87
  102. package/src/compile/swimlane.ts +0 -82
  103. package/src/compile/timeline.ts +0 -213
  104. package/src/compile/topology.ts +0 -44
  105. package/src/compile/tree.ts +0 -69
  106. package/src/compile/value-chart.ts +0 -337
  107. package/src/compile/values.ts +0 -432
  108. package/src/compile/word-state.ts +0 -82
  109. package/src/compile.ts +0 -3168
  110. package/src/focus.ts +0 -46
  111. package/src/input-size.ts +0 -181
  112. package/src/json-line-map.ts +0 -30
  113. package/src/json-parser.ts +0 -4306
  114. package/src/keywords.ts +0 -417
  115. package/src/near-name.ts +0 -42
  116. package/src/notation-lint.ts +0 -342
  117. package/src/relative-pos.ts +0 -251
  118. package/src/schemas/diagram.json +0 -3088
  119. package/src/types.ts +0 -1009
  120. package/src/v05/index.ts +0 -9
  121. package/src/v05/input-table.generated.ts +0 -138
  122. package/src/v05/parser-types.ts +0 -32
  123. package/src/v05/parser.ts +0 -6668
  124. package/src/v05/readout-table.generated.ts +0 -1088
  125. package/src/v05/removed-syntax.ts +0 -115
  126. package/src/value-syntax.ts +0 -313
  127. package/src/write-position.ts +0 -270
@@ -1,1088 +0,0 @@
1
- // このファイルは自動生成です。 手で編集しないでください。
2
- //
3
- // 出どころ = 描画側 (`@cardenelabs/cdl`) の型定義 `CdlReadout`。
4
- // 作り直す = `node packages/dragon/scripts/gen-readout-table.mjs`
5
- // ずれの検知 = `packages/dragon/test/readout-table-generated.test.ts`
6
-
7
- import type { 図形の定義 } from "./parser-types";
8
-
9
- /** 記法が受ける部品と、その欄 (`CdlReadout` の全種を覆う) */
10
- export const 部品の表: Record<string, 図形の定義> = {
11
- "activity-feed": {
12
- 必須: ["source"],
13
- 欄: {
14
- source: "文字列",
15
- max: "数",
16
- color: "文字列",
17
- label: "文字列",
18
- },
19
- },
20
- "alert-banner": {
21
- 必須: ["source"],
22
- 欄: {
23
- source: "文字列",
24
- label: "文字列",
25
- },
26
- },
27
- "array-bar": {
28
- 必須: ["source", "min", "max"],
29
- 欄: {
30
- source: "文字列",
31
- min: "数",
32
- max: "数",
33
- color: "文字列",
34
- label: "文字列",
35
- },
36
- },
37
- "array-list": {
38
- 必須: ["source"],
39
- 欄: {
40
- source: "文字列",
41
- itemTemplate: "文字列",
42
- max: "数",
43
- label: "文字列",
44
- },
45
- },
46
- "article-preview": {
47
- 必須: ["source"],
48
- 欄: {
49
- source: "文字列",
50
- colorAccent: "文字列",
51
- label: "文字列",
52
- },
53
- },
54
- "attendance-grid": {
55
- 必須: ["source", "membersSource"],
56
- 欄: {
57
- source: "文字列",
58
- membersSource: "文字列",
59
- color: "文字列",
60
- label: "文字列",
61
- },
62
- },
63
- avatar: {
64
- 必須: ["source"],
65
- 欄: {
66
- source: "文字列",
67
- size: "数",
68
- color: "文字列",
69
- label: "文字列",
70
- },
71
- },
72
- badge: {
73
- 必須: ["source"],
74
- 欄: {
75
- source: "文字列",
76
- colorSource: "文字列",
77
- map: "組の並び",
78
- label: "文字列",
79
- },
80
- },
81
- bar: {
82
- 必須: ["source", "min", "max"],
83
- 欄: {
84
- source: "文字列",
85
- min: "数",
86
- max: "数",
87
- color: "文字列",
88
- label: "文字列",
89
- },
90
- },
91
- breadcrumb: {
92
- 必須: ["source"],
93
- 欄: {
94
- source: "文字列",
95
- currentSource: "文字列",
96
- color: "文字列",
97
- label: "文字列",
98
- },
99
- },
100
- "bubble-chart": {
101
- 必須: ["source", "xMin", "xMax", "yMin", "yMax", "rMin", "rMax"],
102
- 欄: {
103
- source: "文字列",
104
- xMin: "数",
105
- xMax: "数",
106
- yMin: "数",
107
- yMax: "数",
108
- rMin: "数",
109
- rMax: "数",
110
- viewW: "数",
111
- viewH: "数",
112
- color: "文字列",
113
- label: "文字列",
114
- },
115
- },
116
- "bullet-chart": {
117
- 必須: ["source", "targetSource", "max"],
118
- 欄: {
119
- source: "文字列",
120
- targetSource: "文字列",
121
- max: "数",
122
- rangeBad: "数",
123
- rangeAvg: "数",
124
- viewW: "数",
125
- viewH: "数",
126
- colorActual: "文字列",
127
- label: "文字列",
128
- },
129
- },
130
- "calendar-heatmap": {
131
- 必須: ["source", "max"],
132
- 欄: {
133
- source: "文字列",
134
- max: "数",
135
- cellSize: "数",
136
- cellGap: "数",
137
- colors: "文字列の並び",
138
- label: "文字列",
139
- },
140
- },
141
- "calendar-month": {
142
- 必須: ["source"],
143
- 欄: {
144
- source: "文字列",
145
- monthName: "文字列",
146
- color: "文字列",
147
- label: "文字列",
148
- },
149
- },
150
- "calendar-week": {
151
- 必須: ["source"],
152
- 欄: {
153
- source: "文字列",
154
- cellSize: "数",
155
- color: "文字列",
156
- label: "文字列",
157
- },
158
- },
159
- candlestick: {
160
- 必須: ["source", "min", "max"],
161
- 欄: {
162
- source: "文字列",
163
- min: "数",
164
- max: "数",
165
- viewW: "数",
166
- viewH: "数",
167
- colorUp: "文字列",
168
- colorDown: "文字列",
169
- label: "文字列",
170
- },
171
- },
172
- "cart-summary": {
173
- 必須: ["source"],
174
- 欄: {
175
- source: "文字列",
176
- currency: "文字列",
177
- colorTotal: "文字列",
178
- label: "文字列",
179
- },
180
- },
181
- "chat-bubble": {
182
- 必須: ["source"],
183
- 欄: {
184
- source: "文字列",
185
- max: "数",
186
- colorSelf: "文字列",
187
- colorOther: "文字列",
188
- label: "文字列",
189
- },
190
- },
191
- checklist: {
192
- 必須: ["source"],
193
- 欄: {
194
- source: "文字列",
195
- color: "文字列",
196
- label: "文字列",
197
- },
198
- },
199
- "chess-board": {
200
- 必須: ["source"],
201
- 欄: {
202
- source: "文字列",
203
- cellSize: "数",
204
- label: "文字列",
205
- },
206
- },
207
- "circular-gauge": {
208
- 必須: ["source", "min", "max"],
209
- 欄: {
210
- source: "文字列",
211
- min: "数",
212
- max: "数",
213
- viewW: "数",
214
- viewH: "数",
215
- color: "文字列",
216
- unit: "文字列",
217
- label: "文字列",
218
- },
219
- },
220
- "commit-list": {
221
- 必須: ["source"],
222
- 欄: {
223
- source: "文字列",
224
- max: "数",
225
- color: "文字列",
226
- label: "文字列",
227
- },
228
- },
229
- "confidence-meter": {
230
- 必須: ["source"],
231
- 欄: {
232
- source: "文字列",
233
- lowThreshold: "数",
234
- highThreshold: "数",
235
- viewW: "数",
236
- viewH: "数",
237
- label: "文字列",
238
- },
239
- },
240
- countup: {
241
- 必須: ["source"],
242
- 欄: {
243
- source: "文字列",
244
- durationMs: "数",
245
- decimals: "数",
246
- unit: "文字列",
247
- label: "文字列",
248
- },
249
- },
250
- "coupon-code": {
251
- 必須: ["source"],
252
- 欄: {
253
- source: "文字列",
254
- colorApplied: "文字列",
255
- label: "文字列",
256
- },
257
- },
258
- delta: {
259
- 必須: ["source"],
260
- 欄: {
261
- source: "文字列",
262
- decimals: "数",
263
- unit: "文字列",
264
- label: "文字列",
265
- },
266
- },
267
- "diff-counter": {
268
- 必須: ["additionsSource", "deletionsSource"],
269
- 欄: {
270
- additionsSource: "文字列",
271
- deletionsSource: "文字列",
272
- colorAdd: "文字列",
273
- colorDel: "文字列",
274
- label: "文字列",
275
- },
276
- },
277
- donut: {
278
- 必須: ["source"],
279
- 欄: {
280
- source: "文字列",
281
- viewW: "数",
282
- viewH: "数",
283
- colors: "文字列の並び",
284
- innerRatio: "数",
285
- label: "文字列",
286
- },
287
- },
288
- "event-log": {
289
- 必須: ["source"],
290
- 欄: {
291
- source: "文字列",
292
- max: "数",
293
- label: "文字列",
294
- },
295
- },
296
- "file-dropzone": {
297
- 必須: ["source"],
298
- 欄: {
299
- source: "文字列",
300
- colorActive: "文字列",
301
- label: "文字列",
302
- },
303
- },
304
- "form-summary": {
305
- 必須: ["source"],
306
- 欄: {
307
- source: "文字列",
308
- color: "文字列",
309
- label: "文字列",
310
- },
311
- },
312
- "fuel-bar": {
313
- 必須: ["source"],
314
- 欄: {
315
- source: "文字列",
316
- segments: "数",
317
- lowThreshold: "数",
318
- highThreshold: "数",
319
- viewW: "数",
320
- viewH: "数",
321
- label: "文字列",
322
- },
323
- },
324
- funnel: {
325
- 必須: ["source"],
326
- 欄: {
327
- source: "文字列",
328
- viewW: "数",
329
- viewH: "数",
330
- colorTop: "文字列",
331
- colorBottom: "文字列",
332
- label: "文字列",
333
- },
334
- },
335
- gantt: {
336
- 必須: ["source", "min", "max"],
337
- 欄: {
338
- source: "文字列",
339
- min: "数",
340
- max: "数",
341
- viewW: "数",
342
- viewH: "数",
343
- color: "文字列",
344
- label: "文字列",
345
- },
346
- },
347
- gauge: {
348
- 必須: ["source", "min", "max"],
349
- 欄: {
350
- source: "文字列",
351
- min: "数",
352
- max: "数",
353
- color: "文字列",
354
- label: "文字列",
355
- },
356
- },
357
- grade: {
358
- 必須: ["source"],
359
- 欄: {
360
- source: "文字列",
361
- max: "数",
362
- label: "文字列",
363
- },
364
- },
365
- "heat-cell": {
366
- 必須: ["source", "min", "max"],
367
- 欄: {
368
- source: "文字列",
369
- min: "数",
370
- max: "数",
371
- colors: "文字列の並び",
372
- label: "文字列",
373
- },
374
- },
375
- "icon-tile": {
376
- 必須: ["source"],
377
- 欄: {
378
- source: "文字列",
379
- color: "文字列",
380
- label: "文字列",
381
- },
382
- },
383
- "kanban-board": {
384
- 必須: ["source"],
385
- 欄: {
386
- source: "文字列",
387
- columnWidth: "数",
388
- max: "数",
389
- label: "文字列",
390
- },
391
- },
392
- "kpi-card": {
393
- 必須: ["source", "historySource", "comparisonSource"],
394
- 欄: {
395
- source: "文字列",
396
- historySource: "文字列",
397
- comparisonSource: "文字列",
398
- unit: "文字列",
399
- colorPos: "文字列",
400
- colorNeg: "文字列",
401
- label: "文字列",
402
- },
403
- },
404
- "kpi-comparison": {
405
- 必須: ["source"],
406
- 欄: {
407
- source: "文字列",
408
- max: "数",
409
- colorA: "文字列",
410
- colorB: "文字列",
411
- label: "文字列",
412
- },
413
- },
414
- "kpi-trend-tile": {
415
- 必須: ["source", "prevSource", "historySource"],
416
- 欄: {
417
- source: "文字列",
418
- prevSource: "文字列",
419
- historySource: "文字列",
420
- unit: "文字列",
421
- colorPos: "文字列",
422
- colorNeg: "文字列",
423
- label: "文字列",
424
- },
425
- },
426
- leaderboard: {
427
- 必須: ["source"],
428
- 欄: {
429
- source: "文字列",
430
- max: "数",
431
- color: "文字列",
432
- label: "文字列",
433
- },
434
- },
435
- "line-chart": {
436
- 必須: ["source", "min", "max"],
437
- 欄: {
438
- source: "文字列",
439
- min: "数",
440
- max: "数",
441
- viewW: "数",
442
- viewH: "数",
443
- color: "文字列",
444
- fill: "真偽",
445
- label: "文字列",
446
- },
447
- },
448
- "log-stream": {
449
- 必須: ["source"],
450
- 欄: {
451
- source: "文字列",
452
- label: "文字列",
453
- },
454
- },
455
- "map-pin": {
456
- 必須: ["source", "xMin", "xMax", "yMin", "yMax"],
457
- 欄: {
458
- source: "文字列",
459
- xMin: "数",
460
- xMax: "数",
461
- yMin: "数",
462
- yMax: "数",
463
- viewW: "数",
464
- viewH: "数",
465
- color: "文字列",
466
- label: "文字列",
467
- },
468
- },
469
- matrix: {
470
- 必須: ["source", "min", "max"],
471
- 欄: {
472
- source: "文字列",
473
- min: "数",
474
- max: "数",
475
- cellSize: "数",
476
- colors: "文字列の並び",
477
- showValue: "真偽",
478
- label: "文字列",
479
- },
480
- },
481
- "media-player": {
482
- 必須: ["source", "durationSource", "playingSource"],
483
- 欄: {
484
- source: "文字列",
485
- durationSource: "文字列",
486
- playingSource: "文字列",
487
- color: "文字列",
488
- viewW: "数",
489
- label: "文字列",
490
- },
491
- },
492
- "metrics-grid": {
493
- 必須: ["source"],
494
- 欄: {
495
- source: "文字列",
496
- color: "文字列",
497
- label: "文字列",
498
- },
499
- },
500
- "mini-map": {
501
- 必須: ["source", "canvasW", "canvasH"],
502
- 欄: {
503
- source: "文字列",
504
- canvasW: "数",
505
- canvasH: "数",
506
- viewW: "数",
507
- viewH: "数",
508
- color: "文字列",
509
- label: "文字列",
510
- },
511
- },
512
- notification: {
513
- 必須: ["kindSource", "titleSource"],
514
- 欄: {
515
- kindSource: "文字列",
516
- titleSource: "文字列",
517
- bodySource: "文字列",
518
- label: "文字列",
519
- },
520
- },
521
- "number-board": {
522
- 必須: ["source"],
523
- 欄: {
524
- source: "文字列",
525
- prefix: "文字列",
526
- suffix: "文字列",
527
- size: "数",
528
- color: "文字列",
529
- caption: "文字列",
530
- label: "文字列",
531
- },
532
- },
533
- "order-status": {
534
- 必須: ["source", "stepsSource"],
535
- 欄: {
536
- source: "文字列",
537
- stepsSource: "文字列",
538
- color: "文字列",
539
- label: "文字列",
540
- },
541
- },
542
- "org-chart-mini": {
543
- 必須: ["source"],
544
- 欄: {
545
- source: "文字列",
546
- color: "文字列",
547
- label: "文字列",
548
- },
549
- },
550
- "otp-input": {
551
- 必須: ["source"],
552
- 欄: {
553
- source: "文字列",
554
- colorFocus: "文字列",
555
- label: "文字列",
556
- },
557
- },
558
- "password-strength": {
559
- 必須: ["source"],
560
- 欄: {
561
- source: "文字列",
562
- colorStrong: "文字列",
563
- colorWeak: "文字列",
564
- label: "文字列",
565
- },
566
- },
567
- "path-progress": {
568
- 必須: ["source", "pathD"],
569
- 欄: {
570
- source: "文字列",
571
- pathD: "文字列",
572
- viewW: "数",
573
- viewH: "数",
574
- strokeWidth: "数",
575
- color: "文字列",
576
- max: "数",
577
- label: "文字列",
578
- },
579
- },
580
- "percent-ring": {
581
- 必須: ["source", "max"],
582
- 欄: {
583
- source: "文字列",
584
- max: "数",
585
- color: "文字列",
586
- label: "文字列",
587
- },
588
- },
589
- "pill-group": {
590
- 必須: ["source"],
591
- 欄: {
592
- source: "文字列",
593
- color: "文字列",
594
- label: "文字列",
595
- },
596
- },
597
- podium: {
598
- 必須: ["source"],
599
- 欄: {
600
- source: "文字列",
601
- viewW: "数",
602
- viewH: "数",
603
- label: "文字列",
604
- },
605
- },
606
- "polar-area": {
607
- 必須: ["source", "max"],
608
- 欄: {
609
- source: "文字列",
610
- max: "数",
611
- viewW: "数",
612
- viewH: "数",
613
- colors: "文字列の並び",
614
- labelSource: "文字列",
615
- label: "文字列",
616
- },
617
- },
618
- "poll-bar": {
619
- 必須: ["source"],
620
- 欄: {
621
- source: "文字列",
622
- color: "文字列",
623
- colorWinner: "文字列",
624
- label: "文字列",
625
- },
626
- },
627
- "price-tag": {
628
- 必須: ["oldSource", "newSource"],
629
- 欄: {
630
- oldSource: "文字列",
631
- newSource: "文字列",
632
- currency: "文字列",
633
- colorNew: "文字列",
634
- colorOld: "文字列",
635
- colorDiscount: "文字列",
636
- label: "文字列",
637
- },
638
- },
639
- "pricing-tier": {
640
- 必須: ["source"],
641
- 欄: {
642
- source: "文字列",
643
- colorAccent: "文字列",
644
- currency: "文字列",
645
- label: "文字列",
646
- },
647
- },
648
- "priority-badge": {
649
- 必須: ["source"],
650
- 欄: {
651
- source: "文字列",
652
- textSource: "文字列",
653
- label: "文字列",
654
- },
655
- },
656
- "progress-group": {
657
- 必須: ["source", "max"],
658
- 欄: {
659
- source: "文字列",
660
- max: "数",
661
- labelSource: "文字列",
662
- color: "文字列",
663
- label: "文字列",
664
- },
665
- },
666
- "quick-poll-emoji": {
667
- 必須: ["source"],
668
- 欄: {
669
- source: "文字列",
670
- colorWinner: "文字列",
671
- label: "文字列",
672
- },
673
- },
674
- radar: {
675
- 必須: ["source", "max"],
676
- 欄: {
677
- source: "文字列",
678
- max: "数",
679
- viewW: "数",
680
- viewH: "数",
681
- color: "文字列",
682
- labelSource: "文字列",
683
- label: "文字列",
684
- },
685
- },
686
- rating: {
687
- 必須: ["source"],
688
- 欄: {
689
- source: "文字列",
690
- count: "数",
691
- color: "文字列",
692
- label: "文字列",
693
- },
694
- },
695
- "rating-thumb": {
696
- 必須: ["source"],
697
- 欄: {
698
- source: "文字列",
699
- colorUp: "文字列",
700
- colorDown: "文字列",
701
- label: "文字列",
702
- },
703
- },
704
- "reaction-bar": {
705
- 必須: ["source"],
706
- 欄: {
707
- source: "文字列",
708
- color: "文字列",
709
- label: "文字列",
710
- },
711
- },
712
- "read-receipt": {
713
- 必須: ["source"],
714
- 欄: {
715
- source: "文字列",
716
- colorRead: "文字列",
717
- colorPending: "文字列",
718
- label: "文字列",
719
- },
720
- },
721
- roadmap: {
722
- 必須: ["source"],
723
- 欄: {
724
- source: "文字列",
725
- viewW: "数",
726
- viewH: "数",
727
- label: "文字列",
728
- },
729
- },
730
- sankey: {
731
- 必須: ["source"],
732
- 欄: {
733
- source: "文字列",
734
- viewW: "数",
735
- viewH: "数",
736
- colors: "文字列の並び",
737
- label: "文字列",
738
- },
739
- },
740
- "search-result": {
741
- 必須: ["source"],
742
- 欄: {
743
- source: "文字列",
744
- max: "数",
745
- color: "文字列",
746
- label: "文字列",
747
- },
748
- },
749
- "sequence-timeline": {
750
- 必須: ["source", "min", "max"],
751
- 欄: {
752
- source: "文字列",
753
- min: "数",
754
- max: "数",
755
- viewW: "数",
756
- viewH: "数",
757
- color: "文字列",
758
- label: "文字列",
759
- },
760
- },
761
- "service-health": {
762
- 必須: ["source"],
763
- 欄: {
764
- source: "文字列",
765
- label: "文字列",
766
- },
767
- },
768
- "share-buttons": {
769
- 必須: ["source"],
770
- 欄: {
771
- source: "文字列",
772
- label: "文字列",
773
- },
774
- },
775
- slope: {
776
- 必須: ["source", "min", "max"],
777
- 欄: {
778
- source: "文字列",
779
- min: "数",
780
- max: "数",
781
- viewW: "数",
782
- viewH: "数",
783
- colorUp: "文字列",
784
- colorDown: "文字列",
785
- label: "文字列",
786
- },
787
- },
788
- "song-queue": {
789
- 必須: ["source"],
790
- 欄: {
791
- source: "文字列",
792
- currentSource: "文字列",
793
- max: "数",
794
- color: "文字列",
795
- label: "文字列",
796
- },
797
- },
798
- sparkline: {
799
- 必須: ["source"],
800
- 欄: {
801
- source: "文字列",
802
- history: "数",
803
- color: "文字列",
804
- label: "文字列",
805
- },
806
- },
807
- spinner: {
808
- 必須: ["source", "textSource"],
809
- 欄: {
810
- source: "文字列",
811
- textSource: "文字列",
812
- color: "文字列",
813
- label: "文字列",
814
- },
815
- },
816
- "stacked-bar": {
817
- 必須: ["sourceA", "sourceB", "min", "max"],
818
- 欄: {
819
- sourceA: "文字列",
820
- sourceB: "文字列",
821
- min: "数",
822
- max: "数",
823
- colorA: "文字列",
824
- colorB: "文字列",
825
- label: "文字列",
826
- },
827
- },
828
- stat: {
829
- 必須: ["source"],
830
- 欄: {
831
- source: "文字列",
832
- caption: "文字列",
833
- unit: "文字列",
834
- label: "文字列",
835
- },
836
- },
837
- "status-dot": {
838
- 必須: ["source", "map"],
839
- 欄: {
840
- source: "文字列",
841
- map: "組の並び",
842
- label: "文字列",
843
- },
844
- },
845
- "status-timeline": {
846
- 必須: ["source"],
847
- 欄: {
848
- source: "文字列",
849
- colorMap: "組の並び",
850
- max: "数",
851
- label: "文字列",
852
- },
853
- },
854
- "step-indicator": {
855
- 必須: ["source", "stepsSource"],
856
- 欄: {
857
- source: "文字列",
858
- stepsSource: "文字列",
859
- viewW: "数",
860
- viewH: "数",
861
- colorActive: "文字列",
862
- colorPending: "文字列",
863
- label: "文字列",
864
- },
865
- },
866
- "step-progress": {
867
- 必須: ["source", "stepsSource"],
868
- 欄: {
869
- source: "文字列",
870
- stepsSource: "文字列",
871
- color: "文字列",
872
- label: "文字列",
873
- },
874
- },
875
- stopwatch: {
876
- 必須: ["source"],
877
- 欄: {
878
- source: "文字列",
879
- runningSource: "文字列",
880
- size: "数",
881
- color: "文字列",
882
- label: "文字列",
883
- },
884
- },
885
- "tag-cloud": {
886
- 必須: ["source"],
887
- 欄: {
888
- source: "文字列",
889
- minSize: "数",
890
- maxSize: "数",
891
- colors: "文字列の並び",
892
- label: "文字列",
893
- },
894
- },
895
- terminal: {
896
- 必須: ["source"],
897
- 欄: {
898
- source: "文字列",
899
- max: "数",
900
- color: "文字列",
901
- label: "文字列",
902
- },
903
- },
904
- thermometer: {
905
- 必須: ["source", "min", "max"],
906
- 欄: {
907
- source: "文字列",
908
- min: "数",
909
- max: "数",
910
- viewW: "数",
911
- viewH: "数",
912
- color: "文字列",
913
- unit: "文字列",
914
- label: "文字列",
915
- },
916
- },
917
- "thread-summary": {
918
- 必須: ["source"],
919
- 欄: {
920
- source: "文字列",
921
- colorUnread: "文字列",
922
- label: "文字列",
923
- },
924
- },
925
- "timeline-vertical": {
926
- 必須: ["source"],
927
- 欄: {
928
- source: "文字列",
929
- color: "文字列",
930
- max: "数",
931
- label: "文字列",
932
- },
933
- },
934
- "timezone-clock": {
935
- 必須: ["source"],
936
- 欄: {
937
- source: "文字列",
938
- color: "文字列",
939
- label: "文字列",
940
- },
941
- },
942
- "toc-nav": {
943
- 必須: ["source"],
944
- 欄: {
945
- source: "文字列",
946
- colorActive: "文字列",
947
- label: "文字列",
948
- },
949
- },
950
- "token-list": {
951
- 必須: ["source"],
952
- 欄: {
953
- source: "文字列",
954
- colorUp: "文字列",
955
- colorDown: "文字列",
956
- label: "文字列",
957
- },
958
- },
959
- "traffic-light": {
960
- 必須: ["source"],
961
- 欄: {
962
- source: "文字列",
963
- viewW: "数",
964
- viewH: "数",
965
- label: "文字列",
966
- },
967
- },
968
- treemap: {
969
- 必須: ["source"],
970
- 欄: {
971
- source: "文字列",
972
- viewW: "数",
973
- viewH: "数",
974
- colors: "文字列の並び",
975
- label: "文字列",
976
- },
977
- },
978
- typewriter: {
979
- 必須: ["source"],
980
- 欄: {
981
- source: "文字列",
982
- charMs: "数",
983
- label: "文字列",
984
- },
985
- },
986
- "user-presence": {
987
- 必須: ["source"],
988
- 欄: {
989
- source: "文字列",
990
- max: "数",
991
- label: "文字列",
992
- },
993
- },
994
- "user-stack": {
995
- 必須: ["source"],
996
- 欄: {
997
- source: "文字列",
998
- max: "数",
999
- size: "数",
1000
- label: "文字列",
1001
- },
1002
- },
1003
- venn: {
1004
- 必須: ["source"],
1005
- 欄: {
1006
- source: "文字列",
1007
- viewW: "数",
1008
- viewH: "数",
1009
- colorA: "文字列",
1010
- colorB: "文字列",
1011
- labelA: "文字列",
1012
- labelB: "文字列",
1013
- label: "文字列",
1014
- },
1015
- },
1016
- "video-card": {
1017
- 必須: ["source"],
1018
- 欄: {
1019
- source: "文字列",
1020
- max: "数",
1021
- color: "文字列",
1022
- label: "文字列",
1023
- },
1024
- },
1025
- "voice-message": {
1026
- 必須: ["source"],
1027
- 欄: {
1028
- source: "文字列",
1029
- progressSource: "文字列",
1030
- duration: "数",
1031
- colorPlay: "文字列",
1032
- colorBar: "文字列",
1033
- label: "文字列",
1034
- },
1035
- },
1036
- waterfall: {
1037
- 必須: ["source", "min", "max"],
1038
- 欄: {
1039
- source: "文字列",
1040
- min: "数",
1041
- max: "数",
1042
- viewW: "数",
1043
- viewH: "数",
1044
- colorPos: "文字列",
1045
- colorNeg: "文字列",
1046
- label: "文字列",
1047
- },
1048
- },
1049
- "weather-forecast": {
1050
- 必須: ["source"],
1051
- 欄: {
1052
- source: "文字列",
1053
- label: "文字列",
1054
- },
1055
- },
1056
- };
1057
-
1058
- /** 組の並びを取る欄の、1 組ごとの欄 */
1059
- export const 部品の組の表: Record<string, Record<string, 図形の定義>> = {
1060
- badge: {
1061
- map: {
1062
- 必須: ["value", "color"],
1063
- 欄: {
1064
- value: "文字列",
1065
- color: "文字列",
1066
- },
1067
- },
1068
- },
1069
- "status-dot": {
1070
- map: {
1071
- 必須: ["value", "color"],
1072
- 欄: {
1073
- value: "文字列",
1074
- color: "文字列",
1075
- label: "文字列",
1076
- },
1077
- },
1078
- },
1079
- "status-timeline": {
1080
- colorMap: {
1081
- 必須: ["status", "color"],
1082
- 欄: {
1083
- status: "文字列",
1084
- color: "文字列",
1085
- },
1086
- },
1087
- },
1088
- };