@vanduo-oss/vd3-cbun 1.2.0 → 1.3.1

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 (41) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +17 -15
  3. package/SKILL.md +3 -3
  4. package/dist/charts/index.cjs +18 -8
  5. package/dist/charts/index.cjs.map +2 -2
  6. package/dist/charts/index.d.ts +1 -1
  7. package/dist/charts/index.js +18 -8
  8. package/dist/charts/index.js.map +2 -2
  9. package/dist/charts/vue.d.ts +78 -7
  10. package/dist/code-editor/index.cjs +5 -3
  11. package/dist/code-editor/index.cjs.map +2 -2
  12. package/dist/code-editor/index.js +5 -3
  13. package/dist/code-editor/index.js.map +2 -2
  14. package/dist/draw/core.d.ts +6 -9
  15. package/dist/draw/index.cjs +13 -4
  16. package/dist/draw/index.cjs.map +2 -2
  17. package/dist/draw/index.d.ts +3 -7
  18. package/dist/draw/index.js +13 -4
  19. package/dist/draw/index.js.map +2 -2
  20. package/dist/draw/shapes.d.ts +12 -0
  21. package/dist/flowchart/index.cjs +107 -72
  22. package/dist/flowchart/index.cjs.map +2 -2
  23. package/dist/flowchart/index.js +107 -72
  24. package/dist/flowchart/index.js.map +2 -2
  25. package/dist/flowchart/vd3-flowchart.css +176 -47
  26. package/dist/hex-grid/index.cjs +90 -62
  27. package/dist/hex-grid/index.cjs.map +3 -3
  28. package/dist/hex-grid/index.d.ts +1 -1
  29. package/dist/hex-grid/index.js +90 -62
  30. package/dist/hex-grid/index.js.map +3 -3
  31. package/dist/hex-grid/vue.d.ts +25 -1
  32. package/dist/index.js +4 -4
  33. package/dist/index.js.map +2 -2
  34. package/dist/meta.json +53 -53
  35. package/dist/music-player/index.cjs +3 -4
  36. package/dist/music-player/index.cjs.map +2 -2
  37. package/dist/music-player/index.d.ts +9 -1
  38. package/dist/music-player/index.js +3 -4
  39. package/dist/music-player/index.js.map +2 -2
  40. package/dist/music-player/vue.d.ts +49 -1
  41. package/package.json +1 -1
