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.
Files changed (112) hide show
  1. package/build/cjs/vexflow-bravura.js +2 -2
  2. package/build/cjs/vexflow-bravura.js.map +1 -1
  3. package/build/cjs/vexflow-core.js +2 -2
  4. package/build/cjs/vexflow-core.js.map +1 -1
  5. package/build/cjs/vexflow-debug-with-tests.js +4 -4
  6. package/build/cjs/vexflow-debug-with-tests.js.map +1 -1
  7. package/build/cjs/vexflow-debug.js +4 -4
  8. package/build/cjs/vexflow-debug.js.map +1 -1
  9. package/build/cjs/vexflow.js +2 -2
  10. package/build/cjs/vexflow.js.map +1 -1
  11. package/build/esm/src/version.js +3 -3
  12. package/package.json +1 -3
  13. package/entry/vexflow-bravura.ts +0 -25
  14. package/entry/vexflow-core.ts +0 -16
  15. package/entry/vexflow-debug-with-tests.ts +0 -64
  16. package/entry/vexflow-debug.ts +0 -54
  17. package/entry/vexflow.ts +0 -47
  18. package/src/accidental.ts +0 -570
  19. package/src/annotation.ts +0 -294
  20. package/src/articulation.ts +0 -383
  21. package/src/barnote.ts +0 -95
  22. package/src/beam.ts +0 -999
  23. package/src/bend.ts +0 -268
  24. package/src/boundingbox.ts +0 -108
  25. package/src/canvascontext.ts +0 -348
  26. package/src/chordsymbol.ts +0 -473
  27. package/src/clef.ts +0 -164
  28. package/src/clefnote.ts +0 -50
  29. package/src/crescendo.ts +0 -132
  30. package/src/curve.ts +0 -195
  31. package/src/dot.ts +0 -171
  32. package/src/easyscore.ts +0 -538
  33. package/src/element.ts +0 -692
  34. package/src/factory.ts +0 -694
  35. package/src/font.ts +0 -343
  36. package/src/fonts/academico.ts +0 -2
  37. package/src/fonts/academicobold.ts +0 -2
  38. package/src/fonts/bravura.ts +0 -2
  39. package/src/fonts/gonville.ts +0 -2
  40. package/src/fonts/petaluma.ts +0 -2
  41. package/src/fonts/petalumascript.ts +0 -2
  42. package/src/formatter.ts +0 -1107
  43. package/src/fraction.ts +0 -245
  44. package/src/frethandfinger.ts +0 -180
  45. package/src/ghostnote.ts +0 -75
  46. package/src/glyphnote.ts +0 -68
  47. package/src/glyphs.ts +0 -5880
  48. package/src/gracenote.ts +0 -146
  49. package/src/gracenotegroup.ts +0 -194
  50. package/src/gracetabnote.ts +0 -30
  51. package/src/index.ts +0 -90
  52. package/src/keymanager.ts +0 -153
  53. package/src/keysignature.ts +0 -272
  54. package/src/keysignote.ts +0 -46
  55. package/src/metrics.ts +0 -222
  56. package/src/modifier.ts +0 -216
  57. package/src/modifiercontext.ts +0 -177
  58. package/src/multimeasurerest.ts +0 -229
  59. package/src/music.ts +0 -443
  60. package/src/note.ts +0 -690
  61. package/src/notehead.ts +0 -158
  62. package/src/notesubgroup.ts +0 -88
  63. package/src/ornament.ts +0 -301
  64. package/src/parenthesis.ts +0 -89
  65. package/src/parser.ts +0 -263
  66. package/src/pedalmarking.ts +0 -273
  67. package/src/registry.ts +0 -146
  68. package/src/rendercontext.ts +0 -98
  69. package/src/renderer.ts +0 -166
  70. package/src/repeatnote.ts +0 -25
  71. package/src/stave.ts +0 -885
  72. package/src/stavebarline.ts +0 -231
  73. package/src/staveconnector.ts +0 -281
  74. package/src/stavehairpin.ts +0 -209
  75. package/src/staveline.ts +0 -343
  76. package/src/stavemodifier.ts +0 -93
  77. package/src/stavenote.ts +0 -1230
  78. package/src/staverepetition.ts +0 -148
  79. package/src/stavesection.ts +0 -54
  80. package/src/stavetempo.ts +0 -162
  81. package/src/stavetext.ts +0 -69
  82. package/src/stavetie.ts +0 -235
  83. package/src/stavevolta.ts +0 -66
  84. package/src/stem.ts +0 -225
  85. package/src/stemmablenote.ts +0 -248
  86. package/src/stringnumber.ts +0 -286
  87. package/src/strokes.ts +0 -214
  88. package/src/svgcontext.ts +0 -639
  89. package/src/system.ts +0 -327
  90. package/src/tables.ts +0 -796
  91. package/src/tabnote.ts +0 -449
  92. package/src/tabslide.ts +0 -115
  93. package/src/tabstave.ts +0 -31
  94. package/src/tabtie.ts +0 -44
  95. package/src/textbracket.ts +0 -231
  96. package/src/textdynamics.ts +0 -101
  97. package/src/textnote.ts +0 -175
  98. package/src/tickable.ts +0 -374
  99. package/src/tickcontext.ts +0 -280
  100. package/src/timesignature.ts +0 -229
  101. package/src/timesignote.ts +0 -45
  102. package/src/tremolo.ts +0 -51
  103. package/src/tuning.ts +0 -90
  104. package/src/tuplet.ts +0 -349
  105. package/src/typeguard.ts +0 -136
  106. package/src/util.ts +0 -169
  107. package/src/version.ts +0 -4
  108. package/src/vexflow.ts +0 -378
  109. package/src/vibrato.ts +0 -99
  110. package/src/vibratobracket.ts +0 -81
  111. package/src/voice.ts +0 -302
  112. package/src/web.ts +0 -35
@@ -1,3 +1,3 @@
1
- export const VERSION = '5.0.0-alpha.2';
2
- export const ID = '5e2bacc535b3ce3ba7b8dc72a7de5964d36fcc04';
3
- export const DATE = '2024-03-09T08:46:38.033Z';
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.2",
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",
@@ -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;
@@ -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;
@@ -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;