notations 0.0.69 → 1.0.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 (68) hide show
  1. package/dist/NotationView.css +20 -0
  2. package/dist/NotationView.css.map +1 -1
  3. package/dist/NotationView.min.css +1 -1
  4. package/dist/NotationView.min.css.map +1 -1
  5. package/dist/notations.umd.js +17425 -23624
  6. package/dist/notations.umd.min.js +8 -3
  7. package/dist/notations.umd.min.js.LICENSE.txt +0 -14
  8. package/dist/notations.umd.min.js.map +1 -1
  9. package/lib/cjs/beats.d.ts +4 -0
  10. package/lib/cjs/beats.js +19 -2
  11. package/lib/cjs/beats.js.map +1 -1
  12. package/lib/cjs/block.d.ts +85 -0
  13. package/lib/cjs/block.js +310 -0
  14. package/lib/cjs/block.js.map +1 -0
  15. package/lib/cjs/carnatic/NotationView.d.ts +11 -4
  16. package/lib/cjs/carnatic/NotationView.js +25 -11
  17. package/lib/cjs/carnatic/NotationView.js.map +1 -1
  18. package/lib/cjs/commands.d.ts +25 -11
  19. package/lib/cjs/commands.js +83 -31
  20. package/lib/cjs/commands.js.map +1 -1
  21. package/lib/cjs/entity.d.ts +3 -7
  22. package/lib/cjs/entity.js +7 -37
  23. package/lib/cjs/entity.js.map +1 -1
  24. package/lib/cjs/grids.d.ts +32 -3
  25. package/lib/cjs/grids.js +96 -9
  26. package/lib/cjs/grids.js.map +1 -1
  27. package/lib/cjs/index.d.ts +1 -0
  28. package/lib/cjs/index.js +1 -0
  29. package/lib/cjs/index.js.map +1 -1
  30. package/lib/cjs/loader.js +1 -41
  31. package/lib/cjs/loader.js.map +1 -1
  32. package/lib/cjs/notation.d.ts +20 -36
  33. package/lib/cjs/notation.js +100 -133
  34. package/lib/cjs/notation.js.map +1 -1
  35. package/lib/cjs/parser.d.ts +21 -6
  36. package/lib/cjs/parser.js +122 -23
  37. package/lib/cjs/parser.js.map +1 -1
  38. package/lib/esm/beats.d.ts +4 -0
  39. package/lib/esm/beats.js +19 -2
  40. package/lib/esm/beats.js.map +1 -1
  41. package/lib/esm/block.d.ts +85 -0
  42. package/lib/esm/block.js +293 -0
  43. package/lib/esm/block.js.map +1 -0
  44. package/lib/esm/carnatic/NotationView.d.ts +11 -4
  45. package/lib/esm/carnatic/NotationView.js +25 -11
  46. package/lib/esm/carnatic/NotationView.js.map +1 -1
  47. package/lib/esm/commands.d.ts +25 -11
  48. package/lib/esm/commands.js +80 -31
  49. package/lib/esm/commands.js.map +1 -1
  50. package/lib/esm/entity.d.ts +3 -7
  51. package/lib/esm/entity.js +7 -37
  52. package/lib/esm/entity.js.map +1 -1
  53. package/lib/esm/grids.d.ts +32 -3
  54. package/lib/esm/grids.js +96 -9
  55. package/lib/esm/grids.js.map +1 -1
  56. package/lib/esm/index.d.ts +1 -0
  57. package/lib/esm/index.js +1 -0
  58. package/lib/esm/index.js.map +1 -1
  59. package/lib/esm/loader.js +1 -8
  60. package/lib/esm/loader.js.map +1 -1
  61. package/lib/esm/notation.d.ts +20 -36
  62. package/lib/esm/notation.js +84 -128
  63. package/lib/esm/notation.js.map +1 -1
  64. package/lib/esm/parser.d.ts +21 -6
  65. package/lib/esm/parser.js +122 -24
  66. package/lib/esm/parser.js.map +1 -1
  67. package/package.json +3 -2
  68. package/styles/NotationView.scss +22 -0
