@types/gorilla-engine 1.1.12 → 1.1.13
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.
gorilla-engine/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for gorilla-engine (https://gorilla-engin
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gorilla-engine.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 09 Nov 2023 11:07:08 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -69,7 +69,11 @@ declare namespace GorillaEngine.UI {
|
|
|
69
69
|
overlayColorRight?: string;
|
|
70
70
|
enforceValueOnConstraintViolation?: boolean;
|
|
71
71
|
valueOffsetOnConstraintViolation?: number;
|
|
72
|
-
styles?:
|
|
72
|
+
styles?: {
|
|
73
|
+
normal: SliceStyle;
|
|
74
|
+
hover: SliceStyle;
|
|
75
|
+
selected: SliceStyle;
|
|
76
|
+
};
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
interface Slice {
|
gorilla-engine/index.d.ts
CHANGED
|
@@ -348,6 +348,8 @@ declare namespace GorillaEngine {
|
|
|
348
348
|
): Uint8Array;
|
|
349
349
|
|
|
350
350
|
getStringAtPath(path: string): string;
|
|
351
|
+
|
|
352
|
+
getSampleMetadata(filePath: string, overviewSize: number): { metadata: string; overview: Uint8Array };
|
|
351
353
|
}
|
|
352
354
|
|
|
353
355
|
interface Blob {
|
|
@@ -381,8 +383,8 @@ declare namespace GorillaEngine {
|
|
|
381
383
|
title: string;
|
|
382
384
|
message: string;
|
|
383
385
|
iconType: "info" | "question" | "warning";
|
|
384
|
-
}):
|
|
385
|
-
function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): number
|
|
386
|
+
}): Promise<any>;
|
|
387
|
+
function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): Promise<number>;
|
|
386
388
|
function checkLicense(): boolean;
|
|
387
389
|
function checkBeatportRTO(): string;
|
|
388
390
|
function isTrial(): boolean;
|
|
@@ -403,7 +405,6 @@ declare namespace GorillaEngine {
|
|
|
403
405
|
function getPluginMM(v: boolean): void;
|
|
404
406
|
function getPluginAE(v: boolean): void;
|
|
405
407
|
function getPreviewPlayer(): PreviewPlayer;
|
|
406
|
-
function getSampleMetadata(filePath: string, overviewSize: number): string;
|
|
407
408
|
function openFileChooser(config: {
|
|
408
409
|
allowMultiple?: boolean;
|
|
409
410
|
browseDirectory?: boolean;
|
|
@@ -412,14 +413,14 @@ declare namespace GorillaEngine {
|
|
|
412
413
|
hint?: string;
|
|
413
414
|
allowedExtensions?: string;
|
|
414
415
|
defaultLocation?: string;
|
|
415
|
-
}):
|
|
416
|
+
}): Promise<string[]>;
|
|
416
417
|
/**
|
|
417
418
|
* Method to convert mp3 files to wave files
|
|
418
419
|
* @param mp3Filepath The path of the mp3 file to convert
|
|
419
420
|
* @param wavFilePath The path where the converted file should be stored
|
|
420
421
|
* @returns `true` if the convertion was successful
|
|
421
422
|
*/
|
|
422
|
-
function convertMp3ToWav(mp3Filepath: string, wavFilePath: string): boolean
|
|
423
|
+
function convertMp3ToWav(mp3Filepath: string, wavFilePath: string): Promise<boolean>;
|
|
423
424
|
/**
|
|
424
425
|
* Method to register opening and closing of the plugin editor
|
|
425
426
|
* @param openCallback The callback when the plugin editor opens
|
|
@@ -431,5 +432,6 @@ declare namespace GorillaEngine {
|
|
|
431
432
|
namespace UI {
|
|
432
433
|
function loadUIfromYAML(ymlPath: string): void;
|
|
433
434
|
function getControlById(id: string): Component;
|
|
435
|
+
function createWindow(window: Window): void;
|
|
434
436
|
}
|
|
435
437
|
}
|
gorilla-engine/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/gorilla-engine",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "TypeScript definitions for gorilla-engine",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gorilla-engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "adadaf5009086408ac9ab99b20e00f20e55228f230d269be55f85ccb241e7e41",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|