web-music-score 6.0.0-pre.3 → 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.
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v6.0.0-pre.3 | (c) 2023-2025 Stefan Brockmann | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
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
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1526,6 +1526,7 @@ __export2(dom_exports, {
1526
1526
  getPadding: () => getPadding,
1527
1527
  getWidth: () => getWidth,
1528
1528
  hasClass: () => hasClass,
1529
+ injectCss: () => injectCss,
1529
1530
  removeClass: () => removeClass,
1530
1531
  removeFromParent: () => removeFromParent,
1531
1532
  setHeight: () => setHeight,
@@ -1711,6 +1712,15 @@ function getCanvasTextWidth(text, font) {
1711
1712
  ctx.font = font;
1712
1713
  return ctx.measureText(text).width;
1713
1714
  }
1715
+ function injectCss(styleId, styleCss) {
1716
+ if (styleId === "" || styleCss === "") return;
1717
+ if (typeof document === "undefined") return;
1718
+ if (document.getElementById(styleId)) return;
1719
+ const style = document.createElement("style");
1720
+ style.id = styleId;
1721
+ style.textContent = styleCss;
1722
+ document.head.appendChild(style);
1723
+ }
1714
1724
  var math_exports = {};
1715
1725
  __export2(math_exports, {
1716
1726
  avg: () => avg,
@@ -4834,7 +4844,7 @@ var import_core10 = require("web-music-score/core");
4834
4844
 
4835
4845
  @tspro/ts-utils-lib/dist/index.mjs:
4836
4846
  (*!
4837
- * TsUtilsLib v2.2.1 (esm)
4847
+ * TsUtilsLib v2.3.0 (esm)
4838
4848
  * (c) 2023-2025 PahkaSoft
4839
4849
  * Licensed under the MIT License
4840
4850
  *)
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v6.0.0-pre.3 | (c) 2023-2025 Stefan Brockmann | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
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
  NoteLength,
4
4
  NoteLengthProps,
@@ -8,7 +8,7 @@ import {
8
8
  isTupletRatio,
9
9
  validateNoteLength,
10
10
  validateTupletRatio
11
- } from "../chunk-TM46RT77.mjs";
11
+ } from "../chunk-UAVXEHYM.mjs";
12
12
  import {
13
13
  IndexArray,
14
14
  LRUCache,
@@ -16,10 +16,10 @@ import {
16
16
  UniMap,
17
17
  guard_exports,
18
18
  utils_exports
19
- } from "../chunk-S5PIZUF6.mjs";
19
+ } from "../chunk-DVKR62RS.mjs";
20
20
  import {
21
21
  __publicField
22
- } from "../chunk-QJ3X3GQ6.mjs";
22
+ } from "../chunk-GNFDJFUO.mjs";
23
23
 
24
24
  // src/theory/types.ts
25
25
  import { MusicError, MusicErrorType } from "web-music-score/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-music-score",
3
- "version": "6.0.0-pre.3",
3
+ "version": "6.0.0-pre.4",
4
4
  "author": "Stefan Brockmann",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -93,7 +93,8 @@
93
93
  "types": "./dist/pieces/index.d.ts",
94
94
  "default": "./dist/pieces/index.mjs"
95
95
  }
96
- }
96
+ },
97
+ "./package.json": "./package.json"
97
98
  },
98
99
  "unpkg": "./dist/iife/index.js",
99
100
  "jsdelivr": "./dist/iife/index.js",
@@ -111,7 +112,7 @@
111
112
  },
112
113
  "devDependencies": {
113
114
  "@tspro/tsup-plugin-inline-assets": "^1.0.0",
114
- "@tspro/ts-utils-lib": "^2.2.1",
115
+ "@tspro/ts-utils-lib": "^2.3.0",
115
116
  "@types/react": "^18.0.0",
116
117
  "@types/react-dom": "^18.0.0",
117
118
  "color-name-to-code": "^1.0.1",
@@ -134,4 +135,4 @@
134
135
  "start:guitar-app": "npm run start --workspace guitar-app",
135
136
  "docs": "typedoc"
136
137
  }
137
- }
138
+ }