@tspro/web-music-score 5.4.2 → 5.5.0

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 (43) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +24 -0
  3. package/README.md +13 -6
  4. package/dist/audio/index.d.ts +1 -1
  5. package/dist/audio/index.js +1637 -5
  6. package/dist/audio/index.mjs +9 -6
  7. package/dist/audio-cg/index.js +17487 -46
  8. package/dist/audio-cg/index.mjs +7 -5
  9. package/dist/audio-synth/index.js +18434 -32
  10. package/dist/audio-synth/index.mjs +12 -7
  11. package/dist/{chunk-MMWSQGVR.mjs → chunk-2DCCUAGC.mjs} +3 -3
  12. package/dist/{chunk-CVYTUTL6.mjs → chunk-2PEB4HWS.mjs} +2 -2
  13. package/dist/{chunk-42IBAVOC.mjs → chunk-33HIE3HR.mjs} +18 -13
  14. package/dist/chunk-BMKUAUSJ.mjs +101 -0
  15. package/dist/chunk-PCQGQM63.mjs +18381 -0
  16. package/dist/chunk-T6TYLAJE.mjs +3766 -0
  17. package/dist/core/index.js +2 -2
  18. package/dist/core/index.mjs +4 -4
  19. package/dist/{guitar-CNOxM4ZK.d.ts → guitar-CarHGDAt.d.ts} +1 -1
  20. package/dist/iife/audio-cg.global.js +1 -1
  21. package/dist/iife/index.global.js +11 -11
  22. package/dist/{music-objects-DqoO-Sfv.d.mts → music-objects-CcJvZxS6.d.mts} +123 -96
  23. package/dist/{music-objects-T8u8bnNP.d.ts → music-objects-l5Ai97QA.d.ts} +125 -98
  24. package/dist/{note-RVXvpfyV.d.ts → note-CJuq5aBy.d.ts} +1 -1
  25. package/dist/pieces/index.d.mts +12 -6
  26. package/dist/pieces/index.d.ts +14 -8
  27. package/dist/pieces/index.js +25 -13
  28. package/dist/pieces/index.mjs +25 -14
  29. package/dist/react-ui/index.d.mts +1 -1
  30. package/dist/react-ui/index.d.ts +5 -5
  31. package/dist/react-ui/index.js +2163 -22
  32. package/dist/react-ui/index.mjs +18 -15
  33. package/dist/{scale-CUYFBo-8.d.ts → scale-DulPFco_.d.ts} +2 -2
  34. package/dist/score/index.d.mts +51 -3
  35. package/dist/score/index.d.ts +54 -6
  36. package/dist/score/index.js +4828 -872
  37. package/dist/score/index.mjs +1280 -729
  38. package/dist/{tempo-DwuZsv2T.d.ts → tempo-BnUjm25M.d.ts} +1 -1
  39. package/dist/theory/index.d.ts +6 -6
  40. package/dist/theory/index.js +2576 -136
  41. package/dist/theory/index.mjs +41 -49
  42. package/package.json +4 -5
  43. package/dist/chunk-ROBXPR34.mjs +0 -9
