vexflow 5.0.0-alpha.2 → 5.0.0-alpha.3
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/build/cjs/vexflow-bravura.js +2 -2
- package/build/cjs/vexflow-bravura.js.map +1 -1
- package/build/cjs/vexflow-core.js +2 -2
- package/build/cjs/vexflow-core.js.map +1 -1
- package/build/cjs/vexflow-debug-with-tests.js +4 -4
- package/build/cjs/vexflow-debug-with-tests.js.map +1 -1
- package/build/cjs/vexflow-debug.js +4 -4
- package/build/cjs/vexflow-debug.js.map +1 -1
- package/build/cjs/vexflow.js +2 -2
- package/build/cjs/vexflow.js.map +1 -1
- package/build/esm/src/version.js +3 -3
- package/package.json +1 -3
- package/entry/vexflow-bravura.ts +0 -25
- package/entry/vexflow-core.ts +0 -16
- package/entry/vexflow-debug-with-tests.ts +0 -64
- package/entry/vexflow-debug.ts +0 -54
- package/entry/vexflow.ts +0 -47
- package/src/accidental.ts +0 -570
- package/src/annotation.ts +0 -294
- package/src/articulation.ts +0 -383
- package/src/barnote.ts +0 -95
- package/src/beam.ts +0 -999
- package/src/bend.ts +0 -268
- package/src/boundingbox.ts +0 -108
- package/src/canvascontext.ts +0 -348
- package/src/chordsymbol.ts +0 -473
- package/src/clef.ts +0 -164
- package/src/clefnote.ts +0 -50
- package/src/crescendo.ts +0 -132
- package/src/curve.ts +0 -195
- package/src/dot.ts +0 -171
- package/src/easyscore.ts +0 -538
- package/src/element.ts +0 -692
- package/src/factory.ts +0 -694
- package/src/font.ts +0 -343
- package/src/fonts/academico.ts +0 -2
- package/src/fonts/academicobold.ts +0 -2
- package/src/fonts/bravura.ts +0 -2
- package/src/fonts/gonville.ts +0 -2
- package/src/fonts/petaluma.ts +0 -2
- package/src/fonts/petalumascript.ts +0 -2
- package/src/formatter.ts +0 -1107
- package/src/fraction.ts +0 -245
- package/src/frethandfinger.ts +0 -180
- package/src/ghostnote.ts +0 -75
- package/src/glyphnote.ts +0 -68
- package/src/glyphs.ts +0 -5880
- package/src/gracenote.ts +0 -146
- package/src/gracenotegroup.ts +0 -194
- package/src/gracetabnote.ts +0 -30
- package/src/index.ts +0 -90
- package/src/keymanager.ts +0 -153
- package/src/keysignature.ts +0 -272
- package/src/keysignote.ts +0 -46
- package/src/metrics.ts +0 -222
- package/src/modifier.ts +0 -216
- package/src/modifiercontext.ts +0 -177
- package/src/multimeasurerest.ts +0 -229
- package/src/music.ts +0 -443
- package/src/note.ts +0 -690
- package/src/notehead.ts +0 -158
- package/src/notesubgroup.ts +0 -88
- package/src/ornament.ts +0 -301
- package/src/parenthesis.ts +0 -89
- package/src/parser.ts +0 -263
- package/src/pedalmarking.ts +0 -273
- package/src/registry.ts +0 -146
- package/src/rendercontext.ts +0 -98
- package/src/renderer.ts +0 -166
- package/src/repeatnote.ts +0 -25
- package/src/stave.ts +0 -885
- package/src/stavebarline.ts +0 -231
- package/src/staveconnector.ts +0 -281
- package/src/stavehairpin.ts +0 -209
- package/src/staveline.ts +0 -343
- package/src/stavemodifier.ts +0 -93
- package/src/stavenote.ts +0 -1230
- package/src/staverepetition.ts +0 -148
- package/src/stavesection.ts +0 -54
- package/src/stavetempo.ts +0 -162
- package/src/stavetext.ts +0 -69
- package/src/stavetie.ts +0 -235
- package/src/stavevolta.ts +0 -66
- package/src/stem.ts +0 -225
- package/src/stemmablenote.ts +0 -248
- package/src/stringnumber.ts +0 -286
- package/src/strokes.ts +0 -214
- package/src/svgcontext.ts +0 -639
- package/src/system.ts +0 -327
- package/src/tables.ts +0 -796
- package/src/tabnote.ts +0 -449
- package/src/tabslide.ts +0 -115
- package/src/tabstave.ts +0 -31
- package/src/tabtie.ts +0 -44
- package/src/textbracket.ts +0 -231
- package/src/textdynamics.ts +0 -101
- package/src/textnote.ts +0 -175
- package/src/tickable.ts +0 -374
- package/src/tickcontext.ts +0 -280
- package/src/timesignature.ts +0 -229
- package/src/timesignote.ts +0 -45
- package/src/tremolo.ts +0 -51
- package/src/tuning.ts +0 -90
- package/src/tuplet.ts +0 -349
- package/src/typeguard.ts +0 -136
- package/src/util.ts +0 -169
- package/src/version.ts +0 -4
- package/src/vexflow.ts +0 -378
- package/src/vibrato.ts +0 -99
- package/src/vibratobracket.ts +0 -81
- package/src/voice.ts +0 -302
- package/src/web.ts +0 -35
package/build/esm/src/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const VERSION = '5.0.0-alpha.
|
|
2
|
-
export const ID = '
|
|
3
|
-
export const DATE = '2024-03-
|
|
1
|
+
export const VERSION = '5.0.0-alpha.3';
|
|
2
|
+
export const ID = '34a251a7bd087f8a341d61837db71c38def9f70d';
|
|
3
|
+
export const DATE = '2024-03-10T22:53:53.018Z';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vexflow",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.3",
|
|
4
4
|
"description": "A JavaScript library for rendering music notation and guitar tablature.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,8 +37,6 @@
|
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"files": [
|
|
39
39
|
"build",
|
|
40
|
-
"src",
|
|
41
|
-
"entry",
|
|
42
40
|
"tests/flow.html",
|
|
43
41
|
"tests/flow.css",
|
|
44
42
|
"tests/qunit/qunit.css",
|
package/entry/vexflow-bravura.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2023-present VexFlow contributors: https://github.com/vexflow/vexflow/graphs/contributors
|
|
2
|
-
// MIT License
|
|
3
|
-
//
|
|
4
|
-
// vexflow-bravura.ts is the entry point for vexflow-bravura.js.
|
|
5
|
-
// This version bundles the Bravura music engraving font and the Academico text font.
|
|
6
|
-
|
|
7
|
-
import { VexFlow } from '../src/vexflow';
|
|
8
|
-
|
|
9
|
-
import { Font } from '../src/font';
|
|
10
|
-
import { Academico } from '../src/fonts/academico';
|
|
11
|
-
import { AcademicoBold } from '../src/fonts/academicobold';
|
|
12
|
-
import { Bravura } from '../src/fonts/bravura';
|
|
13
|
-
|
|
14
|
-
const fontBravura = Font.load('Bravura', Bravura, { display: 'block' });
|
|
15
|
-
const fontAcademico = Font.load('Academico', Academico, { display: 'swap' });
|
|
16
|
-
const fontAcademicoBold = Font.load('Academico', AcademicoBold, { display: 'swap', weight: 'bold' });
|
|
17
|
-
|
|
18
|
-
VexFlow.BUILD.INFO = 'vexflow-bravura';
|
|
19
|
-
VexFlow.setFonts('Bravura', 'Academico');
|
|
20
|
-
Promise.allSettled([fontBravura, fontAcademico, fontAcademicoBold]).then(() => {
|
|
21
|
-
//
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export * from '../src/index';
|
|
25
|
-
export default VexFlow;
|
package/entry/vexflow-core.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2023-present VexFlow contributors: https://github.com/vexflow/vexflow/graphs/contributors
|
|
2
|
-
// MIT License
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// vexflow-core.ts is the entry point for the vexflow-core.js build target.
|
|
6
|
-
// It supports dynamic importing of fonts (woff2 / otf), and does not
|
|
7
|
-
// bundle or preload any music or text fonts by default.
|
|
8
|
-
// All music/text fonts need to be loaded at runtime during page load.
|
|
9
|
-
//
|
|
10
|
-
// The webpack config inside Gruntfile.js sets the mode to 'production' to produce a minified build.
|
|
11
|
-
|
|
12
|
-
import { VexFlow } from '../src/vexflow';
|
|
13
|
-
|
|
14
|
-
VexFlow.BUILD.INFO = 'vexflow-core';
|
|
15
|
-
export * from '../src/index';
|
|
16
|
-
export default VexFlow;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2023-present VexFlow contributors: https://github.com/vexflow/vexflow/graphs/contributors
|
|
2
|
-
// MIT License
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// This file is the entry point for the vexflow-debug-with-tests.js build target. It includes the tests from vexflow/tests/.
|
|
6
|
-
//
|
|
7
|
-
// This file is based on vexflow.ts. However, the webpack config inside Gruntfile.js
|
|
8
|
-
// sets the webpack mode to 'development' to produce a debug / unminified build.
|
|
9
|
-
//
|
|
10
|
-
// The output file is used by flow.html & flow-headless-browser.html to run the tests.
|
|
11
|
-
//
|
|
12
|
-
// It bundles the same fonts as vexflow.js.
|
|
13
|
-
// Other music/text fonts need to be loaded at runtime during page load. See VexFlow.loadFonts().
|
|
14
|
-
|
|
15
|
-
import { VexFlow } from '../src/vexflow';
|
|
16
|
-
import { VexFlowTests } from '../tests/vexflow_test_helpers';
|
|
17
|
-
|
|
18
|
-
// import * as VexSrc from '../src/index';
|
|
19
|
-
// import * as VexTests from '../tests/index';
|
|
20
|
-
import { Font } from '../src/font';
|
|
21
|
-
import { Academico } from '../src/fonts/academico';
|
|
22
|
-
import { AcademicoBold } from '../src/fonts/academicobold';
|
|
23
|
-
import { Bravura } from '../src/fonts/bravura';
|
|
24
|
-
import { Gonville } from '../src/fonts/gonville';
|
|
25
|
-
import { Petaluma } from '../src/fonts/petaluma';
|
|
26
|
-
import { PetalumaScript } from '../src/fonts/petalumascript';
|
|
27
|
-
|
|
28
|
-
// Our convention is to use display: 'swap' for text fonts, and 'block' for music fonts.
|
|
29
|
-
const block = { display: 'block' };
|
|
30
|
-
const swap = { display: 'swap' };
|
|
31
|
-
const swapBold = { display: 'swap', weight: 'bold' };
|
|
32
|
-
|
|
33
|
-
const fontBravura = Font.load('Bravura', Bravura, block);
|
|
34
|
-
const fontAcademico = Font.load('Academico', Academico, swap);
|
|
35
|
-
const fontAcademicoBold = Font.load('Academico', AcademicoBold, swapBold);
|
|
36
|
-
const fontGonville = Font.load('Gonville', Gonville, block);
|
|
37
|
-
const fontPetaluma = Font.load('Petaluma', Petaluma, block);
|
|
38
|
-
const fontPetalumaScript = Font.load('Petaluma Script', PetalumaScript, swap);
|
|
39
|
-
|
|
40
|
-
const fontLoadPromises = [
|
|
41
|
-
fontBravura,
|
|
42
|
-
fontAcademico,
|
|
43
|
-
fontAcademicoBold,
|
|
44
|
-
fontGonville,
|
|
45
|
-
fontPetaluma,
|
|
46
|
-
fontPetalumaScript,
|
|
47
|
-
];
|
|
48
|
-
|
|
49
|
-
VexFlow.BUILD.INFO = 'vexflow-debug-with-tests';
|
|
50
|
-
VexFlow.setFonts('Bravura', 'Academico');
|
|
51
|
-
|
|
52
|
-
Promise.allSettled(fontLoadPromises).then(() => {
|
|
53
|
-
//
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
export * from '../src/index';
|
|
57
|
-
export * from '../tests/index';
|
|
58
|
-
|
|
59
|
-
// VexFlow classes can be accessed via VexFlow.* or by directly importing a library class.
|
|
60
|
-
// Tests can be accessed via VexFlow.Test.* or by directly importing a test class.
|
|
61
|
-
// eslint-disable-next-line
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
VexFlow.Test = VexFlowTests;
|
|
64
|
-
export default VexFlow;
|
package/entry/vexflow-debug.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2023-present VexFlow contributors: https://github.com/vexflow/vexflow/graphs/contributors
|
|
2
|
-
// MIT License
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// This is the entry point for the vexflow-debug.js build target.
|
|
6
|
-
//
|
|
7
|
-
// This file is based on vexflow.ts. However, the webpack config inside Gruntfile.js
|
|
8
|
-
// sets the webpack mode to 'development' to produce a debug / unminified build.
|
|
9
|
-
//
|
|
10
|
-
// In the future, we could do something different with this entry file, such as turn on flags for logging.
|
|
11
|
-
//
|
|
12
|
-
// It bundles the same fonts as vexflow.js.
|
|
13
|
-
// Other music/text fonts need to be loaded at runtime during page load. See VexFlow.loadFonts().
|
|
14
|
-
|
|
15
|
-
import { VexFlow } from '../src/vexflow';
|
|
16
|
-
|
|
17
|
-
import { Font } from '../src/font';
|
|
18
|
-
import { Academico } from '../src/fonts/academico';
|
|
19
|
-
import { AcademicoBold } from '../src/fonts/academicobold';
|
|
20
|
-
import { Bravura } from '../src/fonts/bravura';
|
|
21
|
-
import { Gonville } from '../src/fonts/gonville';
|
|
22
|
-
import { Petaluma } from '../src/fonts/petaluma';
|
|
23
|
-
import { PetalumaScript } from '../src/fonts/petalumascript';
|
|
24
|
-
|
|
25
|
-
// Our convention is to use display: 'swap' for text fonts, and 'block' for music fonts.
|
|
26
|
-
const block = { display: 'block' };
|
|
27
|
-
const swap = { display: 'swap' };
|
|
28
|
-
const swapBold = { display: 'swap', weight: 'bold' };
|
|
29
|
-
|
|
30
|
-
const fontBravura = Font.load('Bravura', Bravura, block);
|
|
31
|
-
const fontAcademico = Font.load('Academico', Academico, swap);
|
|
32
|
-
const fontAcademicoBold = Font.load('Academico', AcademicoBold, swapBold);
|
|
33
|
-
const fontGonville = Font.load('Gonville', Gonville, block);
|
|
34
|
-
const fontPetaluma = Font.load('Petaluma', Petaluma, block);
|
|
35
|
-
const fontPetalumaScript = Font.load('Petaluma Script', PetalumaScript, swap);
|
|
36
|
-
|
|
37
|
-
const fontLoadPromises = [
|
|
38
|
-
fontBravura,
|
|
39
|
-
fontAcademico,
|
|
40
|
-
fontAcademicoBold,
|
|
41
|
-
fontGonville,
|
|
42
|
-
fontPetaluma,
|
|
43
|
-
fontPetalumaScript,
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
VexFlow.BUILD.INFO = 'vexflow-debug';
|
|
47
|
-
VexFlow.setFonts('Bravura', 'Academico');
|
|
48
|
-
|
|
49
|
-
Promise.allSettled(fontLoadPromises).then(() => {
|
|
50
|
-
//
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export * from '../src/index';
|
|
54
|
-
export default VexFlow;
|
package/entry/vexflow.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2023-present VexFlow contributors: https://github.com/vexflow/vexflow/graphs/contributors
|
|
2
|
-
// MIT License
|
|
3
|
-
//
|
|
4
|
-
// vexflow.ts is the entry point for the build output file vexflow.js.
|
|
5
|
-
|
|
6
|
-
// The webpack config inside Gruntfile.js sets the webpack mode to 'production' to produce a minified build.
|
|
7
|
-
|
|
8
|
-
import { VexFlow } from '../src/vexflow';
|
|
9
|
-
|
|
10
|
-
import { Font } from '../src/font';
|
|
11
|
-
import { Academico } from '../src/fonts/academico';
|
|
12
|
-
import { AcademicoBold } from '../src/fonts/academicobold';
|
|
13
|
-
import { Bravura } from '../src/fonts/bravura';
|
|
14
|
-
import { Gonville } from '../src/fonts/gonville';
|
|
15
|
-
import { Petaluma } from '../src/fonts/petaluma';
|
|
16
|
-
import { PetalumaScript } from '../src/fonts/petalumascript';
|
|
17
|
-
|
|
18
|
-
// Our convention is to use display: 'swap' for text fonts, and 'block' for music fonts.
|
|
19
|
-
const block = { display: 'block' };
|
|
20
|
-
const swap = { display: 'swap' };
|
|
21
|
-
const swapBold = { display: 'swap', weight: 'bold' };
|
|
22
|
-
|
|
23
|
-
const fontBravura = Font.load('Bravura', Bravura, block);
|
|
24
|
-
const fontAcademico = Font.load('Academico', Academico, swap);
|
|
25
|
-
const fontAcademicoBold = Font.load('Academico', AcademicoBold, swapBold);
|
|
26
|
-
const fontGonville = Font.load('Gonville', Gonville, block);
|
|
27
|
-
const fontPetaluma = Font.load('Petaluma', Petaluma, block);
|
|
28
|
-
const fontPetalumaScript = Font.load('Petaluma Script', PetalumaScript, swap);
|
|
29
|
-
|
|
30
|
-
const fontLoadPromises = [
|
|
31
|
-
fontBravura,
|
|
32
|
-
fontAcademico,
|
|
33
|
-
fontAcademicoBold,
|
|
34
|
-
fontGonville,
|
|
35
|
-
fontPetaluma,
|
|
36
|
-
fontPetalumaScript,
|
|
37
|
-
];
|
|
38
|
-
|
|
39
|
-
VexFlow.BUILD.INFO = 'vexflow';
|
|
40
|
-
VexFlow.setFonts('Bravura', 'Academico');
|
|
41
|
-
|
|
42
|
-
Promise.allSettled(fontLoadPromises).then(() => {
|
|
43
|
-
//
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export * from '../src/index';
|
|
47
|
-
export default VexFlow;
|