vexflow-native 0.2.0 → 1.0.1

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 (259) hide show
  1. package/README.md +265 -37
  2. package/lib/module/base/FontManager.js +139 -0
  3. package/lib/module/base/FontManager.js.map +1 -0
  4. package/lib/module/base/TextMeasureContext.js +46 -0
  5. package/lib/module/base/TextMeasureContext.js.map +1 -0
  6. package/lib/module/base/VexflowCanvas.js +48 -0
  7. package/lib/module/base/VexflowCanvas.js.map +1 -0
  8. package/lib/module/base/VexflowColorScheme.js +16 -0
  9. package/lib/module/base/VexflowColorScheme.js.map +1 -0
  10. package/lib/module/base/VexflowRecordingContext.js +425 -0
  11. package/lib/module/base/VexflowRecordingContext.js.map +1 -0
  12. package/lib/module/base/VexflowRecordingReplay.js +140 -0
  13. package/lib/module/base/VexflowRecordingReplay.js.map +1 -0
  14. package/lib/module/base/VexflowRecordingTypes.js +4 -0
  15. package/lib/module/base/VexflowRecordingTypes.js.map +1 -0
  16. package/lib/module/base/index.js +8 -0
  17. package/lib/module/base/index.js.map +1 -0
  18. package/lib/module/base/setupVexflowReactNative.js +96 -0
  19. package/lib/module/base/setupVexflowReactNative.js.map +1 -0
  20. package/lib/module/base/types.js +4 -0
  21. package/lib/module/base/types.js.map +1 -0
  22. package/lib/module/base/utils.js +18 -0
  23. package/lib/module/base/utils.js.map +1 -0
  24. package/lib/module/musicxml/MusicXmlParser/InternalTypes.js +4 -0
  25. package/lib/module/musicxml/MusicXmlParser/InternalTypes.js.map +1 -0
  26. package/lib/module/musicxml/MusicXmlParser/MeasureParser.js +269 -0
  27. package/lib/module/musicxml/MusicXmlParser/MeasureParser.js.map +1 -0
  28. package/lib/module/musicxml/MusicXmlParser/MusicXmlDirections.js +62 -0
  29. package/lib/module/musicxml/MusicXmlParser/MusicXmlDirections.js.map +1 -0
  30. package/lib/module/musicxml/MusicXmlParser/MusicXmlTiming.js +124 -0
  31. package/lib/module/musicxml/MusicXmlParser/MusicXmlTiming.js.map +1 -0
  32. package/lib/module/musicxml/MusicXmlParser/PartParser.js +41 -0
  33. package/lib/module/musicxml/MusicXmlParser/PartParser.js.map +1 -0
  34. package/lib/module/musicxml/MusicXmlParser/Spanners.js +149 -0
  35. package/lib/module/musicxml/MusicXmlParser/Spanners.js.map +1 -0
  36. package/lib/module/musicxml/MusicXmlParser/XmlOrder.js +106 -0
  37. package/lib/module/musicxml/MusicXmlParser/XmlOrder.js.map +1 -0
  38. package/lib/module/musicxml/MusicXmlParser/index.js +110 -0
  39. package/lib/module/musicxml/MusicXmlParser/index.js.map +1 -0
  40. package/lib/module/musicxml/MusicXmlParser/mappers.js +312 -0
  41. package/lib/module/musicxml/MusicXmlParser/mappers.js.map +1 -0
  42. package/lib/module/musicxml/MusicXmlParser/types.js +10 -0
  43. package/lib/module/musicxml/MusicXmlParser/types.js.map +1 -0
  44. package/lib/module/musicxml/index.js +4 -0
  45. package/lib/module/musicxml/index.js.map +1 -0
  46. package/lib/module/musicxml/testfiles/lg-8102429.xml +79620 -0
  47. package/lib/module/renderer/Layout/DocumentLayout.js +156 -0
  48. package/lib/module/renderer/Layout/DocumentLayout.js.map +1 -0
  49. package/lib/module/renderer/Layout/LayoutMetrics.js +13 -0
  50. package/lib/module/renderer/Layout/LayoutMetrics.js.map +1 -0
  51. package/lib/module/renderer/Layout/VerticalSpacing.js +69 -0
  52. package/lib/module/renderer/Layout/VerticalSpacing.js.map +1 -0
  53. package/lib/module/renderer/ScoreRenderer/ScoreRenderer.js +232 -0
  54. package/lib/module/renderer/ScoreRenderer/ScoreRenderer.js.map +1 -0
  55. package/lib/module/renderer/ScoreRenderer/ScoreScrollbar.js +108 -0
  56. package/lib/module/renderer/ScoreRenderer/ScoreScrollbar.js.map +1 -0
  57. package/lib/module/renderer/ScoreRenderer/index.js +7 -0
  58. package/lib/module/renderer/ScoreRenderer/index.js.map +1 -0
  59. package/lib/module/renderer/ScoreRenderer/types.js +4 -0
  60. package/lib/module/renderer/ScoreRenderer/types.js.map +1 -0
  61. package/lib/module/renderer/ScoreRenderer/useScoreScroll.js +77 -0
  62. package/lib/module/renderer/ScoreRenderer/useScoreScroll.js.map +1 -0
  63. package/lib/module/renderer/colorScheme.js +17 -0
  64. package/lib/module/renderer/colorScheme.js.map +1 -0
  65. package/lib/module/renderer/constants.js +18 -0
  66. package/lib/module/renderer/constants.js.map +1 -0
  67. package/lib/module/renderer/index.js +6 -0
  68. package/lib/module/renderer/index.js.map +1 -0
  69. package/lib/module/renderer/layout.js +153 -0
  70. package/lib/module/renderer/layout.js.map +1 -0
  71. package/lib/module/renderer/measure.js +202 -0
  72. package/lib/module/renderer/measure.js.map +1 -0
  73. package/lib/module/renderer/render.js +163 -0
  74. package/lib/module/renderer/render.js.map +1 -0
  75. package/lib/module/renderer/scoreParsing.js +230 -0
  76. package/lib/module/renderer/scoreParsing.js.map +1 -0
  77. package/lib/module/renderer/types.js +4 -0
  78. package/lib/module/renderer/types.js.map +1 -0
  79. package/lib/module/renderer/useScoreRecording.js +112 -0
  80. package/lib/module/renderer/useScoreRecording.js.map +1 -0
  81. package/lib/module/renderer/viewport.js +26 -0
  82. package/lib/module/renderer/viewport.js.map +1 -0
  83. package/lib/module/shared/Logger.js +67 -0
  84. package/lib/module/shared/Logger.js.map +1 -0
  85. package/lib/module/state/index.js +4 -0
  86. package/lib/module/state/index.js.map +1 -0
  87. package/lib/module/state/types.js +2 -0
  88. package/lib/module/state/types.js.map +1 -0
  89. package/lib/module/types.js +7 -0
  90. package/lib/module/types.js.map +1 -1
  91. package/lib/module/utils.js +42 -77
  92. package/lib/module/utils.js.map +1 -1
  93. package/lib/typescript/src/base/FontManager.d.ts +23 -0
  94. package/lib/typescript/src/base/FontManager.d.ts.map +1 -0
  95. package/lib/typescript/src/base/TextMeasureContext.d.ts +22 -0
  96. package/lib/typescript/src/base/TextMeasureContext.d.ts.map +1 -0
  97. package/lib/typescript/src/base/VexflowCanvas.d.ts +5 -0
  98. package/lib/typescript/src/base/VexflowCanvas.d.ts.map +1 -0
  99. package/lib/typescript/src/base/VexflowColorScheme.d.ts +7 -0
  100. package/lib/typescript/src/base/VexflowColorScheme.d.ts.map +1 -0
  101. package/lib/typescript/src/base/VexflowRecordingContext.d.ts +74 -0
  102. package/lib/typescript/src/base/VexflowRecordingContext.d.ts.map +1 -0
  103. package/lib/typescript/src/base/VexflowRecordingReplay.d.ts +4 -0
  104. package/lib/typescript/src/base/VexflowRecordingReplay.d.ts.map +1 -0
  105. package/lib/typescript/src/base/VexflowRecordingTypes.d.ts +94 -0
  106. package/lib/typescript/src/base/VexflowRecordingTypes.d.ts.map +1 -0
  107. package/lib/typescript/src/base/index.d.ts +6 -0
  108. package/lib/typescript/src/base/index.d.ts.map +1 -0
  109. package/lib/typescript/src/base/setupVexflowReactNative.d.ts +11 -0
  110. package/lib/typescript/src/base/setupVexflowReactNative.d.ts.map +1 -0
  111. package/lib/typescript/src/base/types.d.ts +13 -0
  112. package/lib/typescript/src/base/types.d.ts.map +1 -0
  113. package/lib/typescript/src/base/utils.d.ts +2 -0
  114. package/lib/typescript/src/base/utils.d.ts.map +1 -0
  115. package/lib/typescript/src/musicxml/MusicXmlParser/InternalTypes.d.ts +30 -0
  116. package/lib/typescript/src/musicxml/MusicXmlParser/InternalTypes.d.ts.map +1 -0
  117. package/lib/typescript/src/musicxml/MusicXmlParser/MeasureParser.d.ts +4 -0
  118. package/lib/typescript/src/musicxml/MusicXmlParser/MeasureParser.d.ts.map +1 -0
  119. package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlDirections.d.ts +5 -0
  120. package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlDirections.d.ts.map +1 -0
  121. package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlTiming.d.ts +6 -0
  122. package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlTiming.d.ts.map +1 -0
  123. package/lib/typescript/src/musicxml/MusicXmlParser/PartParser.d.ts +8 -0
  124. package/lib/typescript/src/musicxml/MusicXmlParser/PartParser.d.ts.map +1 -0
  125. package/lib/typescript/src/musicxml/MusicXmlParser/Spanners.d.ts +4 -0
  126. package/lib/typescript/src/musicxml/MusicXmlParser/Spanners.d.ts.map +1 -0
  127. package/lib/typescript/src/musicxml/MusicXmlParser/XmlOrder.d.ts +20 -0
  128. package/lib/typescript/src/musicxml/MusicXmlParser/XmlOrder.d.ts.map +1 -0
  129. package/lib/typescript/src/musicxml/MusicXmlParser/index.d.ts +5 -0
  130. package/lib/typescript/src/musicxml/MusicXmlParser/index.d.ts.map +1 -0
  131. package/lib/typescript/src/musicxml/MusicXmlParser/mappers.d.ts +15 -0
  132. package/lib/typescript/src/musicxml/MusicXmlParser/mappers.d.ts.map +1 -0
  133. package/lib/typescript/src/musicxml/MusicXmlParser/types.d.ts +13 -0
  134. package/lib/typescript/src/musicxml/MusicXmlParser/types.d.ts.map +1 -0
  135. package/lib/typescript/src/musicxml/index.d.ts +2 -0
  136. package/lib/typescript/src/musicxml/index.d.ts.map +1 -0
  137. package/lib/typescript/src/renderer/Layout/DocumentLayout.d.ts +10 -0
  138. package/lib/typescript/src/renderer/Layout/DocumentLayout.d.ts.map +1 -0
  139. package/lib/typescript/src/renderer/Layout/LayoutMetrics.d.ts +6 -0
  140. package/lib/typescript/src/renderer/Layout/LayoutMetrics.d.ts.map +1 -0
  141. package/lib/typescript/src/renderer/Layout/VerticalSpacing.d.ts +9 -0
  142. package/lib/typescript/src/renderer/Layout/VerticalSpacing.d.ts.map +1 -0
  143. package/lib/typescript/src/renderer/ScoreRenderer/ScoreRenderer.d.ts +14 -0
  144. package/lib/typescript/src/renderer/ScoreRenderer/ScoreRenderer.d.ts.map +1 -0
  145. package/lib/typescript/src/renderer/ScoreRenderer/ScoreScrollbar.d.ts +24 -0
  146. package/lib/typescript/src/renderer/ScoreRenderer/ScoreScrollbar.d.ts.map +1 -0
  147. package/lib/typescript/src/renderer/ScoreRenderer/index.d.ts +5 -0
  148. package/lib/typescript/src/renderer/ScoreRenderer/index.d.ts.map +1 -0
  149. package/lib/typescript/src/renderer/ScoreRenderer/types.d.ts +12 -0
  150. package/lib/typescript/src/renderer/ScoreRenderer/types.d.ts.map +1 -0
  151. package/lib/typescript/src/renderer/ScoreRenderer/useScoreScroll.d.ts +13 -0
  152. package/lib/typescript/src/renderer/ScoreRenderer/useScoreScroll.d.ts.map +1 -0
  153. package/lib/typescript/src/renderer/colorScheme.d.ts +9 -0
  154. package/lib/typescript/src/renderer/colorScheme.d.ts.map +1 -0
  155. package/lib/typescript/src/renderer/constants.d.ts +5 -0
  156. package/lib/typescript/src/renderer/constants.d.ts.map +1 -0
  157. package/lib/typescript/src/renderer/index.d.ts +4 -0
  158. package/lib/typescript/src/renderer/index.d.ts.map +1 -0
  159. package/lib/typescript/src/renderer/layout.d.ts +56 -0
  160. package/lib/typescript/src/renderer/layout.d.ts.map +1 -0
  161. package/lib/typescript/src/renderer/measure.d.ts +23 -0
  162. package/lib/typescript/src/renderer/measure.d.ts.map +1 -0
  163. package/lib/typescript/src/renderer/render.d.ts +9 -0
  164. package/lib/typescript/src/renderer/render.d.ts.map +1 -0
  165. package/lib/typescript/src/renderer/scoreParsing.d.ts +76 -0
  166. package/lib/typescript/src/renderer/scoreParsing.d.ts.map +1 -0
  167. package/lib/typescript/src/renderer/types.d.ts +51 -0
  168. package/lib/typescript/src/renderer/types.d.ts.map +1 -0
  169. package/lib/typescript/src/renderer/useScoreRecording.d.ts +21 -0
  170. package/lib/typescript/src/renderer/useScoreRecording.d.ts.map +1 -0
  171. package/lib/typescript/src/renderer/viewport.d.ts +3 -0
  172. package/lib/typescript/src/renderer/viewport.d.ts.map +1 -0
  173. package/lib/typescript/src/shared/Logger.d.ts +18 -0
  174. package/lib/typescript/src/shared/Logger.d.ts.map +1 -0
  175. package/lib/typescript/src/state/index.d.ts +2 -0
  176. package/lib/typescript/src/state/index.d.ts.map +1 -0
  177. package/lib/typescript/src/state/types.d.ts +190 -0
  178. package/lib/typescript/src/state/types.d.ts.map +1 -0
  179. package/lib/typescript/src/types.d.ts +0 -6
  180. package/lib/typescript/src/types.d.ts.map +1 -1
  181. package/lib/typescript/src/utils.d.ts +0 -6
  182. package/lib/typescript/src/utils.d.ts.map +1 -1
  183. package/package.json +41 -13
  184. package/src/base/FontManager.ts +206 -0
  185. package/src/base/TextMeasureContext.ts +59 -0
  186. package/src/base/VexflowCanvas.tsx +60 -0
  187. package/src/base/VexflowColorScheme.ts +32 -0
  188. package/src/base/VexflowRecordingContext.ts +495 -0
  189. package/src/base/VexflowRecordingReplay.ts +211 -0
  190. package/src/base/VexflowRecordingTypes.ts +117 -0
  191. package/src/base/index.ts +6 -0
  192. package/src/base/setupVexflowReactNative.ts +124 -0
  193. package/src/base/types.ts +17 -0
  194. package/src/base/utils.ts +21 -0
  195. package/src/musicxml/MusicXmlParser/InternalTypes.ts +41 -0
  196. package/src/musicxml/MusicXmlParser/MeasureParser.ts +469 -0
  197. package/src/musicxml/MusicXmlParser/MusicXmlDirections.ts +84 -0
  198. package/src/musicxml/MusicXmlParser/MusicXmlTiming.ts +153 -0
  199. package/src/musicxml/MusicXmlParser/PartParser.ts +69 -0
  200. package/src/musicxml/MusicXmlParser/Spanners.ts +215 -0
  201. package/src/musicxml/MusicXmlParser/XmlOrder.ts +170 -0
  202. package/src/musicxml/MusicXmlParser/index.ts +144 -0
  203. package/src/musicxml/MusicXmlParser/mappers.ts +307 -0
  204. package/src/musicxml/MusicXmlParser/types.ts +24 -0
  205. package/src/musicxml/index.ts +5 -0
  206. package/src/musicxml/testfiles/lg-8102429.xml +79620 -0
  207. package/src/renderer/Layout/DocumentLayout.ts +240 -0
  208. package/src/renderer/Layout/LayoutMetrics.ts +21 -0
  209. package/src/renderer/Layout/VerticalSpacing.ts +122 -0
  210. package/src/renderer/ScoreRenderer/ScoreRenderer.tsx +310 -0
  211. package/src/renderer/ScoreRenderer/ScoreScrollbar.tsx +231 -0
  212. package/src/renderer/ScoreRenderer/index.ts +13 -0
  213. package/src/renderer/ScoreRenderer/types.ts +14 -0
  214. package/src/renderer/ScoreRenderer/useScoreScroll.ts +146 -0
  215. package/src/renderer/colorScheme.ts +28 -0
  216. package/src/renderer/constants.ts +19 -0
  217. package/src/renderer/index.ts +3 -0
  218. package/src/renderer/layout.ts +309 -0
  219. package/src/renderer/measure.tsx +304 -0
  220. package/src/renderer/render.tsx +281 -0
  221. package/src/renderer/scoreParsing.tsx +352 -0
  222. package/src/renderer/types.ts +60 -0
  223. package/src/renderer/useScoreRecording.ts +177 -0
  224. package/src/renderer/viewport.ts +45 -0
  225. package/src/shared/Logger.ts +85 -0
  226. package/src/state/index.ts +1 -0
  227. package/src/state/types.ts +295 -0
  228. package/src/types.ts +6 -6
  229. package/src/utils.tsx +32 -98
  230. package/lib/module/SkiaVexflowContext.js +0 -285
  231. package/lib/module/SkiaVexflowContext.js.map +0 -1
  232. package/lib/module/VexflowCanvas.js +0 -103
  233. package/lib/module/VexflowCanvas.js.map +0 -1
  234. package/lib/module/colorUtils.js +0 -34
  235. package/lib/module/colorUtils.js.map +0 -1
  236. package/lib/module/colorUtils.test.js +0 -37
  237. package/lib/module/colorUtils.test.js.map +0 -1
  238. package/lib/module/constants.js +0 -30
  239. package/lib/module/constants.js.map +0 -1
  240. package/lib/module/index.js +0 -8
  241. package/lib/module/index.js.map +0 -1
  242. package/lib/typescript/src/SkiaVexflowContext.d.ts +0 -101
  243. package/lib/typescript/src/SkiaVexflowContext.d.ts.map +0 -1
  244. package/lib/typescript/src/VexflowCanvas.d.ts +0 -17
  245. package/lib/typescript/src/VexflowCanvas.d.ts.map +0 -1
  246. package/lib/typescript/src/colorUtils.d.ts +0 -2
  247. package/lib/typescript/src/colorUtils.d.ts.map +0 -1
  248. package/lib/typescript/src/colorUtils.test.d.ts +0 -2
  249. package/lib/typescript/src/colorUtils.test.d.ts.map +0 -1
  250. package/lib/typescript/src/constants.d.ts +0 -21
  251. package/lib/typescript/src/constants.d.ts.map +0 -1
  252. package/lib/typescript/src/index.d.ts +0 -7
  253. package/lib/typescript/src/index.d.ts.map +0 -1
  254. package/src/SkiaVexflowContext.ts +0 -462
  255. package/src/VexflowCanvas.tsx +0 -145
  256. package/src/colorUtils.test.ts +0 -52
  257. package/src/colorUtils.ts +0 -55
  258. package/src/constants.tsx +0 -34
  259. package/src/index.ts +0 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAsB,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAwBxE,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,oBAAyB,GACjC,KAAK,CAyCP;AAsED,OAAO,EAAE,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { Articulation, Barline, Clef, Dynamic, KeySignature, NoteLength, Pitch } from '../../state';
