@ugfoundation/swaralipi-js 0.11.0 → 0.12.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.
- package/dist/{batch-4TND6KNT.js → batch-ZNVWIGEL.js} +5 -5
- package/dist/{batch-4TND6KNT.js.map → batch-ZNVWIGEL.js.map} +1 -1
- package/dist/{chunk-CF3JWIHP.js → chunk-A6Z7X2LX.js} +3 -3
- package/dist/{chunk-CF3JWIHP.js.map → chunk-A6Z7X2LX.js.map} +1 -1
- package/dist/{chunk-CLZJK33Q.js → chunk-A7R3VFIV.js} +3 -3
- package/dist/{chunk-CLZJK33Q.js.map → chunk-A7R3VFIV.js.map} +1 -1
- package/dist/{chunk-DFCUJQIB.js → chunk-ISNAL632.js} +6 -6
- package/dist/{chunk-DFCUJQIB.js.map → chunk-ISNAL632.js.map} +1 -1
- package/dist/{chunk-SR7NFEGL.js → chunk-KOHSKHXI.js} +5 -3
- package/dist/chunk-KOHSKHXI.js.map +1 -0
- package/dist/cli.cjs +6 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3 -3
- package/dist/convert/index.cjs +6 -4
- package/dist/convert/index.cjs.map +1 -1
- package/dist/convert/index.js +3 -3
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{lay-DypMIIuf.d.ts → lay-CWlEhImP.d.ts} +8 -1
- package/dist/{lay-CvZeVon3.d.cts → lay-CXhC-HRO.d.cts} +8 -1
- package/dist/player/index.cjs +3 -1
- package/dist/player/index.cjs.map +1 -1
- package/dist/player/index.d.cts +4 -4
- package/dist/player/index.d.ts +4 -4
- package/dist/player/index.js +4 -4
- package/dist/{schedule-C4sP7uFu.d.cts → schedule-CRpjr6JH.d.cts} +1 -1
- package/dist/{schedule-DjcqM6A4.d.ts → schedule-DN-8X17d.d.ts} +1 -1
- package/dist/spec/index.cjs +4 -2
- package/dist/spec/index.cjs.map +1 -1
- package/dist/spec/index.d.cts +2 -2
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -2
- package/dist/viewer/index.cjs +11 -14
- package/dist/viewer/index.cjs.map +1 -1
- package/dist/viewer/index.d.cts +2 -2
- package/dist/viewer/index.d.ts +2 -2
- package/dist/viewer/index.js +9 -14
- package/dist/viewer/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-SR7NFEGL.js.map +0 -1
package/dist/viewer/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as Octave, a as SvaraLetter, N as Note, M as Meta, S as Swaralipi, T as Taal } from '../schema-DZag9qkF.cjs';
|
|
2
|
-
import { L as Lay } from '../lay-
|
|
3
|
-
import { D as DrumVoice, S as Schedule, P as PlayEvent } from '../schedule-
|
|
2
|
+
import { L as Lay } from '../lay-CXhC-HRO.cjs';
|
|
3
|
+
import { D as DrumVoice, S as Schedule, P as PlayEvent } from '../schedule-CRpjr6JH.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'tone';
|
|
6
6
|
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as Octave, a as SvaraLetter, N as Note, M as Meta, S as Swaralipi, T as Taal } from '../schema-DZag9qkF.js';
|
|
2
|
-
import { L as Lay } from '../lay-
|
|
3
|
-
import { D as DrumVoice, S as Schedule, P as PlayEvent } from '../schedule-
|
|
2
|
+
import { L as Lay } from '../lay-CWlEhImP.js';
|
|
3
|
+
import { D as DrumVoice, S as Schedule, P as PlayEvent } from '../schedule-DN-8X17d.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'tone';
|
|
6
6
|
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isArcRaw, glideTargets, buildSchedule, drumPattern } from '../chunk-
|
|
2
|
-
import { hasKomal, isTaalFerta, sameTaal, TAALS, graceNotes } from '../chunk-
|
|
1
|
+
import { isArcRaw, glideTargets, buildSchedule, drumPattern } from '../chunk-A6Z7X2LX.js';
|
|
2
|
+
import { hasKomal, isTaalFerta, sameTaal, TAALS, graceNotes } from '../chunk-KOHSKHXI.js';
|
|
3
3
|
|
|
4
4
|
// src/viewer/glyphs.ts
|
|
5
5
|
var SWARABITAN_SHUDDHA = {
|
|
@@ -452,7 +452,7 @@ function renderAnnotation(notes, ctx) {
|
|
|
452
452
|
`<span class="sw-beat${beat.sam ? " sw-sam" : ""}">${localizeDigits(beat.digits, ctx.lang)}</span>`
|
|
453
453
|
);
|
|
454
454
|
} else if (/^\|+$/.test(raw)) {
|
|
455
|
-
parts.push(`<span class="sw-stop">${
|
|
455
|
+
parts.push(`<span class="sw-stop">${raw}</span>`);
|
|
456
456
|
} else {
|
|
457
457
|
parts.push(`<span class="sw-raw" title="${escapeHtml(raw)}">${escapeHtml(raw)}</span>`);
|
|
458
458
|
}
|
|
@@ -718,7 +718,7 @@ ${FONT_FACES}
|
|
|
718
718
|
.sw-cell::before { margin-left: calc(var(--sw-half-gap) * -1); }
|
|
719
719
|
.sw-cell::after { margin-right: calc(var(--sw-half-gap) * -1); }
|
|
720
720
|
.sw-cell > .sw-n { position: relative; }
|
|
721
|
-
.sw-above { grid-row: 1; font-size: 0.
|
|
721
|
+
.sw-above { grid-row: 1; font-size: 0.7em; line-height: 1; justify-self: center; white-space: nowrap; }
|
|
722
722
|
.sw-below { grid-row: 3; font-size: 0.62em; line-height: 1; justify-self: center; white-space: nowrap; }
|
|
723
723
|
.sw-lyr { grid-row: 4; }
|
|
724
724
|
|
|
@@ -792,9 +792,12 @@ ${FONT_FACES}
|
|
|
792
792
|
font-size: 0.72em;
|
|
793
793
|
opacity: 0.55;
|
|
794
794
|
}
|
|
795
|
+
/* above the notes, raw is the notator's own mark (alt passages, \u2016): full ink */
|
|
796
|
+
.sw-above .sw-raw { font-size: 1em; opacity: 1; }
|
|
795
797
|
|
|
796
|
-
/* ---- bars: dari (A) and danda (l/L) Swarabitan glyphs, all langs
|
|
797
|
-
|
|
798
|
+
/* ---- bars: dari (A) and danda (l/L) Swarabitan glyphs, all langs;
|
|
799
|
+
* its | is the \u2016 \u0985\u09AC\u09B8\u09BE\u09A8 stop mark ---- */
|
|
800
|
+
.sw-bar, .sw-stop {
|
|
798
801
|
font-family: Swarabitan, var(--sw-font, sans-serif);
|
|
799
802
|
white-space: nowrap;
|
|
800
803
|
}
|
|
@@ -858,14 +861,6 @@ ${FONT_FACES}
|
|
|
858
861
|
background: currentColor;
|
|
859
862
|
transform: rotate(14deg);
|
|
860
863
|
}
|
|
861
|
-
.sw-stop i {
|
|
862
|
-
display: inline-block;
|
|
863
|
-
width: 0.07em;
|
|
864
|
-
height: 1em;
|
|
865
|
-
margin: 0 0.07em;
|
|
866
|
-
background: currentColor;
|
|
867
|
-
vertical-align: text-bottom;
|
|
868
|
-
}
|
|
869
864
|
|
|
870
865
|
/* ---- player sync (P2.3) ---- */
|
|
871
866
|
.sw-hl { background: var(--sw-hl, rgba(255, 196, 64, 0.45)); border-radius: 0.15em; }
|