@simon_he/vue-tui 1.1.4 → 1.1.5
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 +18 -18
- package/dist/agent/mermaid.d.cts +1 -1
- package/dist/agent/mermaid.d.ts +1 -1
- package/dist/agent.cjs +5 -1
- package/dist/agent.js +3 -3
- package/dist/{block-source-D3YGTErb.js → block-source-DhzajB9H.js} +1 -1
- package/dist/cli.cjs +5 -1
- package/dist/cli.js +1 -1
- package/dist/experimental.cjs +5 -1
- package/dist/experimental.js +2 -2
- package/dist/markdown.js +2 -2
- package/dist/{mermaid-uEfRItDe.js → mermaid-N3kGTHFy.js} +655 -163
- package/dist/mermaid.cjs +544 -176
- package/dist/mermaid.d.cts +1 -1
- package/dist/mermaid.d.ts +1 -1
- package/dist/mermaid.js +3 -3
- package/dist/renderer/terminal-graphics.d.ts +17 -0
- package/dist/{terminal-graphics-DWZrl3oh.js → terminal-graphics-2FTRg9x3.js} +6 -1
- package/dist/{tlog-theme-DqnF_zNe.js → tlog-theme-B91Wv7Zj.js} +1 -1
- package/dist/vue/components/TMermaidImage.d.ts +187 -0
- package/dist/vue/mermaid/beautiful-mermaid.d.ts +282 -238
- package/dist/vue/mermaid/mermaid-image.d.ts +8 -0
- package/package.json +11 -10
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type TMermaidCopyPayload, type TMermaidRenderer, type TMermaidTransientErrorClassifier } from "../components/TMermaidText.js";
|
|
2
|
+
import { type TMermaidImageCopyPayload } from "../components/TMermaidImage.js";
|
|
2
3
|
export declare function isMissingBeautifulMermaid(error: unknown): boolean;
|
|
3
4
|
export declare const beautifulMermaidRenderer: TMermaidRenderer;
|
|
4
5
|
export declare function createBeautifulMermaidRenderer(): TMermaidRenderer;
|
|
@@ -360,6 +361,13 @@ export declare const TMermaidText: import("vue").DefineComponent<import("vue").E
|
|
|
360
361
|
readonly maxRenderSourceLines: number;
|
|
361
362
|
readonly copiedDurationMs: number;
|
|
362
363
|
}, {}>;
|
|
364
|
+
/**
|
|
365
|
+
* Adaptive default mermaid component: renders the diagram as a terminal image
|
|
366
|
+
* (Kitty/iTerm2 graphics) when the terminal supports it, otherwise falls back
|
|
367
|
+
* to the beautiful-mermaid ASCII renderer, otherwise shows the raw source.
|
|
368
|
+
* While any pipeline is pending the raw source stays visible (source-first);
|
|
369
|
+
* streaming sources are only rendered once `final` is true.
|
|
370
|
+
*/
|
|
363
371
|
export declare const TMermaid: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
364
372
|
readonly x: {
|
|
365
373
|
readonly type: NumberConstructor;
|
|
@@ -393,14 +401,6 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
393
401
|
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
394
402
|
readonly default: undefined;
|
|
395
403
|
};
|
|
396
|
-
readonly loadingStyle: {
|
|
397
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
398
|
-
readonly default: undefined;
|
|
399
|
-
};
|
|
400
|
-
readonly errorStyle: {
|
|
401
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
402
|
-
readonly default: undefined;
|
|
403
|
-
};
|
|
404
404
|
readonly clear: {
|
|
405
405
|
readonly type: BooleanConstructor;
|
|
406
406
|
readonly default: true;
|
|
@@ -413,57 +413,53 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
413
413
|
readonly type: BooleanConstructor;
|
|
414
414
|
readonly default: false;
|
|
415
415
|
};
|
|
416
|
-
readonly
|
|
417
|
-
readonly type:
|
|
418
|
-
readonly default:
|
|
416
|
+
readonly renderer: {
|
|
417
|
+
readonly type: import("vue").PropType<import("./mermaid-image.js").TuiMermaidImageRasterizer>;
|
|
418
|
+
readonly default: undefined;
|
|
419
419
|
};
|
|
420
|
-
readonly
|
|
420
|
+
readonly cellWidthPx: {
|
|
421
421
|
readonly type: NumberConstructor;
|
|
422
422
|
readonly default: undefined;
|
|
423
423
|
};
|
|
424
|
-
readonly
|
|
424
|
+
readonly cellHeightPx: {
|
|
425
425
|
readonly type: NumberConstructor;
|
|
426
426
|
readonly default: undefined;
|
|
427
427
|
};
|
|
428
|
-
readonly
|
|
428
|
+
readonly scale: {
|
|
429
429
|
readonly type: NumberConstructor;
|
|
430
430
|
readonly default: undefined;
|
|
431
431
|
};
|
|
432
|
-
readonly
|
|
433
|
-
readonly type:
|
|
432
|
+
readonly bg: {
|
|
433
|
+
readonly type: StringConstructor;
|
|
434
434
|
readonly default: undefined;
|
|
435
435
|
};
|
|
436
|
-
readonly
|
|
437
|
-
readonly type:
|
|
436
|
+
readonly fg: {
|
|
437
|
+
readonly type: StringConstructor;
|
|
438
438
|
readonly default: undefined;
|
|
439
439
|
};
|
|
440
|
-
readonly
|
|
441
|
-
readonly type:
|
|
440
|
+
readonly maxWidthCells: {
|
|
441
|
+
readonly type: NumberConstructor;
|
|
442
442
|
readonly default: undefined;
|
|
443
443
|
};
|
|
444
|
-
readonly
|
|
445
|
-
readonly type:
|
|
444
|
+
readonly maxHeightCells: {
|
|
445
|
+
readonly type: NumberConstructor;
|
|
446
446
|
readonly default: undefined;
|
|
447
447
|
};
|
|
448
|
-
readonly
|
|
449
|
-
readonly type:
|
|
450
|
-
readonly default:
|
|
451
|
-
};
|
|
452
|
-
readonly incompleteText: {
|
|
453
|
-
readonly type: StringConstructor;
|
|
454
|
-
readonly default: "Waiting for complete Mermaid diagram...";
|
|
448
|
+
readonly padding: {
|
|
449
|
+
readonly type: NumberConstructor;
|
|
450
|
+
readonly default: undefined;
|
|
455
451
|
};
|
|
456
|
-
readonly
|
|
457
|
-
readonly type:
|
|
458
|
-
readonly default:
|
|
452
|
+
readonly textRenderer: {
|
|
453
|
+
readonly type: import("vue").PropType<TMermaidRenderer>;
|
|
454
|
+
readonly default: undefined;
|
|
459
455
|
};
|
|
460
|
-
readonly
|
|
461
|
-
readonly type:
|
|
462
|
-
readonly default:
|
|
456
|
+
readonly shouldRenderSource: {
|
|
457
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidRenderEligibility>;
|
|
458
|
+
readonly default: undefined;
|
|
463
459
|
};
|
|
464
|
-
readonly
|
|
465
|
-
readonly type:
|
|
466
|
-
readonly default:
|
|
460
|
+
readonly textOptions: {
|
|
461
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidAsciiOptions>;
|
|
462
|
+
readonly default: undefined;
|
|
467
463
|
};
|
|
468
464
|
readonly box: {
|
|
469
465
|
readonly type: BooleanConstructor;
|
|
@@ -485,9 +481,13 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
485
481
|
readonly type: StringConstructor;
|
|
486
482
|
readonly default: "copied";
|
|
487
483
|
};
|
|
484
|
+
readonly copiedDurationMs: {
|
|
485
|
+
readonly type: NumberConstructor;
|
|
486
|
+
readonly default: 1200;
|
|
487
|
+
};
|
|
488
488
|
readonly renderTimeoutMs: {
|
|
489
489
|
readonly type: NumberConstructor;
|
|
490
|
-
readonly default:
|
|
490
|
+
readonly default: 0;
|
|
491
491
|
};
|
|
492
492
|
readonly maxRenderSourceChars: {
|
|
493
493
|
readonly type: NumberConstructor;
|
|
@@ -497,14 +497,38 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
497
497
|
readonly type: NumberConstructor;
|
|
498
498
|
readonly default: 400;
|
|
499
499
|
};
|
|
500
|
-
readonly
|
|
500
|
+
readonly copyOnClick: {
|
|
501
|
+
readonly type: BooleanConstructor;
|
|
502
|
+
readonly default: true;
|
|
503
|
+
};
|
|
504
|
+
readonly ascii: {
|
|
505
|
+
readonly type: BooleanConstructor;
|
|
506
|
+
readonly default: false;
|
|
507
|
+
};
|
|
508
|
+
readonly zoomOnWheel: {
|
|
509
|
+
readonly type: BooleanConstructor;
|
|
510
|
+
readonly default: true;
|
|
511
|
+
};
|
|
512
|
+
readonly zoomModifier: {
|
|
513
|
+
readonly type: import("vue").PropType<"meta" | "ctrl" | "metaCtrl" | "none">;
|
|
514
|
+
readonly default: "metaCtrl";
|
|
515
|
+
};
|
|
516
|
+
readonly minZoom: {
|
|
501
517
|
readonly type: NumberConstructor;
|
|
502
|
-
readonly default:
|
|
518
|
+
readonly default: 1;
|
|
519
|
+
};
|
|
520
|
+
readonly maxZoom: {
|
|
521
|
+
readonly type: NumberConstructor;
|
|
522
|
+
readonly default: 6;
|
|
523
|
+
};
|
|
524
|
+
readonly zoomSensitivity: {
|
|
525
|
+
readonly type: NumberConstructor;
|
|
526
|
+
readonly default: 0.002;
|
|
503
527
|
};
|
|
504
528
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
505
529
|
[key: string]: any;
|
|
506
530
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
507
|
-
copy: (_payload:
|
|
531
|
+
copy: (_payload: TMermaidImageCopyPayload) => true;
|
|
508
532
|
}, string, (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
509
533
|
readonly x: {
|
|
510
534
|
readonly type: NumberConstructor;
|
|
@@ -538,14 +562,6 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
538
562
|
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
539
563
|
readonly default: undefined;
|
|
540
564
|
};
|
|
541
|
-
readonly loadingStyle: {
|
|
542
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
543
|
-
readonly default: undefined;
|
|
544
|
-
};
|
|
545
|
-
readonly errorStyle: {
|
|
546
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
547
|
-
readonly default: undefined;
|
|
548
|
-
};
|
|
549
565
|
readonly clear: {
|
|
550
566
|
readonly type: BooleanConstructor;
|
|
551
567
|
readonly default: true;
|
|
@@ -558,57 +574,53 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
558
574
|
readonly type: BooleanConstructor;
|
|
559
575
|
readonly default: false;
|
|
560
576
|
};
|
|
561
|
-
readonly
|
|
562
|
-
readonly type:
|
|
563
|
-
readonly default:
|
|
577
|
+
readonly renderer: {
|
|
578
|
+
readonly type: import("vue").PropType<import("./mermaid-image.js").TuiMermaidImageRasterizer>;
|
|
579
|
+
readonly default: undefined;
|
|
564
580
|
};
|
|
565
|
-
readonly
|
|
581
|
+
readonly cellWidthPx: {
|
|
566
582
|
readonly type: NumberConstructor;
|
|
567
583
|
readonly default: undefined;
|
|
568
584
|
};
|
|
569
|
-
readonly
|
|
585
|
+
readonly cellHeightPx: {
|
|
570
586
|
readonly type: NumberConstructor;
|
|
571
587
|
readonly default: undefined;
|
|
572
588
|
};
|
|
573
|
-
readonly
|
|
589
|
+
readonly scale: {
|
|
574
590
|
readonly type: NumberConstructor;
|
|
575
591
|
readonly default: undefined;
|
|
576
592
|
};
|
|
577
|
-
readonly
|
|
578
|
-
readonly type:
|
|
593
|
+
readonly bg: {
|
|
594
|
+
readonly type: StringConstructor;
|
|
579
595
|
readonly default: undefined;
|
|
580
596
|
};
|
|
581
|
-
readonly
|
|
582
|
-
readonly type:
|
|
597
|
+
readonly fg: {
|
|
598
|
+
readonly type: StringConstructor;
|
|
583
599
|
readonly default: undefined;
|
|
584
600
|
};
|
|
585
|
-
readonly
|
|
586
|
-
readonly type:
|
|
601
|
+
readonly maxWidthCells: {
|
|
602
|
+
readonly type: NumberConstructor;
|
|
587
603
|
readonly default: undefined;
|
|
588
604
|
};
|
|
589
|
-
readonly
|
|
590
|
-
readonly type:
|
|
605
|
+
readonly maxHeightCells: {
|
|
606
|
+
readonly type: NumberConstructor;
|
|
591
607
|
readonly default: undefined;
|
|
592
608
|
};
|
|
593
|
-
readonly
|
|
594
|
-
readonly type:
|
|
595
|
-
readonly default:
|
|
596
|
-
};
|
|
597
|
-
readonly incompleteText: {
|
|
598
|
-
readonly type: StringConstructor;
|
|
599
|
-
readonly default: "Waiting for complete Mermaid diagram...";
|
|
609
|
+
readonly padding: {
|
|
610
|
+
readonly type: NumberConstructor;
|
|
611
|
+
readonly default: undefined;
|
|
600
612
|
};
|
|
601
|
-
readonly
|
|
602
|
-
readonly type:
|
|
603
|
-
readonly default:
|
|
613
|
+
readonly textRenderer: {
|
|
614
|
+
readonly type: import("vue").PropType<TMermaidRenderer>;
|
|
615
|
+
readonly default: undefined;
|
|
604
616
|
};
|
|
605
|
-
readonly
|
|
606
|
-
readonly type:
|
|
607
|
-
readonly default:
|
|
617
|
+
readonly shouldRenderSource: {
|
|
618
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidRenderEligibility>;
|
|
619
|
+
readonly default: undefined;
|
|
608
620
|
};
|
|
609
|
-
readonly
|
|
610
|
-
readonly type:
|
|
611
|
-
readonly default:
|
|
621
|
+
readonly textOptions: {
|
|
622
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidAsciiOptions>;
|
|
623
|
+
readonly default: undefined;
|
|
612
624
|
};
|
|
613
625
|
readonly box: {
|
|
614
626
|
readonly type: BooleanConstructor;
|
|
@@ -630,9 +642,13 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
630
642
|
readonly type: StringConstructor;
|
|
631
643
|
readonly default: "copied";
|
|
632
644
|
};
|
|
645
|
+
readonly copiedDurationMs: {
|
|
646
|
+
readonly type: NumberConstructor;
|
|
647
|
+
readonly default: 1200;
|
|
648
|
+
};
|
|
633
649
|
readonly renderTimeoutMs: {
|
|
634
650
|
readonly type: NumberConstructor;
|
|
635
|
-
readonly default:
|
|
651
|
+
readonly default: 0;
|
|
636
652
|
};
|
|
637
653
|
readonly maxRenderSourceChars: {
|
|
638
654
|
readonly type: NumberConstructor;
|
|
@@ -642,9 +658,33 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
642
658
|
readonly type: NumberConstructor;
|
|
643
659
|
readonly default: 400;
|
|
644
660
|
};
|
|
645
|
-
readonly
|
|
661
|
+
readonly copyOnClick: {
|
|
662
|
+
readonly type: BooleanConstructor;
|
|
663
|
+
readonly default: true;
|
|
664
|
+
};
|
|
665
|
+
readonly ascii: {
|
|
666
|
+
readonly type: BooleanConstructor;
|
|
667
|
+
readonly default: false;
|
|
668
|
+
};
|
|
669
|
+
readonly zoomOnWheel: {
|
|
670
|
+
readonly type: BooleanConstructor;
|
|
671
|
+
readonly default: true;
|
|
672
|
+
};
|
|
673
|
+
readonly zoomModifier: {
|
|
674
|
+
readonly type: import("vue").PropType<"meta" | "ctrl" | "metaCtrl" | "none">;
|
|
675
|
+
readonly default: "metaCtrl";
|
|
676
|
+
};
|
|
677
|
+
readonly minZoom: {
|
|
646
678
|
readonly type: NumberConstructor;
|
|
647
|
-
readonly default:
|
|
679
|
+
readonly default: 1;
|
|
680
|
+
};
|
|
681
|
+
readonly maxZoom: {
|
|
682
|
+
readonly type: NumberConstructor;
|
|
683
|
+
readonly default: 6;
|
|
684
|
+
};
|
|
685
|
+
readonly zoomSensitivity: {
|
|
686
|
+
readonly type: NumberConstructor;
|
|
687
|
+
readonly default: 0.002;
|
|
648
688
|
};
|
|
649
689
|
}>> & Readonly<{
|
|
650
690
|
onCopy?: ((_payload: Readonly<{
|
|
@@ -653,6 +693,8 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
653
693
|
error?: unknown;
|
|
654
694
|
}>) => any) | undefined;
|
|
655
695
|
}>, {
|
|
696
|
+
readonly fg: string;
|
|
697
|
+
readonly bg: string;
|
|
656
698
|
readonly style: Readonly<{
|
|
657
699
|
fg?: string;
|
|
658
700
|
bg?: string;
|
|
@@ -668,47 +710,17 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
668
710
|
readonly h: number;
|
|
669
711
|
readonly zIndex: number;
|
|
670
712
|
readonly clear: boolean;
|
|
671
|
-
readonly renderer:
|
|
713
|
+
readonly renderer: import("./mermaid-image.js").TuiMermaidImageRasterizer;
|
|
714
|
+
readonly padding: number;
|
|
672
715
|
readonly content: string;
|
|
673
|
-
readonly options: Readonly<{
|
|
674
|
-
paddingX?: number;
|
|
675
|
-
paddingY?: number;
|
|
676
|
-
boxBorderPadding?: number;
|
|
677
|
-
theme?: import("../index.js").TMermaidAsciiTheme;
|
|
678
|
-
}>;
|
|
679
|
-
readonly loadingText: string;
|
|
680
|
-
readonly errorText: string;
|
|
681
|
-
readonly loadingStyle: Readonly<{
|
|
682
|
-
fg?: string;
|
|
683
|
-
bg?: string;
|
|
684
|
-
bold?: boolean;
|
|
685
|
-
dim?: boolean;
|
|
686
|
-
italic?: boolean;
|
|
687
|
-
underline?: boolean;
|
|
688
|
-
inverse?: boolean;
|
|
689
|
-
href?: string;
|
|
690
|
-
}>;
|
|
691
|
-
readonly errorStyle: Readonly<{
|
|
692
|
-
fg?: string;
|
|
693
|
-
bg?: string;
|
|
694
|
-
bold?: boolean;
|
|
695
|
-
dim?: boolean;
|
|
696
|
-
italic?: boolean;
|
|
697
|
-
underline?: boolean;
|
|
698
|
-
inverse?: boolean;
|
|
699
|
-
href?: string;
|
|
700
|
-
}>;
|
|
701
716
|
readonly final: boolean;
|
|
702
717
|
readonly streaming: boolean;
|
|
718
|
+
readonly cellWidthPx: number;
|
|
719
|
+
readonly cellHeightPx: number;
|
|
720
|
+
readonly scale: number;
|
|
721
|
+
readonly maxWidthCells: number;
|
|
703
722
|
readonly ascii: boolean;
|
|
704
|
-
readonly paddingX: number;
|
|
705
|
-
readonly paddingY: number;
|
|
706
|
-
readonly boxBorderPadding: number;
|
|
707
|
-
readonly isTransientError: TMermaidTransientErrorClassifier;
|
|
708
723
|
readonly shouldRenderSource: import("../index.js").TMermaidRenderEligibility;
|
|
709
|
-
readonly incompleteText: string;
|
|
710
|
-
readonly missingDependencyText: string;
|
|
711
|
-
readonly showErrorDetails: boolean;
|
|
712
724
|
readonly box: boolean;
|
|
713
725
|
readonly copyButton: boolean;
|
|
714
726
|
readonly copyText: string;
|
|
@@ -717,6 +729,20 @@ export declare const TMermaid: import("vue").DefineComponent<import("vue").Extra
|
|
|
717
729
|
readonly maxRenderSourceChars: number;
|
|
718
730
|
readonly maxRenderSourceLines: number;
|
|
719
731
|
readonly copiedDurationMs: number;
|
|
732
|
+
readonly minZoom: number;
|
|
733
|
+
readonly maxZoom: number;
|
|
734
|
+
readonly zoomSensitivity: number;
|
|
735
|
+
readonly maxHeightCells: number;
|
|
736
|
+
readonly textRenderer: TMermaidRenderer;
|
|
737
|
+
readonly textOptions: Readonly<{
|
|
738
|
+
paddingX?: number;
|
|
739
|
+
paddingY?: number;
|
|
740
|
+
boxBorderPadding?: number;
|
|
741
|
+
theme?: import("../index.js").TMermaidAsciiTheme;
|
|
742
|
+
}>;
|
|
743
|
+
readonly copyOnClick: boolean;
|
|
744
|
+
readonly zoomOnWheel: boolean;
|
|
745
|
+
readonly zoomModifier: "none" | "meta" | "ctrl" | "metaCtrl";
|
|
720
746
|
}, {}>;
|
|
721
747
|
export declare const TBeautifulMermaidText: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
722
748
|
readonly x: {
|
|
@@ -1109,14 +1135,6 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1109
1135
|
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
1110
1136
|
readonly default: undefined;
|
|
1111
1137
|
};
|
|
1112
|
-
readonly loadingStyle: {
|
|
1113
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
1114
|
-
readonly default: undefined;
|
|
1115
|
-
};
|
|
1116
|
-
readonly errorStyle: {
|
|
1117
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
1118
|
-
readonly default: undefined;
|
|
1119
|
-
};
|
|
1120
1138
|
readonly clear: {
|
|
1121
1139
|
readonly type: BooleanConstructor;
|
|
1122
1140
|
readonly default: true;
|
|
@@ -1129,57 +1147,53 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1129
1147
|
readonly type: BooleanConstructor;
|
|
1130
1148
|
readonly default: false;
|
|
1131
1149
|
};
|
|
1132
|
-
readonly
|
|
1133
|
-
readonly type:
|
|
1134
|
-
readonly default:
|
|
1150
|
+
readonly renderer: {
|
|
1151
|
+
readonly type: import("vue").PropType<import("./mermaid-image.js").TuiMermaidImageRasterizer>;
|
|
1152
|
+
readonly default: undefined;
|
|
1135
1153
|
};
|
|
1136
|
-
readonly
|
|
1154
|
+
readonly cellWidthPx: {
|
|
1137
1155
|
readonly type: NumberConstructor;
|
|
1138
1156
|
readonly default: undefined;
|
|
1139
1157
|
};
|
|
1140
|
-
readonly
|
|
1158
|
+
readonly cellHeightPx: {
|
|
1141
1159
|
readonly type: NumberConstructor;
|
|
1142
1160
|
readonly default: undefined;
|
|
1143
1161
|
};
|
|
1144
|
-
readonly
|
|
1162
|
+
readonly scale: {
|
|
1145
1163
|
readonly type: NumberConstructor;
|
|
1146
1164
|
readonly default: undefined;
|
|
1147
1165
|
};
|
|
1148
|
-
readonly
|
|
1149
|
-
readonly type:
|
|
1166
|
+
readonly bg: {
|
|
1167
|
+
readonly type: StringConstructor;
|
|
1150
1168
|
readonly default: undefined;
|
|
1151
1169
|
};
|
|
1152
|
-
readonly
|
|
1153
|
-
readonly type:
|
|
1170
|
+
readonly fg: {
|
|
1171
|
+
readonly type: StringConstructor;
|
|
1154
1172
|
readonly default: undefined;
|
|
1155
1173
|
};
|
|
1156
|
-
readonly
|
|
1157
|
-
readonly type:
|
|
1174
|
+
readonly maxWidthCells: {
|
|
1175
|
+
readonly type: NumberConstructor;
|
|
1158
1176
|
readonly default: undefined;
|
|
1159
1177
|
};
|
|
1160
|
-
readonly
|
|
1161
|
-
readonly type:
|
|
1178
|
+
readonly maxHeightCells: {
|
|
1179
|
+
readonly type: NumberConstructor;
|
|
1162
1180
|
readonly default: undefined;
|
|
1163
1181
|
};
|
|
1164
|
-
readonly
|
|
1165
|
-
readonly type:
|
|
1166
|
-
readonly default:
|
|
1167
|
-
};
|
|
1168
|
-
readonly incompleteText: {
|
|
1169
|
-
readonly type: StringConstructor;
|
|
1170
|
-
readonly default: "Waiting for complete Mermaid diagram...";
|
|
1182
|
+
readonly padding: {
|
|
1183
|
+
readonly type: NumberConstructor;
|
|
1184
|
+
readonly default: undefined;
|
|
1171
1185
|
};
|
|
1172
|
-
readonly
|
|
1173
|
-
readonly type:
|
|
1174
|
-
readonly default:
|
|
1186
|
+
readonly textRenderer: {
|
|
1187
|
+
readonly type: import("vue").PropType<TMermaidRenderer>;
|
|
1188
|
+
readonly default: undefined;
|
|
1175
1189
|
};
|
|
1176
|
-
readonly
|
|
1177
|
-
readonly type:
|
|
1178
|
-
readonly default:
|
|
1190
|
+
readonly shouldRenderSource: {
|
|
1191
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidRenderEligibility>;
|
|
1192
|
+
readonly default: undefined;
|
|
1179
1193
|
};
|
|
1180
|
-
readonly
|
|
1181
|
-
readonly type:
|
|
1182
|
-
readonly default:
|
|
1194
|
+
readonly textOptions: {
|
|
1195
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidAsciiOptions>;
|
|
1196
|
+
readonly default: undefined;
|
|
1183
1197
|
};
|
|
1184
1198
|
readonly box: {
|
|
1185
1199
|
readonly type: BooleanConstructor;
|
|
@@ -1201,9 +1215,13 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1201
1215
|
readonly type: StringConstructor;
|
|
1202
1216
|
readonly default: "copied";
|
|
1203
1217
|
};
|
|
1218
|
+
readonly copiedDurationMs: {
|
|
1219
|
+
readonly type: NumberConstructor;
|
|
1220
|
+
readonly default: 1200;
|
|
1221
|
+
};
|
|
1204
1222
|
readonly renderTimeoutMs: {
|
|
1205
1223
|
readonly type: NumberConstructor;
|
|
1206
|
-
readonly default:
|
|
1224
|
+
readonly default: 0;
|
|
1207
1225
|
};
|
|
1208
1226
|
readonly maxRenderSourceChars: {
|
|
1209
1227
|
readonly type: NumberConstructor;
|
|
@@ -1213,14 +1231,38 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1213
1231
|
readonly type: NumberConstructor;
|
|
1214
1232
|
readonly default: 400;
|
|
1215
1233
|
};
|
|
1216
|
-
readonly
|
|
1234
|
+
readonly copyOnClick: {
|
|
1235
|
+
readonly type: BooleanConstructor;
|
|
1236
|
+
readonly default: true;
|
|
1237
|
+
};
|
|
1238
|
+
readonly ascii: {
|
|
1239
|
+
readonly type: BooleanConstructor;
|
|
1240
|
+
readonly default: false;
|
|
1241
|
+
};
|
|
1242
|
+
readonly zoomOnWheel: {
|
|
1243
|
+
readonly type: BooleanConstructor;
|
|
1244
|
+
readonly default: true;
|
|
1245
|
+
};
|
|
1246
|
+
readonly zoomModifier: {
|
|
1247
|
+
readonly type: import("vue").PropType<"meta" | "ctrl" | "metaCtrl" | "none">;
|
|
1248
|
+
readonly default: "metaCtrl";
|
|
1249
|
+
};
|
|
1250
|
+
readonly minZoom: {
|
|
1217
1251
|
readonly type: NumberConstructor;
|
|
1218
|
-
readonly default:
|
|
1252
|
+
readonly default: 1;
|
|
1253
|
+
};
|
|
1254
|
+
readonly maxZoom: {
|
|
1255
|
+
readonly type: NumberConstructor;
|
|
1256
|
+
readonly default: 6;
|
|
1257
|
+
};
|
|
1258
|
+
readonly zoomSensitivity: {
|
|
1259
|
+
readonly type: NumberConstructor;
|
|
1260
|
+
readonly default: 0.002;
|
|
1219
1261
|
};
|
|
1220
1262
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1221
1263
|
[key: string]: any;
|
|
1222
1264
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1223
|
-
copy: (_payload:
|
|
1265
|
+
copy: (_payload: TMermaidImageCopyPayload) => true;
|
|
1224
1266
|
}, string, (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
1225
1267
|
readonly x: {
|
|
1226
1268
|
readonly type: NumberConstructor;
|
|
@@ -1254,14 +1296,6 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1254
1296
|
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
1255
1297
|
readonly default: undefined;
|
|
1256
1298
|
};
|
|
1257
|
-
readonly loadingStyle: {
|
|
1258
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
1259
|
-
readonly default: undefined;
|
|
1260
|
-
};
|
|
1261
|
-
readonly errorStyle: {
|
|
1262
|
-
readonly type: import("vue").PropType<import("../../core.js").Style>;
|
|
1263
|
-
readonly default: undefined;
|
|
1264
|
-
};
|
|
1265
1299
|
readonly clear: {
|
|
1266
1300
|
readonly type: BooleanConstructor;
|
|
1267
1301
|
readonly default: true;
|
|
@@ -1274,57 +1308,53 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1274
1308
|
readonly type: BooleanConstructor;
|
|
1275
1309
|
readonly default: false;
|
|
1276
1310
|
};
|
|
1277
|
-
readonly
|
|
1278
|
-
readonly type:
|
|
1279
|
-
readonly default:
|
|
1311
|
+
readonly renderer: {
|
|
1312
|
+
readonly type: import("vue").PropType<import("./mermaid-image.js").TuiMermaidImageRasterizer>;
|
|
1313
|
+
readonly default: undefined;
|
|
1280
1314
|
};
|
|
1281
|
-
readonly
|
|
1315
|
+
readonly cellWidthPx: {
|
|
1282
1316
|
readonly type: NumberConstructor;
|
|
1283
1317
|
readonly default: undefined;
|
|
1284
1318
|
};
|
|
1285
|
-
readonly
|
|
1319
|
+
readonly cellHeightPx: {
|
|
1286
1320
|
readonly type: NumberConstructor;
|
|
1287
1321
|
readonly default: undefined;
|
|
1288
1322
|
};
|
|
1289
|
-
readonly
|
|
1323
|
+
readonly scale: {
|
|
1290
1324
|
readonly type: NumberConstructor;
|
|
1291
1325
|
readonly default: undefined;
|
|
1292
1326
|
};
|
|
1293
|
-
readonly
|
|
1294
|
-
readonly type:
|
|
1327
|
+
readonly bg: {
|
|
1328
|
+
readonly type: StringConstructor;
|
|
1295
1329
|
readonly default: undefined;
|
|
1296
1330
|
};
|
|
1297
|
-
readonly
|
|
1298
|
-
readonly type:
|
|
1331
|
+
readonly fg: {
|
|
1332
|
+
readonly type: StringConstructor;
|
|
1299
1333
|
readonly default: undefined;
|
|
1300
1334
|
};
|
|
1301
|
-
readonly
|
|
1302
|
-
readonly type:
|
|
1335
|
+
readonly maxWidthCells: {
|
|
1336
|
+
readonly type: NumberConstructor;
|
|
1303
1337
|
readonly default: undefined;
|
|
1304
1338
|
};
|
|
1305
|
-
readonly
|
|
1306
|
-
readonly type:
|
|
1339
|
+
readonly maxHeightCells: {
|
|
1340
|
+
readonly type: NumberConstructor;
|
|
1307
1341
|
readonly default: undefined;
|
|
1308
1342
|
};
|
|
1309
|
-
readonly
|
|
1310
|
-
readonly type:
|
|
1311
|
-
readonly default:
|
|
1312
|
-
};
|
|
1313
|
-
readonly incompleteText: {
|
|
1314
|
-
readonly type: StringConstructor;
|
|
1315
|
-
readonly default: "Waiting for complete Mermaid diagram...";
|
|
1343
|
+
readonly padding: {
|
|
1344
|
+
readonly type: NumberConstructor;
|
|
1345
|
+
readonly default: undefined;
|
|
1316
1346
|
};
|
|
1317
|
-
readonly
|
|
1318
|
-
readonly type:
|
|
1319
|
-
readonly default:
|
|
1347
|
+
readonly textRenderer: {
|
|
1348
|
+
readonly type: import("vue").PropType<TMermaidRenderer>;
|
|
1349
|
+
readonly default: undefined;
|
|
1320
1350
|
};
|
|
1321
|
-
readonly
|
|
1322
|
-
readonly type:
|
|
1323
|
-
readonly default:
|
|
1351
|
+
readonly shouldRenderSource: {
|
|
1352
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidRenderEligibility>;
|
|
1353
|
+
readonly default: undefined;
|
|
1324
1354
|
};
|
|
1325
|
-
readonly
|
|
1326
|
-
readonly type:
|
|
1327
|
-
readonly default:
|
|
1355
|
+
readonly textOptions: {
|
|
1356
|
+
readonly type: import("vue").PropType<import("../index.js").TMermaidAsciiOptions>;
|
|
1357
|
+
readonly default: undefined;
|
|
1328
1358
|
};
|
|
1329
1359
|
readonly box: {
|
|
1330
1360
|
readonly type: BooleanConstructor;
|
|
@@ -1346,9 +1376,13 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1346
1376
|
readonly type: StringConstructor;
|
|
1347
1377
|
readonly default: "copied";
|
|
1348
1378
|
};
|
|
1379
|
+
readonly copiedDurationMs: {
|
|
1380
|
+
readonly type: NumberConstructor;
|
|
1381
|
+
readonly default: 1200;
|
|
1382
|
+
};
|
|
1349
1383
|
readonly renderTimeoutMs: {
|
|
1350
1384
|
readonly type: NumberConstructor;
|
|
1351
|
-
readonly default:
|
|
1385
|
+
readonly default: 0;
|
|
1352
1386
|
};
|
|
1353
1387
|
readonly maxRenderSourceChars: {
|
|
1354
1388
|
readonly type: NumberConstructor;
|
|
@@ -1358,9 +1392,33 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1358
1392
|
readonly type: NumberConstructor;
|
|
1359
1393
|
readonly default: 400;
|
|
1360
1394
|
};
|
|
1361
|
-
readonly
|
|
1395
|
+
readonly copyOnClick: {
|
|
1396
|
+
readonly type: BooleanConstructor;
|
|
1397
|
+
readonly default: true;
|
|
1398
|
+
};
|
|
1399
|
+
readonly ascii: {
|
|
1400
|
+
readonly type: BooleanConstructor;
|
|
1401
|
+
readonly default: false;
|
|
1402
|
+
};
|
|
1403
|
+
readonly zoomOnWheel: {
|
|
1404
|
+
readonly type: BooleanConstructor;
|
|
1405
|
+
readonly default: true;
|
|
1406
|
+
};
|
|
1407
|
+
readonly zoomModifier: {
|
|
1408
|
+
readonly type: import("vue").PropType<"meta" | "ctrl" | "metaCtrl" | "none">;
|
|
1409
|
+
readonly default: "metaCtrl";
|
|
1410
|
+
};
|
|
1411
|
+
readonly minZoom: {
|
|
1362
1412
|
readonly type: NumberConstructor;
|
|
1363
|
-
readonly default:
|
|
1413
|
+
readonly default: 1;
|
|
1414
|
+
};
|
|
1415
|
+
readonly maxZoom: {
|
|
1416
|
+
readonly type: NumberConstructor;
|
|
1417
|
+
readonly default: 6;
|
|
1418
|
+
};
|
|
1419
|
+
readonly zoomSensitivity: {
|
|
1420
|
+
readonly type: NumberConstructor;
|
|
1421
|
+
readonly default: 0.002;
|
|
1364
1422
|
};
|
|
1365
1423
|
}>> & Readonly<{
|
|
1366
1424
|
onCopy?: ((_payload: Readonly<{
|
|
@@ -1369,6 +1427,8 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1369
1427
|
error?: unknown;
|
|
1370
1428
|
}>) => any) | undefined;
|
|
1371
1429
|
}>, {
|
|
1430
|
+
readonly fg: string;
|
|
1431
|
+
readonly bg: string;
|
|
1372
1432
|
readonly style: Readonly<{
|
|
1373
1433
|
fg?: string;
|
|
1374
1434
|
bg?: string;
|
|
@@ -1384,47 +1444,17 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1384
1444
|
readonly h: number;
|
|
1385
1445
|
readonly zIndex: number;
|
|
1386
1446
|
readonly clear: boolean;
|
|
1387
|
-
readonly renderer:
|
|
1447
|
+
readonly renderer: import("./mermaid-image.js").TuiMermaidImageRasterizer;
|
|
1448
|
+
readonly padding: number;
|
|
1388
1449
|
readonly content: string;
|
|
1389
|
-
readonly options: Readonly<{
|
|
1390
|
-
paddingX?: number;
|
|
1391
|
-
paddingY?: number;
|
|
1392
|
-
boxBorderPadding?: number;
|
|
1393
|
-
theme?: import("../index.js").TMermaidAsciiTheme;
|
|
1394
|
-
}>;
|
|
1395
|
-
readonly loadingText: string;
|
|
1396
|
-
readonly errorText: string;
|
|
1397
|
-
readonly loadingStyle: Readonly<{
|
|
1398
|
-
fg?: string;
|
|
1399
|
-
bg?: string;
|
|
1400
|
-
bold?: boolean;
|
|
1401
|
-
dim?: boolean;
|
|
1402
|
-
italic?: boolean;
|
|
1403
|
-
underline?: boolean;
|
|
1404
|
-
inverse?: boolean;
|
|
1405
|
-
href?: string;
|
|
1406
|
-
}>;
|
|
1407
|
-
readonly errorStyle: Readonly<{
|
|
1408
|
-
fg?: string;
|
|
1409
|
-
bg?: string;
|
|
1410
|
-
bold?: boolean;
|
|
1411
|
-
dim?: boolean;
|
|
1412
|
-
italic?: boolean;
|
|
1413
|
-
underline?: boolean;
|
|
1414
|
-
inverse?: boolean;
|
|
1415
|
-
href?: string;
|
|
1416
|
-
}>;
|
|
1417
1450
|
readonly final: boolean;
|
|
1418
1451
|
readonly streaming: boolean;
|
|
1452
|
+
readonly cellWidthPx: number;
|
|
1453
|
+
readonly cellHeightPx: number;
|
|
1454
|
+
readonly scale: number;
|
|
1455
|
+
readonly maxWidthCells: number;
|
|
1419
1456
|
readonly ascii: boolean;
|
|
1420
|
-
readonly paddingX: number;
|
|
1421
|
-
readonly paddingY: number;
|
|
1422
|
-
readonly boxBorderPadding: number;
|
|
1423
|
-
readonly isTransientError: TMermaidTransientErrorClassifier;
|
|
1424
1457
|
readonly shouldRenderSource: import("../index.js").TMermaidRenderEligibility;
|
|
1425
|
-
readonly incompleteText: string;
|
|
1426
|
-
readonly missingDependencyText: string;
|
|
1427
|
-
readonly showErrorDetails: boolean;
|
|
1428
1458
|
readonly box: boolean;
|
|
1429
1459
|
readonly copyButton: boolean;
|
|
1430
1460
|
readonly copyText: string;
|
|
@@ -1433,4 +1463,18 @@ export declare const TBeautifulMermaid: import("vue").DefineComponent<import("vu
|
|
|
1433
1463
|
readonly maxRenderSourceChars: number;
|
|
1434
1464
|
readonly maxRenderSourceLines: number;
|
|
1435
1465
|
readonly copiedDurationMs: number;
|
|
1466
|
+
readonly minZoom: number;
|
|
1467
|
+
readonly maxZoom: number;
|
|
1468
|
+
readonly zoomSensitivity: number;
|
|
1469
|
+
readonly maxHeightCells: number;
|
|
1470
|
+
readonly textRenderer: TMermaidRenderer;
|
|
1471
|
+
readonly textOptions: Readonly<{
|
|
1472
|
+
paddingX?: number;
|
|
1473
|
+
paddingY?: number;
|
|
1474
|
+
boxBorderPadding?: number;
|
|
1475
|
+
theme?: import("../index.js").TMermaidAsciiTheme;
|
|
1476
|
+
}>;
|
|
1477
|
+
readonly copyOnClick: boolean;
|
|
1478
|
+
readonly zoomOnWheel: boolean;
|
|
1479
|
+
readonly zoomModifier: "none" | "meta" | "ctrl" | "metaCtrl";
|
|
1436
1480
|
}, {}>;
|