web-music-score 6.0.0-pre.2 → 6.0.0-pre.4
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/CHANGELOG.md +19 -0
- package/dist/audio/index.d.ts +1 -1
- package/dist/audio/index.js +12 -2
- package/dist/audio/index.mjs +4 -4
- package/dist/audio-cg/index.js +1 -1
- package/dist/audio-cg/index.mjs +4 -4
- package/dist/audio-synth/index.js +1 -1
- package/dist/audio-synth/index.mjs +4 -4
- package/dist/{chunk-3L3RBNBV.mjs → chunk-6BEFVAAS.mjs} +3 -3
- package/dist/{chunk-7PNMM2PM.mjs → chunk-DVKR62RS.mjs} +14 -4
- package/dist/{chunk-5W6ROWBC.mjs → chunk-GNCSH24V.mjs} +2 -2
- package/dist/{chunk-OXLTN43T.mjs → chunk-GNFDJFUO.mjs} +2 -2
- package/dist/{chunk-5P4O5YX2.mjs → chunk-KFBULED3.mjs} +3 -3
- package/dist/{chunk-GNFWJCFN.mjs → chunk-UAVXEHYM.mjs} +4 -4
- package/dist/core/index.js +1830 -3
- package/dist/core/index.mjs +90 -4
- package/dist/iife/audio-cg.js +1 -1
- package/dist/iife/index.js +92 -12
- package/dist/{music-objects-CiIS8yPn.d.ts → music-objects-ChAdqdR8.d.ts} +74 -4
- package/dist/{note-CJuq5aBy.d.ts → note-RVXvpfyV.d.ts} +1 -1
- package/dist/pieces/index.d.ts +3 -3
- package/dist/pieces/index.js +1 -1
- package/dist/pieces/index.mjs +2 -2
- package/dist/react-ui/index.d.ts +6 -3
- package/dist/react-ui/index.js +43 -10
- package/dist/react-ui/index.mjs +44 -11
- package/dist/{scale-DxGqFxlv.d.ts → scale-B1M10_fu.d.ts} +2 -2
- package/dist/score/index.d.ts +6 -54
- package/dist/score/index.js +709 -597
- package/dist/score/index.mjs +700 -599
- package/dist/{tempo-pCAa6qgo.d.ts → tempo-D-JF-8b_.d.ts} +1 -1
- package/dist/theory/index.d.ts +5 -5
- package/dist/theory/index.js +12 -2
- package/dist/theory/index.mjs +4 -4
- package/package.json +5 -4
package/dist/core/index.mjs
CHANGED
|
@@ -1,9 +1,95 @@
|
|
|
1
|
-
/* WebMusicScore v6.0.0-pre.
|
|
1
|
+
/* WebMusicScore v6.0.0-pre.4 | (c) 2023-2025 Stefan Brockmann | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
|
|
2
2
|
import {
|
|
3
3
|
MusicError,
|
|
4
4
|
MusicErrorType
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import
|
|
5
|
+
} from "../chunk-KFBULED3.mjs";
|
|
6
|
+
import {
|
|
7
|
+
utils_exports
|
|
8
|
+
} from "../chunk-DVKR62RS.mjs";
|
|
9
|
+
import "../chunk-GNFDJFUO.mjs";
|
|
10
|
+
|
|
11
|
+
// src/core/custom-css.ts
|
|
12
|
+
utils_exports.Dom.injectCss("wms-custom-css", `
|
|
13
|
+
/* Add custom wms-button and wms-button-group styles */
|
|
14
|
+
|
|
15
|
+
.wms-button {
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
padding: 0.4rem 0.8rem; /* medium size */
|
|
20
|
+
font-size: 1rem; /* readable */
|
|
21
|
+
font-weight: 600; /* semi-bold for clarity */
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
border: 1px solid #444; /* subtle border */
|
|
24
|
+
border-radius: 4px; /* slight rounding */
|
|
25
|
+
background-color: #1e88e5; /* primary color (blue) */
|
|
26
|
+
color: white; /* text color */
|
|
27
|
+
transition: background 0.2s ease, transform 0.1s ease;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.wms-button:disabled,
|
|
31
|
+
.wms-button.disabled {
|
|
32
|
+
background-color: #b0bec5; /* grayish color */
|
|
33
|
+
border-color: #90a4ae; /* subtle border */
|
|
34
|
+
color: #eceff1; /* light text */
|
|
35
|
+
cursor: not-allowed; /* indicates disabled */
|
|
36
|
+
opacity: 0.7; /* slightly faded */
|
|
37
|
+
pointer-events: none; /* prevent clicks */
|
|
38
|
+
transform: none; /* no press effect */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wms-button:hover {
|
|
42
|
+
background-color: #1565c0; /* slightly darker */
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.wms-button:active {
|
|
46
|
+
transform: scale(0.97); /* subtle press effect */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.wms-button--sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
|
|
50
|
+
.wms-button--lg { padding: 0.5rem 1rem; font-size: 1.125rem; }
|
|
51
|
+
|
|
52
|
+
.wms-button-group {
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.wms-button-group > .wms-button {
|
|
57
|
+
border-radius: 0;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.wms-button-group > .wms-button:first-child {
|
|
62
|
+
border-top-left-radius: 4px;
|
|
63
|
+
border-bottom-left-radius: 4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.wms-button-group > .wms-button:last-child {
|
|
67
|
+
border-top-right-radius: 4px;
|
|
68
|
+
border-bottom-right-radius: 4px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Add ifm-button-group for infima (for Docusaurus) */
|
|
72
|
+
|
|
73
|
+
.ifm-button-group {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: stretch;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ifm-button-group > .button {
|
|
79
|
+
border-radius: 0;
|
|
80
|
+
margin: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ifm-button-group > .button:first-child {
|
|
84
|
+
border-top-left-radius: var(--ifm-button-border-radius);
|
|
85
|
+
border-bottom-left-radius: var(--ifm-button-border-radius);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ifm-button-group > .button:last-child {
|
|
89
|
+
border-top-right-radius: var(--ifm-button-border-radius);
|
|
90
|
+
border-bottom-right-radius: var(--ifm-button-border-radius);
|
|
91
|
+
}
|
|
92
|
+
`);
|
|
7
93
|
|
|
8
94
|
// src/core/index.ts
|
|
9
95
|
var initialized = false;
|
|
@@ -12,7 +98,7 @@ function init() {
|
|
|
12
98
|
return;
|
|
13
99
|
}
|
|
14
100
|
initialized = true;
|
|
15
|
-
console.log("%cWebMusicScore v6.0.0-pre.
|
|
101
|
+
console.log("%cWebMusicScore v6.0.0-pre.4 (esm) initialized.", "background: black; color: white; padding: 2px;");
|
|
16
102
|
}
|
|
17
103
|
export {
|
|
18
104
|
MusicError,
|