chordsheetjs 10.3.0 → 10.4.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/README.md +22 -14
- package/lib/bundle.js +2041 -11574
- package/lib/bundle.min.js +118 -113
- package/lib/index.js +2027 -11554
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +28 -8
- package/lib/main.d.ts.map +1 -1
- package/lib/module.js +2027 -11554
- package/lib/module.js.map +1 -1
- package/package.json +11 -13
package/README.md
CHANGED
|
@@ -306,23 +306,23 @@ use those to change the generated output.
|
|
|
306
306
|
|
|
307
307
|
### Environment directives
|
|
308
308
|
|
|
309
|
-
| Directive | Support
|
|
310
|
-
|:----------------------------
|
|
311
|
-
| start_of_chorus (short: soc) | :heavy_check_mark:
|
|
312
|
-
| end_of_chorus (short: eoc) | :heavy_check_mark:
|
|
313
|
-
| start_of_verse | :heavy_check_mark:
|
|
314
|
-
| end_of_verse | :heavy_check_mark:
|
|
315
|
-
| start_of_tab (short: sot) | :heavy_check_mark:
|
|
316
|
-
| end_of_tab (short: eot) | :heavy_check_mark:
|
|
317
|
-
| start_of_grid | :
|
|
318
|
-
| end_of_grid | :
|
|
309
|
+
| Directive | Support |
|
|
310
|
+
|:---------------------------- |:------------------:|
|
|
311
|
+
| start_of_chorus (short: soc) | :heavy_check_mark: |
|
|
312
|
+
| end_of_chorus (short: eoc) | :heavy_check_mark: |
|
|
313
|
+
| start_of_verse | :heavy_check_mark: |
|
|
314
|
+
| end_of_verse | :heavy_check_mark: |
|
|
315
|
+
| start_of_tab (short: sot) | :heavy_check_mark: |
|
|
316
|
+
| end_of_tab (short: eot) | :heavy_check_mark: |
|
|
317
|
+
| start_of_grid | :heavy_check_mark: |
|
|
318
|
+
| end_of_grid | :heavy_check_mark: |
|
|
319
319
|
|
|
320
320
|
### Chord diagrams
|
|
321
321
|
|
|
322
|
-
| Directive | Support
|
|
323
|
-
|:---------
|
|
324
|
-
| define | :
|
|
325
|
-
| chord | :
|
|
322
|
+
| Directive | Support |
|
|
323
|
+
|:--------- |:------------------:|
|
|
324
|
+
| define | :heavy_check_mark: |
|
|
325
|
+
| chord | :heavy_check_mark: |
|
|
326
326
|
|
|
327
327
|
### Fonts, sizes and colours
|
|
328
328
|
|
|
@@ -891,6 +891,7 @@ the paragraph contents as one string where lines are separated by newlines.</p>
|
|
|
891
891
|
* [.useModifier(modifier)](#Song+useModifier) ⇒ [<code>Song</code>](#Song)
|
|
892
892
|
* [.changeMetadata(name, value)](#Song+changeMetadata)
|
|
893
893
|
* [.mapItems(func)](#Song+mapItems) ⇒ [<code>Song</code>](#Song)
|
|
894
|
+
* [.getChords()](#Song+getChords) ⇒ <code>Array.<string></code>
|
|
894
895
|
* [.mapLines(func)](#Song+mapLines) ⇒ [<code>Song</code>](#Song)
|
|
895
896
|
|
|
896
897
|
<a name="new_Song_new"></a>
|
|
@@ -1094,6 +1095,13 @@ song.mapItems((item) => {
|
|
|
1094
1095
|
return item;
|
|
1095
1096
|
});
|
|
1096
1097
|
```
|
|
1098
|
+
<a name="Song+getChords"></a>
|
|
1099
|
+
|
|
1100
|
+
### song.getChords() ⇒ <code>Array.<string></code>
|
|
1101
|
+
<p>Returns all unique chords used in the song</p>
|
|
1102
|
+
|
|
1103
|
+
**Kind**: instance method of [<code>Song</code>](#Song)
|
|
1104
|
+
**Returns**: <code>Array.<string></code> - <p>the chords</p>
|
|
1097
1105
|
<a name="Song+mapLines"></a>
|
|
1098
1106
|
|
|
1099
1107
|
### song.mapLines(func) ⇒ [<code>Song</code>](#Song)
|