@coderline/alphatab 1.8.1 → 1.8.2
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 +3 -5
- package/dist/alphaTab.core.min.mjs +2 -2
- package/dist/alphaTab.core.mjs +24833 -24791
- package/dist/alphaTab.d.ts +20 -24
- package/dist/alphaTab.js +24833 -24791
- package/dist/alphaTab.min.js +2 -2
- package/dist/alphaTab.min.mjs +1 -1
- package/dist/alphaTab.mjs +1 -1
- package/dist/alphaTab.worker.min.mjs +1 -1
- package/dist/alphaTab.worker.mjs +1 -1
- package/dist/alphaTab.worklet.min.mjs +1 -1
- package/dist/alphaTab.worklet.mjs +1 -1
- package/package.json +9 -9
package/dist/alphaTab.d.ts
CHANGED
|
@@ -5582,22 +5582,10 @@ declare class Bounds {
|
|
|
5582
5582
|
* @public
|
|
5583
5583
|
*/
|
|
5584
5584
|
declare class BoundsLookup {
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
*/
|
|
5588
|
-
toJson(): unknown;
|
|
5589
|
-
/**
|
|
5590
|
-
* @target web
|
|
5591
|
-
*/
|
|
5592
|
-
static fromJson(json: unknown, score: Score): BoundsLookup;
|
|
5593
|
-
/**
|
|
5594
|
-
* @target web
|
|
5595
|
-
*/
|
|
5585
|
+
toJson(): Map<string, unknown>;
|
|
5586
|
+
static fromJson(json: Map<string, unknown> | null, score: Score): BoundsLookup | null;
|
|
5596
5587
|
private static _boundsFromJson;
|
|
5597
|
-
|
|
5598
|
-
* @target web
|
|
5599
|
-
*/
|
|
5600
|
-
private _boundsToJson;
|
|
5588
|
+
private static _boundsToJson;
|
|
5601
5589
|
private _beatLookup;
|
|
5602
5590
|
private _masterBarLookup;
|
|
5603
5591
|
private _currentStaffSystem;
|
|
@@ -8180,6 +8168,7 @@ export declare class Environment {
|
|
|
8180
8168
|
*/
|
|
8181
8169
|
private static _globalThis;
|
|
8182
8170
|
|
|
8171
|
+
|
|
8183
8172
|
/**
|
|
8184
8173
|
* @target web
|
|
8185
8174
|
*/
|
|
@@ -8208,13 +8197,6 @@ export declare class Environment {
|
|
|
8208
8197
|
* @target web
|
|
8209
8198
|
*/
|
|
8210
8199
|
static get isRunningInAudioWorklet(): boolean;
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
/**
|
|
8214
|
-
* @target web
|
|
8215
|
-
* @partial
|
|
8216
|
-
*/
|
|
8217
|
-
static throttle(action: () => void, delay: number): () => void;
|
|
8218
8200
|
/**
|
|
8219
8201
|
* @target web
|
|
8220
8202
|
*/
|
|
@@ -8263,7 +8245,7 @@ export declare class Environment {
|
|
|
8263
8245
|
/**
|
|
8264
8246
|
* @target web
|
|
8265
8247
|
*/
|
|
8266
|
-
static initializeMain(createWebWorker: (settings: Settings) => Worker, createAudioWorklet: (context: AudioContext, settings: Settings) => Promise<void>): void;
|
|
8248
|
+
static initializeMain(createWebWorker: (settings: Settings, nameHint: string) => Worker, createAudioWorklet: (context: AudioContext, settings: Settings) => Promise<void>): void;
|
|
8267
8249
|
|
|
8268
8250
|
|
|
8269
8251
|
/**
|
|
@@ -9172,6 +9154,7 @@ declare interface IAudioExporter extends Disposable {
|
|
|
9172
9154
|
* slightly longer audio is contained in the result.
|
|
9173
9155
|
*
|
|
9174
9156
|
* When the song ends, the chunk might contain less than the requested duration.
|
|
9157
|
+
* @async
|
|
9175
9158
|
*/
|
|
9176
9159
|
render(milliseconds: number): Promise<AudioExportChunk | undefined>;
|
|
9177
9160
|
destroy(): void;
|
|
@@ -9190,6 +9173,7 @@ declare interface IAudioExporterWorker extends IAudioExporter {
|
|
|
9190
9173
|
* @param midi The midi file to load
|
|
9191
9174
|
* @param syncPoints The sync points of the song (if any)
|
|
9192
9175
|
* @param transpositionPitches The initial transposition pitches for the midi file.
|
|
9176
|
+
* @async
|
|
9193
9177
|
*/
|
|
9194
9178
|
initialize(options: AudioExportOptions, midi: MidiFile, syncPoints: BackingTrackSyncPoint[], transpositionPitches: Map<number, number>): Promise<void>;
|
|
9195
9179
|
}
|
|
@@ -10279,6 +10263,18 @@ declare interface IUiFacade<TSettings> {
|
|
|
10279
10263
|
* @param action
|
|
10280
10264
|
*/
|
|
10281
10265
|
beginInvoke(action: () => void): void;
|
|
10266
|
+
/**
|
|
10267
|
+
* Creates a throttled/debounced version of the provided action.
|
|
10268
|
+
* @param action The action to call.
|
|
10269
|
+
* @param delay The delay to wait for additional call before actually executing.
|
|
10270
|
+
* @returns A function which executes the provided action after the given delay.
|
|
10271
|
+
* If multiple calls are made before the action is started, the already scheduled
|
|
10272
|
+
* action is cancelled and a new one is scheduled after the given delay.
|
|
10273
|
+
* If called endlessly, the action is never executed.
|
|
10274
|
+
*
|
|
10275
|
+
* Already executing actions will not be cancelled but will complete before another action executes.
|
|
10276
|
+
*/
|
|
10277
|
+
throttle(action: () => void, delay: number): () => void;
|
|
10282
10278
|
/**
|
|
10283
10279
|
* Tells the UI layer to remove all highlights from highlighted music notation elements.
|
|
10284
10280
|
*/
|
|
@@ -10433,7 +10429,7 @@ declare class JsonConverter {
|
|
|
10433
10429
|
* @param score The score object to serialize
|
|
10434
10430
|
* @returns A serialized score object without ciruclar dependencies that can be used for further serializations.
|
|
10435
10431
|
*/
|
|
10436
|
-
static scoreToJsObject(score: Score): unknown;
|
|
10432
|
+
static scoreToJsObject(score: Score): Map<string, unknown> | null;
|
|
10437
10433
|
/**
|
|
10438
10434
|
* Converts the given JavaScript object into a score object.
|
|
10439
10435
|
* @param jsObject The javascript object created via {@link Score}
|