@types/gorilla-engine 1.1.17 → 1.1.18

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: Tue, 09 Apr 2024 11:07:05 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" />
@@ -500,6 +501,13 @@ declare namespace GorillaEngine {
500
501
  * @returns the empty instrument.
501
502
  */
502
503
  function createEmptyInstrument(): Instrument;
504
+ /**
505
+ * Load .inst file (and referenced sample files) at the specified path
506
+ * @param instFilePath the .inst file to load
507
+ * @throws if the instrument could not be loaded e.g. it is not there
508
+ * @returns the instrument
509
+ */
510
+ function LoadInstrumentFromFile(instFilePath: string): Instrument;
503
511
  function setSessionSaveCallback(callback: (state: string) => string, instance: any): void;
504
512
  function setSessionLoadCallback(callback: (state: string) => string, instance: any): void;
505
513
  function setParametersDirty(dirty: boolean): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/gorilla-engine",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
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": "651b4189def07deb94ff2160edb9add33510a430cf69a516605f3db6f20af199",
49
+ "typeScriptVersion": "4.7",
50
50
  "nonNpm": true
51
51
  }