notations 0.0.66 → 0.0.68

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 (53) hide show
  1. package/README.md +4 -0
  2. package/dist/NotationView.css +100 -0
  3. package/dist/NotationView.css.map +1 -0
  4. package/dist/NotationView.min.css +1 -0
  5. package/dist/NotationView.min.css.map +1 -0
  6. package/dist/notations.umd.js +35875 -0
  7. package/dist/notations.umd.min.js +112 -0
  8. package/dist/notations.umd.min.js.LICENSE.txt +24 -0
  9. package/dist/notations.umd.min.js.map +1 -0
  10. package/lib/cjs/beats.js.map +1 -1
  11. package/lib/cjs/beatutils.js.map +1 -1
  12. package/lib/cjs/beatview.js.map +1 -1
  13. package/lib/cjs/carnatic/LineView.js.map +1 -1
  14. package/lib/cjs/carnatic/NotationView.js.map +1 -1
  15. package/lib/cjs/carnatic/embelishments.js +3 -8
  16. package/lib/cjs/carnatic/embelishments.js.map +1 -1
  17. package/lib/cjs/carnatic/gamakas.js.map +1 -1
  18. package/lib/cjs/commands.js.map +1 -1
  19. package/lib/cjs/core.js.map +1 -1
  20. package/lib/cjs/cycle.js.map +1 -1
  21. package/lib/cjs/entity.js.map +1 -1
  22. package/lib/cjs/grids.js.map +1 -1
  23. package/lib/cjs/iterators.js.map +1 -1
  24. package/lib/cjs/layouts.js.map +1 -1
  25. package/lib/cjs/loader.js.map +1 -1
  26. package/lib/cjs/notation.js.map +1 -1
  27. package/lib/cjs/parser.js.map +1 -1
  28. package/lib/cjs/shapes.js +1 -1
  29. package/lib/cjs/shapes.js.map +1 -1
  30. package/lib/cjs/utils.js.map +1 -1
  31. package/lib/esm/beats.js.map +1 -1
  32. package/lib/esm/beatutils.js.map +1 -1
  33. package/lib/esm/beatview.js.map +1 -1
  34. package/lib/esm/carnatic/LineView.js.map +1 -1
  35. package/lib/esm/carnatic/NotationView.js.map +1 -1
  36. package/lib/esm/carnatic/embelishments.js +3 -8
  37. package/lib/esm/carnatic/embelishments.js.map +1 -1
  38. package/lib/esm/carnatic/gamakas.js.map +1 -1
  39. package/lib/esm/commands.js.map +1 -1
  40. package/lib/esm/core.js.map +1 -1
  41. package/lib/esm/cycle.js.map +1 -1
  42. package/lib/esm/entity.js.map +1 -1
  43. package/lib/esm/grids.js.map +1 -1
  44. package/lib/esm/iterators.js.map +1 -1
  45. package/lib/esm/layouts.js.map +1 -1
  46. package/lib/esm/loader.js.map +1 -1
  47. package/lib/esm/notation.js.map +1 -1
  48. package/lib/esm/parser.js.map +1 -1
  49. package/lib/esm/shapes.js +1 -1
  50. package/lib/esm/shapes.js.map +1 -1
  51. package/lib/esm/utils.js.map +1 -1
  52. package/package.json +16 -11
  53. package/styles/NotationView.scss +74 -1
package/README.md CHANGED
@@ -6,6 +6,10 @@ Notations is a Typescript library for rendering Carnatic music. Notations comes
6
6
  1. An API for representing and rendering carnatic music.
7
7
  2. A DSL and an accompanying parser for representing music in a simpler and intuitive way.
8
8
 
9
+ ## Documentation
10
+
11
+ 📚 **[Full Documentation](https://panyam.github.io/notations/)** - Tutorials, API reference, cookbook examples, and more.
12
+
9
13
  # Getting Started
10
14
 
11
15
  ## Installation
@@ -0,0 +1,100 @@
1
+ /* ========================================
2
+ CSS Custom Properties (Theme Variables)
3
+ ======================================== */
4
+ :root {
5
+ /* Colors */
6
+ --notation-stroke-color: black;
7
+ --notation-fill-color: transparent;
8
+ --notation-text-color: #1a1a1a;
9
+ --notation-border-color: gray;
10
+ /* Strokes */
11
+ --notation-stroke-width: 1;
12
+ --notation-bar-line-width: 1;
13
+ /* Spacing (can be overridden) */
14
+ --notation-line-padding: 5px;
15
+ --notation-annotation-padding: 10px;
16
+ }
17
+
18
+ /* Dark mode */
19
+ :root.dark,
20
+ [data-theme=dark] {
21
+ --notation-stroke-color: #e5e5e5;
22
+ --notation-fill-color: transparent;
23
+ --notation-text-color: #f0f0f0;
24
+ --notation-border-color: #555;
25
+ }
26
+
27
+ /* System preference fallback */
28
+ @media (prefers-color-scheme: dark) {
29
+ :root:not(.light):not([data-theme=light]) {
30
+ --notation-stroke-color: #e5e5e5;
31
+ --notation-fill-color: transparent;
32
+ --notation-text-color: #f0f0f0;
33
+ --notation-border-color: #555;
34
+ }
35
+ }
36
+ /* ========================================
37
+ SVG Element Styles
38
+ ======================================== */
39
+ /* Octave indicator dots */
40
+ .notation-octave-dot {
41
+ stroke: var(--notation-stroke-color);
42
+ stroke-width: var(--notation-stroke-width);
43
+ }
44
+
45
+ /* Bar lines (start and end) */
46
+ .bar-start-line,
47
+ .bar-end-line {
48
+ stroke: var(--notation-stroke-color);
49
+ stroke-width: var(--notation-bar-line-width);
50
+ }
51
+
52
+ /* Jaaru (glide) paths */
53
+ .notation-jaaru-path {
54
+ stroke: var(--notation-stroke-color);
55
+ fill: var(--notation-fill-color);
56
+ }
57
+
58
+ /* Text elements - target all SVG text within notation */
59
+ .notationsContentRootTable text,
60
+ .atomViewTextRoot,
61
+ .notation-embelishment-label {
62
+ fill: var(--notation-text-color);
63
+ }
64
+
65
+ /* ========================================
66
+ Layout Styles
67
+ ======================================== */
68
+ .lineRow {
69
+ border: none;
70
+ }
71
+
72
+ .lineAnnotationCell {
73
+ padding: 0px;
74
+ padding-left: 10px;
75
+ padding-right: 10px;
76
+ padding-top: 10px;
77
+ vertical-align: top;
78
+ }
79
+
80
+ .lineContentCell {
81
+ padding: 0px;
82
+ padding-top: 5px;
83
+ padding-bottom: 5px;
84
+ }
85
+
86
+ .rawBlockRow {
87
+ border: none;
88
+ }
89
+
90
+ .rawBlockContentCell {
91
+ padding-top: 5px;
92
+ padding-bottom: 5px;
93
+ }
94
+
95
+ .notationsContentRootTable {
96
+ border-top: solid 1px var(--notation-border-color);
97
+ width: 100%;
98
+ }
99
+
100
+ /*# sourceMappingURL=NotationView.css.map */
@@ -0,0 +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;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"}
@@ -0,0 +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)}.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 */
@@ -0,0 +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,gCAOF,SACE,YAGF,oBACE,YACA,kBACA,mBACA,iBACA,mBAGF,iBACE,YACA,gBACA,mBAIF,aACE,YAGF,qBACE,gBACA,mBAMF,2BACE,kDACA","file":"NotationView.min.css"}