vexflow-native 2.3.1 → 2.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.
- package/README.md +7 -1
- package/lib/module/base/FontManager.js +41 -27
- package/lib/module/base/FontManager.js.map +1 -1
- package/lib/module/base/VexflowCanvas.js +8 -6
- package/lib/module/base/VexflowCanvas.js.map +1 -1
- package/lib/module/base/VexflowRecordingClone.js +83 -0
- package/lib/module/base/VexflowRecordingClone.js.map +1 -0
- package/lib/module/base/VexflowRecordingContext.js +1 -80
- package/lib/module/base/VexflowRecordingContext.js.map +1 -1
- package/lib/module/base/builtInTextFont.js +21 -0
- package/lib/module/base/builtInTextFont.js.map +1 -0
- package/lib/module/base/cssFontShorthand.js +34 -0
- package/lib/module/base/cssFontShorthand.js.map +1 -0
- package/lib/module/base/fonts/OFL.txt +93 -0
- package/lib/module/base/fonts/academico.js +12 -0
- package/lib/module/base/fonts/academico.js.map +1 -0
- package/lib/module/base/pictureRetirement.js +70 -0
- package/lib/module/base/pictureRetirement.js.map +1 -0
- package/lib/module/base/setupVexflowReactNative.js +1 -36
- package/lib/module/base/setupVexflowReactNative.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/MeasureParser.js +22 -119
- package/lib/module/musicxml/MusicXmlParser/MeasureParser.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/MusicXmlNotes.js +129 -0
- package/lib/module/musicxml/MusicXmlParser/MusicXmlNotes.js.map +1 -0
- package/lib/module/musicxml/MusicXmlParser/PartParser.js +8 -1
- package/lib/module/musicxml/MusicXmlParser/PartParser.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/Spanners.js +8 -5
- package/lib/module/musicxml/MusicXmlParser/Spanners.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/mappers.js +83 -3
- package/lib/module/musicxml/MusicXmlParser/mappers.js.map +1 -1
- package/lib/module/renderer/Layout/DocumentLayout.js +13 -4
- package/lib/module/renderer/Layout/DocumentLayout.js.map +1 -1
- package/lib/module/renderer/Layout/VerticalSpacing.js +37 -7
- package/lib/module/renderer/Layout/VerticalSpacing.js.map +1 -1
- package/lib/module/renderer/ScoreRenderer/ScoreOverlayPicture.js +80 -46
- package/lib/module/renderer/ScoreRenderer/ScoreOverlayPicture.js.map +1 -1
- package/lib/module/renderer/ScoreRenderer/ScoreRenderer.js +10 -22
- package/lib/module/renderer/ScoreRenderer/ScoreRenderer.js.map +1 -1
- package/lib/module/renderer/ScoreRenderer/ScoreScrollbar.js +18 -8
- package/lib/module/renderer/ScoreRenderer/ScoreScrollbar.js.map +1 -1
- package/lib/module/renderer/ScoreRenderer/utils.js +42 -88
- package/lib/module/renderer/ScoreRenderer/utils.js.map +1 -1
- package/lib/module/renderer/constants.js +1 -1
- package/lib/module/renderer/layout.js +11 -4
- package/lib/module/renderer/layout.js.map +1 -1
- package/lib/module/renderer/lyrics.js +127 -0
- package/lib/module/renderer/lyrics.js.map +1 -0
- package/lib/module/renderer/measure.js +52 -13
- package/lib/module/renderer/measure.js.map +1 -1
- package/lib/module/renderer/measureBounds.js +5 -0
- package/lib/module/renderer/measureBounds.js.map +1 -1
- package/lib/module/renderer/measureModifiers.js +24 -6
- package/lib/module/renderer/measureModifiers.js.map +1 -1
- package/lib/module/renderer/noteModifiers.js +6 -14
- package/lib/module/renderer/noteModifiers.js.map +1 -1
- package/lib/module/renderer/{fixedNoteSpacing.js → noteSpacing.js} +46 -10
- package/lib/module/renderer/noteSpacing.js.map +1 -0
- package/lib/module/renderer/render.js +41 -21
- package/lib/module/renderer/render.js.map +1 -1
- package/lib/module/renderer/scale.js +8 -1
- package/lib/module/renderer/scale.js.map +1 -1
- package/lib/module/renderer/tempoMark.js +162 -0
- package/lib/module/renderer/tempoMark.js.map +1 -0
- package/lib/module/renderer/useScoreRecording.js +2 -1
- package/lib/module/renderer/useScoreRecording.js.map +1 -1
- package/lib/typescript/src/base/FontManager.d.ts +12 -7
- package/lib/typescript/src/base/FontManager.d.ts.map +1 -1
- package/lib/typescript/src/base/VexflowCanvas.d.ts.map +1 -1
- package/lib/typescript/src/base/VexflowRecordingClone.d.ts +8 -0
- package/lib/typescript/src/base/VexflowRecordingClone.d.ts.map +1 -0
- package/lib/typescript/src/base/VexflowRecordingContext.d.ts.map +1 -1
- package/lib/typescript/src/base/builtInTextFont.d.ts +6 -0
- package/lib/typescript/src/base/builtInTextFont.d.ts.map +1 -0
- package/lib/typescript/src/base/cssFontShorthand.d.ts +3 -0
- package/lib/typescript/src/base/cssFontShorthand.d.ts.map +1 -0
- package/lib/typescript/src/base/fonts/academico.d.ts +5 -0
- package/lib/typescript/src/base/fonts/academico.d.ts.map +1 -0
- package/lib/typescript/src/base/pictureRetirement.d.ts +26 -0
- package/lib/typescript/src/base/pictureRetirement.d.ts.map +1 -0
- package/lib/typescript/src/base/setupVexflowReactNative.d.ts +0 -8
- package/lib/typescript/src/base/setupVexflowReactNative.d.ts.map +1 -1
- package/lib/typescript/src/base/types.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/InternalTypes.d.ts +4 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/InternalTypes.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/MeasureParser.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlNotes.d.ts +13 -0
- package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlNotes.d.ts.map +1 -0
- package/lib/typescript/src/musicxml/MusicXmlParser/PartParser.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/Spanners.d.ts +6 -0
- package/lib/typescript/src/musicxml/MusicXmlParser/Spanners.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/mappers.d.ts +7 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/mappers.d.ts.map +1 -1
- package/lib/typescript/src/renderer/Layout/DocumentLayout.d.ts.map +1 -1
- package/lib/typescript/src/renderer/Layout/VerticalSpacing.d.ts +6 -0
- package/lib/typescript/src/renderer/Layout/VerticalSpacing.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreOverlayPicture.d.ts +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreOverlayPicture.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreRenderer.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreScrollbar.d.ts +1 -0
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreScrollbar.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/types.d.ts +14 -11
- package/lib/typescript/src/renderer/ScoreRenderer/types.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/utils.d.ts +8 -27
- package/lib/typescript/src/renderer/ScoreRenderer/utils.d.ts.map +1 -1
- package/lib/typescript/src/renderer/layout.d.ts +5 -1
- package/lib/typescript/src/renderer/layout.d.ts.map +1 -1
- package/lib/typescript/src/renderer/lyrics.d.ts +42 -0
- package/lib/typescript/src/renderer/lyrics.d.ts.map +1 -0
- package/lib/typescript/src/renderer/measure.d.ts +7 -2
- package/lib/typescript/src/renderer/measure.d.ts.map +1 -1
- package/lib/typescript/src/renderer/measureBounds.d.ts +3 -0
- package/lib/typescript/src/renderer/measureBounds.d.ts.map +1 -1
- package/lib/typescript/src/renderer/measureModifiers.d.ts +14 -4
- package/lib/typescript/src/renderer/measureModifiers.d.ts.map +1 -1
- package/lib/typescript/src/renderer/noteModifiers.d.ts +3 -2
- package/lib/typescript/src/renderer/noteModifiers.d.ts.map +1 -1
- package/lib/typescript/src/renderer/{fixedNoteSpacing.d.ts → noteSpacing.d.ts} +9 -1
- package/lib/typescript/src/renderer/noteSpacing.d.ts.map +1 -0
- package/lib/typescript/src/renderer/render.d.ts.map +1 -1
- package/lib/typescript/src/renderer/scale.d.ts.map +1 -1
- package/lib/typescript/src/renderer/tempoMark.d.ts +21 -0
- package/lib/typescript/src/renderer/tempoMark.d.ts.map +1 -0
- package/lib/typescript/src/renderer/types.d.ts +31 -7
- package/lib/typescript/src/renderer/types.d.ts.map +1 -1
- package/lib/typescript/src/state/types.d.ts +11 -3
- package/lib/typescript/src/state/types.d.ts.map +1 -1
- package/package.json +34 -26
- package/src/base/FontManager.ts +50 -31
- package/src/base/VexflowCanvas.tsx +10 -10
- package/src/base/VexflowRecordingClone.ts +89 -0
- package/src/base/VexflowRecordingContext.ts +8 -81
- package/src/base/builtInTextFont.ts +25 -0
- package/src/base/cssFontShorthand.ts +45 -0
- package/src/base/fonts/OFL.txt +93 -0
- package/src/base/fonts/academico.ts +10 -0
- package/src/base/pictureRetirement.ts +74 -0
- package/src/base/setupVexflowReactNative.ts +1 -49
- package/src/base/types.ts +0 -3
- package/src/musicxml/MusicXmlParser/InternalTypes.ts +5 -0
- package/src/musicxml/MusicXmlParser/MeasureParser.ts +31 -182
- package/src/musicxml/MusicXmlParser/MusicXmlNotes.ts +198 -0
- package/src/musicxml/MusicXmlParser/PartParser.ts +10 -3
- package/src/musicxml/MusicXmlParser/Spanners.ts +11 -8
- package/src/musicxml/MusicXmlParser/mappers.ts +55 -6
- package/src/renderer/Layout/DocumentLayout.ts +12 -3
- package/src/renderer/Layout/VerticalSpacing.ts +46 -13
- package/src/renderer/ScoreRenderer/ScoreOverlayPicture.tsx +127 -66
- package/src/renderer/ScoreRenderer/ScoreRenderer.tsx +8 -23
- package/src/renderer/ScoreRenderer/ScoreScrollbar.tsx +16 -2
- package/src/renderer/ScoreRenderer/types.ts +14 -12
- package/src/renderer/ScoreRenderer/utils.ts +54 -125
- package/src/renderer/constants.ts +1 -1
- package/src/renderer/layout.ts +19 -4
- package/src/renderer/lyrics.ts +163 -0
- package/src/renderer/measure.tsx +70 -12
- package/src/renderer/measureBounds.ts +10 -0
- package/src/renderer/measureModifiers.ts +27 -7
- package/src/renderer/noteModifiers.ts +9 -10
- package/src/renderer/{fixedNoteSpacing.ts → noteSpacing.ts} +60 -9
- package/src/renderer/render.tsx +63 -27
- package/src/renderer/scale.ts +9 -0
- package/src/renderer/tempoMark.ts +224 -0
- package/src/renderer/types.ts +32 -7
- package/src/renderer/useScoreRecording.ts +1 -0
- package/src/state/types.ts +11 -3
- package/lib/module/renderer/fixedNoteSpacing.js.map +0 -1
- package/lib/module/utils.js +0 -44
- package/lib/module/utils.js.map +0 -1
- package/lib/typescript/src/renderer/fixedNoteSpacing.d.ts.map +0 -1
- package/lib/typescript/src/utils.d.ts +0 -1
- package/lib/typescript/src/utils.d.ts.map +0 -1
- package/src/utils.tsx +0 -42
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Element, StaveModifierPosition, TimeSignature } from 'vexflow';
|
|
4
|
+
/** Sizes in VexFlow font points, gaps in content units. */
|
|
5
|
+
const TEMPO_MARK = {
|
|
6
|
+
textFont: {
|
|
7
|
+
size: 12,
|
|
8
|
+
weight: 'bold'
|
|
9
|
+
},
|
|
10
|
+
glyphFontSize: 20,
|
|
11
|
+
wordGap: 5,
|
|
12
|
+
dotGap: 2,
|
|
13
|
+
equalsGap: 4,
|
|
14
|
+
baselineGap: 8
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** SMuFL metronome note glyphs, drawn with the music font. */
|
|
18
|
+
const METRONOME_GLYPHS = {
|
|
19
|
+
long: '\uECA1',
|
|
20
|
+
breve: '\uECA0',
|
|
21
|
+
w: '\uECA2',
|
|
22
|
+
h: '\uECA3',
|
|
23
|
+
q: '\uECA5',
|
|
24
|
+
8: '\uECA7',
|
|
25
|
+
16: '\uECA9',
|
|
26
|
+
32: '\uECAB',
|
|
27
|
+
64: '\uECAD',
|
|
28
|
+
128: '\uECAF'
|
|
29
|
+
};
|
|
30
|
+
const METRONOME_AUGMENTATION_DOT = '\uECB7';
|
|
31
|
+
/** Only the first tempo direction of a measure is drawn. */
|
|
32
|
+
export function firstTempoDirection(directions) {
|
|
33
|
+
return directions?.find(direction => direction.type === 'tempo');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Baseline and top of the mark relative to the stave origin, placed so its
|
|
38
|
+
* lowest point clears the staff's measured content top (same space) by a gap.
|
|
39
|
+
*/
|
|
40
|
+
export function reserveTempoMark(stave, contentTop, tempo, textFontFamily) {
|
|
41
|
+
const {
|
|
42
|
+
ascent,
|
|
43
|
+
descent
|
|
44
|
+
} = layoutTempoMarkParts(tempo, textFontFamily);
|
|
45
|
+
const baseline = Math.min(stave.getYForTopText() - stave.getY(), contentTop) - TEMPO_MARK.baselineGap - descent;
|
|
46
|
+
return {
|
|
47
|
+
baseline,
|
|
48
|
+
top: baseline - ascent
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Draws the first tempo direction of each stave of the measure at the
|
|
54
|
+
* baseline the measure pass reserved, inside the direction's color group.
|
|
55
|
+
*/
|
|
56
|
+
export function drawTempoMarks(ctx, group, measurePlan, renderedStaves, textFontFamily, tempoMarks) {
|
|
57
|
+
const {
|
|
58
|
+
measureIndex,
|
|
59
|
+
systemIndex
|
|
60
|
+
} = measurePlan;
|
|
61
|
+
const baselines = group.measures.find(measure => measure.measureIndex === measureIndex)?.tempoMarkBaselines;
|
|
62
|
+
group.staves.forEach((staff, staffIndex) => {
|
|
63
|
+
const baseline = baselines?.[staff.id];
|
|
64
|
+
const direction = firstTempoDirection(staff.measures[measureIndex]?.directions);
|
|
65
|
+
const stave = renderedStaves[staffIndex];
|
|
66
|
+
if (baseline === undefined || !direction || !stave) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const mark = layoutTempoMarkParts(direction.tempo, textFontFamily);
|
|
70
|
+
const left = markLeft(stave);
|
|
71
|
+
const baselineY = stave.getY() + baseline;
|
|
72
|
+
ctx.beginColorGroup(direction.id);
|
|
73
|
+
try {
|
|
74
|
+
mark.parts.forEach(({
|
|
75
|
+
element,
|
|
76
|
+
x
|
|
77
|
+
}) => element.renderText(ctx, left + x, baselineY));
|
|
78
|
+
} finally {
|
|
79
|
+
ctx.endColorGroup();
|
|
80
|
+
}
|
|
81
|
+
tempoMarks.push({
|
|
82
|
+
directionId: direction.id,
|
|
83
|
+
staffId: staff.id,
|
|
84
|
+
measureIndex,
|
|
85
|
+
systemIndex,
|
|
86
|
+
bounds: boundsAt(left, baselineY, mark),
|
|
87
|
+
bpmBounds: boundsAt(left + mark.bpm.x, baselineY, mark.bpm)
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** Left edge of the time signature when shown, else the note start. */
|
|
93
|
+
function markLeft(stave) {
|
|
94
|
+
const [timeSignature] = stave.getModifiers(StaveModifierPosition.BEGIN, TimeSignature.CATEGORY);
|
|
95
|
+
return timeSignature?.getX() ?? stave.getNoteStartX();
|
|
96
|
+
}
|
|
97
|
+
function boundsAt(left, baselineY, {
|
|
98
|
+
width,
|
|
99
|
+
ascent,
|
|
100
|
+
descent
|
|
101
|
+
}) {
|
|
102
|
+
return {
|
|
103
|
+
left,
|
|
104
|
+
right: left + width,
|
|
105
|
+
top: baselineY - ascent,
|
|
106
|
+
bottom: baselineY + descent
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** `[text] <note glyph><dots> = <bpm>`; a missing beat unit is a quarter. */
|
|
111
|
+
function layoutTempoMarkParts({
|
|
112
|
+
bpm,
|
|
113
|
+
beatUnit,
|
|
114
|
+
text
|
|
115
|
+
}, textFontFamily) {
|
|
116
|
+
const parts = [];
|
|
117
|
+
let x = 0;
|
|
118
|
+
const append = (element, gapBefore) => {
|
|
119
|
+
const {
|
|
120
|
+
actualBoundingBoxAscent,
|
|
121
|
+
actualBoundingBoxDescent
|
|
122
|
+
} = element.getTextMetrics();
|
|
123
|
+
const part = {
|
|
124
|
+
element,
|
|
125
|
+
x: parts.length > 0 ? x + gapBefore : x,
|
|
126
|
+
width: element.getWidth(),
|
|
127
|
+
ascent: actualBoundingBoxAscent,
|
|
128
|
+
descent: actualBoundingBoxDescent
|
|
129
|
+
};
|
|
130
|
+
parts.push(part);
|
|
131
|
+
x = part.x + part.width;
|
|
132
|
+
return part;
|
|
133
|
+
};
|
|
134
|
+
if (text) {
|
|
135
|
+
append(textElement(text, textFontFamily), 0);
|
|
136
|
+
}
|
|
137
|
+
append(glyphElement(METRONOME_GLYPHS[beatUnit?.length ?? 'q']), TEMPO_MARK.wordGap);
|
|
138
|
+
for (let dot = 0; dot < (beatUnit?.dots ?? 0); dot++) {
|
|
139
|
+
append(glyphElement(METRONOME_AUGMENTATION_DOT), TEMPO_MARK.dotGap);
|
|
140
|
+
}
|
|
141
|
+
append(textElement('=', textFontFamily), TEMPO_MARK.equalsGap);
|
|
142
|
+
const bpmPart = append(textElement(String(bpm), textFontFamily), TEMPO_MARK.equalsGap);
|
|
143
|
+
return {
|
|
144
|
+
parts,
|
|
145
|
+
bpm: bpmPart,
|
|
146
|
+
width: x,
|
|
147
|
+
ascent: Math.max(...parts.map(part => part.ascent)),
|
|
148
|
+
descent: Math.max(...parts.map(part => part.descent))
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function textElement(text, textFontFamily) {
|
|
152
|
+
return new Element('StaveTempo').setFont({
|
|
153
|
+
family: textFontFamily,
|
|
154
|
+
...TEMPO_MARK.textFont
|
|
155
|
+
}).setText(text);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Music-font glyph; the family comes from VexFlow's configured fonts. */
|
|
159
|
+
function glyphElement(glyph) {
|
|
160
|
+
return new Element('StaveTempo.glyph').setFontSize(TEMPO_MARK.glyphFontSize).setText(glyph);
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=tempoMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Element","StaveModifierPosition","TimeSignature","TEMPO_MARK","textFont","size","weight","glyphFontSize","wordGap","dotGap","equalsGap","baselineGap","METRONOME_GLYPHS","long","breve","w","h","q","METRONOME_AUGMENTATION_DOT","firstTempoDirection","directions","find","direction","type","reserveTempoMark","stave","contentTop","tempo","textFontFamily","ascent","descent","layoutTempoMarkParts","baseline","Math","min","getYForTopText","getY","top","drawTempoMarks","ctx","group","measurePlan","renderedStaves","tempoMarks","measureIndex","systemIndex","baselines","measures","measure","tempoMarkBaselines","staves","forEach","staff","staffIndex","id","undefined","mark","left","markLeft","baselineY","beginColorGroup","parts","element","x","renderText","endColorGroup","push","directionId","staffId","bounds","boundsAt","bpmBounds","bpm","timeSignature","getModifiers","BEGIN","CATEGORY","getX","getNoteStartX","width","right","bottom","beatUnit","text","append","gapBefore","actualBoundingBoxAscent","actualBoundingBoxDescent","getTextMetrics","part","length","getWidth","textElement","glyphElement","dot","dots","bpmPart","String","max","map","setFont","family","setText","glyph","setFontSize"],"sourceRoot":"../../../src","sources":["renderer/tempoMark.ts"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,qBAAqB,EAAEC,aAAa,QAAQ,SAAS;AAQvE;AACA,MAAMC,UAAU,GAAG;EACjBC,QAAQ,EAAE;IAAEC,IAAI,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAO,CAAC;EACtCC,aAAa,EAAE,EAAE;EACjBC,OAAO,EAAE,CAAC;EACVC,MAAM,EAAE,CAAC;EACTC,SAAS,EAAE,CAAC;EACZC,WAAW,EAAE;AACf,CAAC;;AAED;AACA,MAAMC,gBAA4C,GAAG;EACnDC,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAE,QAAQ;EACfC,CAAC,EAAE,QAAQ;EACXC,CAAC,EAAE,QAAQ;EACXC,CAAC,EAAE,QAAQ;EACX,CAAC,EAAE,QAAQ;EACX,EAAE,EAAE,QAAQ;EACZ,EAAE,EAAE,QAAQ;EACZ,EAAE,EAAE,QAAQ;EACZ,GAAG,EAAE;AACP,CAAC;AAED,MAAMC,0BAA0B,GAAG,QAAQ;AAmB3C;AACA,OAAO,SAASC,mBAAmBA,CACjCC,UAA4C,EAChB;EAC5B,OAA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Recording","decorateItem","defaultFont","enabled","fontManager","colorScheme","onDrawItem","options","rendererType","score","viewport","measurement","layoutHeight","measuredScore","height","layoutViewport","x","y","width","commands","groupIndex","layoutPlan","createEmptyLayoutPlan","itemsLayout","createEmptyItemsLayout","items","measures","contentSize","systems","groups"],"sourceRoot":"../../../src","sources":["renderer/useScoreRecording.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAK/B,SACEC,qBAAqB,EACrBC,WAAW,QAEN,mBAAgB;AACvB,SAASC,wBAAwB,QAA8B,aAAU;AASzE;AACA,OAAO,SAASC,iBAAiBA,CAAC;EAChCC,YAAY;EACZC,WAAW;EACXC,OAAO,GAAG,IAAI;EACdC,WAAW;EACXC,WAAW;EACXC,UAAU;EACVC,OAAO;EACPC,YAAY;EACZC,KAAK;EACLC;AAUF,CAAC,EAAkB;EACjB,MAAMC,WAAW,GAAGf,OAAO,CACzB,MACEO,OAAO,GACHN,qBAAqB,CAAC;IACpBY,KAAK;IACLF,OAAO;IACPH,WAAW;IACXF,WAAW;IACXD;EACF,CAAC,CAAC,GACF,IAAI,EACV,CAACA,YAAY,EAAEC,WAAW,EAAEC,OAAO,EAAEC,WAAW,EAAEG,OAAO,EAAEE,KAAK,CAClE,CAAC;;EAED;EACA;EACA;EACA,MAAMG,YAAY,GAChB,CAACD,WAAW,IACZZ,wBAAwB,CAACS,YAAY,EAAEG,WAAW,CAACE,aAAa,CAAC,GAC7DH,QAAQ,CAACI,MAAM,GACf,CAAC;EACP,MAAMC,cAAc,GAAGnB,OAAO,CAC5B,OAAqB;IACnBoB,CAAC,EAAEN,QAAQ,CAACM,CAAC;IACbC,CAAC,EAAEP,QAAQ,CAACO,CAAC;IACbC,KAAK,EAAER,QAAQ,CAACQ,KAAK;IACrBJ,MAAM,EAAEF;EACV,CAAC,CAAC,EACF,CAACA,YAAY,EAAEF,QAAQ,CAACQ,KAAK,EAAER,QAAQ,CAACM,CAAC,EAAEN,QAAQ,CAACO,CAAC,CACvD,CAAC;EAED,OAAOrB,OAAO,CAAC,MAAM;IACnB,IAAI,CAACe,WAAW,EAAE;MAChB,OAAO;QACLQ,QAAQ,EAAE,EAAE;QACZC,UAAU,EAAE,CAAC,CAAC;QACdC,UAAU,EAAEC,qBAAqB,CAACd,YAAY,EAAEO,cAAc,CAAC;QAC/DQ,WAAW,EAAEC,sBAAsB,CAACT,cAAc;MACpD,CAAC;IACH;IAEA,OAAOjB,WAAW,CAAC;MACjBa,WAAW;MACXF,KAAK;MACLF,OAAO;MACPC,YAAY;MACZE,QAAQ,EAAEK,cAAc;MACxBX,WAAW;MACXF,WAAW;MACXG,WAAW;MACXJ,YAAY;MACZK;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CACDD,WAAW,EACXJ,YAAY,EACZC,WAAW,EACXE,WAAW,EACXW,cAAc,EACdJ,WAAW,EACXL,UAAU,EACVC,OAAO,EACPC,YAAY,EACZC,KAAK,CACN,CAAC;AACJ;AAEA,SAASe,sBAAsBA,CAACd,QAAsB,EAAoB;EACxE,OAAO;IACLe,KAAK,EAAE,CAAC,CAAC;IACTC,QAAQ,EAAE,EAAE;IACZC,WAAW,EAAE;MACXT,KAAK,EAAER,QAAQ,CAACQ,KAAK;MACrBJ,MAAM,EAAEJ,QAAQ,CAACI;IACnB;
|
|
1
|
+
{"version":3,"names":["useMemo","measureScoreRecording","recordScore","layoutUsesViewportHeight","useScoreRecording","decorateItem","defaultFont","enabled","fontManager","colorScheme","onDrawItem","options","rendererType","score","viewport","measurement","layoutHeight","measuredScore","height","layoutViewport","x","y","width","commands","groupIndex","layoutPlan","createEmptyLayoutPlan","itemsLayout","createEmptyItemsLayout","items","measures","contentSize","tempoMarks","systems","groups"],"sourceRoot":"../../../src","sources":["renderer/useScoreRecording.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAK/B,SACEC,qBAAqB,EACrBC,WAAW,QAEN,mBAAgB;AACvB,SAASC,wBAAwB,QAA8B,aAAU;AASzE;AACA,OAAO,S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BX,WAAW;MACXF,WAAW;MACXG,WAAW;MACXJ,YAAY;MACZK;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CACDD,WAAW,EACXJ,YAAY,EACZC,WAAW,EACXE,WAAW,EACXW,cAAc,EACdJ,WAAW,EACXL,UAAU,EACVC,OAAO,EACPC,YAAY,EACZC,KAAK,CACN,CAAC;AACJ;AAEA,SAASe,sBAAsBA,CAACd,QAAsB,EAAoB;EACxE,OAAO;IACLe,KAAK,EAAE,CAAC,CAAC;IACTC,QAAQ,EAAE,EAAE;IACZC,WAAW,EAAE;MACXT,KAAK,EAAER,QAAQ,CAACQ,KAAK;MACrBJ,MAAM,EAAEJ,QAAQ,CAACI;IACnB,CAAC;IACDc,UAAU,EAAE;EACd,CAAC;AACH;AAEA,SAASN,qBAAqBA,CAC5Bd,YAA0B,EAC1BE,QAAsB,EACL;EACjB,OAAO;IACLF,YAAY;IACZmB,WAAW,EAAE;MACXT,KAAK,EAAER,QAAQ,CAACQ,KAAK;MACrBJ,MAAM,EAAEJ,QAAQ,CAACI;IACnB,CAAC;IACDe,OAAO,EAAE,EAAE;IACXH,QAAQ,EAAE,EAAE;IACZI,MAAM,EAAE;EACV,CAAC;AACH","ignoreList":[]}
|
|
@@ -12,19 +12,24 @@ export default class FontManager {
|
|
|
12
12
|
__workletClass: boolean;
|
|
13
13
|
private fontProvider;
|
|
14
14
|
private defaultFontName;
|
|
15
|
-
private
|
|
15
|
+
private registeredFamilies;
|
|
16
16
|
private familyMatchCache;
|
|
17
17
|
private skFontCache;
|
|
18
18
|
private systemFontMgr;
|
|
19
19
|
constructor(fontProvider: SkTypefaceFontProvider, defaultFontName: string);
|
|
20
|
-
private
|
|
20
|
+
private registeredFamily;
|
|
21
21
|
private getFamiliesFromFont;
|
|
22
22
|
private matchFontFamilyName;
|
|
23
|
-
/**
|
|
24
|
-
* the
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
/** The OS font manager, or null where there is none to ask (CanvasKit on
|
|
24
|
+
* the web gives an empty one). */
|
|
25
|
+
private systemFonts;
|
|
26
|
+
/** A typeface from outside the provider, for a request the provider has
|
|
27
|
+
* none of the families of: the system typeface for the first requested
|
|
28
|
+
* family the OS knows, walking the list in order until a provider family is
|
|
29
|
+
* reached — so a requested family the OS knows wins over a later provider
|
|
30
|
+
* family; without system fonts, the built-in text face unless the provider
|
|
31
|
+
* has a requested family; null otherwise. */
|
|
32
|
+
private matchFallbackTypeface;
|
|
28
33
|
/** @internal */
|
|
29
34
|
resolveFontDescriptor(font?: string | FontInfo, size?: string | number, weight?: string | number, style?: string): ResolvedFont;
|
|
30
35
|
createSkFont(font?: string | FontInfo, size?: string | number, weight?: string | number, style?: string): SkFont;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontManager.d.ts","sourceRoot":"","sources":["../../../../src/base/FontManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAQ,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EACV,MAAM,EAGN,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"FontManager.d.ts","sourceRoot":"","sources":["../../../../src/base/FontManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAQ,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EACV,MAAM,EAGN,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAG3B,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;CAClB;AAuED,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,cAAc,UAAQ;IAEtB,OAAO,CAAC,YAAY,CAAyB;IAC7C,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,kBAAkB,CAA8B;IAGxD,OAAO,CAAC,gBAAgB,CAA8B;IACtD,OAAO,CAAC,WAAW,CAA8B;IACjD,OAAO,CAAC,aAAa,CAA+B;gBAExC,YAAY,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM;IA2BzE,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,mBAAmB;IA4B3B;sCACkC;IAClC,OAAO,CAAC,WAAW;IAanB;;;;;iDAK6C;IAC7C,OAAO,CAAC,qBAAqB;IAkC7B,gBAAgB;IAChB,qBAAqB,CACnB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,EACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EACxB,KAAK,CAAC,EAAE,MAAM,GACb,YAAY;IAYf,YAAY,CACV,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,EACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EACxB,KAAK,CAAC,EAAE,MAAM,GACb,MAAM;CAmCV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VexflowCanvas.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowCanvas.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"VexflowCanvas.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowCanvas.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VexflowRecordingCommand, VexflowRecordingFont, VexflowRecordingLineCap, VexflowRecordingPaint, VexflowRecordingPathCommand, VexflowRecordingRect } from './VexflowRecordingTypes';
|
|
2
|
+
export declare function makeRect(x: number, y: number, width: number, height: number): VexflowRecordingRect;
|
|
3
|
+
export declare function normalizeLineCap(cap: string): VexflowRecordingLineCap;
|
|
4
|
+
export declare function clonePaint(paint: VexflowRecordingPaint): VexflowRecordingPaint;
|
|
5
|
+
export declare function cloneFont(font: VexflowRecordingFont): VexflowRecordingFont;
|
|
6
|
+
export declare function clonePathCommand(command: VexflowRecordingPathCommand): VexflowRecordingPathCommand;
|
|
7
|
+
export declare function cloneCommand(command: VexflowRecordingCommand): VexflowRecordingCommand;
|
|
8
|
+
//# sourceMappingURL=VexflowRecordingClone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VexflowRecordingClone.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowRecordingClone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,oBAAoB,CAEtB;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAMrE;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,qBAAqB,GAC3B,qBAAqB,CAKvB;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,oBAAoB,GAAG,oBAAoB,CAM1E;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,2BAA2B,GACnC,2BAA2B,CAS7B;AAED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,uBAAuB,GAC/B,uBAAuB,CA8BzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VexflowRecordingContext.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowRecordingContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAAW,aAAa,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"VexflowRecordingContext.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowRecordingContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAAW,aAAa,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,KAAK,EACV,uBAAuB,EAIxB,MAAM,yBAAyB,CAAC;AAgBjC,MAAM,CAAC,OAAO,OAAO,uBAAwB,YAAW,oBAAoB;IAC1E,cAAc,UAAQ;IAEtB,OAAO,CAAC,QAAQ,CAAiC;IACjD,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,WAAW,CAAC,CAAgC;IACpD,OAAO,CAAC,SAAS,CAEf;IACF,OAAO,CAAC,WAAW,CAIjB;I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EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAK1D,aAAa;IAKb,GAAG,CAAC,MAAM,EAAE,OAAO;IAKnB,WAAW,CAAC,KAAK,EAAE,MAAM;;;;;;IAKzB,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAEpC;IAED,IAAI,SAAS,IAJQ,MAAM,GAAG,OAAO,CAOpC;IAED,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAE5B;IAED,IAAI,WAAW,IAJQ,MAAM,CAO5B;IAED,OAAO,CACL,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,EACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EACxB,KAAK,CAAC,EAAE,MAAM;IAOhB,OAAO;IAKP,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAErB;IAED,IAAI,IAAI,IAJQ,MAAM,CAOrB;IAED,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,WAAW;CAapB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FontWeight } from 'react-native-skia';
|
|
2
|
+
import type { SkTypeface } from 'react-native-skia';
|
|
3
|
+
/** The built-in Latin text face (Academico; bold from semibold up), decoded
|
|
4
|
+
* on first use once per JS runtime. */
|
|
5
|
+
export declare function builtInTextTypeface(weight: FontWeight): SkTypeface | null;
|
|
6
|
+
//# sourceMappingURL=builtInTextFont.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtInTextFont.d.ts","sourceRoot":"","sources":["../../../../src/base/builtInTextFont.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAWpD;uCACuC;AACvC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CAUzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssFontShorthand.d.ts","sourceRoot":"","sources":["../../../../src/base/cssFontShorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOxC,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,MAAM,GACvB,QAAQ,CAAC,QAAQ,CAAC,CA0BpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"academico.d.ts","sourceRoot":"","sources":["../../../../../src/base/fonts/academico.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;CAI3B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SkPicture } from 'react-native-skia';
|
|
2
|
+
/**
|
|
3
|
+
* Deferred picture disposal state. react-native-skia commits the Canvas tree
|
|
4
|
+
* asynchronously, so a replaced picture may still be referenced by the
|
|
5
|
+
* committed Picture node or a commit in flight; it is disposed only when the
|
|
6
|
+
* third picture after it arrives.
|
|
7
|
+
*/
|
|
8
|
+
export interface PictureRetirement {
|
|
9
|
+
/** The picture on screen; null while none is shown (or a shared one). */
|
|
10
|
+
current: SkPicture | null;
|
|
11
|
+
/** Replaced pictures awaiting disposal, oldest first. */
|
|
12
|
+
retired: SkPicture[];
|
|
13
|
+
}
|
|
14
|
+
export declare const NO_PICTURES: PictureRetirement;
|
|
15
|
+
/** `next === null` marks a frame without an owned picture; it never enters the ring. */
|
|
16
|
+
export declare function retirePicture(state: PictureRetirement, next: SkPicture | null): PictureRetirement;
|
|
17
|
+
/** Disposes the replaced pictures only; the current one stays alive. */
|
|
18
|
+
export declare function disposeRetiredPictures(state: PictureRetirement): PictureRetirement;
|
|
19
|
+
/**
|
|
20
|
+
* Retires each replaced picture and disposes the retired ones on effect
|
|
21
|
+
* cleanup. Cleanup also runs without unmounting (a hidden <Activity>,
|
|
22
|
+
* StrictMode), after which the memoized picture is drawn again, so the
|
|
23
|
+
* current picture is left to the GC.
|
|
24
|
+
*/
|
|
25
|
+
export declare function usePictureRetirement(picture: SkPicture | null): void;
|
|
26
|
+
//# sourceMappingURL=pictureRetirement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pictureRetirement.d.ts","sourceRoot":"","sources":["../../../../src/base/pictureRetirement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,yEAAyE;IACzE,OAAO,EAAE,SAAS,GAAG,IAAI,CAAC;IAC1B,yDAAyD;IACzD,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,iBAAkD,CAAC;AAE7E,wFAAwF;AACxF,wBAAgB,aAAa,CAC3B,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE,SAAS,GAAG,IAAI,GACrB,iBAAiB,CAkBnB;AAED,wEAAwE;AACxE,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,iBAAiB,GACvB,iBAAiB,CAQnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI,QAY7D"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { Font } from 'vexflow';
|
|
2
|
-
import type { FontInfo } from 'vexflow';
|
|
3
1
|
export declare function installVexflowReactNativeFallbacks(): void;
|
|
4
2
|
export declare function ensureVexflowTextMeasurementCanvas(): void;
|
|
5
|
-
declare function parseCssFontShorthand(cssFontShorthand: string): Required<FontInfo>;
|
|
6
|
-
export declare const __test__: {
|
|
7
|
-
originalFromCSSString: typeof Font.fromCSSString;
|
|
8
|
-
parseCssFontShorthand: typeof parseCssFontShorthand;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
11
3
|
//# sourceMappingURL=setupVexflowReactNative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupVexflowReactNative.d.ts","sourceRoot":"","sources":["../../../../src/base/setupVexflowReactNative.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setupVexflowReactNative.d.ts","sourceRoot":"","sources":["../../../../src/base/setupVexflowReactNative.ts"],"names":[],"mappings":"AAsBA,wBAAgB,kCAAkC,IAAI,IAAI,CAoBzD;AAED,wBAAgB,kCAAkC,IAAI,IAAI,CA+BzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,uBAAuB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,sBAAsB,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,uBAAuB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,sBAAsB,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DynamicAttachment, GraceNote, Measure, NoteAttachment, ScoreDefaults, Slur, Staff, Tie, TupletGroup } from '../../state';
|
|
1
|
+
import type { Clef, DynamicAttachment, GraceNote, Measure, NoteAttachment, ScoreDefaults, Slur, Staff, StaffLines, Tie, TupletGroup } from '../../state';
|
|
2
2
|
export type PartInfo = {
|
|
3
3
|
id: string;
|
|
4
4
|
name?: string;
|
|
@@ -8,6 +8,9 @@ export type StaffBuild = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
order: number;
|
|
10
10
|
defaultClef?: Staff['defaultClef'];
|
|
11
|
+
/** Clef in effect at the parse position; places `<unpitched>` notes. */
|
|
12
|
+
clef: Clef;
|
|
13
|
+
lines?: StaffLines;
|
|
11
14
|
measures: Measure[];
|
|
12
15
|
};
|
|
13
16
|
type ActiveSpanner = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalTypes.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/InternalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,cAAc,EACd,aAAa,EACb,IAAI,EACJ,KAAK,EACL,GAAG,EACH,WAAW,EACZ,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACnC,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;A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":"","sources":["../../../../../src/musicxml/MusicXmlParser/MeasureParser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeasureParser.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/MeasureParser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAa/D,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAQpB,wBAAgB,YAAY,CAC1B,OAAO,EAAE,UAAU,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,UAAU,EAAE,EACpB,KAAK,EAAE,WAAW,QAyFnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Clef, Voice, VoiceItem } from '../../state';
|
|
2
|
+
import type { ParserState } from './InternalTypes';
|
|
3
|
+
import { type XmlElement } from './XmlOrder';
|
|
4
|
+
export declare function createVoiceItem(note: XmlElement, voice: Voice, isChordTone: boolean, clef: Clef, state: ParserState): VoiceItem;
|
|
5
|
+
/**
|
|
6
|
+
* Grace chord tones keep only their first pitch; the group's slash comes
|
|
7
|
+
* from its first grace note.
|
|
8
|
+
*/
|
|
9
|
+
export declare function collectGraceNote(note: XmlElement, voiceName: string, clef: Clef, state: ParserState): void;
|
|
10
|
+
export declare function attachPendingGraceNotes(itemId: string, voiceName: string, state: ParserState): void;
|
|
11
|
+
export declare function pushItem(voice: Voice, item: VoiceItem): string;
|
|
12
|
+
export declare function mergeChordTone(voice: Voice, item: VoiceItem, note: XmlElement): string;
|
|
13
|
+
//# sourceMappingURL=MusicXmlNotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MusicXmlNotes.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/MusicXmlNotes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,IAAI,EAGJ,KAAK,EACL,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAUnD,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,eAAe,CAC7B,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,OAAO,EACpB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,GACjB,SAAS,CAyBX;AA8CD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,QAqBnB;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,WAAW,QAgBnB;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAI9D;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,UAAU,GACf,MAAM,CA4BR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartParser.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/PartParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"PartParser.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/PartParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAc,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,SAAS,CACvB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,WAAW,GACjB;IAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAAC,WAAW,EAAE,UAAU,EAAE,CAAA;CAAE,CAoDhD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VoiceItem } from '../../state';
|
|
1
2
|
import type { ParserState } from './InternalTypes';
|
|
2
3
|
import { type XmlElement } from './XmlOrder';
|
|
3
4
|
/**
|
|
@@ -6,4 +7,9 @@ import { type XmlElement } from './XmlOrder';
|
|
|
6
7
|
* owner's existing same-articulation attachment instead of adding a glyph.
|
|
7
8
|
*/
|
|
8
9
|
export declare function applyNoteAttachments(note: XmlElement, itemId: string, staffNumber: string, voiceId: string, state: ParserState, pitchIndex?: number): void;
|
|
10
|
+
/**
|
|
11
|
+
* Ties match by MusicXML voice name and pitch, so they cross barlines (each
|
|
12
|
+
* measure has its own `Voice`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function applyTies(note: XmlElement, item: VoiceItem, itemId: string, voiceName: string, state: ParserState): void;
|
|
9
15
|
//# sourceMappingURL=Spanners.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spanners.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/Spanners.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Spanners.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/Spanners.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,SAAS,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,EAClB,UAAU,CAAC,EAAE,MAAM,QA0DpB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,WAAW,QAsBnB"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import type { Articulation, Barline, Clef, Dynamic, KeySignature, NoteLength, Pitch } from '../../state';
|
|
1
|
+
import type { Articulation, Barline, Clef, Dynamic, KeySignature, Notehead, NoteLength, Pitch } from '../../state';
|
|
2
2
|
import { type XmlElement } from './XmlOrder';
|
|
3
3
|
export declare function mapClef(clef: XmlElement): Clef;
|
|
4
4
|
export declare function mapKeySignature(fifths: number, mode?: string): KeySignature;
|
|
5
5
|
export declare function mapDurationType(type: string): NoteLength;
|
|
6
6
|
export declare function mapPitch(pitch: XmlElement, accidental?: string): Pitch;
|
|
7
|
+
/**
|
|
8
|
+
* `<display-step>`/`<display-octave>` place the note under `clef`; without
|
|
9
|
+
* them it sits on the middle line.
|
|
10
|
+
*/
|
|
11
|
+
export declare function mapUnpitched(unpitched: XmlElement, clef: Clef): Pitch;
|
|
12
|
+
export declare function mapNotehead(value: string): Notehead | undefined;
|
|
7
13
|
export declare function mapStemDirection(value?: string): "up" | "down" | undefined;
|
|
8
14
|
export declare function mapBarline(barline: XmlElement): {
|
|
9
15
|
location: 'left' | 'right';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,OAAO,EAEP,YAAY,EACZ,UAAU,EACV,KAAK,EAEN,MAAM,aAAa,CAAC;AAErB,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAyDpB,wBAAgB,OAAO,CAAC,IAAI,EA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SAAS,CAgCZ;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,EAAE,CAInE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAE1E;AAED,wBAAgB,0BAA0B,CACxC,SAAS,CAAC,EAAE,UAAU,GACrB,YAAY,EAAE,CAoBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentLayout.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/Layout/DocumentLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAIlB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"DocumentLayout.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/Layout/DocumentLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAIlB,MAAM,WAAW,CAAC;AAenB,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,MAAM,GACrB;IACD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAiCA;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,aAAa,EACrB,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,EAAE,YAAY,GACpB,iBAAiB,CAwFnB;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,aAAa,EACrB,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,YAAY,GACpB,iBAAiB,CAoFnB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VerseBaselines } from '../lyrics';
|
|
1
2
|
import type { MeasuredGroupMeasure } from '../layout';
|
|
2
3
|
export interface SystemVerticalLayout {
|
|
3
4
|
height: number;
|
|
@@ -13,4 +14,9 @@ export declare function resolveSystemVerticalLayout(measures: MeasuredGroupMeasu
|
|
|
13
14
|
* same offsets in every system and all systems share one height.
|
|
14
15
|
*/
|
|
15
16
|
export declare function resolveUniformSystemVerticalLayout(systems: MeasuredGroupMeasure[][], staffCount: number, staffGap: number): SystemVerticalLayout;
|
|
17
|
+
/**
|
|
18
|
+
* Verse-line baselines of each staff in the system formed by `measures`, the
|
|
19
|
+
* lines level across the system; undefined when no staff has lyrics.
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveVerseBaselines(measures: MeasuredGroupMeasure[], staffCount: number): Array<VerseBaselines | undefined> | undefined;
|
|
16
22
|
//# sourceMappingURL=VerticalSpacing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalSpacing.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/Layout/VerticalSpacing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAQtD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,oBAAoB,EAAE,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,oBAAoB,CAStB;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,oBAAoB,EAAE,EAAE,EACjC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,oBAAoB,CA2BtB"}
|
|
1
|
+
{"version":3,"file":"VerticalSpacing.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/Layout/VerticalSpacing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAQtD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,oBAAoB,EAAE,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,oBAAoB,CAStB;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,oBAAoB,EAAE,EAAE,EACjC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,oBAAoB,CA2BtB;AAwDD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,oBAAoB,EAAE,EAChC,UAAU,EAAE,MAAM,GACjB,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC,GAAG,SAAS,CAO/C"}
|
|
@@ -7,5 +7,5 @@ import type { ScoreOverlayPictureProps } from './types';
|
|
|
7
7
|
* opaque override color the result matches an in-place recolor up to a ≤1px
|
|
8
8
|
* anti-aliasing fringe of base ink at glyph edges.
|
|
9
9
|
*/
|
|
10
|
-
export default function ScoreOverlayPicture({ contentSize, defaultFont, fontManager, groupIndex, itemStyleOverrides, }: ScoreOverlayPictureProps): import("react").JSX.Element;
|
|
10
|
+
export default function ScoreOverlayPicture({ contentSize, defaultFont, fontManager, groupIndex, itemStyleOverrides, scoreId, }: ScoreOverlayPictureProps): import("react").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=ScoreOverlayPicture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreOverlayPicture.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreOverlayPicture.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScoreOverlayPicture.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreOverlayPicture.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAuB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAU7E;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,OAAO,GACR,EAAE,wBAAwB,+BAmI1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ScoreRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAGV,kBAAkB,EACnB,MAAM,UAAU,CAAC;;AA4RlB,wBAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreScrollbar.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreScrollbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"ScoreScrollbar.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/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+1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SkTypefaceFontProvider } from 'react-native-skia';
|
|
2
2
|
import type { GestureType } from 'react-native-gesture-handler';
|
|
3
3
|
import type { SharedValue } from 'react-native-reanimated';
|
|
4
4
|
import type { VexflowRecordingCommand } from '../../base';
|
|
@@ -19,6 +19,7 @@ export interface CreateScorePictureParams {
|
|
|
19
19
|
fontManager: SkTypefaceFontProvider;
|
|
20
20
|
recordedCommands: readonly VexflowRecordingCommand[];
|
|
21
21
|
replayFontManager?: FontManager;
|
|
22
|
+
scoreId: string;
|
|
22
23
|
styleOverrides?: ScoreItemStyleOverrides;
|
|
23
24
|
}
|
|
24
25
|
export interface ScoreOverlayPictureProps {
|
|
@@ -27,19 +28,21 @@ export interface ScoreOverlayPictureProps {
|
|
|
27
28
|
fontManager: SkTypefaceFontProvider;
|
|
28
29
|
groupIndex: VexflowRecordingGroupIndex;
|
|
29
30
|
itemStyleOverrides: NonNullable<ScoreRendererProps['itemStyleOverrides']>;
|
|
31
|
+
scoreId: string;
|
|
30
32
|
}
|
|
31
|
-
export interface
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
export interface OverlayFontManagerSlot {
|
|
38
|
-
manager: FontManager | null;
|
|
33
|
+
export interface OverlayRecordSample {
|
|
34
|
+
commandCount: number;
|
|
35
|
+
durationMs: number;
|
|
36
|
+
/** When the recording finished. */
|
|
37
|
+
atMs: number;
|
|
39
38
|
}
|
|
40
39
|
export interface OverlayProfileState {
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
/** First sample of the open window; null while it is empty. */
|
|
41
|
+
windowStartMs: number | null;
|
|
43
42
|
count: number;
|
|
43
|
+
totalMs: number;
|
|
44
|
+
maxMs: number;
|
|
45
|
+
/** Command count of the latest sample. */
|
|
46
|
+
commandCount: number;
|
|
44
47
|
}
|
|
45
48
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,KAAK,EACV,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACvC,UAAU,EAAE,WAAW,CAAC;IACxB,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,YAAY,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,sBAAsB,CAAC;IACpC,gBAAgB,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACrD,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED,MAAM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