@vanduo-oss/vd3-cbun 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/README.md +26 -18
  3. package/SKILL.md +36 -8
  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 +246 -0
  15. package/dist/draw/index.cjs +2248 -0
  16. package/dist/draw/index.cjs.map +7 -0
  17. package/dist/draw/index.d.ts +34 -0
  18. package/dist/draw/index.js +2225 -0
  19. package/dist/draw/index.js.map +7 -0
  20. package/dist/draw/shapes.d.ts +12 -0
  21. package/dist/draw/vd3-draw.css +301 -0
  22. package/dist/draw/vue.d.ts +68 -0
  23. package/dist/flowchart/index.cjs +4 -4
  24. package/dist/flowchart/index.cjs.map +2 -2
  25. package/dist/flowchart/index.js +4 -4
  26. package/dist/flowchart/index.js.map +2 -2
  27. package/dist/hex-grid/index.cjs +90 -62
  28. package/dist/hex-grid/index.cjs.map +3 -3
  29. package/dist/hex-grid/index.d.ts +1 -1
  30. package/dist/hex-grid/index.js +90 -62
  31. package/dist/hex-grid/index.js.map +3 -3
  32. package/dist/hex-grid/vue.d.ts +25 -1
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.js +5 -4
  35. package/dist/index.js.map +2 -2
  36. package/dist/meta.json +169 -45
  37. package/dist/music-player/index.cjs +3 -4
  38. package/dist/music-player/index.cjs.map +2 -2
  39. package/dist/music-player/index.d.ts +9 -1
  40. package/dist/music-player/index.js +3 -4
  41. package/dist/music-player/index.js.map +2 -2
  42. package/dist/music-player/vue.d.ts +49 -1
  43. package/package.json +9 -2
package/dist/meta.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "inputs": {
3
3
  "src/index.js": {
4
- "bytes": 817,
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",
@@ -250,13 +250,66 @@
250
250
  ],
251
251
  "format": "esm"
252
252
  },
253
+ "src/draw/shapes.js": {
254
+ "bytes": 19063,
255
+ "imports": [],
256
+ "format": "esm"
257
+ },
258
+ "src/draw/core.js": {
259
+ "bytes": 68715,
260
+ "imports": [
261
+ {
262
+ "path": "src/draw/shapes.js",
263
+ "kind": "import-statement",
264
+ "original": "./shapes.js"
265
+ }
266
+ ],
267
+ "format": "esm"
268
+ },
269
+ "src/draw/vue.js": {
270
+ "bytes": 3709,
271
+ "imports": [
272
+ {
273
+ "path": "vue",
274
+ "kind": "import-statement",
275
+ "external": true
276
+ },
277
+ {
278
+ "path": "src/draw/core.js",
279
+ "kind": "import-statement",
280
+ "original": "./core.js"
281
+ }
282
+ ],
283
+ "format": "esm"
284
+ },
285
+ "src/draw/index.js": {
286
+ "bytes": 378,
287
+ "imports": [
288
+ {
289
+ "path": "src/draw/vue.js",
290
+ "kind": "import-statement",
291
+ "original": "./vue.js"
292
+ },
293
+ {
294
+ "path": "src/draw/core.js",
295
+ "kind": "import-statement",
296
+ "original": "./core.js"
297
+ },
298
+ {
299
+ "path": "src/draw/shapes.js",
300
+ "kind": "import-statement",
301
+ "original": "./shapes.js"
302
+ }
303
+ ],
304
+ "format": "esm"
305
+ },
253
306
  "src/flowchart/layout.js": {
254
307
  "bytes": 7394,
255
308
  "imports": [],
256
309
  "format": "esm"
257
310
  },
