chordsheetjs 15.5.0 → 15.5.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.
- package/lib/bundle.js +13 -10
- package/lib/bundle.min.js +43 -43
- package/lib/index.js +15 -11
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +2 -2
- package/lib/main.d.ts.map +1 -1
- package/lib/module.js +15 -11
- package/lib/module.js.map +1 -1
- package/lib/pdf/index.js +15 -11
- package/lib/pdf/index.js.map +1 -1
- package/lib/pdf/main.d.ts.map +1 -1
- package/lib/pdf/module.js +15 -11
- package/lib/pdf/module.js.map +1 -1
- package/package.json +1 -1
package/lib/bundle.js
CHANGED
|
@@ -7479,9 +7479,12 @@ ${formattedContentLines}`;
|
|
|
7479
7479
|
this.transposeKey = config.transposeKey;
|
|
7480
7480
|
this.useUnicodeModifier = config.useUnicodeModifier;
|
|
7481
7481
|
}
|
|
7482
|
-
render(
|
|
7483
|
-
|
|
7484
|
-
|
|
7482
|
+
render(chordOrString) {
|
|
7483
|
+
if (chordOrString instanceof (0, $177a605b8569b31c$export$2e2bcd8739ae039)) return this.renderChord(chordOrString);
|
|
7484
|
+
const chord = (0, $177a605b8569b31c$export$2e2bcd8739ae039).parse(chordOrString);
|
|
7485
|
+
return chord ? this.renderChord(chord) : chordOrString;
|
|
7486
|
+
}
|
|
7487
|
+
renderChord(chord) {
|
|
7485
7488
|
return (0, $28a2fcb6fb95a147$export$79570e60478bce41)(chord, [
|
|
7486
7489
|
(c) => c.transpose(this.effectiveTransposeDistance),
|
|
7487
7490
|
(c) => this.accidental ? c.useAccidental(this.accidental) : c,
|
|
@@ -7888,7 +7891,7 @@ ${formattedContentLines}`;
|
|
|
7888
7891
|
normalizeChordSuffix: true,
|
|
7889
7892
|
decapo: false
|
|
7890
7893
|
};
|
|
7891
|
-
function $2ce1086ce25c9ac0$export$596ec52955da9472(
|
|
7894
|
+
function $2ce1086ce25c9ac0$export$596ec52955da9472(chord, line, song, options = {}) {
|
|
7892
7895
|
const { renderKey, useUnicodeModifier, normalizeChords, normalizeChordSuffix, decapo } = {
|
|
7893
7896
|
...$2ce1086ce25c9ac0$var$renderChordDefaults,
|
|
7894
7897
|
...options
|
|
@@ -7905,7 +7908,7 @@ ${formattedContentLines}`;
|
|
|
7905
7908
|
style: song.metadata.getSingle((0, $d21c5c7a462f3c34$export$d8cbdf44b1f66df1)),
|
|
7906
7909
|
transposeKey: line.transposeKey,
|
|
7907
7910
|
useUnicodeModifier
|
|
7908
|
-
}).render(
|
|
7911
|
+
}).render(chord);
|
|
7909
7912
|
}
|
|
7910
7913
|
function $2ce1086ce25c9ac0$export$b07b16221c14aaa(key) {
|
|
7911
7914
|
const keyObj = (0, $c2d6ab25ad00308f$export$2e2bcd8739ae039).wrapOrFail(key);
|
|
@@ -13783,7 +13786,7 @@ Or set the song key before changing key:
|
|
|
13783
13786
|
return "";
|
|
13784
13787
|
}
|
|
13785
13788
|
renderChord(item, line) {
|
|
13786
|
-
return (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chords, line, this.song, {
|
|
13789
|
+
return (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chord ?? item.chords, line, this.song, {
|
|
13787
13790
|
renderKey: this.configuration.key,
|
|
13788
13791
|
normalizeChords: this.configuration.normalizeChords,
|
|
13789
13792
|
normalizeChordSuffix: this.configuration.normalizeChordSuffix,
|
|
@@ -26269,7 +26272,7 @@ Or set the song key before changing key:
|
|
|
26269
26272
|
const cls = (0, $f9c5006b26957916$export$986cf1257ba88b40)(item) ? c.rhythmSymbol : c.chord;
|
|
26270
26273
|
return `
|
|
26271
26274
|
<div class="${cls}"${(0, $f9c5006b26957916$export$ca030c9435779e4b)(line.chordFont)}>
|
|
26272
|
-
${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chords, line, song, {
|
|
26275
|
+
${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chord ?? item.chords, line, song, {
|
|
26273
26276
|
renderKey: key,
|
|
26274
26277
|
useUnicodeModifier: configuration.useUnicodeModifiers,
|
|
26275
26278
|
normalizeChords: configuration.normalizeChords,
|
|
@@ -26436,7 +26439,7 @@ Or set the song key before changing key:
|
|
|
26436
26439
|
`).else(() => {
|
|
26437
26440
|
const cls = (0, $f9c5006b26957916$export$986cf1257ba88b40)(item) ? c.rhythmSymbol : c.chord;
|
|
26438
26441
|
return `
|
|
26439
|
-
<td class="${cls}"${(0, $f9c5006b26957916$export$ca030c9435779e4b)(line.chordFont)}>${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chords, line, song, {
|
|
26442
|
+
<td class="${cls}"${(0, $f9c5006b26957916$export$ca030c9435779e4b)(line.chordFont)}>${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chord ?? item.chords, line, song, {
|
|
26440
26443
|
renderKey: key,
|
|
26441
26444
|
useUnicodeModifier: configuration.useUnicodeModifiers,
|
|
26442
26445
|
normalizeChords: configuration.normalizeChords,
|
|
@@ -27275,7 +27278,7 @@ Or set the song key before changing key:
|
|
|
27275
27278
|
return Math.max(contentLength, lyricsLength);
|
|
27276
27279
|
}
|
|
27277
27280
|
renderChords(chordLyricsPair, line) {
|
|
27278
|
-
const chords = (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(chordLyricsPair.chords, line, this.song, {
|
|
27281
|
+
const chords = (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(chordLyricsPair.chord ?? chordLyricsPair.chords, line, this.song, {
|
|
27279
27282
|
renderKey: this.configuration.key,
|
|
27280
27283
|
useUnicodeModifier: this.configuration.useUnicodeModifiers,
|
|
27281
27284
|
normalizeChords: this.configuration.normalizeChords,
|
|
@@ -29678,7 +29681,7 @@ ${template}
|
|
|
29678
29681
|
}
|
|
29679
29682
|
};
|
|
29680
29683
|
var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
|
|
29681
|
-
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "15.5.
|
|
29684
|
+
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "15.5.1";
|
|
29682
29685
|
var $2a7926da41d163b3$export$191a710ad3c9a989 = {
|
|
29683
29686
|
configure: $181068e44290b873$export$8d21e34596265fa2,
|
|
29684
29687
|
getDefaultConfig: $fe1d3ba9df1ecad5$export$ed30944e0fe6ae5c,
|