package/dist/meta.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "inputs": {
3
3
  "src/index.js": {
4
- "bytes": 834,
4
+ "bytes": 860,
5
5
  "imports": [],
6
6
  "format": "esm"
7
7
  },
8
8
  "src/charts/core.js": {
9
- "bytes": 51976,
9
+ "bytes": 52467,
10
10
  "imports": [],
11
11
  "format": "esm"
12
12
  },
13
13
  "src/charts/vue.js": {
14
- "bytes": 5821,
14
+ "bytes": 6479,
15
15
  "imports": [
16
16
  {
17
17
  "path": "vue",
@@ -48,7 +48,7 @@
48
48
  "format": "esm"
49
49
  },
50
50
  "src/code-editor/tokenizer/javascript.js": {
51
- "bytes": 2582,
51
+ "bytes": 2622,
52
52
  "imports": [
53
53
  {
54
54
  "path": "src/code-editor/tokenizer/scanner.js",
@@ -70,7 +70,7 @@
70
70
  "format": "esm"
71
71
  },
72
72
  "src/code-editor/tokenizer/css.js": {
73
- "bytes": 1100,
73
+ "bytes": 1140,
74
74
  "imports": [
75
75
  {
76
76
  "path": "src/code-editor/tokenizer/scanner.js",
@@ -251,12 +251,12 @@
251
251
  "format": "esm"
252
252
  },
253
253
  "src/draw/shapes.js": {
254
- "bytes": 18178,
254
+ "bytes": 19063,
255
255
  "imports": [],
256
256
  "format": "esm"
257
257
  },
258
258
  "src/draw/core.js": {
259
- "bytes": 68381,
259
+ "bytes": 68715,
260
260
  "imports": [
261
261
  {
262
262
  "path": "src/draw/shapes.js",
@@ -309,7 +309,7 @@
309
309
  "format": "esm"
310
310
  },
311
311
  "src/flowchart/core.js": {
312
- "bytes": 124478,
312
+ "bytes": 127688,
313
313
  "imports": [
314
314
  {
315
315
  "path": "src/flowchart/layout.js",
@@ -362,7 +362,7 @@
362
362
  "format": "esm"
363
363
  },
364
364
  "src/hex-grid/core.js": {
365
- "bytes": 24607,
365
+ "bytes": 26230,
366
366
  "imports": [
367
367
  {
368
368
  "path": "src/hex-grid/hex-math.js",
@@ -410,7 +410,7 @@
410
410
  "format": "esm"
411
411
  },
412
412
  "src/music-player/core.js": {
413
- "bytes": 49138,
413
+ "bytes": 49390,
414
414
  "imports": [],
415
415
  "format": "esm"
416
416
  },
@@ -452,7 +452,7 @@
452
452
  "imports": [],
453
453
  "exports": [],
454
454
  "inputs": {},
455
- "bytes": 1104
455
+ "bytes": 1131
456
456
  },
457
457
  "dist/index.js": {
458
458
  "imports": [],
@@ -471,7 +471,7 @@
471
471
  "imports": [],
472
472
  "exports": [],
473
473
  "inputs": {},
474
- "bytes": 103317
474
+ "bytes": 104833
475
475
  },
476
476
  "dist/charts/index.js": {
477
477
  "imports": [
@@ -512,22 +512,22 @@
512
512
  "entryPoint": "src/charts/index.js",
513
513
  "inputs": {
514
514
  "src/charts/vue.js": {
515
- "bytesInOutput": 4985
515
+ "bytesInOutput": 5643
516
516
  },
517
517
  "src/charts/core.js": {
518
- "bytesInOutput": 50145
518
+ "bytesInOutput": 50233
519
519
  },
520
520
  "src/charts/index.js": {
521
521
  "bytesInOutput": 0
522
522
  }
523
523
  },
524
- "bytes": 55608
524
+ "bytes": 56354
525
525
  },
526
526
  "dist/charts/index.cjs.map": {
527
527
  "imports": [],
528
528
  "exports": [],
529
529
  "inputs": {},
530
- "bytes": 104156
530
+ "bytes": 105672
531
531
  },
532
532
  "dist/charts/index.cjs": {
533
533
  "imports": [
@@ -544,19 +544,19 @@
544
544
  "bytesInOutput": 937
545
545
  },
546
546
  "src/charts/vue.js": {
547
- "bytesInOutput": 5064
547
+ "bytesInOutput": 5722
548
548
  },
549
549
  "src/charts/core.js": {
550
- "bytesInOutput": 50145
550
+ "bytesInOutput": 50233
551
551
  }
552
552
  },
553
- "bytes": 57071
553
+ "bytes": 57817
554
554
  },
555
555
  "dist/code-editor/index.js.map": {
556
556
  "imports": [],
557
557
  "exports": [],
558
558
  "inputs": {},
559
- "bytes": 77396
559
+ "bytes": 77486
560
560
  },
561
561
  "dist/code-editor/index.js": {
562
562
  "imports": [
@@ -583,13 +583,13 @@
583
583
  "bytesInOutput": 1556
584
584
  },
585
585
  "src/code-editor/tokenizer/javascript.js": {
586
- "bytesInOutput": 2346
586
+ "bytesInOutput": 2390
587
587
  },
588
588
  "src/code-editor/tokenizer/html.js": {
589
589
  "bytesInOutput": 1131
590
590
  },
591
591
  "src/code-editor/tokenizer/css.js": {
592
- "bytesInOutput": 838
592
+ "bytesInOutput": 880
593
593
  },
594
594
  "src/code-editor/tokenizer/json.js": {
595
595
  "bytesInOutput": 384
@@ -622,13 +622,13 @@
622
622
  "bytesInOutput": 0
623
623
  }
624
624
  },
625
- "bytes": 37710
625
+ "bytes": 37796
626
626
  },
627
627
  "dist/code-editor/index.cjs.map": {
628
628
  "imports": [],
629
629
  "exports": [],
630
630
  "inputs": {},
631
- "bytes": 77974
631
+ "bytes": 78064
632
632
  },
633
633
  "dist/code-editor/index.cjs": {
634
634
  "imports": [
@@ -651,13 +651,13 @@
651
651
  "bytesInOutput": 1556
652
652
  },
653
653
  "src/code-editor/tokenizer/javascript.js": {
654
- "bytesInOutput": 2346
654
+ "bytesInOutput": 2390
655
655
  },
656
656
  "src/code-editor/tokenizer/html.js": {
657
657
  "bytesInOutput": 1131
658
658
  },
659
659
  "src/code-editor/tokenizer/css.js": {
660
- "bytesInOutput": 838
660
+ "bytesInOutput": 880
661
661
  },
662
662
  "src/code-editor/tokenizer/json.js": {
663
663
  "bytesInOutput": 384
@@ -687,13 +687,13 @@
687
687
  "bytesInOutput": 16042
688
688
  }
689
689
  },
690
- "bytes": 38859
690
+ "bytes": 38945
691
691
  },
692
692
  "dist/draw/index.js.map": {
693
693
  "imports": [],
694
694
  "exports": [],
695
695
  "inputs": {},
696
- "bytes": 157160
696
+ "bytes": 158651
697
697
  },
698
698
  "dist/draw/index.js": {
699
699
  "imports": [
@@ -717,22 +717,22 @@
717
717
  "bytesInOutput": 3146
718
718
  },
719
719
  "src/draw/shapes.js": {
720
- "bytesInOutput": 13933
720
+ "bytesInOutput": 14154
721
721
  },
722
722
  "src/draw/core.js": {
723
- "bytesInOutput": 66037
723
+ "bytesInOutput": 66357
724
724
  },
725
725
  "src/draw/index.js": {
726
726
  "bytesInOutput": 0
727
727
  }
728
728
  },
729
- "bytes": 83359
729
+ "bytes": 83900
730
730
  },
731
731
  "dist/draw/index.cjs.map": {
732
732
  "imports": [],
733
733
  "exports": [],
734
734
  "inputs": {},
735
- "bytes": 157643
735
+ "bytes": 159134
736
736
  },
737
737
  "dist/draw/index.cjs": {
738
738
  "imports": [
@@ -752,19 +752,19 @@
752
752
  "bytesInOutput": 3241
753
753
  },
754
754
  "src/draw/shapes.js": {
755
- "bytesInOutput": 13933
755
+ "bytesInOutput": 14154
756
756
  },
757
757
  "src/draw/core.js": {
758
- "bytesInOutput": 66037
758
+ "bytesInOutput": 66357
759
759
  }
760
760
  },
761
- "bytes": 84459
761
+ "bytes": 85000
762
762
  },
763
763
  "dist/flowchart/index.js.map": {
764
764
  "imports": [],
765
765
  "exports": [],
766
766
  "inputs": {},
767
- "bytes": 230047
767
+ "bytes": 233997
768
768
  },
769
769
  "dist/flowchart/index.js": {
770
770
  "imports": [
@@ -794,19 +794,19 @@
794
794
  "bytesInOutput": 6422
795
795
  },
796
796
  "src/flowchart/core.js": {
797
- "bytesInOutput": 118967
797
+ "bytesInOutput": 121438
798
798
  },
799
799
  "src/flowchart/index.js": {
800
800
  "bytesInOutput": 0
801
801
  }
802
802
  },
803
- "bytes": 128374
803
+ "bytes": 130845
804
804
  },
805
805
  "dist/flowchart/index.cjs.map": {
806
806
  "imports": [],
807
807
  "exports": [],
808
808
  "inputs": {},
809
- "bytes": 230671
809
+ "bytes": 234621
810
810
  },
811
811
  "dist/flowchart/index.cjs": {
812
812
  "imports": [
@@ -829,16 +829,16 @@
829
829
  "bytesInOutput": 6422
830
830
  },
831
831
  "src/flowchart/core.js": {
832
- "bytesInOutput": 118967
832
+ "bytesInOutput": 121438
833
833
  }
834
834
  },
835
- "bytes": 129540
835
+ "bytes": 132011
836
836
  },
837
837
  "dist/hex-grid/index.js.map": {
838
838
  "imports": [],
839
839
  "exports": [],
840
840
  "inputs": {},
841
- "bytes": 55514
841
+ "bytes": 57978
842
842
  },
843
843
  "dist/hex-grid/index.js": {
844
844
  "imports": [
@@ -862,19 +862,19 @@
862
862
  "bytesInOutput": 3574
863
863
  },
864
864
  "src/hex-grid/core.js": {
865
- "bytesInOutput": 22382
865
+ "bytesInOutput": 24000
866
866
  },
867
867
  "src/hex-grid/index.js": {
868
868
  "bytesInOutput": 0
869
869
  }
870
870
  },
871
- "bytes": 28298
871
+ "bytes": 29916
872
872
  },
873
873
  "dist/hex-grid/index.cjs.map": {
874
874
  "imports": [],
875
875
  "exports": [],
876
876
  "inputs": {},
877
- "bytes": 56070
877
+ "bytes": 58534
878
878
  },
879
879
  "dist/hex-grid/index.cjs": {
880
880
  "imports": [
@@ -897,10 +897,10 @@
897
897
  "bytesInOutput": 3574
898
898
  },
899
899
  "src/hex-grid/core.js": {
900
- "bytesInOutput": 22382
900
+ "bytesInOutput": 24000
901
901
  }
902
902
  },
903
- "bytes": 29298
903
+ "bytes": 30916
904
904
  },
905
905
  "dist/hex-grid/hex-math.js.map": {
906
906
  "imports": [],
@@ -958,7 +958,7 @@
958
958
  "imports": [],
959
959
  "exports": [],
960
960
  "inputs": {},
961
- "bytes": 81578
961
+ "bytes": 81815
962
962
  },
963
963
  "dist/music-player/index.js": {
964
964
  "imports": [
@@ -979,19 +979,19 @@
979
979
  "bytesInOutput": 1694
980
980
  },
981
981
  "src/music-player/core.js": {
982
- "bytesInOutput": 42631
982
+ "bytesInOutput": 42601
983
983
  },
984
984
  "src/music-player/index.js": {
985
985
  "bytesInOutput": 0
986
986
  }
987
987
  },
988
- "bytes": 44513
988
+ "bytes": 44483
989
989
  },
990
990
  "dist/music-player/index.cjs.map": {
991
991
  "imports": [],
992
992
  "exports": [],
993
993
  "inputs": {},
994
- "bytes": 81971
994
+ "bytes": 82208
995
995
  },
996
996
  "dist/music-player/index.cjs": {
997
997
  "imports": [
@@ -1011,10 +1011,10 @@
1011
1011
  "bytesInOutput": 1741
1012
1012
  },
1013
1013
  "src/music-player/core.js": {
1014
- "bytesInOutput": 42631
1014
+ "bytesInOutput": 42601
1015
1015
  }
1016
1016
  },
1017
- "bytes": 45550
1017
+ "bytes": 45520
1018
1018
  }
1019
1019
  }
1020
1020
  }
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(index_exports);
30
30
  var import_vue = require("vue");
31
31
 
32
32
  // src/music-player/core.js
33
- var VD_MUSIC_PLAYER_VERSION = "1.0.0";
33
+ var VD_MUSIC_PLAYER_VERSION = "1.0.1";
34
34
  var CORNER_POSITIONS = ["bottom-left", "bottom-right", "top-left", "top-right"];
35
35
  var REPEAT_MODES = ["off", "one", "all"];
36
36
  var REPEAT_CYCLE = { off: "one", one: "all", all: "off" };
@@ -305,9 +305,8 @@ var MusicPlayer = {
305
305
  }
306
306
  return;
307
307
  }
308
- if (state.autoAdvance && state.tracks.length > 1) {
309
- const next = (state.currentIndex + 1) % state.tracks.length;
310
- loadTrack(next, true);
308
+ if (state.autoAdvance && state.currentIndex + 1 < state.tracks.length) {
309
+ loadTrack(state.currentIndex + 1, true);
311
310
  } else {
312
311
  state.isPlaying = false;
313
312
  renderPlayIcon();