Releases: martijnversluis/ChordSheetJS
Releases · martijnversluis/ChordSheetJS
v4.7.0
Implement _key metadata
When key
and capo
are present, _key
will contain the value of
key
, transposed by the capo
value.
For example, when key
is B♭ and capo is 2, _key
will be 'C'
.
v4.6.0
Generate default CSS for HTML formatters
HtmlTableFormatter.cssString();
// returns a CSS like:
//
// .paragraph {
// margin-bottom: 1em;
// }
HtmlTableFormatter.cssString('.chordSheetViewer');
// returns as CSS string like::
//
// .chordSheetViewer .paragraph {
// margin-bottom: 1em;
// }
HtmlTableFormatter.cssObject()
// returns a CSS object like:
//;
// '.paragraph': {
// marginBottom: '1em'
// }
Resolves #184
v4.5.4
Add back default export
v4.5.3
Set lib/index.js as main file
v4.5.2
Remove duplicate entry point
v4.5.1
- Export all classes and constants that are public API
- Import from index in tests to make sure exports for public API have test coverage
v4.5.0
v4.4.0
New features
Serialize/deserialize Songs
Chord sheets (Song
s) can be serialized to plain JavaScript objects, which can be converted to JSON, XML etc by
third-party libraries. The serialized object can also be deserialized back into a Song
.
const serializedSong = new ChordSheetSerializer().serialize(song);
const deserialized = new ChordSheetSerializer().deserialize(serializedSong);
v4.3.1
Fix formatting of empty songs