@@ -1,12 +1,17 @@
1
- /* WebMusicScore v5.4.2 | (c) 2023-2025 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v5.5.0 | (c) 2023-2025 PahkaSoft | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
2
+ import {
3
+ Rect,
4
+ device_exports,
5
+ guard_exports,
6
+ utils_exports
7
+ } from "../chunk-T6TYLAJE.mjs";
2
8
  import {
3
9
  __publicField
4
- } from "../chunk-ROBXPR34.mjs";
10
+ } from "../chunk-BMKUAUSJ.mjs";
5
11
 
6
12
  // src/react-ui/circle-of-fifths.tsx
7
13
  import * as React from "react";
8
14
  import { Note, SymbolSet, getScale, ScaleType } from "@tspro/web-music-score/theory";
9
- import { Device, Rect, Utils } from "@tspro/ts-utils-lib";
10
15
  import { jsx } from "react/jsx-runtime";
11
16
  var SelectedColor = "#0A0";
12
17
  var MajorScaleTonics = [
@@ -52,8 +57,8 @@ var CircleOfFifths = class extends React.Component {
52
57
  render() {
53
58
  var _a, _b;
54
59
  let { style, scale } = this.props;
55
- let defaultSize = Device.toPx("22em");
56
- let dim = Utils.Dom.getDimension(style);
60
+ let defaultSize = device_exports.toPx("22em");
61
+ let dim = utils_exports.Dom.getDimension(style);
57
62
  let width = (_a = dim.width) != null ? _a : defaultSize;
58
63
  let height = (_b = dim.height) != null ? _b : defaultSize;
59
64
  style = Object.assign({}, style, { width, height });
@@ -149,7 +154,6 @@ var guitar_default = {
149
154
 
150
155
  // src/react-ui/guitar-context.ts
151
156
  import { MusicError, MusicErrorType } from "@tspro/web-music-score/core";
152
- import { Guard } from "@tspro/ts-utils-lib";
153
157
  var DefaultColors = {
154
158
  ScaleNoteColor: "#0A0",
155
159
  ScaleRootNoteColor: "#00A",
@@ -266,9 +270,9 @@ var GuitarContext = class _GuitarContext {
266
270
  * @returns - Fret position object.
267
271
  */
