@types/gorilla-engine 1.1.16 → 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 +1 -1
- gorilla-engine/components/Curve.d.ts +27 -0
- gorilla-engine/index.d.ts +31 -0
- gorilla-engine/package.json +3 -3
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,
|
|
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" />
|
|
@@ -94,6 +95,29 @@ declare namespace GorillaEngine {
|
|
|
94
95
|
* Its steps if it's a stepped paramter
|
|
95
96
|
*/
|
|
96
97
|
readonly steps: string[];
|
|
98
|
+
/**
|
|
99
|
+
* Hint for the best type of UI control for this parameter:
|
|
100
|
+
* "default": usually a knob, could also be a slider or drag/spin control
|
|
101
|
+
* "volume": audio volume control down to silence, often a vertical slider but could be horizontal or a knob
|
|
102
|
+
* "drag": more suited to a drag/spin control because usually only a small part of the range is used
|
|
103
|
+
* "keySelect": select a MIDI note
|
|
104
|
+
* "outSelect": select an audio output (zero for default, negative values for internal busses)
|
|
105
|
+
* "modSource": select from a list of mod sources (where mod source names should be inserted instead of numbers)
|
|
106
|
+
* "voiceGroup": select from a list of voice groups (where voice group names should be inserted instead of numbers)
|
|
107
|
+
* (the above types can fall back to e.g. ControlTypeDrag if no special behaviour is implemented for them in the UI)
|
|
108
|
+
* "onOffSwitch": toggle between Off/On (could be a power switch or \"Bypass\" or \"Solo\" etc. - see parameter name)
|
|
109
|
+
* "switch": toggle between two values that are not Off/On, could also be displayed as a menu
|
|
110
|
+
* "menu": dropdown menu, could also be a multi-way switch or a stepped knob if there are not many steps
|
|
111
|
+
* "levelMeter": audio level meter: display should apply log scaling (may have multiple channels)
|
|
112
|
+
* "meter": meter that may be showing something other than audio level (may have multiple channels)
|
|
113
|
+
* "display": numeric or text display: value is not user editable
|
|
114
|
+
* "text": editable text
|
|
115
|
+
* "textBox": multi-line text with at least copy/paste of the whole text, if not full editing
|
|
116
|
+
* "array": edit multiple values e.g. as a bargraph
|
|
117
|
+
* "waveform": display a waveform overview
|
|
118
|
+
* "notVisible": not intended for display to the user
|
|
119
|
+
*/
|
|
120
|
+
readonly controlType: string[];
|
|
97
121
|
readonly persistence: InstrumentPropertyPersistence;
|
|
98
122
|
}
|
|
99
123
|
|
|
@@ -477,6 +501,13 @@ declare namespace GorillaEngine {
|
|
|
477
501
|
* @returns the empty instrument.
|
|
478
502
|
*/
|
|
479
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;
|
|
480
511
|
function setSessionSaveCallback(callback: (state: string) => string, instance: any): void;
|
|
481
512
|
function setSessionLoadCallback(callback: (state: string) => string, instance: any): void;
|
|
482
513
|
function setParametersDirty(dirty: boolean): void;
|
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.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": "
|
|
49
|
-
"typeScriptVersion": "4.
|
|
48
|
+
"typesPublisherContentHash": "651b4189def07deb94ff2160edb9add33510a430cf69a516605f3db6f20af199",
|
|
49
|
+
"typeScriptVersion": "4.7",
|
|
50
50
|
"nonNpm": true
|
|
51
51
|
}
|