Skip to content

Commit

Permalink
Release VexFlow 4.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed May 10, 2024
1 parent c1d8ac2 commit 988f0ee
Show file tree
Hide file tree
Showing 422 changed files with 201,710 additions and 221 deletions.
7 changes: 7 additions & 0 deletions build/cjs/vexflow-bravura.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-bravura.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions build/cjs/vexflow-core.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-core.js.map

Large diffs are not rendered by default.

54,849 changes: 54,849 additions & 0 deletions build/cjs/vexflow-debug-with-tests.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-debug-with-tests.js.map

Large diffs are not rendered by default.

36,474 changes: 36,474 additions & 0 deletions build/cjs/vexflow-debug.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-debug.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/cjs/vexflow-font-bravura.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-font-bravura.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/cjs/vexflow-font-custom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/cjs/vexflow-font-custom.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/cjs/vexflow-font-gonville.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-font-gonville.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/cjs/vexflow-font-leland.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-font-leland.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/cjs/vexflow-font-petaluma.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-font-petaluma.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions build/cjs/vexflow-gonville.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-gonville.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions build/cjs/vexflow-leland.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-leland.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions build/cjs/vexflow-petaluma.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow-petaluma.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions build/cjs/vexflow.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/cjs/vexflow.js.map

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions build/esm/entry/vexflow-bravura.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Flow } from '../src/flow.js';
import { loadBravura } from '../src/fonts/load_bravura.js';
import { loadCustom } from '../src/fonts/load_custom.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
loadBravura();
loadCustom();
Flow.setMusicFont('Bravura', 'Custom');
loadTextFonts();
export * from '../src/index.js';
export * as default from '../src/index.js';
54 changes: 54 additions & 0 deletions build/esm/entry/vexflow-core.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
import { Flow } from '../src/flow.js';
import { Font } from '../src/font.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
import { globalObject, RuntimeError } from '../src/util.js';
const fontModules = {
Bravura: './vexflow-font-bravura.js',
Gonville: './vexflow-font-gonville.js',
Petaluma: './vexflow-font-petaluma.js',
Leland: './vexflow-font-leland.js',
Custom: './vexflow-font-custom.js',
};
Flow.fetchMusicFont = (fontName, fontModuleOrPath) => __awaiter(void 0, void 0, void 0, function* () {
const font = Font.load(fontName);
if (font.hasData()) {
return;
}
if (!fontModuleOrPath) {
if (fontName in fontModules) {
fontModuleOrPath = fontModules[fontName];
}
else {
throw new RuntimeError('UnknownFont', `Music font ${fontName} does not exist.`);
}
}
let fontModule;
if (typeof fontModuleOrPath === 'string') {
const module = yield import(fontModuleOrPath);
const g = globalObject();
const VexFlowFont = g['VexFlowFont'];
if (typeof VexFlowFont !== 'undefined' && typeof VexFlowFont[fontName] !== 'undefined') {
fontModule = VexFlowFont[fontName];
}
else {
fontModule = module.Font;
}
}
else {
fontModule = fontModuleOrPath;
}
font.setData(fontModule.data);
font.setMetrics(fontModule.metrics);
});
loadTextFonts();
export * from '../src/index.js';
export * as default from '../src/index.js';
11 changes: 11 additions & 0 deletions build/esm/entry/vexflow-debug-with-tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as VexSrc from '../src/index.js';
import * as VexTests from '../tests/index.js';
import { Flow } from '../src/flow.js';
import { loadAllMusicFonts } from '../src/fonts/load_all.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
loadAllMusicFonts();
Flow.setMusicFont('Bravura', 'Gonville', 'Custom');
loadTextFonts();
export * from '../src/index.js';
export * from '../tests/index.js';
export default Object.assign(Object.assign({}, VexSrc), VexTests);
8 changes: 8 additions & 0 deletions build/esm/entry/vexflow-debug.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Flow } from '../src/flow.js';
import { loadAllMusicFonts } from '../src/fonts/load_all.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
loadAllMusicFonts();
Flow.setMusicFont('Bravura', 'Gonville', 'Custom');
loadTextFonts();
export * from '../src/index.js';
export * as default from '../src/index.js';
7 changes: 7 additions & 0 deletions build/esm/entry/vexflow-font-bravura.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { BravuraFont } from '../src/fonts/bravura_glyphs.js';
import { CommonMetrics } from '../src/fonts/common_metrics.js';
export const Font = {
data: BravuraFont,
metrics: CommonMetrics,
};
export default Font;
7 changes: 7 additions & 0 deletions build/esm/entry/vexflow-font-custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { CommonMetrics } from '../src/fonts/common_metrics.js';
import { CustomFont } from '../src/fonts/custom_glyphs.js';
export const Font = {
data: CustomFont,
metrics: CommonMetrics,
};
export default Font;
7 changes: 7 additions & 0 deletions build/esm/entry/vexflow-font-gonville.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { CommonMetrics } from '../src/fonts/common_metrics.js';
import { GonvilleSmuflFont } from '../src/fonts/gonville_glyphs.js';
export const Font = {
data: GonvilleSmuflFont,
metrics: CommonMetrics,
};
export default Font;
7 changes: 7 additions & 0 deletions build/esm/entry/vexflow-font-leland.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { CommonMetrics } from '../src/fonts/common_metrics.js';
import { LelandFont } from '../src/fonts/leland_glyphs.js';
export const Font = {
data: LelandFont,
metrics: CommonMetrics,
};
export default Font;
7 changes: 7 additions & 0 deletions build/esm/entry/vexflow-font-petaluma.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { CommonMetrics } from '../src/fonts/common_metrics.js';
import { PetalumaFont } from '../src/fonts/petaluma_glyphs.js';
export const Font = {
data: PetalumaFont,
metrics: CommonMetrics,
};
export default Font;
10 changes: 10 additions & 0 deletions build/esm/entry/vexflow-gonville.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Flow } from '../src/flow.js';
import { loadCustom } from '../src/fonts/load_custom.js';
import { loadGonville } from '../src/fonts/load_gonville.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
loadGonville();
loadCustom();
Flow.setMusicFont('Gonville', 'Custom');
loadTextFonts();
export * from '../src/index.js';
export * as default from '../src/index.js';
10 changes: 10 additions & 0 deletions build/esm/entry/vexflow-leland.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Flow } from '../src/flow.js';
import { loadCustom } from '../src/fonts/load_custom.js';
import { loadLeland } from '../src/fonts/load_leland.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
loadLeland();
loadCustom();
Flow.setMusicFont('Leland', 'Custom');
loadTextFonts();
export * from '../src/index.js';
export * as default from '../src/index.js';
10 changes: 10 additions & 0 deletions build/esm/entry/vexflow-petaluma.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Flow } from '../src/flow.js';
import { loadCustom } from '../src/fonts/load_custom.js';
import { loadPetaluma } from '../src/fonts/load_petaluma.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
loadPetaluma();
loadCustom();
Flow.setMusicFont('Petaluma', 'Custom');
loadTextFonts();
export * from '../src/index.js';
export * as default from '../src/index.js';
8 changes: 8 additions & 0 deletions build/esm/entry/vexflow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Flow } from '../src/flow.js';
import { loadAllMusicFonts } from '../src/fonts/load_all.js';
import { loadTextFonts } from '../src/fonts/textfonts.js';
loadAllMusicFonts();
Flow.setMusicFont('Bravura', 'Gonville', 'Custom');
loadTextFonts();
export * from '../src/index.js';
export * as default from '../src/index.js';
3 changes: 3 additions & 0 deletions build/esm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
Loading

0 comments on commit 988f0ee

Please sign in to comment.