258
311
  "src/flowchart/core.js": {
259
- "bytes": 124478,
312
+ "bytes": 125105,
260
313
  "imports": [
261
314
  {
262
315
  "path": "src/flowchart/layout.js",
@@ -309,7 +362,7 @@
309
362
  "format": "esm"
310
363
  },
311
364
  "src/hex-grid/core.js": {
312
- "bytes": 24607,
365
+ "bytes": 26230,
313
366
  "imports": [
314
367
  {
315
368
  "path": "src/hex-grid/hex-math.js",
@@ -357,7 +410,7 @@
357
410
  "format": "esm"
358
411
  },
359
412
  "src/music-player/core.js": {
360
- "bytes": 49138,
413
+ "bytes": 49390,
361
414
  "imports": [],
362
415
  "format": "esm"
363
416
  },
@@ -399,7 +452,7 @@
399
452
  "imports": [],
400
453
  "exports": [],
401
454
  "inputs": {},
402
- "bytes": 1071
455
+ "bytes": 1131
403
456
  },
404
457
  "dist/index.js": {
405
458
  "imports": [],
@@ -409,16 +462,16 @@
409
462
  "entryPoint": "src/index.js",
410
463
  "inputs": {
411
464
  "src/index.js": {
412
- "bytesInOutput": 160
465
+ "bytesInOutput": 177
413
466
  }
414
467
  },
415
- "bytes": 242
468
+ "bytes": 259
416
469
  },
417
470
  "dist/charts/index.js.map": {
418
471
  "imports": [],
419
472
  "exports": [],
420
473
  "inputs": {},
421
- "bytes": 103317
474
+ "bytes": 104833
422
475
  },
423
476
  "dist/charts/index.js": {
424
477
  "imports": [
@@ -459,22 +512,22 @@
459
512
  "entryPoint": "src/charts/index.js",
460
513
  "inputs": {
461
514
  "src/charts/vue.js": {
462
- "bytesInOutput": 4985
515
+ "bytesInOutput": 5643
463
516
  },
464
517
  "src/charts/core.js": {
465
- "bytesInOutput": 50145
518
+ "bytesInOutput": 50233
466
519
  },
467
520
  "src/charts/index.js": {
468
521
  "bytesInOutput": 0
469
522
  }
470
523
  },
471
- "bytes": 55608
524
+ "bytes": 56354
472
525
  },
473
526
  "dist/charts/index.cjs.map": {
474
527
  "imports": [],
475
528
  "exports": [],
476
529
  "inputs": {},
477
- "bytes": 104156
530
+ "bytes": 105672
478
531
  },
479
532
  "dist/charts/index.cjs": {
480
533
  "imports": [
@@ -491,19 +544,19 @@
491
544
  "bytesInOutput": 937
492
545
  },
493
546
  "src/charts/vue.js": {
494
- "bytesInOutput": 5064
547
+ "bytesInOutput": 5722
495
548
  },
496
549
  "src/charts/core.js": {
497
- "bytesInOutput": 50145
550
+ "bytesInOutput": 50233
498
551
  }
499
552
  },
500
- "bytes": 57071
553
+ "bytes": 57817
501
554
  },
502
555
  "dist/code-editor/index.js.map": {
503
556
  "imports": [],
504
557
  "exports": [],
505
558
  "inputs": {},
506
- "bytes": 77396
559
+ "bytes": 77486
507
560
  },
508
561
  "dist/code-editor/index.js": {
509
562
  "imports": [
@@ -530,13 +583,13 @@
530
583
  "bytesInOutput": 1556
531
584
  },
532
585
  "src/code-editor/tokenizer/javascript.js": {
533
- "bytesInOutput": 2346
586
+ "bytesInOutput": 2390
534
587
  },
535
588
  "src/code-editor/tokenizer/html.js": {
536
589
  "bytesInOutput": 1131
537
590
  },
538
591
  "src/code-editor/tokenizer/css.js": {
539
- "bytesInOutput": 838
592
+ "bytesInOutput": 880
540
593
  },
541
594
  "src/code-editor/tokenizer/json.js": {
542
595
  "bytesInOutput": 384
@@ -569,13 +622,13 @@
569
622
  "bytesInOutput": 0
570
623
  }
571
624
  },
572
- "bytes": 37710
625
+ "bytes": 37796
573
626
  },
574
627
  "dist/code-editor/index.cjs.map": {
575
628
  "imports": [],
576
629
  "exports": [],
577
630
  "inputs": {},
578
- "bytes": 77974
631
+ "bytes": 78064
579
632
  },
580
633
  "dist/code-editor/index.cjs": {
581
634
  "imports": [
@@ -598,13 +651,13 @@
598
651
  "bytesInOutput": 1556
599
652
  },
600
653
  "src/code-editor/tokenizer/javascript.js": {
601
- "bytesInOutput": 2346
654
+ "bytesInOutput": 2390
602
655
  },
603
656
  "src/code-editor/tokenizer/html.js": {
604
657
  "bytesInOutput": 1131
605
658
  },
606
659
  "src/code-editor/tokenizer/css.js": {
607
- "bytesInOutput": 838
660
+ "bytesInOutput": 880
608
661
  },
609
662
  "src/code-editor/tokenizer/json.js": {
610
663
  "bytesInOutput": 384
@@ -634,13 +687,84 @@
634
687
  "bytesInOutput": 16042
635
688
  }
636
689
  },
637
- "bytes": 38859
690
+ "bytes": 38945
691
+ },
692
+ "dist/draw/index.js.map": {
693
+ "imports": [],
694
+ "exports": [],
695
+ "inputs": {},
696
+ "bytes": 158651
697
+ },
698
+ "dist/draw/index.js": {
699
+ "imports": [
700
+ {
701
+ "path": "vue",
702
+ "kind": "import-statement",
703
+ "external": true
704
+ }
705
+ ],
706
+ "exports": [
707
+ "BRUSH_PRESETS",
708
+ "DRAW_SHAPE_TYPES",
709
+ "DRAW_TOOLS",
710
+ "VD_DRAW_VERSION",
711
+ "VdDraw",
712
+ "VdDrawCore"
713
+ ],
714
+ "entryPoint": "src/draw/index.js",
715
+ "inputs": {
716
+ "src/draw/vue.js": {
717
+ "bytesInOutput": 3146
718
+ },
719
+ "src/draw/shapes.js": {
720
+ "bytesInOutput": 14154
721
+ },
722
+ "src/draw/core.js": {
723
+ "bytesInOutput": 66357
724
+ },
725
+ "src/draw/index.js": {
726
+ "bytesInOutput": 0
727
+ }
728
+ },
729
+ "bytes": 83900
730
+ },
731
+ "dist/draw/index.cjs.map": {
732
+ "imports": [],
733
+ "exports": [],
734
+ "inputs": {},
735
+ "bytes": 159134
736
+ },
737
+ "dist/draw/index.cjs": {
738
+ "imports": [
739
+ {
740
+ "path": "vue",
741
+ "kind": "require-call",
742
+ "external": true
743
+ }
744
+ ],
745
+ "exports": [],
746
+ "entryPoint": "src/draw/index.js",
747
+ "inputs": {
748
+ "src/draw/index.js": {
749
+ "bytesInOutput": 308
750
+ },
751
+ "src/draw/vue.js": {
752
+ "bytesInOutput": 3241
753
+ },
754
+ "src/draw/shapes.js": {
755
+ "bytesInOutput": 14154
756
+ },
757
+ "src/draw/core.js": {
758
+ "bytesInOutput": 66357
759
+ }
760
+ },
761
+ "bytes": 85000
638
762
  },
639
763
  "dist/flowchart/index.js.map": {
640
764
  "imports": [],
641
765
  "exports": [],
642
766
  "inputs": {},
643
- "bytes": 230047
767
+ "bytes": 230753
644
768
  },
645
769
  "dist/flowchart/index.js": {
646
770
  "imports": [
@@ -670,19 +794,19 @@
670
794
  "bytesInOutput": 6422
671
795
  },
672
796
  "src/flowchart/core.js": {
673
- "bytesInOutput": 118967
797
+ "bytesInOutput": 119041
674
798
  },
675
799
  "src/flowchart/index.js": {
676
800
  "bytesInOutput": 0
677
801
  }
678
802
  },
679
- "bytes": 128374
803
+ "bytes": 128448
680
804
  },
