@types/gorilla-engine 1.1.17 → 1.1.19

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: Thu, 22 Feb 2024 16:07:11 GMT
11
+ * Last updated: Wed, 25 Sep 2024 14:07:46 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -0,0 +1,27 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface CurveProps extends Common, Bounds, Background, Font, Clickable {
3
+ value: any;
4
+ paramPath: string;
5
+ color: string;
6
+ thickness: number;
7
+ handle: Partial<{
8
+ color: string;
9
+ cornerRadius: number;
10
+ width: number;
11
+ height: number;
12
+ visible: boolean;
13
+ }>;
14
+ marking: Partial<{
15
+ color: string;
16
+ textColor: string;
17
+ thickness: number;
18
+ visible: boolean;
19
+ }>;
20
+ }
21
+
22
+ // tslint:disable-next-line:no-empty-interface
23
+ interface Curve extends CurveProps {}
24
+ class Curve extends Component {
25
+ constructor(options: Partial<CurveProps>);
26
+ }
27
+ }
gorilla-engine/index.d.ts CHANGED
@@ -16,6 +16,7 @@
16
16
  /// <reference path = "components/AmpEnv.d.ts" />
17
17
  /// <reference path = "components/BarStepEditor.d.ts" />
18
18
  /// <reference path = "components/ComboBox.d.ts" />
19
+ /// <reference path = "components/Curve.d.ts" />
19
20
  /// <reference path = "components/DragContainer.d.ts" />
20
21
  /// <reference path = "components/DragTarget.d.ts" />
21
22
  /// <reference path = "components/DropZone.d.ts" />
@@ -425,6 +426,22 @@ declare namespace GorillaEngine {
425
426
  * List all instrument names contained in this blob
426
427
  */
427
428
  getInstrumentNames(): string[];
429
+ /**
430
+ * Read an item from the blob table of contents
431
+ */
432
+ getValueFromTOC(key: string): string;
433
+ /**
434
+ * Get the unique ID of the blob
435
+ */
436
+ readonly uuid: string;
437
+ /**
438
+ * Get the version/timestamp string of the first blob part, if any
439
+ */
440
+ readonly part1version: string;
441
+ /**
442
+ * Get the version/timestamp string of the second blob part, if any
443
+ */
444
+ readonly part2version: string;
428
445
  }
429
446
 
430
447
  interface PreviewPlayer {
@@ -500,6 +517,13 @@ declare namespace GorillaEngine {
500
517
  * @returns the empty instrument.
501
518
  */
502
519
  function createEmptyInstrument(): Instrument;
520
+ /**
521
+ * Load .inst file (and referenced sample files) at the specified path
522
+ * @param instFilePath the .inst file to load
523
+ * @throws if the instrument could not be loaded e.g. it is not there
524
+ * @returns the instrument
525
+ */
526
+ function LoadInstrumentFromFile(instFilePath: string): Instrument;
503
527
  function setSessionSaveCallback(callback: (state: string) => string, instance: any): void;
504
528
  function setSessionLoadCallback(callback: (state: string) => string, instance: any): void;
505
529
  function setParametersDirty(dirty: boolean): void;
@@ -566,5 +590,11 @@ declare namespace GorillaEngine {
566
590
  * @param window the window to show
567
591
  */
568
592
  function createWindow(window: Window): void;
593
+ /**
594
+ * Sets the postion where the settings button is located
595
+ * @param x the x position to place the settings button
596
+ * @param y the y position to place the settings button
597
+ */
598
+ function setSettingsButtonPosition(x: number, y: number): void;
569
599
  }
570
600
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/gorilla-engine",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
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,7 +45,7 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "27b30f376d60074704e9d017e48e6935268e2a7986fc6b24ba4d16eaa759f5dd",
49
- "typeScriptVersion": "4.6",
48
+ "typesPublisherContentHash": "25af3b5628685726402e71fee5952f86881c72d3f01593c0d348711d59b104e3",
49
+ "typeScriptVersion": "4.8",
50
50
  "nonNpm": true
51
51
  }