268
272
  getFretPosition(stringId, fretId) {
269
- if (!Guard.isInteger(stringId) || stringId < 0 || stringId > 5) {
273
+ if (!guard_exports.isInteger(stringId) || stringId < 0 || stringId > 5) {
270
274
  throw new MusicError(MusicErrorType.InvalidArg, `Invalid stringId: + ${stringId}`);
271
- } else if (!Guard.isInteger(fretId) || fretId < 0 || fretId > this.maxFretId) {
275
+ } else if (!guard_exports.isInteger(fretId) || fretId < 0 || fretId > this.maxFretId) {
272
276
  throw new MusicError(MusicErrorType.InvalidArg, `Invalid fretId: ${fretId}`);
273
277
  } else {
274
278
  return this.fretPositionTable[stringId][fretId];
@@ -333,7 +337,6 @@ var GuitarContext = class _GuitarContext {
333
337
 
334
338
  // src/react-ui/guitar-view.tsx
335
339
  import * as React2 from "react";
336
- import { Guard as Guard2, Rect as Rect2, Utils as Utils2 } from "@tspro/ts-utils-lib";
337
340
  import { Handedness as Handedness2 } from "@tspro/web-music-score/theory";
338
341
 
339
342
  // src/react-ui/assets/guitar.png
@@ -371,7 +374,7 @@ var t_table = [
371
374
  0.75
372
375
  ];
373
376
  function fret_t(fretId) {
374
- if (!Guard2.isInteger(fretId) || fretId < 0 || fretId > t_table.length - 1) {
377
+ if (!guard_exports.isInteger(fretId) || fretId < 0 || fretId > t_table.length - 1) {
375
378
  throw new MusicError2(MusicErrorType2.InvalidArg, `Invalid fretId: ${fretId}`);
376
379
  } else {
377
380
  return t_table[fretId] * 2;
@@ -418,14 +421,14 @@ var GuitarView = class extends React2.Component {
418
421
  }
419
422
  componentDidUpdate(prevProps) {
420
423
  let { style, guitarContext: guitarCtx } = this.props;
421
- if (Utils2.Dom.styleLayoutChanged(style, prevProps.style) || guitarCtx !== prevProps.guitarContext) {
424
+ if (utils_exports.Dom.styleLayoutChanged(style, prevProps.style) || guitarCtx !== prevProps.guitarContext) {
422
425
  this.setState(this.getLayoutState());
423
426
  }
424
427
  }
425
428
  getLayoutState() {
426
429
  var _a, _b;
427
430
  let { guitarContext: guitarCtx, style } = this.props;
428
- let dim = Utils2.Dom.getDimension(style);
431
+ let dim = utils_exports.Dom.getDimension(style);
429
432
  let width = (_a = dim.width) != null ? _a : window.innerWidth;
430
433
  let height = guitar_default.height * width / guitar_default.width;
431
434
  let s = width / guitar_default.width;
@@ -442,16 +445,16 @@ var GuitarView = class extends React2.Component {
442
445
  let left = frets[fretId];
443
446
  let right = (_b = frets[fretId - 1]) != null ? _b : new Fret(width, left.topStringY, left.bottomStringY);
444
447
  let cellHeight = (left.bottomStringY - left.topStringY) / 5;
445
- let cellRect = new Rect2(
448
+ let cellRect = new Rect(
446
449
  left.x,
447
450
  left.bottomStringY - cellHeight * (stringId + 0.5),
448
451
  right.x - left.x,
449
452
  cellHeight
450
453
  );
451
454
  if (guitarCtx.handedness === Handedness2.LeftHanded) {
452
- cellRect = new Rect2(width - cellRect.right, cellRect.top, cellRect.width, cellRect.height);
455
+ cellRect = new Rect(width - cellRect.right, cellRect.top, cellRect.width, cellRect.height);
453
456
  }
454
- let noteRect = new Rect2(
457
+ let noteRect = new Rect(
455
458
  cellRect.left + (guitarCtx.handedness === Handedness2.LeftHanded ? cellRect.width - noteWidth : 0),
456
459
  cellRect.top,
457
460
  noteWidth,
@@ -1,5 +1,5 @@
1
- import { N as Note, S as SymbolSet } from './note-RVXvpfyV.js';
2
- import { K as KeySignature } from './tempo-DwuZsv2T.js';
1
+ import { N as Note, S as SymbolSet } from './note-CJuq5aBy.js';
2
+ import { K as KeySignature } from './tempo-BnUjm25M.js';
3
3
 
4
4
  /** Interval direction type. */
5
5
  type IntervalDirection = "Unison" | "Ascending" | "Descending";
@@ -1,10 +1,58 @@
1
- import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, b as MeasureOptions, V as VoiceId, T as TupletOptions, c as VerseNumber, L as LyricsOptions, d as StaffTabOrGroups, F as Fermata, e as Navigation, A as AnnotationText, f as Annotation, g as Label, C as Connective, h as TieType, i as NoteAnchor, j as VerticalPosition } from '../music-objects-DqoO-Sfv.mjs';
2
- export { al as Arpeggio, a7 as BaseConfig, a6 as Clef, ap as DynamicsAnnotation, an as LyricsAlign, ao as LyricsHyphen, u as MAccidental, w as MArpeggio, I as MBarLineLeft, H as MBarLineRight, x as MBeamGroup, v as MConnective, z as MEnding, a5 as MExtensionLine, B as MFermata, D as MHeader, E as MImage, a4 as MLyrics, G as MMeasure, K as MNoteGroup, s as MPlaybackButtons, p as MPlayer, q as MRenderContext, r as MRenderer, Q as MRest, W as MRhythmColumn, X as MScoreRow, Y as MScoreRowGroup, a2 as MSpecialText, Z as MStaff, J as MStaffBarLine, y as MStaffBeamGroup, O as MStaffNoteGroup, U as MStaffRest, $ as MStaffSignature, _ as MTab, P as MTabNoteGroup, a1 as MTabRhythm, a0 as MTabSignature, a3 as MText, t as MusicInterface, ar as PlayState, as as PlayStateChangeListener, l as ScoreEvent, o as ScoreEventListener, k as ScoreEventType, n as ScoreObjectEvent, m as ScoreStaffPosEvent, a8 as StaffConfig, am as StaffTabOrGroup, ak as Stem, ad as StringNumber, a9 as TabConfig, aq as TempoAnnotation, ae as getStringNumbers, ah as getVerseNumbers, aa as getVoiceIds, af as isStringNumber, ai as isVerseNumber, ab as isVoiceId, ag as validateStringNumber, aj as validateVerseNumber, ac as validateVoiceId } from '../music-objects-DqoO-Sfv.mjs';
1
+ import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, b as MeasureOptions, V as VoiceId, T as TupletOptions, c as VerseNumber, L as LyricsOptions, d as StaffTabOrGroups, F as Fermata, e as Navigation, A as AnnotationText, f as Annotation, g as Label, C as Connective, h as TieType, i as NoteAnchor, j as VerticalPosition } from '../music-objects-CcJvZxS6.mjs';
2
+ export { al as Arpeggio, a7 as BaseConfig, a6 as Clef, ap as DynamicsAnnotation, an as LyricsAlign, ao as LyricsHyphen, u as MAccidental, w as MArpeggio, I as MBarLineLeft, H as MBarLineRight, x as MBeamGroup, v as MConnective, z as MEnding, a5 as MExtensionLine, B as MFermata, D as MHeader, E as MImage, a4 as MLyrics, G as MMeasure, K as MNoteGroup, s as MPlaybackButtons, p as MPlayer, q as MRenderContext, r as MRenderer, Q as MRest, W as MRhythmColumn, X as MScoreRow, Y as MScoreRowGroup, a2 as MSpecialText, Z as MStaff, J as MStaffBarLine, y as MStaffBeamGroup, O as MStaffNoteGroup, U as MStaffRest, $ as MStaffSignature, _ as MTab, P as MTabNoteGroup, a1 as MTabRhythm, a0 as MTabSignature, a3 as MText, t as MusicInterface, ar as PlayState, as as PlayStateChangeListener, l as ScoreEvent, o as ScoreEventListener, k as ScoreEventType, n as ScoreObjectEvent, m as ScoreStaffPosEvent, a8 as StaffConfig, am as StaffTabOrGroup, ak as Stem, ad as StringNumber, a9 as TabConfig, aq as TempoAnnotation, ae as getStringNumbers, ah as getVerseNumbers, aa as getVoiceIds, af as isStringNumber, ai as isVerseNumber, ab as isVoiceId, ag as validateStringNumber, aj as validateVerseNumber, ac as validateVoiceId } from '../music-objects-CcJvZxS6.mjs';
3
3
  import { N as Note } from '../note-CJuq5aBy.mjs';
4
4
  import { S as ScaleType, c as Scale } from '../scale-DWM4RQco.mjs';
5
5
  import { N as NoteLength, i as NoteLengthStr, K as KeySignature, b as TimeSignature, T as TimeSignatures, B as BeamGrouping, l as TupletRatio } from '../tempo-Cxu8vusu.mjs';
6
6
  import '@tspro/ts-utils-lib';
7
7
 
8
+ /**
9
+ * Color attributes.
10
+ * ```
11
+ * Attribute hierarchy is:
12
+ * + background
13
+ * + header
14
+ * + title
15
+ * + composer
16
+ * + arranger
17
+ * + rowgroup
18
+ * + instrument
19
+ * + frame
20
+ * + staff|tab
21
+ * + frame
22
+ * + note
23
+ * + rest
24
+ * + connective
25
+ * + signature
26
+ * + clef (staff only)
27
+ * + key (staff only)
28
+ * + time
29
+ * + tempo
30
+ * + measurenum
31
+ * + tuning (tab only)
32
+ * + element
33
+ * + fermata
34
+ * + annotation
35
+ * + navigation
36
+ * + label
37
+ * ```
38
+ */
39
+ type ColorAttr = "background" | "header" | "title" | "composer" | "arranger" | "rowgroup" | "instrument" | "frame" | "staff" | "tab" | "frame" | "note" | "rest" | "connective" | "signature" | "clef" | "key" | "time" | "tempo" | "measurenum" | "tuning" | "element" | "fermata" | "annotation" | "navigation" | "label";
40
+ /**
41
+ * Set color of any score document element. Use combination of color attributes to set color of specific elements.
42
+ * ```ts
43
+ * setColor("red", "staff"); // Set color of all staff elements to red.
44
+ * setColor("red", "staff", "signature"); // Set color of all signature elements of staff to red.
45
+ * setColor("red", "staff", "key", "signature"); // Set color of key signature of staff to red.
46
+ * setColor("green", "staff", "time", "signature"); // Set color of time signature of staff to green.
47
+ * // etc.
48
+ * ```
49
+ * See {@link ColorAttr} for attribute hierarchy tree.
50
+ *
51
+ * @param color - Color (HTML color code e.g. "green", "#AA6644", etc.)
52
+ * @param colorAttrs - Any number of color attributes.
53
+ */
54
+ declare function setColor(color: string, ...colorAttrs: ColorAttr[]): void;
55
+
8
56
  /**
9
57
  * @deprecated - Will be removed in `v6.0.0`. Use `AnchoredRect` from `@tspro/ts-utils-lib` instead.
10
58
  *
@@ -649,4 +697,4 @@ declare class DocumentBuilder {
649
697
  addScaleArpeggio(scale: Scale, bottomNote: string, numOctaves: number): DocumentBuilder;
650
698
  }
651
699
 
652
- export { Annotation, AnnotationText, Connective, DivRect, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, MeasureOptions, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId };
700
+ export { Annotation, AnnotationText, type ColorAttr, Connective, DivRect, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, MeasureOptions, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId, setColor };
@@ -1,10 +1,58 @@
1
- import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, b as MeasureOptions, V as VoiceId, T as TupletOptions, c as VerseNumber, L as LyricsOptions, d as StaffTabOrGroups, F as Fermata, e as Navigation, A as AnnotationText, f as Annotation, g as Label, C as Connective, h as TieType, i as NoteAnchor, j as VerticalPosition } from '../music-objects-T8u8bnNP.js';
2
- export { al as Arpeggio, a7 as BaseConfig, a6 as Clef, ap as DynamicsAnnotation, an as LyricsAlign, ao as LyricsHyphen, u as MAccidental, w as MArpeggio, I as MBarLineLeft, H as MBarLineRight, x as MBeamGroup, v as MConnective, z as MEnding, a5 as MExtensionLine, B as MFermata, D as MHeader, E as MImage, a4 as MLyrics, G as MMeasure, K as MNoteGroup, s as MPlaybackButtons, p as MPlayer, q as MRenderContext, r as MRenderer, Q as MRest, W as MRhythmColumn, X as MScoreRow, Y as MScoreRowGroup, a2 as MSpecialText, Z as MStaff, J as MStaffBarLine, y as MStaffBeamGroup, O as MStaffNoteGroup, U as MStaffRest, $ as MStaffSignature, _ as MTab, P as MTabNoteGroup, a1 as MTabRhythm, a0 as MTabSignature, a3 as MText, t as MusicInterface, ar as PlayState, as as PlayStateChangeListener, l as ScoreEvent, o as ScoreEventListener, k as ScoreEventType, n as ScoreObjectEvent, m as ScoreStaffPosEvent, a8 as StaffConfig, am as StaffTabOrGroup, ak as Stem, ad as StringNumber, a9 as TabConfig, aq as TempoAnnotation, ae as getStringNumbers, ah as getVerseNumbers, aa as getVoiceIds, af as isStringNumber, ai as isVerseNumber, ab as isVoiceId, ag as validateStringNumber, aj as validateVerseNumber, ac as validateVoiceId } from '../music-objects-T8u8bnNP.js';
3
- import { N as Note } from '../note-RVXvpfyV.js';
4
- import { S as ScaleType, c as Scale } from '../scale-CUYFBo-8.js';
5
- import { N as NoteLength, i as NoteLengthStr, K as KeySignature, b as TimeSignature, T as TimeSignatures, B as BeamGrouping, l as TupletRatio } from '../tempo-DwuZsv2T.js';
1
+ import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, b as MeasureOptions, V as VoiceId, T as TupletOptions, c as VerseNumber, L as LyricsOptions, d as StaffTabOrGroups, F as Fermata, e as Navigation, A as AnnotationText, f as Annotation, g as Label, C as Connective, h as TieType, i as NoteAnchor, j as VerticalPosition } from '../music-objects-l5Ai97QA.js';
2
+ export { al as Arpeggio, a7 as BaseConfig, a6 as Clef, ap as DynamicsAnnotation, an as LyricsAlign, ao as LyricsHyphen, u as MAccidental, w as MArpeggio, I as MBarLineLeft, H as MBarLineRight, x as MBeamGroup, v as MConnective, z as MEnding, a5 as MExtensionLine, B as MFermata, D as MHeader, E as MImage, a4 as MLyrics, G as MMeasure, K as MNoteGroup, s as MPlaybackButtons, p as MPlayer, q as MRenderContext, r as MRenderer, Q as MRest, W as MRhythmColumn, X as MScoreRow, Y as MScoreRowGroup, a2 as MSpecialText, Z as MStaff, J as MStaffBarLine, y as MStaffBeamGroup, O as MStaffNoteGroup, U as MStaffRest, $ as MStaffSignature, _ as MTab, P as MTabNoteGroup, a1 as MTabRhythm, a0 as MTabSignature, a3 as MText, t as MusicInterface, ar as PlayState, as as PlayStateChangeListener, l as ScoreEvent, o as ScoreEventListener, k as ScoreEventType, n as ScoreObjectEvent, m as ScoreStaffPosEvent, a8 as StaffConfig, am as StaffTabOrGroup, ak as Stem, ad as StringNumber, a9 as TabConfig, aq as TempoAnnotation, ae as getStringNumbers, ah as getVerseNumbers, aa as getVoiceIds, af as isStringNumber, ai as isVerseNumber, ab as isVoiceId, ag as validateStringNumber, aj as validateVerseNumber, ac as validateVoiceId } from '../music-objects-l5Ai97QA.js';
3
+ import { N as Note } from '../note-CJuq5aBy.js';
4
+ import { S as ScaleType, c as Scale } from '../scale-DulPFco_.js';
5
+ import { N as NoteLength, i as NoteLengthStr, K as KeySignature, b as TimeSignature, T as TimeSignatures, B as BeamGrouping, l as TupletRatio } from '../tempo-BnUjm25M.js';
6
6
  import '@tspro/ts-utils-lib';
7
7
 
8
+ /**
9
+ * Color attributes.
10
+ * ```
11
+ * Attribute hierarchy is:
12
+ * + background
13
+ * + header
14
+ * + title
15
+ * + composer
16
+ * + arranger
17
+ * + rowgroup
18
+ * + instrument
19
+ * + frame
20
+ * + staff|tab
21
+ * + frame
22
+ * + note
23
+ * + rest
24
+ * + connective
25
+ * + signature
26
+ * + clef (staff only)
27
+ * + key (staff only)
28
+ * + time
29
+ * + tempo
30
+ * + measurenum
31
+ * + tuning (tab only)
32
+ * + element
33
+ * + fermata
34
+ * + annotation
35
+ * + navigation
36
+ * + label
37
+ * ```
38
+ */
39
+ type ColorAttr = "background" | "header" | "title" | "composer" | "arranger" | "rowgroup" | "instrument" | "frame" | "staff" | "tab" | "frame" | "note" | "rest" | "connective" | "signature" | "clef" | "key" | "time" | "tempo" | "measurenum" | "tuning" | "element" | "fermata" | "annotation" | "navigation" | "label";
40
+ /**
41
+ * Set color of any score document element. Use combination of color attributes to set color of specific elements.
42
+ * ```ts
43
+ * setColor("red", "staff"); // Set color of all staff elements to red.
44
+ * setColor("red", "staff", "signature"); // Set color of all signature elements of staff to red.
45
+ * setColor("red", "staff", "key", "signature"); // Set color of key signature of staff to red.
46
+ * setColor("green", "staff", "time", "signature"); // Set color of time signature of staff to green.
47
+ * // etc.
48
+ * ```
49
+ * See {@link ColorAttr} for attribute hierarchy tree.
50
+ *
51
+ * @param color - Color (HTML color code e.g. "green", "#AA6644", etc.)
52
+ * @param colorAttrs - Any number of color attributes.
53
+ */
54
+ declare function setColor(color: string, ...colorAttrs: ColorAttr[]): void;
55
+
8
56
  /**
9
57
  * @deprecated - Will be removed in `v6.0.0`. Use `AnchoredRect` from `@tspro/ts-utils-lib` instead.
10
58
  *
@@ -649,4 +697,4 @@ declare class DocumentBuilder {
649
697
  addScaleArpeggio(scale: Scale, bottomNote: string, numOctaves: number): DocumentBuilder;
650
698
  }
651
699
 
652
- export { Annotation, AnnotationText, Connective, DivRect, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, MeasureOptions, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId };
700
+ export { Annotation, AnnotationText, type ColorAttr, Connective, DivRect, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, MeasureOptions, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId, setColor };