681
805
  "dist/flowchart/index.cjs.map": {
682
806
  "imports": [],
683
807
  "exports": [],
684
808
  "inputs": {},
685
- "bytes": 230671
809
+ "bytes": 231377
686
810
  },
687
811
  "dist/flowchart/index.cjs": {
688
812
  "imports": [
@@ -705,16 +829,16 @@
705
829
  "bytesInOutput": 6422
706
830
  },
707
831
  "src/flowchart/core.js": {
708
- "bytesInOutput": 118967
832
+ "bytesInOutput": 119041
709
833
  }
710
834
  },
711
- "bytes": 129540
835
+ "bytes": 129614
712
836
  },
713
837
  "dist/hex-grid/index.js.map": {
714
838
  "imports": [],
715
839
  "exports": [],
716
840
  "inputs": {},
717
- "bytes": 55514
841
+ "bytes": 57978
718
842
  },
719
843
  "dist/hex-grid/index.js": {
720
844
  "imports": [
@@ -738,19 +862,19 @@
738
862
  "bytesInOutput": 3574
739
863
  },
740
864
  "src/hex-grid/core.js": {
741
- "bytesInOutput": 22382
865
+ "bytesInOutput": 24000
742
866
  },
743
867
  "src/hex-grid/index.js": {
744
868
  "bytesInOutput": 0
745
869
  }
746
870
  },