2
+ import { type XmlElement } from './XmlOrder';
3
+ export declare function mapClef(clef: XmlElement): Clef;
4
+ export declare function mapKeySignature(fifths: number, mode?: string): KeySignature;
5
+ export declare function mapDurationType(type: string): NoteLength;
6
+ export declare function mapPitch(pitch: XmlElement, accidental?: string): Pitch;
7
+ export declare function mapStemDirection(value?: string): "up" | "down" | undefined;
8
+ export declare function mapBarline(barline: XmlElement): {
9
+ location: 'left' | 'right';
10
+ value: Barline;
11
+ } | undefined;
12
+ export declare function dynamicsFromElement(dynamics: XmlElement): Dynamic[];
13
+ export declare function otherDynamicsText(dynamics: XmlElement): string | undefined;
14
+ export declare function articulationsFromNotations(notations?: XmlElement): Articulation[];
15
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +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;AAkDpB,wBAAgB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAyB9C;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,SAAU,GAAG,YAAY,CAa5E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAyBxD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAYtE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,6BAU9C;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,UAAU,GAC1C;IACE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;CAChB,GACD,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,CAgBhB"}
@@ -0,0 +1,13 @@
1
+ import type { Score } from '../../state';
2
+ export interface ParseMusicXmlOptions {
3
+ scoreId?: string;
4
+ }
5
+ export interface MusicXmlParseContext {
6
+ path: string;
7
+ }
8
+ export type ParseMusicXmlToScore = (xml: string, options?: ParseMusicXmlOptions) => Score;
9
+ export declare class MusicXmlParseError extends Error {
10
+ path?: string;
11
+ constructor(message: string, context?: MusicXmlParseContext);
12
+ }
13
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,oBAAoB,GAAG,CACjC,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,oBAAoB,KAC3B,KAAK,CAAC;AAEX,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEF,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB;CAK5D"}
@@ -0,0 +1,2 @@
1
+ export { MusicXmlParseError, parseMusicXmlToScore, type ParseMusicXmlOptions, } from './MusicXmlParser';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/musicxml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { MeasuredScore } from '../measure';
2
+ import type { RendererPoint, ScoreOptions } from '../types';
3
+ import type { GroupLayoutContext, GroupLayoutResult } from '../layout';
4
+ export declare function resolveDocumentEvenMeasureWidth(measuredScore: MeasuredScore, availableWidth: number): {
5
+ measuresPerFullLine: number;
6
+ equalMeasureWidth: number;
7
+ };
8
+ export declare function layoutDocumentEvenGroup(group: GroupLayoutContext, origin: RendererPoint, availableWidth: number, equalMeasureWidth: number, measuresPerFullLine: number, options: ScoreOptions): GroupLayoutResult;
9
+ export declare function layoutDocumentGroup(group: GroupLayoutContext, origin: RendererPoint, availableWidth: number, options: ScoreOptions): GroupLayoutResult;
10
+ //# sourceMappingURL=DocumentLayout.d.ts.map
@@ -0,0 +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;AASnB,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,MAAM,GACrB;IACD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAmBA;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,CAuEnB;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,aAAa,EACrB,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,YAAY,GACpB,iBAAiB,CAiEnB"}
@@ -0,0 +1,6 @@
1
+ import type { RendererRect, ScoreOptions } from '../types';
2
+ export declare const VEXFLOW_STAVE_TOP_LINE_OFFSET = 40;
3
+ export declare const VEXFLOW_STAVE_BOTTOM_LINE_OFFSET = 80;
4
+ export declare function getAvailableDocumentWidth(viewport: RendererRect, options: ScoreOptions): number;
5
+ export declare function getSystemGap(staffGap: number): number;
6
+ //# sourceMappingURL=LayoutMetrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/Layout/LayoutMetrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAK3D,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAChD,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,YAAY,GACpB,MAAM,CAKR;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAErD"}
@@ -0,0 +1,9 @@
1
+ import type { MeasuredGroupMeasure } from '../layout';
2
+ export interface SystemVerticalLayout {
3
+ height: number;
4
+ staffYOffsets: number[];
5
+ visibleBottom: number;
6
+ visibleTop: number;
7
+ }
8
+ export declare function resolveSystemVerticalLayout(measures: MeasuredGroupMeasure[], staffCount: number, staffGap: number): SystemVerticalLayout;
9
+ //# sourceMappingURL=VerticalSpacing.d.ts.map
@@ -0,0 +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,CAgBtB"}
@@ -0,0 +1,14 @@
1
+ import type React from 'react';
2
+ import { type SkTypefaceFontProvider, type Transforms3d } from '@shopify/react-native-skia';
3
+ import type { VexflowRecordingCommand } from '../../base';
4
+ import type { RendererSize, RendererType, ScoreRendererProps, Viewport } from '../types';
5
+ declare const _default: React.NamedExoticComponent<ScoreRendererProps>;
6
+ export default _default;
7
+ export declare function createScorePicture({ contentSize, defaultFont, fontManager, recordedCommands, }: {
8
+ contentSize: RendererSize;
9
+ defaultFont: string;
10
+ fontManager: SkTypefaceFontProvider;
11
+ recordedCommands: readonly VexflowRecordingCommand[];
12
+ }): import("@shopify/react-native-skia").SkPicture;
13
+ export declare function createPictureTransform(scrollOffset: number, rendererType: RendererType, viewport: Viewport, contentSize: RendererSize): Transforms3d;
14
+ //# sourceMappingURL=ScoreRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoreRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAKL,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAElB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAI1D,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EAEZ,kBAAkB,EAClB,QAAQ,EACT,MAAM,UAAU,CAAC;;AAuJlB,wBAAmC;AAEnC,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,WAAW,EAAE,YAAY,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,sBAAsB,CAAC;IACpC,gBAAgB,EAAE,SAAS,uBAAuB,EAAE,CAAC;CACtD,kDA2BA;AAED,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,YAAY,GACxB,YAAY,CAkBd"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { type StyleProp, type ViewStyle } from 'react-native';
3
+ import { type SharedValue } from 'react-native-reanimated';
4
+ import type { RendererSize } from '../types';
5
+ import type { ScrollAxis } from './types';
6
+ type ScoreScrollbarProps = {
7
+ axis: ScrollAxis;
8
+ contentSize: SharedValue<RendererSize>;
9
+ enabled: boolean;
10
+ scrollOffset: SharedValue<number>;
11
+ style?: StyleProp<ViewStyle>;
12
+ viewportSize: SharedValue<RendererSize>;
13
+ };
14
+ export type ScrollbarMetrics = {
15
+ maxScroll: number;
16
+ maxThumbOffset: number;
17
+ thumbExtent: number;
18
+ };
19
+ declare const ScoreScrollbar: React.FC<ScoreScrollbarProps>;
20
+ export default ScoreScrollbar;
21
+ export declare function getScrollbarMetrics(axis: ScrollAxis, viewportSize: RendererSize, contentSize: RendererSize, trackExtent: number): ScrollbarMetrics;
22
+ export declare function getThumbOffsetFromScrollOffset(scrollOffsetValue: number, metrics: ScrollbarMetrics): number;
23
+ export declare function getScrollOffsetFromThumbOffset(thumbOffset: number, metrics: ScrollbarMetrics): number;
24
+ //# sourceMappingURL=ScoreScrollbar.d.ts.map
@@ -0,0 +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,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAiB,EAEf,KAAK,WAAW,EAGjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuHjD,CAAC;AAEF,eAAe,cAAc,CAAC;AAE9B,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,UAAU,EAChB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,YAAY,EACzB,WAAW,EAAE,MAAM,GAClB,gBAAgB,CAyBlB;AAED,wBAAgB,8BAA8B,CAC5C,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,gBAAgB,GACxB,MAAM,CAMR;AAED,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,gBAAgB,GACxB,MAAM,CAMR"}
@@ -0,0 +1,5 @@
1
+ export { default } from './ScoreRenderer';
2
+ export { createPictureTransform, createScorePicture } from './ScoreRenderer';
3
+ export { clampOffset, createClampedScrollOffset, getMaxScroll, getScrollAxis, } from './useScoreScroll';
4
+ export { getScrollbarMetrics, getScrollOffsetFromThumbOffset, getThumbOffsetFromScrollOffset, } from './ScoreScrollbar';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,YAAY,EACZ,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { GestureType } from 'react-native-gesture-handler';
2
+ import type { SharedValue } from 'react-native-reanimated';
3
+ import type { RendererSize } from '../types';
4
+ export type ScrollAxis = 'horizontal' | 'vertical';
5
+ export type ScoreScrollState = {
6
+ axis: ScrollAxis;
7
+ contentSize: SharedValue<RendererSize>;
8
+ panGesture: GestureType;
9
+ scrollOffset: SharedValue<number>;
10
+ viewportSize: SharedValue<RendererSize>;
11
+ };
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,UAAU,CAAC;AAEnD,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"}
@@ -0,0 +1,13 @@
1
+ import type { RendererSize, RendererType } from '../types';
2
+ import type { ScoreScrollState, ScrollAxis } from './types';
3
+ export declare function useScoreScroll({ contentSize, rendererType, scrollEnabled, viewportSize, }: {
4
+ contentSize: RendererSize;
5
+ rendererType: RendererType;
6
+ scrollEnabled: boolean;
7
+ viewportSize: RendererSize;
8
+ }): ScoreScrollState;
9
+ export declare function getScrollAxis(rendererType: RendererType): ScrollAxis;
10
+ export declare function getMaxScroll(rendererType: RendererType, viewportSize: RendererSize, contentSize: RendererSize): number;
11
+ export declare function clampOffset(offset: number, maxOffset: number): number;
12
+ export declare function createClampedScrollOffset(scrollOffset: number, rendererType: RendererType, viewportSize: RendererSize, contentSize: RendererSize): number;
13
+ //# sourceMappingURL=useScoreScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScoreScroll.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/useScoreScroll.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI5D,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,EAAE;IACD,WAAW,EAAE,YAAY,CAAC;IAC1B,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;CAC5B,GAAG,gBAAgB,CAkFnB;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,YAAY,GAAG,UAAU,CAIpE;AAED,wBAAgB,YAAY,CAC1B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,YAAY,GACxB,MAAM,CAMR;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAIrE;AAED,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,YAAY,GACxB,MAAM,CAOR"}
@@ -0,0 +1,9 @@
1
+ import type { VexflowColorScheme } from '../base/VexflowColorScheme';
2
+ export type ScoreColorScheme = VexflowColorScheme;
3
+ export interface ResolvedScoreColorScheme {
4
+ foreground: string;
5
+ background: string;
6
+ ledgerLine?: string;
7
+ }
8
+ export declare function resolveScoreColorScheme(colorScheme?: ScoreColorScheme): ResolvedScoreColorScheme;
9
+ //# sourceMappingURL=colorScheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorScheme.d.ts","sourceRoot":"","sources":["../../../../src/renderer/colorScheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAOD,wBAAgB,uBAAuB,CACrC,WAAW,CAAC,EAAE,gBAAgB,GAC7B,wBAAwB,CAU1B"}
@@ -0,0 +1,5 @@
1
+ import type { ScoreInsets, ScoreSpacing, RenderOptions } from './types';
2
+ export declare const insets: ScoreInsets;
3
+ export declare const spacing: ScoreSpacing;
4
+ export declare const renderOptions: RenderOptions;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/renderer/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExE,eAAO,MAAM,MAAM,EAAE,WAKpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,YAGrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAI3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as ScoreRenderer } from './ScoreRenderer';
2
+ export * from './colorScheme';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/renderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,56 @@
1
+ import type { Score, Staff, StaffGroup } from '../state';
2
+ import { type ResolvedMeasureState } from './scoreParsing';
3
+ import type { MeasuredScore } from './measure';
4
+ import type { StaffVerticalBounds } from './measure';
5
+ import type { RendererRect, RendererSize, RendererType, ScoreOptions } from './types';
6
+ export interface MeasuredGroupMeasure {
7
+ groupId: string;
8
+ measureIndex: number;
9
+ intrinsicWidth: number;
10
+ measureNumbers: number[];
11
+ staffBounds: StaffVerticalBounds[];
12
+ }
13
+ export interface GroupLayoutContext {
14
+ groupId: string;
15
+ staffGroup?: StaffGroup;
16
+ staffIds: string[];
17
+ staves: Staff[];
18
+ resolvedStatesByStaff: ResolvedMeasureState[][];
19
+ measures: MeasuredGroupMeasure[];
20
+ }
21
+ export interface MeasureLayoutPlan {
22
+ groupId: string;
23
+ measureIndex: number;
24
+ x: number;
25
+ y: number;
26
+ width: number;
27
+ height: number;
28
+ staffYOffsets: number[];
29
+ systemIndex: number;
30
+ }
31
+ export interface SystemLayoutPlan {
32
+ groupId: string;
33
+ systemIndex: number;
34
+ x: number;
35
+ y: number;
36
+ width: number;
37
+ height: number;
38
+ staffCount: number;
39
+ staffYOffsets: number[];
40
+ measureIndices: number[];
41
+ }
42
+ export interface GroupLayoutResult {
43
+ groupId: string;
44
+ systems: SystemLayoutPlan[];
45
+ measures: MeasureLayoutPlan[];
46
+ nextY: number;
47
+ }
48
+ export interface ScoreLayoutPlan {
49
+ rendererType: RendererType;
50
+ contentSize: RendererSize;
51
+ systems: SystemLayoutPlan[];
52
+ measures: MeasureLayoutPlan[];
53
+ groups: GroupLayoutContext[];
54
+ }
55
+ export declare function layoutScore(score: Score, measuredScore: MeasuredScore, options: ScoreOptions, rendererType: RendererType, viewport: RendererRect): ScoreLayoutPlan;
56
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/renderer/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAYzD,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,WAAW,EAAE,mBAAmB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,qBAAqB,EAAE,oBAAoB,EAAE,EAAE,CAAC;IAChD,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,YAAY,CAAC;IAC1B,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,YAAY,GACrB,eAAe,CAwDjB"}
@@ -0,0 +1,23 @@
1
+ import type { Score } from '../state';
2
+ import type { ScoreOptions } from './types';
3
+ export interface StaffVerticalBounds {
4
+ top: number;
5
+ bottom: number;
6
+ }
7
+ export interface MeasuredMeasure {
8
+ groupId: string;
9
+ measureIndex: number;
10
+ measureNumbers: number[];
11
+ staffIds: string[];
12
+ staffBounds: StaffVerticalBounds[];
13
+ intrinsicNoteWidth: number;
14
+ }
15
+ export interface MeasuredScore {
16
+ measures: MeasuredMeasure[];
17
+ maxIntrinsicNoteWidth: number;
18
+ }
19
+ /**
20
+ * Measures each staff group by building VexFlow voices and estimating note width.
21
+ */
22
+ export declare function measureScore(score: Score, options: ScoreOptions): MeasuredScore;
23
+ //# sourceMappingURL=measure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../src/renderer/measure.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAS,MAAM,UAAU,CAAC;AAO7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAO5C,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnC,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAAY,GACpB,aAAa,CA2Gf"}
@@ -0,0 +1,9 @@
1
+ import type { VexflowRecordingContext } from '../base';
2
+ import type { Score } from '../state';
3
+ import type { ScoreLayoutPlan } from './layout';
4
+ import type { ScoreOptions } from './types';
5
+ /**
6
+ * Renders the score from a precomputed layout plan.
7
+ */
8
+ export declare function renderScore(ctx: VexflowRecordingContext, score: Score, layoutPlan: ScoreLayoutPlan, _options: ScoreOptions): void;
9
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../src/renderer/render.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAA+B,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAGV,eAAe,EAChB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C;;GAEG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,uBAAuB,EAC5B,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,eAAe,EAC3B,QAAQ,EAAE,YAAY,QA2BvB"}
@@ -0,0 +1,76 @@
1
+ import { Beam, Fraction as VFFraction, StaveNote, Tuplet, Voice as VFVoice } from 'vexflow';
2
+ import type { StemmableNote } from 'vexflow';
3
+ import type { Clef, KeySignature, DurationValue, Meter, Pitch, Score, Staff, StaffGroup, StemDirection, Tempo, TupletGroup, Voice, VoiceItem, VoiceTimingMode } from '../state';
4
+ export type StaffGroupLookup = {
5
+ groupId: string;
6
+ staffGroup?: StaffGroup;
7
+ staffIds: string[];
8
+ };
9
+ export interface ResolvedMeasureState {
10
+ clef: Clef;
11
+ meter: Meter;
12
+ keySignature?: KeySignature;
13
+ tempo?: Tempo;
14
+ }
15
+ export type VFVoiceNote = StemmableNote;
16
+ export interface MakeVFVoiceOptions {
17
+ resolveClef?: (item: VoiceItem) => Clef;
18
+ }
19
+ /**
20
+ * Maps the library stem direction to the numeric VexFlow value.
21
+ */
22
+ export declare function toVFStemDirection(dir?: StemDirection): number | undefined;
23
+ /**
24
+ * Converts an internal pitch into the VexFlow key string format.
25
+ */
26
+ export declare function pitchToVFKey(pitch: Pitch): string;
27
+ /**
28
+ * Converts a duration into the VexFlow duration token, including rests.
29
+ */
30
+ export declare function durationToVF(duration: DurationValue, isRest?: boolean): string;
31
+ /**
32
+ * Applies the requested number of augmentation dots to a note.
33
+ */
34
+ export declare function applyDots(note: StaveNote, dots?: 0 | 1 | 2 | 3): void;
35
+ /**
36
+ * Adds pitch accidentals to the matching keys in a VexFlow note.
37
+ */
38
+ export declare function addPitchAccidentals(note: StaveNote, pitches: Pitch[]): void;
39
+ /**
40
+ * Builds a VexFlow stave note from a score voice item and clef.
41
+ */
42
+ export declare function voiceItemToStaveNote(item: VoiceItem, clef: Clef): VFVoiceNote;
43
+ /**
44
+ * Translates beam group fractions into the VexFlow representation.
45
+ */
46
+ export declare function beamGroupsToVF(meter?: Meter): VFFraction[] | undefined;
47
+ /**
48
+ * Finds the tuplet groups that belong to a given voice.
49
+ */
50
+ export declare function findTupletsForVoice(score: Score, voice: Voice): TupletGroup[];
51
+ /**
52
+ * Maps the internal timing mode to the matching VexFlow voice mode.
53
+ */
54
+ export declare function modeToVF(mode: VoiceTimingMode): number;
55
+ /**
56
+ * Resolves each measure state by carrying forward prior staff state.
57
+ */
58
+ export declare function buildResolvedMeasureStates(score: Score, staff: Staff): ResolvedMeasureState[];
59
+ /**
60
+ * Builds the VexFlow voice, notes, beams, and tuplets for one score voice.
61
+ */
62
+ export declare function makeVFVoice(score: Score, meter: Meter, clef: Clef, voice: Voice, options?: MakeVFVoiceOptions): {
63
+ vfVoice: VFVoice;
64
+ notes: VFVoiceNote[];
65
+ beams: Beam[];
66
+ tuplets: Tuplet[];
67
+ };
68
+ /**
69
+ * Resolves explicit staff groups and standalone staves into render groups.
70
+ */
71
+ export declare function buildMeasurementGroups(score: Score): StaffGroupLookup[];
72
+ /**
73
+ * Resolves a staff group lookup into the existing ordered score staves.
74
+ */
75
+ export declare function resolveGroupStaves(score: Score, group: StaffGroupLookup): Staff[];
76
+ //# sourceMappingURL=scoreParsing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoreParsing.d.ts","sourceRoot":"","sources":["../../../../src/renderer/scoreParsing.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EAEJ,QAAQ,IAAI,UAAU,EAEtB,SAAS,EAET,MAAM,EACN,KAAK,IAAI,OAAO,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EACV,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,aAAa,EACb,KAAK,EACL,WAAW,EACX,KAAK,EACL,SAAS,EACT,eAAe,EAChB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;AAExC,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACzC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAUzE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CASjD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAQ,GAAG,MAAM,CAe5E;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,QAI9D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,QAepE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,WAAW,CAoC7E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,UAAU,EAAE,GAAG,SAAS,CAMtE;AASD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,WAAW,EAAE,CAE7E;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAUtD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,GACX,oBAAoB,EAAE,CAmBxB;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,GAAE,kBAAuB,GAC/B;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CA6DA;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,GAAG,gBAAgB,EAAE,CAwBvE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,gBAAgB,GACtB,KAAK,EAAE,CAIT"}
@@ -0,0 +1,51 @@
1
+ import type { SkTypefaceFontProvider } from '@shopify/react-native-skia';
2
+ import type { Score } from '../state';
3
+ import type { ScoreColorScheme } from './colorScheme';
4
+ export type RendererType = 'infiniteScore' | 'document' | 'documentEven';
5
+ export interface ScoreRendererProps {
6
+ score: Score;
7
+ defaultFont: string;
8
+ fontManager: SkTypefaceFontProvider;
9
+ colorScheme?: ScoreColorScheme;
10
+ rendererType?: RendererType;
11
+ options?: Partial<ScoreOptions>;
12
+ scrollEnabled?: boolean;
13
+ showScrollbars?: boolean;
14
+ }
15
+ export interface Viewport {
16
+ width: number;
17
+ height: number;
18
+ }
19
+ export interface ScoreInsets {
20
+ top: number;
21
+ right: number;
22
+ bottom: number;
23
+ left: number;
24
+ }
25
+ export interface ScoreSpacing {
26
+ staffGap: number;
27
+ minIntrinsicSizeMultiplier: number;
28
+ }
29
+ export interface RenderOptions {
30
+ pixelRatio: number;
31
+ scale: number;
32
+ debug: boolean;
33
+ }
34
+ export interface ScoreOptions {
35
+ spacing: ScoreSpacing;
36
+ insets: ScoreInsets;
37
+ render: RenderOptions;
38
+ }
39
+ export interface RendererPoint {
40
+ x: number;
41
+ y: number;
42
+ }
43
+ export interface RendererSize {
44
+ width: number;
45
+ height: number;
46
+ }
47
+ export interface RendererRect extends RendererPoint, RendererSize {
48
+ }
49
+ export interface VisibleViewport extends RendererRect {
50
+ }
51
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/renderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,UAAU,GAAG,cAAc,CAAC;AAEzE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,sBAAsB,CAAC;IACpC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAa,SAAQ,aAAa,EAAE,YAAY;CAAG;AAEpE,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG"}
@@ -0,0 +1,21 @@
1
+ import type { SkTypefaceFontProvider } from '@shopify/react-native-skia';
2
+ import type { VexflowRecordingCommand } from '../base';
3
+ import type { Score } from '../state';
4
+ import { type ScoreLayoutPlan } from './layout';
5
+ import type { ResolvedScoreColorScheme } from './colorScheme';
6
+ import type { RendererRect, RendererType, ScoreOptions } from './types';
7
+ export interface ScoreRecording {
8
+ commands: readonly VexflowRecordingCommand[];
9
+ layoutPlan: ScoreLayoutPlan;
10
+ }
11
+ export declare function useScoreRecording({ defaultFont, enabled, fontManager, colorScheme, options, rendererType, score, viewport, }: {
12
+ defaultFont: string;
13
+ enabled?: boolean;
14
+ fontManager: SkTypefaceFontProvider;
15
+ colorScheme: ResolvedScoreColorScheme;
16
+ options: ScoreOptions;
17
+ rendererType: RendererType;
18
+ score: Score;
19
+ viewport: RendererRect;
20
+ }): ScoreRecording;
21
+ //# sourceMappingURL=useScoreRecording.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScoreRecording.d.ts","sourceRoot":"","sources":["../../../../src/renderer/useScoreRecording.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAG7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC7C,UAAU,EAAE,eAAe,CAAC;CAC7B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,OAAc,EACd,WAAW,EACX,WAAW,EACX,OAAO,EACP,YAAY,EACZ,KAAK,EACL,QAAQ,GACT,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,sBAAsB,CAAC;IACpC,WAAW,EAAE,wBAAwB,CAAC;IACtC,OAAO,EAAE,YAAY,CAAC;IACtB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC;CACxB,GAAG,cAAc,CAgEjB"}
@@ -0,0 +1,3 @@
1
+ import type { RendererSize, RendererType, Viewport, VisibleViewport } from './types';
2
+ export declare function createVisibleViewport(scrollOffset: number, rendererType: RendererType, viewport: Viewport, contentSize: RendererSize): VisibleViewport;
3
+ //# sourceMappingURL=viewport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../../src/renderer/viewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,eAAe,EAChB,MAAM,SAAS,CAAC;AAcjB,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,YAAY,GACxB,eAAe,CAoBjB"}
@@ -0,0 +1,18 @@
1
+ export declare enum LogCategory {
2
+ FontManager = "FontManager",
3
+ VexflowRecordingContext = "VexflowRecordingContext",
4
+ VexflowCanvas = "VexflowCanvas",
5
+ Default = "Default"
6
+ }
7
+ declare class Logger {
8
+ private logCategory;
9
+ constructor(category?: LogCategory);
10
+ extend(logCategory: LogCategory): Logger;
11
+ formatMessage(...params: unknown[]): unknown[];
12
+ log(...params: unknown[]): void;
13
+ warn(...params: unknown[]): void;
14
+ error(...params: unknown[]): void;
15
+ }
16
+ declare const _default: Logger;
17
+ export default _default;
18
+ //# sourceMappingURL=Logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../../src/shared/Logger.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW;IACrB,WAAW,gBAAgB;IAC3B,uBAAuB,4BAA4B;IACnD,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACpB;AAuBD,cAAM,MAAM;IACV,OAAO,CAAC,WAAW,CAAS;gBAEhB,QAAQ,GAAE,WAAiC;IAIvD,MAAM,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM;IAIxC,aAAa,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;IAkBlC,GAAG,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;IAQxB,IAAI,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;IAQzB,KAAK,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;CAO3B;;AAED,wBAA4B"}
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/state/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}