score-viewer 1.0.48 → 1.0.49
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/dist/score-viewer.js +6418 -6429
- package/dist/score-viewer.js.map +1 -1
- package/dist/score-viewer.umd.cjs +59 -59
- package/dist/score-viewer.umd.cjs.map +1 -1
- package/dist/types/main.d.ts +8 -4
- package/package.json +1 -1
package/dist/types/main.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ declare enum PlayingState {
|
|
|
96
96
|
|
|
97
97
|
declare type RenderAutoScrollConfig = {
|
|
98
98
|
height: number;
|
|
99
|
+
timemap: TimeMapEvent[];
|
|
99
100
|
};
|
|
100
101
|
|
|
101
102
|
declare type RenderConfig = {
|
|
@@ -106,6 +107,7 @@ declare type RenderConfig = {
|
|
|
106
107
|
renderPage: number;
|
|
107
108
|
loadedPagesCount: number;
|
|
108
109
|
scale: number;
|
|
110
|
+
timemap: TimeMapEvent[];
|
|
109
111
|
};
|
|
110
112
|
|
|
111
113
|
declare interface RenderedData {
|
|
@@ -215,8 +217,10 @@ export declare interface ScoreViewerRef {
|
|
|
215
217
|
|
|
216
218
|
declare class ScoreViewerStoreApi {
|
|
217
219
|
use: {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
+
targetWidth: () => number;
|
|
221
|
+
setTargetWidth: () => (width: number) => void;
|
|
222
|
+
targetHeight: () => number;
|
|
223
|
+
setTargetHeight: () => (height: number) => void;
|
|
220
224
|
pendingAction: () => Action | null;
|
|
221
225
|
setPendingAction: () => (action: Action | null) => void;
|
|
222
226
|
score: () => Score | null;
|
|
@@ -352,7 +356,7 @@ declare enum Transition {
|
|
|
352
356
|
declare type Transposition = "" | "P4" | "+P4" | "-P4" | "M3" | "+M3" | "-M3" | "P8" | "+P8" | "-P8";
|
|
353
357
|
|
|
354
358
|
export declare function useScoreManager({ t, config, normalizeFicta, onScoreAnalyzed, onFetchScoreError }: UseScoreManagerProps): {
|
|
355
|
-
fetchScore: (scoreIndex: number) => void
|
|
359
|
+
fetchScore: (scoreIndex: number) => Promise<void>;
|
|
356
360
|
unloadScore: () => void;
|
|
357
361
|
hasIntro: (scoreIndex: number) => boolean;
|
|
358
362
|
hasText: (scoreIndex: number) => boolean;
|
|
@@ -369,7 +373,7 @@ declare interface UseScoreManagerProps {
|
|
|
369
373
|
export declare const useStore: ScoreViewerStoreApi;
|
|
370
374
|
|
|
371
375
|
export declare function useTextParts({ config, }: UseTextPartsProps): {
|
|
372
|
-
fetchTextParts: (scoreIndex: number) => void
|
|
376
|
+
fetchTextParts: (scoreIndex: number) => Promise<void>;
|
|
373
377
|
textIntroduction: string | FetchError | null | undefined;
|
|
374
378
|
textLyrics: LyricItem[] | null | undefined;
|
|
375
379
|
textComments: string | FetchError | null | undefined;
|