747
- "bytes": 28298
871
+ "bytes": 29916
748
872
  },
749
873
  "dist/hex-grid/index.cjs.map": {
750
874
  "imports": [],
751
875
  "exports": [],
752
876
  "inputs": {},
753
- "bytes": 56070
877
+ "bytes": 58534
754
878
  },
755
879
  "dist/hex-grid/index.cjs": {
756
880
  "imports": [
@@ -773,10 +897,10 @@
773
897
  "bytesInOutput": 3574
774
898
  },
775
899
  "src/hex-grid/core.js": {
776
- "bytesInOutput": 22382
900
+ "bytesInOutput": 24000
777
901
  }
778
902
  },
779
- "bytes": 29298
903
+ "bytes": 30916
780
904
  },
781
905
  "dist/hex-grid/hex-math.js.map": {
782
906
  "imports": [],
@@ -834,7 +958,7 @@
834
958
  "imports": [],
835
959
  "exports": [],
836
960
  "inputs": {},
837
- "bytes": 81578
961
+ "bytes": 81815
838
962
  },
839
963
  "dist/music-player/index.js": {
840
964
  "imports": [
@@ -855,19 +979,19 @@
855
979
  "bytesInOutput": 1694
856
980
  },
857
981
  "src/music-player/core.js": {
858
- "bytesInOutput": 42631
982
+ "bytesInOutput": 42601
859
983
  },
860
984
  "src/music-player/index.js": {
861
985
  "bytesInOutput": 0
862
986
  }
863
987
  },
864
- "bytes": 44513
988
+ "bytes": 44483
865
989
  },
866
990
  "dist/music-player/index.cjs.map": {
867
991
  "imports": [],
868
992
  "exports": [],
869
993
  "inputs": {},
870
- "bytes": 81971
994
+ "bytes": 82208
871
995
  },
872
996
  "dist/music-player/index.cjs": {
873
997
  "imports": [
@@ -887,10 +1011,10 @@
887
1011
  "bytesInOutput": 1741
888
1012
  },
889
1013
  "src/music-player/core.js": {
890
- "bytesInOutput": 42631
1014
+ "bytesInOutput": 42601
891
1015
  }
892
1016
  },
893
- "bytes": 45550
1017
+ "bytes": 45520
894
1018
  }
895
1019
  }
896
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();