@types/gorilla-engine 1.1.12 → 1.1.14

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: Tue, 07 Nov 2023 03:09:37 GMT
11
+ * Last updated: Wed, 13 Dec 2023 12:09:50 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?: SliceStyle[];
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 {
@@ -377,12 +379,14 @@ declare namespace GorillaEngine {
377
379
  * @returns The name of the host
378
380
  */
379
381
  function getHostDescription(): string;
380
- function showNativeMessageBox(options: {
382
+ interface MessageBoxOptions {
381
383
  title: string;
382
384
  message: string;
383
- iconType: "info" | "question" | "warning";
384
- }): void;
385
- function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): number;
385
+ iconType: "info" | "question" | "warning" | "error";
386
+ }
387
+ function showNativeMessageBoxSync(options: MessageBoxOptions): void;
388
+ function showNativeMessageBox(options: MessageBoxOptions): Promise<void>;
389
+ function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): Promise<number>;
386
390
  function checkLicense(): boolean;
387
391
  function checkBeatportRTO(): string;
388
392
  function isTrial(): boolean;
@@ -403,7 +407,6 @@ declare namespace GorillaEngine {
403
407
  function getPluginMM(v: boolean): void;
404
408
  function getPluginAE(v: boolean): void;
405
409
  function getPreviewPlayer(): PreviewPlayer;
406
- function getSampleMetadata(filePath: string, overviewSize: number): string;
407
410
  function openFileChooser(config: {
408
411
  allowMultiple?: boolean;
409
412
  browseDirectory?: boolean;
@@ -412,14 +415,14 @@ declare namespace GorillaEngine {
412
415
  hint?: string;
413
416
  allowedExtensions?: string;
414
417
  defaultLocation?: string;
415
- }): void;
418
+ }): Promise<string[]>;
416
419
  /**
417
420
  * Method to convert mp3 files to wave files
418
421
  * @param mp3Filepath The path of the mp3 file to convert
419
422
  * @param wavFilePath The path where the converted file should be stored
420
423
  * @returns `true` if the convertion was successful
421
424
  */
422
- function convertMp3ToWav(mp3Filepath: string, wavFilePath: string): boolean;
425
+ function convertMp3ToWav(mp3Filepath: string, wavFilePath: string): Promise<boolean>;
423
426
  /**
424
427
  * Method to register opening and closing of the plugin editor
425
428
  * @param openCallback The callback when the plugin editor opens
@@ -431,5 +434,6 @@ declare namespace GorillaEngine {
431
434
  namespace UI {
432
435
  function loadUIfromYAML(ymlPath: string): void;
433
436
  function getControlById(id: string): Component;
437
+ function createWindow(window: Window): void;
434
438
  }
435
439
  }
@@ -1,6 +1,6 @@
1
1
  declare namespace GorillaEngine.UI {
2
2
  interface Margin {
3
- margin: {
3
+ margin: number | {
4
4
  other: number;
5
5
  left: number;
6
6
  top: number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/gorilla-engine",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
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": "65ea9cc7113a9006efd76da64cd1e4f68ccc88f3837d8c9ee9008e2e524804b6",
49
- "typeScriptVersion": "4.5"
48
+ "typesPublisherContentHash": "7f50468200354f64b8b558be5061d3dc879811a2a46ebac88c9e87dd8263a31f",
49
+ "typeScriptVersion": "4.6"
50
50
  }