ds-markdown 0.1.8 → 0.1.9-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,6 +108,1520 @@ declare const MarkdownCMD: React$1.ForwardRefExoticComponent<MarkdownCMDProps &
108
108
 
109
109
  declare const _default: React__default.NamedExoticComponent<MarkdownProps & React__default.RefAttributes<MarkdownBaseRef>>;
110
110
 
111
+ declare namespace Mermaid {
112
+ /**
113
+ * The font size to use
114
+ */
115
+ type CSSFontSize = string | number;
116
+ /**
117
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
118
+ * via the `definition` "NodeLabel".
119
+ */
120
+ interface NodeLabel {
121
+ width?: number;
122
+ height?: number;
123
+ x?: number;
124
+ y?: number;
125
+ }
126
+ interface MermaidConfig {
127
+ /**
128
+ * Theme, the CSS style sheet.
129
+ * You may also use `themeCSS` to override this value.
130
+ *
131
+ */
132
+ theme?: string | 'default' | 'forest' | 'dark' | 'neutral' | 'null';
133
+ themeVariables?: any;
134
+ themeCSS?: string;
135
+ /**
136
+ * The maximum allowed size of the users text diagram
137
+ */
138
+ maxTextSize?: number;
139
+ /**
140
+ * Defines the maximum number of edges that can be drawn in a graph.
141
+ *
142
+ */
143
+ maxEdges?: number;
144
+ darkMode?: boolean;
145
+ htmlLabels?: boolean;
146
+ /**
147
+ * Specifies the font to be used in the rendered diagrams.
148
+ * Can be any possible CSS `font-family`.
149
+ * See https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
150
+ *
151
+ */
152
+ fontFamily?: string;
153
+ altFontFamily?: string;
154
+ /**
155
+ * This option decides the amount of logging to be used by mermaid.
156
+ *
157
+ */
158
+ logLevel?: number | string | 0 | 2 | 1 | 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal' | 3 | 4 | 5 | undefined;
159
+ /**
160
+ * Level of trust for parsed diagram
161
+ */
162
+ securityLevel?: string | 'strict' | 'loose' | 'antiscript' | 'sandbox' | undefined;
163
+ /**
164
+ * Dictates whether mermaid starts on Page load
165
+ */
166
+ startOnLoad?: boolean;
167
+ /**
168
+ * Controls whether or arrow markers in html code are absolute paths or anchors.
169
+ * This matters if you are using base tag settings.
170
+ *
171
+ */
172
+ arrowMarkerAbsolute?: boolean;
173
+ /**
174
+ * This option controls which `currentConfig` keys are considered secure and
175
+ * can only be changed via call to `mermaidAPI.initialize`.
176
+ * Calls to `mermaidAPI.reinitialize` cannot make changes to the secure keys
177
+ * in the current `currentConfig`.
178
+ *
179
+ * This prevents malicious graph directives from overriding a site's default security.
180
+ *
181
+ */
182
+ secure?: string[];
183
+ /**
184
+ * This option specifies if Mermaid can expect the dependent to include KaTeX stylesheets for browsers
185
+ * without their own MathML implementation. If this option is disabled and MathML is not supported, the math
186
+ * equations are replaced with a warning. If this option is enabled and MathML is not supported, Mermaid will
187
+ * fall back to legacy rendering for KaTeX.
188
+ *
189
+ */
190
+ legacyMathML?: boolean;
191
+ /**
192
+ * This option controls if the generated ids of nodes in the SVG are
193
+ * generated randomly or based on a seed.
194
+ * If set to `false`, the IDs are generated based on the current date and
195
+ * thus are not deterministic. This is the default behavior.
196
+ *
197
+ * This matters if your files are checked into source control e.g. git and
198
+ * should not change unless content is changed.
199
+ *
200
+ */
201
+ deterministicIds?: boolean;
202
+ /**
203
+ * This option is the optional seed for deterministic ids.
204
+ * If set to `undefined` but deterministicIds is `true`, a simple number iterator is used.
205
+ * You can set this attribute to base the seed on a static string.
206
+ *
207
+ */
208
+ deterministicIDSeed?: string;
209
+ flowchart?: FlowchartDiagramConfig;
210
+ sequence?: SequenceDiagramConfig;
211
+ gantt?: GanttDiagramConfig;
212
+ journey?: JourneyDiagramConfig;
213
+ timeline?: TimelineDiagramConfig;
214
+ class?: ClassDiagramConfig;
215
+ state?: StateDiagramConfig;
216
+ er?: ErDiagramConfig;
217
+ pie?: PieDiagramConfig;
218
+ quadrantChart?: QuadrantChartConfig;
219
+ xyChart?: XYChartConfig;
220
+ requirement?: RequirementDiagramConfig;
221
+ mindmap?: MindmapDiagramConfig;
222
+ gitGraph?: GitGraphDiagramConfig;
223
+ c4?: C4DiagramConfig;
224
+ sankey?: SankeyDiagramConfig;
225
+ block?: BlockDiagramConfig;
226
+ dompurifyConfig?: DOMPurifyConfiguration;
227
+ wrap?: boolean;
228
+ fontSize?: number;
229
+ }
230
+ /**
231
+ * Configuration options to pass to the `dompurify` library.
232
+ */
233
+ type DOMPurifyConfiguration = any;
234
+ /**
235
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
236
+ * via the `definition` "BaseDiagramConfig".
237
+ */
238
+ interface BaseDiagramConfig {
239
+ useWidth?: number;
240
+ /**
241
+ * When this flag is set to `true`, the height and width is set to 100%
242
+ * and is then scaled with the available space.
243
+ * If set to `false`, the absolute space required is used.
244
+ *
245
+ */
246
+ useMaxWidth?: boolean;
247
+ }
248
+ /**
249
+ * The object containing configurations specific for block diagrams.
250
+ *
251
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
252
+ * via the `definition` "BlockDiagramConfig".
253
+ */
254
+ interface BlockDiagramConfig extends BaseDiagramConfig {
255
+ padding?: number;
256
+ }
257
+ /**
258
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
259
+ * via the `definition` "GitGraphDiagramConfig".
260
+ */
261
+ interface GitGraphDiagramConfig extends BaseDiagramConfig {
262
+ /**
263
+ * Margin top for the text over the diagram
264
+ */
265
+ titleTopMargin?: number;
266
+ diagramPadding?: number;
267
+ nodeLabel?: NodeLabel;
268
+ mainBranchName?: string;
269
+ mainBranchOrder?: number;
270
+ showCommitLabel?: boolean;
271
+ showBranches?: boolean;
272
+ rotateCommitLabel?: boolean;
273
+ parallelCommits?: boolean;
274
+ /**
275
+ * Controls whether or arrow markers in html code are absolute paths or anchors.
276
+ * This matters if you are using base tag settings.
277
+ *
278
+ */
279
+ arrowMarkerAbsolute?: boolean;
280
+ }
281
+ /**
282
+ * The object containing configurations specific for req diagrams
283
+ *
284
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
285
+ * via the `definition` "RequirementDiagramConfig".
286
+ */
287
+ interface RequirementDiagramConfig extends BaseDiagramConfig {
288
+ rect_fill?: string;
289
+ text_color?: string;
290
+ rect_border_size?: string;
291
+ rect_border_color?: string;
292
+ rect_min_width?: number;
293
+ rect_min_height?: number;
294
+ fontSize?: number;
295
+ rect_padding?: number;
296
+ line_height?: number;
297
+ }
298
+ /**
299
+ * The object containing configurations specific for mindmap diagrams
300
+ *
301
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
302
+ * via the `definition` "MindmapDiagramConfig".
303
+ */
304
+ interface MindmapDiagramConfig extends BaseDiagramConfig {
305
+ padding?: number;
306
+ maxNodeWidth?: number;
307
+ }
308
+ /**
309
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
310
+ * via the `definition` "PieDiagramConfig".
311
+ */
312
+ interface PieDiagramConfig extends BaseDiagramConfig {
313
+ /**
314
+ * Axial position of slice's label from zero at the center to 1 at the outside edges.
315
+ *
316
+ */
317
+ textPosition?: number;
318
+ }
319
+ /**
320
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
321
+ * via the `definition` "QuadrantChartConfig".
322
+ */
323
+ interface QuadrantChartConfig extends BaseDiagramConfig {
324
+ /**
325
+ * Width of the chart
326
+ */
327
+ chartWidth?: number;
328
+ /**
329
+ * Height of the chart
330
+ */
331
+ chartHeight?: number;
332
+ /**
333
+ * Chart title top and bottom padding
334
+ */
335
+ titleFontSize?: number;
336
+ /**
337
+ * Padding around the quadrant square
338
+ */
339
+ titlePadding?: number;
340
+ /**
341
+ * quadrant title padding from top if the quadrant is rendered on top
342
+ */
343
+ quadrantPadding?: number;
344
+ /**
345
+ * Padding around x-axis labels
346
+ */
347
+ xAxisLabelPadding?: number;
348
+ /**
349
+ * Padding around y-axis labels
350
+ */
351
+ yAxisLabelPadding?: number;
352
+ /**
353
+ * x-axis label font size
354
+ */
355
+ xAxisLabelFontSize?: number;
356
+ /**
357
+ * y-axis label font size
358
+ */
359
+ yAxisLabelFontSize?: number;
360
+ /**
361
+ * quadrant title font size
362
+ */
363
+ quadrantLabelFontSize?: number;
364
+ /**
365
+ * quadrant title padding from top if the quadrant is rendered on top
366
+ */
367
+ quadrantTextTopPadding?: number;
368
+ /**
369
+ * padding between point and point label
370
+ */
371
+ pointTextPadding?: number;
372
+ /**
373
+ * point title font size
374
+ */
375
+ pointLabelFontSize?: number;
376
+ /**
377
+ * radius of the point to be drawn
378
+ */
379
+ pointRadius?: number;
380
+ /**
381
+ * position of x-axis labels
382
+ */
383
+ xAxisPosition?: 'top' | 'bottom';
384
+ /**
385
+ * position of y-axis labels
386
+ */
387
+ yAxisPosition?: 'left' | 'right';
388
+ /**
389
+ * stroke width of edges of the box that are inside the quadrant
390
+ */
391
+ quadrantInternalBorderStrokeWidth?: number;
392
+ /**
393
+ * stroke width of edges of the box that are outside the quadrant
394
+ */
395
+ quadrantExternalBorderStrokeWidth?: number;
396
+ }
397
+ /**
398
+ * This object contains configuration for XYChart axis config
399
+ *
400
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
401
+ * via the `definition` "XYChartAxisConfig".
402
+ */
403
+ interface XYChartAxisConfig {
404
+ /**
405
+ * Should show the axis labels (tick text)
406
+ */
407
+ showLabel?: boolean;
408
+ /**
409
+ * font size of the axis labels (tick text)
410
+ */
411
+ labelFontSize?: number;
412
+ /**
413
+ * top and bottom space from axis label (tick text)
414
+ */
415
+ labelPadding?: number;
416
+ /**
417
+ * Should show the axis title
418
+ */
419
+ showTitle?: boolean;
420
+ /**
421
+ * font size of the axis title
422
+ */
423
+ titleFontSize?: number;
424
+ /**
425
+ * top and bottom space from axis title
426
+ */
427
+ titlePadding?: number;
428
+ /**
429
+ * Should show the axis tick lines
430
+ */
431
+ showTick?: boolean;
432
+ /**
433
+ * length of the axis tick lines
434
+ */
435
+ tickLength?: number;
436
+ /**
437
+ * width of the axis tick lines
438
+ */
439
+ tickWidth?: number;
440
+ /**
441
+ * Show line across the axis
442
+ */
443
+ showAxisLine?: boolean;
444
+ /**
445
+ * Width of the axis line
446
+ */
447
+ axisLineWidth?: number;
448
+ }
449
+ /**
450
+ * This object contains configuration specific to XYCharts
451
+ *
452
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
453
+ * via the `definition` "XYChartConfig".
454
+ */
455
+ interface XYChartConfig extends BaseDiagramConfig {
456
+ /**
457
+ * width of the chart
458
+ */
459
+ width?: number;
460
+ /**
461
+ * height of the chart
462
+ */
463
+ height?: number;
464
+ /**
465
+ * Font size of the chart title
466
+ */
467
+ titleFontSize?: number;
468
+ /**
469
+ * Top and bottom space from the chart title
470
+ */
471
+ titlePadding?: number;
472
+ /**
473
+ * Should show the chart title
474
+ */
475
+ showTitle?: boolean;
476
+ xAxis?: XYChartAxisConfig1;
477
+ yAxis?: XYChartAxisConfig2;
478
+ /**
479
+ * How to plot will be drawn horizontal or vertical
480
+ */
481
+ chartOrientation?: 'vertical' | 'horizontal';
482
+ /**
483
+ * Minimum percent of space plots of the chart will take
484
+ */
485
+ plotReservedSpacePercent?: number;
486
+ }
487
+ /**
488
+ * This object contains configuration for XYChart axis config
489
+ */
490
+ interface XYChartAxisConfig1 {
491
+ /**
492
+ * Should show the axis labels (tick text)
493
+ */
494
+ showLabel?: boolean;
495
+ /**
496
+ * font size of the axis labels (tick text)
497
+ */
498
+ labelFontSize?: number;
499
+ /**
500
+ * top and bottom space from axis label (tick text)
501
+ */
502
+ labelPadding?: number;
503
+ /**
504
+ * Should show the axis title
505
+ */
506
+ showTitle?: boolean;
507
+ /**
508
+ * font size of the axis title
509
+ */
510
+ titleFontSize?: number;
511
+ /**
512
+ * top and bottom space from axis title
513
+ */
514
+ titlePadding?: number;
515
+ /**
516
+ * Should show the axis tick lines
517
+ */
518
+ showTick?: boolean;
519
+ /**
520
+ * length of the axis tick lines
521
+ */
522
+ tickLength?: number;
523
+ /**
524
+ * width of the axis tick lines
525
+ */
526
+ tickWidth?: number;
527
+ /**
528
+ * Show line across the axis
529
+ */
530
+ showAxisLine?: boolean;
531
+ /**
532
+ * Width of the axis line
533
+ */
534
+ axisLineWidth?: number;
535
+ }
536
+ /**
537
+ * This object contains configuration for XYChart axis config
538
+ */
539
+ interface XYChartAxisConfig2 {
540
+ /**
541
+ * Should show the axis labels (tick text)
542
+ */
543
+ showLabel?: boolean;
544
+ /**
545
+ * font size of the axis labels (tick text)
546
+ */
547
+ labelFontSize?: number;
548
+ /**
549
+ * top and bottom space from axis label (tick text)
550
+ */
551
+ labelPadding?: number;
552
+ /**
553
+ * Should show the axis title
554
+ */
555
+ showTitle?: boolean;
556
+ /**
557
+ * font size of the axis title
558
+ */
559
+ titleFontSize?: number;
560
+ /**
561
+ * top and bottom space from axis title
562
+ */
563
+ titlePadding?: number;
564
+ /**
565
+ * Should show the axis tick lines
566
+ */
567
+ showTick?: boolean;
568
+ /**
569
+ * length of the axis tick lines
570
+ */
571
+ tickLength?: number;
572
+ /**
573
+ * width of the axis tick lines
574
+ */
575
+ tickWidth?: number;
576
+ /**
577
+ * Show line across the axis
578
+ */
579
+ showAxisLine?: boolean;
580
+ /**
581
+ * Width of the axis line
582
+ */
583
+ axisLineWidth?: number;
584
+ }
585
+ /**
586
+ * The object containing configurations specific for entity relationship diagrams
587
+ *
588
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
589
+ * via the `definition` "ErDiagramConfig".
590
+ */
591
+ interface ErDiagramConfig extends BaseDiagramConfig {
592
+ /**
593
+ * Margin top for the text over the diagram
594
+ */
595
+ titleTopMargin?: number;
596
+ /**
597
+ * The amount of padding around the diagram as a whole so that embedded
598
+ * diagrams have margins, expressed in pixels.
599
+ *
600
+ */
601
+ diagramPadding?: number;
602
+ /**
603
+ * Directional bias for layout of entities
604
+ */
605
+ layoutDirection?: string | 'TB' | 'BT' | 'LR' | 'RL';
606
+ /**
607
+ * The minimum width of an entity box. Expressed in pixels.
608
+ */
609
+ minEntityWidth?: number;
610
+ /**
611
+ * The minimum height of an entity box. Expressed in pixels.
612
+ */
613
+ minEntityHeight?: number;
614
+ /**
615
+ * The minimum internal padding between text in an entity box and the enclosing box borders.
616
+ * Expressed in pixels.
617
+ *
618
+ */
619
+ entityPadding?: number;
620
+ /**
621
+ * Stroke color of box edges and lines.
622
+ */
623
+ stroke?: string;
624
+ /**
625
+ * Fill color of entity boxes
626
+ */
627
+ fill?: string;
628
+ /**
629
+ * Font size (expressed as an integer representing a number of pixels)
630
+ */
631
+ fontSize?: number;
632
+ }
633
+ /**
634
+ * The object containing configurations specific for entity relationship diagrams
635
+ *
636
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
637
+ * via the `definition` "StateDiagramConfig".
638
+ */
639
+ interface StateDiagramConfig extends BaseDiagramConfig {
640
+ /**
641
+ * Margin top for the text over the diagram
642
+ */
643
+ titleTopMargin?: number;
644
+ arrowMarkerAbsolute?: boolean;
645
+ dividerMargin?: number;
646
+ sizeUnit?: number;
647
+ padding?: number;
648
+ textHeight?: number;
649
+ titleShift?: number;
650
+ noteMargin?: number;
651
+ forkWidth?: number;
652
+ forkHeight?: number;
653
+ miniPadding?: number;
654
+ /**
655
+ * Font size factor, this is used to guess the width of the edges labels
656
+ * before rendering by dagre layout.
657
+ * This might need updating if/when switching font
658
+ *
659
+ */
660
+ fontSizeFactor?: number;
661
+ fontSize?: number;
662
+ labelHeight?: number;
663
+ edgeLengthFactor?: string;
664
+ compositTitleSize?: number;
665
+ radius?: number;
666
+ /**
667
+ * Decides which rendering engine that is to be used for the rendering.
668
+ *
669
+ */
670
+ defaultRenderer?: string | 'dagre-d3' | 'dagre-wrapper' | 'elk';
671
+ }
672
+ /**
673
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
674
+ * via the `definition` "ClassDiagramConfig".
675
+ */
676
+ interface ClassDiagramConfig extends BaseDiagramConfig {
677
+ /**
678
+ * Margin top for the text over the diagram
679
+ */
680
+ titleTopMargin?: number;
681
+ /**
682
+ * Controls whether or arrow markers in html code are absolute paths or anchors.
683
+ * This matters if you are using base tag settings.
684
+ *
685
+ */
686
+ arrowMarkerAbsolute?: boolean;
687
+ dividerMargin?: number;
688
+ padding?: number;
689
+ textHeight?: number;
690
+ /**
691
+ * Decides which rendering engine that is to be used for the rendering.
692
+ *
693
+ */
694
+ defaultRenderer?: string | 'dagre-d3' | 'dagre-wrapper' | 'elk';
695
+ nodeSpacing?: number;
696
+ rankSpacing?: number;
697
+ /**
698
+ * The amount of padding around the diagram as a whole so that embedded
699
+ * diagrams have margins, expressed in pixels.
700
+ *
701
+ */
702
+ diagramPadding?: number;
703
+ htmlLabels?: boolean;
704
+ }
705
+ /**
706
+ * The object containing configurations specific for journey diagrams
707
+ *
708
+ *
709
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
710
+ * via the `definition` "JourneyDiagramConfig".
711
+ */
712
+ interface JourneyDiagramConfig extends BaseDiagramConfig {
713
+ /**
714
+ * Margin to the right and left of the c4 diagram, must be a positive value.
715
+ *
716
+ */
717
+ diagramMarginX?: number;
718
+ /**
719
+ * Margin to the over and under the c4 diagram, must be a positive value.
720
+ *
721
+ */
722
+ diagramMarginY?: number;
723
+ /**
724
+ * Margin between actors
725
+ */
726
+ leftMargin?: number;
727
+ /**
728
+ * Width of actor boxes
729
+ */
730
+ width?: number;
731
+ /**
732
+ * Height of actor boxes
733
+ */
734
+ height?: number;
735
+ /**
736
+ * Margin around loop boxes
737
+ */
738
+ boxMargin?: number;
739
+ /**
740
+ * Margin around the text in loop/alt/opt boxes
741
+ */
742
+ boxTextMargin?: number;
743
+ /**
744
+ * Margin around notes
745
+ */
746
+ noteMargin?: number;
747
+ /**
748
+ * Space between messages.
749
+ */
750
+ messageMargin?: number;
751
+ /**
752
+ * Multiline message alignment
753
+ */
754
+ messageAlign?: string | 'left' | 'center' | 'right';
755
+ /**
756
+ * Prolongs the edge of the diagram downwards.
757
+ *
758
+ * Depending on css styling this might need adjustment.
759
+ *
760
+ */
761
+ bottomMarginAdj?: number;
762
+ /**
763
+ * Curved Arrows become Right Angles
764
+ *
765
+ * This will display arrows that start and begin at the same node as
766
+ * right angles, rather than as curves.
767
+ *
768
+ */
769
+ rightAngles?: boolean;
770
+ taskFontSize?: string | number;
771
+ taskFontFamily?: string;
772
+ taskMargin?: number;
773
+ /**
774
+ * Width of activation box
775
+ */
776
+ activationWidth?: number;
777
+ /**
778
+ * text placement as: tspan | fo | old only text as before
779
+ *
780
+ */
781
+ textPlacement?: string;
782
+ actorColours?: string[];
783
+ sectionFills?: string[];
784
+ sectionColours?: string[];
785
+ }
786
+ /**
787
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
788
+ * via the `definition` "TimelineDiagramConfig".
789
+ */
790
+ interface TimelineDiagramConfig extends BaseDiagramConfig {
791
+ /**
792
+ * Margin to the right and left of the c4 diagram, must be a positive value.
793
+ *
794
+ */
795
+ diagramMarginX?: number;
796
+ /**
797
+ * Margin to the over and under the c4 diagram, must be a positive value.
798
+ *
799
+ */
800
+ diagramMarginY?: number;
801
+ /**
802
+ * Margin between actors
803
+ */
804
+ leftMargin?: number;
805
+ /**
806
+ * Width of actor boxes
807
+ */
808
+ width?: number;
809
+ /**
810
+ * Height of actor boxes
811
+ */
812
+ height?: number;
813
+ padding?: number;
814
+ /**
815
+ * Margin around loop boxes
816
+ */
817
+ boxMargin?: number;
818
+ /**
819
+ * Margin around the text in loop/alt/opt boxes
820
+ */
821
+ boxTextMargin?: number;
822
+ /**
823
+ * Margin around notes
824
+ */
825
+ noteMargin?: number;
826
+ /**
827
+ * Space between messages.
828
+ */
829
+ messageMargin?: number;
830
+ /**
831
+ * Multiline message alignment
832
+ */
833
+ messageAlign?: string | 'left' | 'center' | 'right';
834
+ /**
835
+ * Prolongs the edge of the diagram downwards.
836
+ *
837
+ * Depending on css styling this might need adjustment.
838
+ *
839
+ */
840
+ bottomMarginAdj?: number;
841
+ /**
842
+ * Curved Arrows become Right Angles
843
+ *
844
+ * This will display arrows that start and begin at the same node as
845
+ * right angles, rather than as curves.
846
+ *
847
+ */
848
+ rightAngles?: boolean;
849
+ taskFontSize?: string | number;
850
+ taskFontFamily?: string;
851
+ taskMargin?: number;
852
+ /**
853
+ * Width of activation box
854
+ */
855
+ activationWidth?: number;
856
+ /**
857
+ * text placement as: tspan | fo | old only text as before
858
+ *
859
+ */
860
+ textPlacement?: string;
861
+ actorColours?: string[];
862
+ sectionFills?: string[];
863
+ sectionColours?: string[];
864
+ disableMulticolor?: boolean;
865
+ }
866
+ /**
867
+ * The object containing configurations specific for gantt diagrams
868
+ *
869
+ *
870
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
871
+ * via the `definition` "GanttDiagramConfig".
872
+ */
873
+ interface GanttDiagramConfig extends BaseDiagramConfig {
874
+ /**
875
+ * Margin top for the text over the diagram
876
+ */
877
+ titleTopMargin?: number;
878
+ /**
879
+ * The height of the bars in the graph
880
+ */
881
+ barHeight?: number;
882
+ /**
883
+ * The margin between the different activities in the gantt diagram
884
+ */
885
+ barGap?: number;
886
+ /**
887
+ * Margin between title and gantt diagram and between axis and gantt diagram.
888
+ *
889
+ */
890
+ topPadding?: number;
891
+ /**
892
+ * The space allocated for the section name to the right of the activities
893
+ *
894
+ */
895
+ rightPadding?: number;
896
+ /**
897
+ * The space allocated for the section name to the left of the activities
898
+ *
899
+ */
900
+ leftPadding?: number;
901
+ /**
902
+ * Vertical starting position of the grid lines
903
+ */
904
+ gridLineStartPadding?: number;
905
+ /**
906
+ * Font size
907
+ */
908
+ fontSize?: number;
909
+ /**
910
+ * Font size for sections
911
+ */
912
+ sectionFontSize?: string | number;
913
+ /**
914
+ * The number of alternating section styles
915
+ */
916
+ numberSectionStyles?: number;
917
+ /**
918
+ * Date/time format of the axis
919
+ *
920
+ * This might need adjustment to match your locale and preferences.
921
+ *
922
+ */
923
+ axisFormat?: string;
924
+ /**
925
+ * axis ticks
926
+ *
927
+ * Pattern is:
928
+ *
929
+ * ```javascript
930
+ * /^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/
931
+ * ```
932
+ *
933
+ */
934
+ tickInterval?: string;
935
+ /**
936
+ * When this flag is set, date labels will be added to the top of the chart
937
+ *
938
+ */
939
+ topAxis?: boolean;
940
+ /**
941
+ * Controls the display mode.
942
+ *
943
+ */
944
+ displayMode?: string | 'compact';
945
+ /**
946
+ * On which day a week-based interval should start
947
+ *
948
+ */
949
+ weekday?: 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
950
+ }
951
+ /**
952
+ * The object containing configurations specific for sequence diagrams
953
+ *
954
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
955
+ * via the `definition` "SequenceDiagramConfig".
956
+ */
957
+ interface SequenceDiagramConfig extends BaseDiagramConfig {
958
+ arrowMarkerAbsolute?: boolean;
959
+ hideUnusedParticipants?: boolean;
960
+ /**
961
+ * Width of the activation rect
962
+ */
963
+ activationWidth?: number;
964
+ /**
965
+ * Margin to the right and left of the sequence diagram
966
+ */
967
+ diagramMarginX?: number;
968
+ /**
969
+ * Margin to the over and under the sequence diagram
970
+ */
971
+ diagramMarginY?: number;
972
+ /**
973
+ * Margin between actors
974
+ */
975
+ actorMargin?: number;
976
+ /**
977
+ * Width of actor boxes
978
+ */
979
+ width?: number;
980
+ /**
981
+ * Height of actor boxes
982
+ */
983
+ height?: number;
984
+ /**
985
+ * Margin around loop boxes
986
+ */
987
+ boxMargin?: number;
988
+ /**
989
+ * Margin around the text in loop/alt/opt boxes
990
+ */
991
+ boxTextMargin?: number;
992
+ /**
993
+ * Margin around notes
994
+ */
995
+ noteMargin?: number;
996
+ /**
997
+ * Space between messages.
998
+ */
999
+ messageMargin?: number;
1000
+ /**
1001
+ * Multiline message alignment
1002
+ */
1003
+ messageAlign?: string | 'left' | 'center' | 'right';
1004
+ /**
1005
+ * Mirror actors under diagram
1006
+ *
1007
+ */
1008
+ mirrorActors?: boolean;
1009
+ /**
1010
+ * forces actor popup menus to always be visible (to support E2E testing).
1011
+ *
1012
+ */
1013
+ forceMenus?: boolean;
1014
+ /**
1015
+ * Prolongs the edge of the diagram downwards.
1016
+ *
1017
+ * Depending on css styling this might need adjustment.
1018
+ *
1019
+ */
1020
+ bottomMarginAdj?: number;
1021
+ /**
1022
+ * Curved Arrows become Right Angles
1023
+ *
1024
+ * This will display arrows that start and begin at the same node as
1025
+ * right angles, rather than as curves.
1026
+ *
1027
+ */
1028
+ rightAngles?: boolean;
1029
+ /**
1030
+ * This will show the node numbers
1031
+ */
1032
+ showSequenceNumbers?: boolean;
1033
+ /**
1034
+ * This sets the font size of the actor's description
1035
+ */
1036
+ actorFontSize?: string | number;
1037
+ /**
1038
+ * This sets the font family of the actor's description
1039
+ */
1040
+ actorFontFamily?: string;
1041
+ /**
1042
+ * This sets the font weight of the actor's description
1043
+ */
1044
+ actorFontWeight?: string | number;
1045
+ /**
1046
+ * This sets the font size of actor-attached notes
1047
+ */
1048
+ noteFontSize?: string | number;
1049
+ /**
1050
+ * This sets the font family of actor-attached notes
1051
+ */
1052
+ noteFontFamily?: string;
1053
+ /**
1054
+ * This sets the font weight of actor-attached notes
1055
+ */
1056
+ noteFontWeight?: string | number;
1057
+ /**
1058
+ * This sets the text alignment of actor-attached notes
1059
+ */
1060
+ noteAlign?: string | 'left' | 'center' | 'right';
1061
+ /**
1062
+ * This sets the font size of actor messages
1063
+ */
1064
+ messageFontSize?: string | number;
1065
+ /**
1066
+ * This sets the font family of actor messages
1067
+ */
1068
+ messageFontFamily?: string;
1069
+ /**
1070
+ * This sets the font weight of actor messages
1071
+ */
1072
+ messageFontWeight?: string | number;
1073
+ /**
1074
+ * This sets the auto-wrap state for the diagram
1075
+ */
1076
+ wrap?: boolean;
1077
+ /**
1078
+ * This sets the auto-wrap padding for the diagram (sides only)
1079
+ */
1080
+ wrapPadding?: number;
1081
+ /**
1082
+ * This sets the width of the loop-box (loop, alt, opt, par)
1083
+ */
1084
+ labelBoxWidth?: number;
1085
+ /**
1086
+ * This sets the height of the loop-box (loop, alt, opt, par)
1087
+ */
1088
+ labelBoxHeight?: number;
1089
+ messageFont?: FontCalculator;
1090
+ noteFont?: FontCalculator;
1091
+ actorFont?: FontCalculator;
1092
+ }
1093
+ /**
1094
+ * The object containing configurations specific for flowcharts
1095
+ *
1096
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
1097
+ * via the `definition` "FlowchartDiagramConfig".
1098
+ */
1099
+ interface FlowchartDiagramConfig extends BaseDiagramConfig {
1100
+ /**
1101
+ * Margin top for the text over the diagram
1102
+ */
1103
+ titleTopMargin?: number;
1104
+ /**
1105
+ * Defines a top/bottom margin for subgraph titles
1106
+ *
1107
+ */
1108
+ subGraphTitleMargin?: {
1109
+ top?: number;
1110
+ bottom?: number;
1111
+ };
1112
+ arrowMarkerAbsolute?: boolean;
1113
+ /**
1114
+ * The amount of padding around the diagram as a whole so that embedded
1115
+ * diagrams have margins, expressed in pixels.
1116
+ *
1117
+ */
1118
+ diagramPadding?: number;
1119
+ /**
1120
+ * Flag for setting whether or not a html tag should be used for rendering labels on the edges.
1121
+ *
1122
+ */
1123
+ htmlLabels?: boolean;
1124
+ /**
1125
+ * Defines the spacing between nodes on the same level
1126
+ *
1127
+ * Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs,
1128
+ * and the vertical spacing for LR as well as RL graphs.
1129
+ *
1130
+ */
1131
+ nodeSpacing?: number;
1132
+ /**
1133
+ * Defines the spacing between nodes on different levels
1134
+ *
1135
+ * Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs,
1136
+ * and the vertical spacing for LR as well as RL graphs.
1137
+ *
1138
+ */
1139
+ rankSpacing?: number;
1140
+ /**
1141
+ * Defines how mermaid renders curves for flowcharts.
1142
+ *
1143
+ */
1144
+ curve?: string | 'basis' | 'linear' | 'cardinal';
1145
+ /**
1146
+ * Represents the padding between the labels and the shape
1147
+ *
1148
+ * **Only used in new experimental rendering.**
1149
+ *
1150
+ */
1151
+ padding?: number;
1152
+ /**
1153
+ * Decides which rendering engine that is to be used for the rendering.
1154
+ *
1155
+ */
1156
+ defaultRenderer?: string | 'dagre-d3' | 'dagre-wrapper' | 'elk';
1157
+ /**
1158
+ * Width of nodes where text is wrapped.
1159
+ *
1160
+ * When using markdown strings the text ius wrapped automatically, this
1161
+ * value sets the max width of a text before it continues on a new line.
1162
+ *
1163
+ */
1164
+ wrappingWidth?: number;
1165
+ }
1166
+ /**
1167
+ * The object containing configurations specific for sankey diagrams.
1168
+ *
1169
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
1170
+ * via the `definition` "SankeyDiagramConfig".
1171
+ */
1172
+ interface SankeyDiagramConfig extends BaseDiagramConfig {
1173
+ width?: number;
1174
+ height?: number;
1175
+ /**
1176
+ * The color of the links in the sankey diagram.
1177
+ *
1178
+ */
1179
+ linkColor?: SankeyLinkColor | string;
1180
+ /**
1181
+ * Controls the alignment of the Sankey diagrams.
1182
+ *
1183
+ * See <https://github.com/d3/d3-sankey#alignments>.
1184
+ *
1185
+ */
1186
+ nodeAlignment?: 'left' | 'right' | 'center' | 'justify';
1187
+ useMaxWidth?: boolean;
1188
+ /**
1189
+ * Toggle to display or hide values along with title.
1190
+ *
1191
+ */
1192
+ showValues?: boolean;
1193
+ /**
1194
+ * The prefix to use for values
1195
+ *
1196
+ */
1197
+ prefix?: string;
1198
+ /**
1199
+ * The suffix to use for values
1200
+ *
1201
+ */
1202
+ suffix?: string;
1203
+ }
1204
+ /**
1205
+ * The object containing configurations specific for c4 diagrams
1206
+ *
1207
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
1208
+ * via the `definition` "C4DiagramConfig".
1209
+ */
1210
+ interface C4DiagramConfig extends BaseDiagramConfig {
1211
+ /**
1212
+ * Margin to the right and left of the c4 diagram, must be a positive value.
1213
+ *
1214
+ */
1215
+ diagramMarginX?: number;
1216
+ /**
1217
+ * Margin to the over and under the c4 diagram, must be a positive value.
1218
+ *
1219
+ */
1220
+ diagramMarginY?: number;
1221
+ /**
1222
+ * Margin between shapes
1223
+ */
1224
+ c4ShapeMargin?: number;
1225
+ /**
1226
+ * Padding between shapes
1227
+ */
1228
+ c4ShapePadding?: number;
1229
+ /**
1230
+ * Width of person boxes
1231
+ */
1232
+ width?: number;
1233
+ /**
1234
+ * Height of person boxes
1235
+ */
1236
+ height?: number;
1237
+ /**
1238
+ * Margin around boxes
1239
+ */
1240
+ boxMargin?: number;
1241
+ /**
1242
+ * How many shapes to place in each row.
1243
+ */
1244
+ c4ShapeInRow?: number;
1245
+ nextLinePaddingX?: number;
1246
+ /**
1247
+ * How many boundaries to place in each row.
1248
+ */
1249
+ c4BoundaryInRow?: number;
1250
+ /**
1251
+ * This sets the font size of Person shape for the diagram
1252
+ */
1253
+ personFontSize?: string | number;
1254
+ /**
1255
+ * This sets the font weight of Person shape for the diagram
1256
+ */
1257
+ personFontFamily?: string;
1258
+ /**
1259
+ * This sets the font weight of Person shape for the diagram
1260
+ */
1261
+ personFontWeight?: string | number;
1262
+ /**
1263
+ * This sets the font size of External Person shape for the diagram
1264
+ */
1265
+ external_personFontSize?: string | number;
1266
+ /**
1267
+ * This sets the font family of External Person shape for the diagram
1268
+ */
1269
+ external_personFontFamily?: string;
1270
+ /**
1271
+ * This sets the font weight of External Person shape for the diagram
1272
+ */
1273
+ external_personFontWeight?: string | number;
1274
+ /**
1275
+ * This sets the font size of System shape for the diagram
1276
+ */
1277
+ systemFontSize?: string | number;
1278
+ /**
1279
+ * This sets the font family of System shape for the diagram
1280
+ */
1281
+ systemFontFamily?: string;
1282
+ /**
1283
+ * This sets the font weight of System shape for the diagram
1284
+ */
1285
+ systemFontWeight?: string | number;
1286
+ /**
1287
+ * This sets the font size of External System shape for the diagram
1288
+ */
1289
+ external_systemFontSize?: string | number;
1290
+ /**
1291
+ * This sets the font family of External System shape for the diagram
1292
+ */
1293
+ external_systemFontFamily?: string;
1294
+ /**
1295
+ * This sets the font weight of External System shape for the diagram
1296
+ */
1297
+ external_systemFontWeight?: string | number;
1298
+ /**
1299
+ * This sets the font size of System DB shape for the diagram
1300
+ */
1301
+ system_dbFontSize?: string | number;
1302
+ /**
1303
+ * This sets the font family of System DB shape for the diagram
1304
+ */
1305
+ system_dbFontFamily?: string;
1306
+ /**
1307
+ * This sets the font weight of System DB shape for the diagram
1308
+ */
1309
+ system_dbFontWeight?: string | number;
1310
+ /**
1311
+ * This sets the font size of External System DB shape for the diagram
1312
+ */
1313
+ external_system_dbFontSize?: string | number;
1314
+ /**
1315
+ * This sets the font family of External System DB shape for the diagram
1316
+ */
1317
+ external_system_dbFontFamily?: string;
1318
+ /**
1319
+ * This sets the font weight of External System DB shape for the diagram
1320
+ */
1321
+ external_system_dbFontWeight?: string | number;
1322
+ /**
1323
+ * This sets the font size of System Queue shape for the diagram
1324
+ */
1325
+ system_queueFontSize?: string | number;
1326
+ /**
1327
+ * This sets the font family of System Queue shape for the diagram
1328
+ */
1329
+ system_queueFontFamily?: string;
1330
+ /**
1331
+ * This sets the font weight of System Queue shape for the diagram
1332
+ */
1333
+ system_queueFontWeight?: string | number;
1334
+ /**
1335
+ * This sets the font size of External System Queue shape for the diagram
1336
+ */
1337
+ external_system_queueFontSize?: string | number;
1338
+ /**
1339
+ * This sets the font family of External System Queue shape for the diagram
1340
+ */
1341
+ external_system_queueFontFamily?: string;
1342
+ /**
1343
+ * This sets the font weight of External System Queue shape for the diagram
1344
+ */
1345
+ external_system_queueFontWeight?: string | number;
1346
+ /**
1347
+ * This sets the font size of Boundary shape for the diagram
1348
+ */
1349
+ boundaryFontSize?: string | number;
1350
+ /**
1351
+ * This sets the font family of Boundary shape for the diagram
1352
+ */
1353
+ boundaryFontFamily?: string;
1354
+ /**
1355
+ * This sets the font weight of Boundary shape for the diagram
1356
+ */
1357
+ boundaryFontWeight?: string | number;
1358
+ /**
1359
+ * This sets the font size of Message shape for the diagram
1360
+ */
1361
+ messageFontSize?: string | number;
1362
+ /**
1363
+ * This sets the font family of Message shape for the diagram
1364
+ */
1365
+ messageFontFamily?: string;
1366
+ /**
1367
+ * This sets the font weight of Message shape for the diagram
1368
+ */
1369
+ messageFontWeight?: string | number;
1370
+ /**
1371
+ * This sets the font size of Container shape for the diagram
1372
+ */
1373
+ containerFontSize?: string | number;
1374
+ /**
1375
+ * This sets the font family of Container shape for the diagram
1376
+ */
1377
+ containerFontFamily?: string;
1378
+ /**
1379
+ * This sets the font weight of Container shape for the diagram
1380
+ */
1381
+ containerFontWeight?: string | number;
1382
+ /**
1383
+ * This sets the font size of External Container shape for the diagram
1384
+ */
1385
+ external_containerFontSize?: string | number;
1386
+ /**
1387
+ * This sets the font family of External Container shape for the diagram
1388
+ */
1389
+ external_containerFontFamily?: string;
1390
+ /**
1391
+ * This sets the font weight of External Container shape for the diagram
1392
+ */
1393
+ external_containerFontWeight?: string | number;
1394
+ /**
1395
+ * This sets the font size of Container DB shape for the diagram
1396
+ */
1397
+ container_dbFontSize?: string | number;
1398
+ /**
1399
+ * This sets the font family of Container DB shape for the diagram
1400
+ */
1401
+ container_dbFontFamily?: string;
1402
+ /**
1403
+ * This sets the font weight of Container DB shape for the diagram
1404
+ */
1405
+ container_dbFontWeight?: string | number;
1406
+ /**
1407
+ * This sets the font size of External Container DB shape for the diagram
1408
+ */
1409
+ external_container_dbFontSize?: string | number;
1410
+ /**
1411
+ * This sets the font family of External Container DB shape for the diagram
1412
+ */
1413
+ external_container_dbFontFamily?: string;
1414
+ /**
1415
+ * This sets the font weight of External Container DB shape for the diagram
1416
+ */
1417
+ external_container_dbFontWeight?: string | number;
1418
+ /**
1419
+ * This sets the font size of Container Queue shape for the diagram
1420
+ */
1421
+ container_queueFontSize?: string | number;
1422
+ /**
1423
+ * This sets the font family of Container Queue shape for the diagram
1424
+ */
1425
+ container_queueFontFamily?: string;
1426
+ /**
1427
+ * This sets the font weight of Container Queue shape for the diagram
1428
+ */
1429
+ container_queueFontWeight?: string | number;
1430
+ /**
1431
+ * This sets the font size of External Container Queue shape for the diagram
1432
+ */
1433
+ external_container_queueFontSize?: string | number;
1434
+ /**
1435
+ * This sets the font family of External Container Queue shape for the diagram
1436
+ */
1437
+ external_container_queueFontFamily?: string;
1438
+ /**
1439
+ * This sets the font weight of External Container Queue shape for the diagram
1440
+ */
1441
+ external_container_queueFontWeight?: string | number;
1442
+ /**
1443
+ * This sets the font size of Component shape for the diagram
1444
+ */
1445
+ componentFontSize?: string | number;
1446
+ /**
1447
+ * This sets the font family of Component shape for the diagram
1448
+ */
1449
+ componentFontFamily?: string;
1450
+ /**
1451
+ * This sets the font weight of Component shape for the diagram
1452
+ */
1453
+ componentFontWeight?: string | number;
1454
+ /**
1455
+ * This sets the font size of External Component shape for the diagram
1456
+ */
1457
+ external_componentFontSize?: string | number;
1458
+ /**
1459
+ * This sets the font family of External Component shape for the diagram
1460
+ */
1461
+ external_componentFontFamily?: string;
1462
+ /**
1463
+ * This sets the font weight of External Component shape for the diagram
1464
+ */
1465
+ external_componentFontWeight?: string | number;
1466
+ /**
1467
+ * This sets the font size of Component DB shape for the diagram
1468
+ */
1469
+ component_dbFontSize?: string | number;
1470
+ /**
1471
+ * This sets the font family of Component DB shape for the diagram
1472
+ */
1473
+ component_dbFontFamily?: string;
1474
+ /**
1475
+ * This sets the font weight of Component DB shape for the diagram
1476
+ */
1477
+ component_dbFontWeight?: string | number;
1478
+ /**
1479
+ * This sets the font size of External Component DB shape for the diagram
1480
+ */
1481
+ external_component_dbFontSize?: string | number;
1482
+ /**
1483
+ * This sets the font family of External Component DB shape for the diagram
1484
+ */
1485
+ external_component_dbFontFamily?: string;
1486
+ /**
1487
+ * This sets the font weight of External Component DB shape for the diagram
1488
+ */
1489
+ external_component_dbFontWeight?: string | number;
1490
+ /**
1491
+ * This sets the font size of Component Queue shape for the diagram
1492
+ */
1493
+ component_queueFontSize?: string | number;
1494
+ /**
1495
+ * This sets the font family of Component Queue shape for the diagram
1496
+ */
1497
+ component_queueFontFamily?: string;
1498
+ /**
1499
+ * This sets the font weight of Component Queue shape for the diagram
1500
+ */
1501
+ component_queueFontWeight?: string | number;
1502
+ /**
1503
+ * This sets the font size of External Component Queue shape for the diagram
1504
+ */
1505
+ external_component_queueFontSize?: string | number;
1506
+ /**
1507
+ * This sets the font family of External Component Queue shape for the diagram
1508
+ */
1509
+ external_component_queueFontFamily?: string;
1510
+ /**
1511
+ * This sets the font weight of External Component Queue shape for the diagram
1512
+ */
1513
+ external_component_queueFontWeight?: string | number;
1514
+ /**
1515
+ * This sets the auto-wrap state for the diagram
1516
+ */
1517
+ wrap?: boolean;
1518
+ /**
1519
+ * This sets the auto-wrap padding for the diagram (sides only)
1520
+ */
1521
+ wrapPadding?: number;
1522
+ person_bg_color?: string;
1523
+ person_border_color?: string;
1524
+ external_person_bg_color?: string;
1525
+ external_person_border_color?: string;
1526
+ system_bg_color?: string;
1527
+ system_border_color?: string;
1528
+ system_db_bg_color?: string;
1529
+ system_db_border_color?: string;
1530
+ system_queue_bg_color?: string;
1531
+ system_queue_border_color?: string;
1532
+ external_system_bg_color?: string;
1533
+ external_system_border_color?: string;
1534
+ external_system_db_bg_color?: string;
1535
+ external_system_db_border_color?: string;
1536
+ external_system_queue_bg_color?: string;
1537
+ external_system_queue_border_color?: string;
1538
+ container_bg_color?: string;
1539
+ container_border_color?: string;
1540
+ container_db_bg_color?: string;
1541
+ container_db_border_color?: string;
1542
+ container_queue_bg_color?: string;
1543
+ container_queue_border_color?: string;
1544
+ external_container_bg_color?: string;
1545
+ external_container_border_color?: string;
1546
+ external_container_db_bg_color?: string;
1547
+ external_container_db_border_color?: string;
1548
+ external_container_queue_bg_color?: string;
1549
+ external_container_queue_border_color?: string;
1550
+ component_bg_color?: string;
1551
+ component_border_color?: string;
1552
+ component_db_bg_color?: string;
1553
+ component_db_border_color?: string;
1554
+ component_queue_bg_color?: string;
1555
+ component_queue_border_color?: string;
1556
+ external_component_bg_color?: string;
1557
+ external_component_border_color?: string;
1558
+ external_component_db_bg_color?: string;
1559
+ external_component_db_border_color?: string;
1560
+ external_component_queue_bg_color?: string;
1561
+ external_component_queue_border_color?: string;
1562
+ personFont?: FontCalculator;
1563
+ external_personFont?: FontCalculator;
1564
+ systemFont?: FontCalculator;
1565
+ external_systemFont?: FontCalculator;
1566
+ system_dbFont?: FontCalculator;
1567
+ external_system_dbFont?: FontCalculator;
1568
+ system_queueFont?: FontCalculator;
1569
+ external_system_queueFont?: FontCalculator;
1570
+ containerFont?: FontCalculator;
1571
+ external_containerFont?: FontCalculator;
1572
+ container_dbFont?: FontCalculator;
1573
+ external_container_dbFont?: FontCalculator;
1574
+ container_queueFont?: FontCalculator;
1575
+ external_container_queueFont?: FontCalculator;
1576
+ componentFont?: FontCalculator;
1577
+ external_componentFont?: FontCalculator;
1578
+ component_dbFont?: FontCalculator;
1579
+ external_component_dbFont?: FontCalculator;
1580
+ component_queueFont?: FontCalculator;
1581
+ external_component_queueFont?: FontCalculator;
1582
+ boundaryFont?: FontCalculator;
1583
+ messageFont?: FontCalculator;
1584
+ }
1585
+ /**
1586
+ * JavaScript function that returns a `FontConfig`.
1587
+ *
1588
+ * By default, these return the appropriate `*FontSize`, `*FontFamily`, `*FontWeight`
1589
+ * values.
1590
+ *
1591
+ * For example, the font calculator called `boundaryFont` might be defined as:
1592
+ *
1593
+ * ```javascript
1594
+ * boundaryFont: function () {
1595
+ * return {
1596
+ * fontFamily: this.boundaryFontFamily,
1597
+ * fontSize: this.boundaryFontSize,
1598
+ * fontWeight: this.boundaryFontWeight,
1599
+ * };
1600
+ * }
1601
+ * ```
1602
+ *
1603
+ *
1604
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
1605
+ * via the `definition` "FontCalculator".
1606
+ */
1607
+ type FontCalculator = () => Partial<FontConfig>;
1608
+ /**
1609
+ * This interface was referenced by `MermaidConfig`'s JSON-Schema
1610
+ * via the `definition` "FontConfig".
1611
+ */
1612
+ interface FontConfig {
1613
+ fontSize?: CSSFontSize;
1614
+ /**
1615
+ * The CSS [`font-family`](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family) to use.
1616
+ */
1617
+ fontFamily?: string;
1618
+ /**
1619
+ * The font weight to use.
1620
+ */
1621
+ fontWeight?: string | number;
1622
+ }
1623
+ }
1624
+
111
1625
  interface Locale {
112
1626
  codeBlock: {
113
1627
  copy: string;
@@ -119,6 +1633,7 @@ interface Locale {
119
1633
  }
120
1634
  interface ConfigProviderProps {
121
1635
  locale?: Locale;
1636
+ mermaidConfig?: Mermaid.MermaidConfig;
122
1637
  children: React__default.ReactNode;
123
1638
  }
124
1639
  interface ConfigContextType {