@@ -69,6 +69,26 @@
69
69
  color: var(--notation-text-color);
70
70
  }
71
71
 
72
+ /* ========================================
73
+ Role-specific Styles
74
+ ======================================== */
75
+ /* Swara (Sw) role - blue in light theme for distinction from Sahitya */
76
+ .role_sw text {
77
+ fill: #2563eb; /* Blue-600 */
78
+ }
79
+
80
+ /* Dark mode - red for swara */
81
+ :root.dark .role_sw text,
82
+ [data-theme=dark] .role_sw text {
83
+ fill: #ef4444; /* Red-500 */
84
+ }
85
+
86
+ /* System preference fallback for dark mode */
87
+ @media (prefers-color-scheme: dark) {
88
+ :root:not(.light):not([data-theme=light]) .role_sw text {
89
+ fill: #ef4444; /* Red-500 */
90
+ }
91
+ }
72
92
  /* ========================================
73
93
  Layout Styles
74
94
  ======================================== */
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../styles/NotationView.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAIA;AACE;EACA;EACA;EACA;EACA;AAEA;EACA;EACA;AAEA;EACA;EACA;;;AAGF;AACA;AAAA;EAEE;EACA;EACA;EACA;;;AAGF;AACA;EACE;IACE;IACA;IACA;IACA;;;AAIJ;AAAA;AAAA;AAIA;AACA;EACE;EACA;;;AAGF;AACA;AAAA;EAEE;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;AACA;AAAA;AAAA;EAGE;;;AAGF;AACA;AAAA;AAAA;EAGE;;;AAGF;AAAA;AAAA;AAIA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAIF;EACE;;;AAGF;EACE;EACA;;;AAMF;EACE;EACA","file":"NotationView.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../styles/NotationView.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAIA;AACE;EACA;EACA;EACA;EACA;AAEA;EACA;EACA;AAEA;EACA;EACA;;;AAGF;AACA;AAAA;EAEE;EACA;EACA;EACA;;;AAGF;AACA;EACE;IACE;IACA;IACA;IACA;;;AAIJ;AAAA;AAAA;AAIA;AACA;EACE;EACA;;;AAGF;AACA;AAAA;EAEE;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;AACA;AAAA;AAAA;EAGE;;;AAGF;AACA;AAAA;AAAA;EAGE;;;AAGF;AAAA;AAAA;AAIA;AACA;EACE;;;AAGF;AACA;AAAA;EAEE;;;AAGF;AACA;EACE;IACE;;;AAIJ;AAAA;AAAA;AAIA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAIF;EACE;;;AAGF;EACE;EACA;;;AAMF;EACE;EACA","file":"NotationView.css"}
@@ -1 +1 @@
1
- :root{--notation-stroke-color: black;--notation-fill-color: transparent;--notation-text-color: #1a1a1a;--notation-border-color: gray;--notation-stroke-width: 1;--notation-bar-line-width: 1;--notation-line-padding: 5px;--notation-annotation-padding: 10px}:root.dark,[data-theme=dark]{--notation-stroke-color: #e5e5e5;--notation-fill-color: transparent;--notation-text-color: #f0f0f0;--notation-border-color: #555}@media(prefers-color-scheme: dark){:root:not(.light):not([data-theme=light]){--notation-stroke-color: #e5e5e5;--notation-fill-color: transparent;--notation-text-color: #f0f0f0;--notation-border-color: #555}}.notation-octave-dot{stroke:var(--notation-stroke-color);stroke-width:var(--notation-stroke-width)}.bar-start-line,.bar-end-line{stroke:var(--notation-stroke-color);stroke-width:var(--notation-bar-line-width)}.notation-jaaru-path{stroke:var(--notation-stroke-color);fill:var(--notation-fill-color)}.notationsContentRootTable text,.atomViewTextRoot,.notation-embelishment-label{fill:var(--notation-text-color)}.notationsContentRootTable,.rawBlockContentCell,.rawBlockContentCell *{color:var(--notation-text-color)}.lineRow{border:none}.lineAnnotationCell{padding:0px;padding-left:10px;padding-right:10px;padding-top:10px;vertical-align:top}.lineContentCell{padding:0px;padding-top:5px;padding-bottom:5px}.rawBlockRow{border:none}.rawBlockContentCell{padding-top:5px;padding-bottom:5px}.notationsContentRootTable{border-top:solid 1px var(--notation-border-color);width:100%}/*# sourceMappingURL=NotationView.min.css.map */
1
+ :root{--notation-stroke-color: black;--notation-fill-color: transparent;--notation-text-color: #1a1a1a;--notation-border-color: gray;--notation-stroke-width: 1;--notation-bar-line-width: 1;--notation-line-padding: 5px;--notation-annotation-padding: 10px}:root.dark,[data-theme=dark]{--notation-stroke-color: #e5e5e5;--notation-fill-color: transparent;--notation-text-color: #f0f0f0;--notation-border-color: #555}@media(prefers-color-scheme: dark){:root:not(.light):not([data-theme=light]){--notation-stroke-color: #e5e5e5;--notation-fill-color: transparent;--notation-text-color: #f0f0f0;--notation-border-color: #555}}.notation-octave-dot{stroke:var(--notation-stroke-color);stroke-width:var(--notation-stroke-width)}.bar-start-line,.bar-end-line{stroke:var(--notation-stroke-color);stroke-width:var(--notation-bar-line-width)}.notation-jaaru-path{stroke:var(--notation-stroke-color);fill:var(--notation-fill-color)}.notationsContentRootTable text,.atomViewTextRoot,.notation-embelishment-label{fill:var(--notation-text-color)}.notationsContentRootTable,.rawBlockContentCell,.rawBlockContentCell *{color:var(--notation-text-color)}.role_sw text{fill:#2563eb}:root.dark .role_sw text,[data-theme=dark] .role_sw text{fill:#ef4444}@media(prefers-color-scheme: dark){:root:not(.light):not([data-theme=light]) .role_sw text{fill:#ef4444}}.lineRow{border:none}.lineAnnotationCell{padding:0px;padding-left:10px;padding-right:10px;padding-top:10px;vertical-align:top}.lineContentCell{padding:0px;padding-top:5px;padding-bottom:5px}.rawBlockRow{border:none}.rawBlockContentCell{padding-top:5px;padding-bottom:5px}.notationsContentRootTable{border-top:solid 1px var(--notation-border-color);width:100%}/*# sourceMappingURL=NotationView.min.css.map */
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../styles/NotationView.scss"],"names":[],"mappings":"AAIA,MAEE,+BACA,mCACA,+BACA,8BAGA,2BACA,6BAGA,6BACA,oCAIF,6BAEE,iCACA,mCACA,+BACA,8BAIF,mCACE,0CACE,iCACA,mCACA,+BACA,+BASJ,qBACE,oCACA,0CAIF,8BAEE,oCACA,4CAIF,qBACE,oCACA,gCAIF,+EAGE,gCAIF,uEAGE,iCAOF,SACE,YAGF,oBACE,YACA,kBACA,mBACA,iBACA,mBAGF,iBACE,YACA,gBACA,mBAIF,aACE,YAGF,qBACE,gBACA,mBAMF,2BACE,kDACA","file":"NotationView.min.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../styles/NotationView.scss"],"names":[],"mappings":"AAIA,MAEE,+BACA,mCACA,+BACA,8BAGA,2BACA,6BAGA,6BACA,oCAIF,6BAEE,iCACA,mCACA,+BACA,8BAIF,mCACE,0CACE,iCACA,mCACA,+BACA,+BASJ,qBACE,oCACA,0CAIF,8BAEE,oCACA,4CAIF,qBACE,oCACA,gCAIF,+EAGE,gCAIF,uEAGE,iCAQF,cACE,aAIF,yDAEE,aAIF,mCACE,wDACE,cAQJ,SACE,YAGF,oBACE,YACA,kBACA,mBACA,iBACA,mBAGF,iBACE,YACA,gBACA,mBAIF,aACE,YAGF,qBACE,gBACA,mBAMF,2BACE,kDACA","file":"NotationView.min.css"}