@types/gorilla-engine 1.1.6 → 1.1.7
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, 05 Oct 2023 09:06:27 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `GorillaEngine`
|
|
14
14
|
|
|
@@ -46,14 +46,34 @@ declare namespace GorillaEngine.UI {
|
|
|
46
46
|
setValues: (values: any) => void;
|
|
47
47
|
}
|
|
48
48
|
interface GridMeasure {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
fractionOfBar: number;
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
showLabels?: boolean;
|
|
52
|
+
tickWidth: boolean;
|
|
53
|
+
tickHeight: number;
|
|
54
|
+
tickColor?: string;
|
|
55
|
+
tickImage?: string;
|
|
56
|
+
font?: { name: string; size: number; kerning: number; color: string };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface Marker {
|
|
60
|
+
value: number;
|
|
61
|
+
snapToGrid?: boolean;
|
|
62
|
+
snapToSlices?: boolean;
|
|
63
|
+
boundToSlice?: boolean;
|
|
64
|
+
fireChangeEventOnlyOnMouseUp?: boolean;
|
|
65
|
+
group?: string;
|
|
66
|
+
canPassPeers?: boolean;
|
|
67
|
+
hideCoveredSlice?: boolean;
|
|
68
|
+
overlayColorLeft?: string;
|
|
69
|
+
overlayColorRight?: string;
|
|
70
|
+
enforceValueOnConstraintViolation?: boolean;
|
|
71
|
+
valueOffsetOnConstraintViolation?: number;
|
|
72
|
+
styles?: SliceStyle[];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface Slice {
|
|
76
|
+
value: number;
|
|
57
77
|
}
|
|
58
78
|
|
|
59
79
|
interface SliceEditorProps extends Common, Bounds, Background, Clickable {
|
|
@@ -68,6 +88,7 @@ declare namespace GorillaEngine.UI {
|
|
|
68
88
|
snapSlicesToGrid: boolean;
|
|
69
89
|
zoom: { start: number; end: number; dragToZoomFactor: number; dragToZoomEnabled: boolean };
|
|
70
90
|
addModulation(modulation: Partial<Modulation>): Modulation;
|
|
91
|
+
removeModulation(modulation: Partial<Modulation>): void;
|
|
71
92
|
grid: Partial<{
|
|
72
93
|
position: string;
|
|
73
94
|
height: number;
|
|
@@ -93,12 +114,17 @@ declare namespace GorillaEngine.UI {
|
|
|
93
114
|
color: string;
|
|
94
115
|
}>;
|
|
95
116
|
}>;
|
|
96
|
-
addMarker(marker:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
117
|
+
addMarker(marker: Partial<Marker>): Marker;
|
|
118
|
+
removeMarker(marker: Partial<Marker>): void;
|
|
119
|
+
addSlice(sliceLegthInFrames: number): Slice;
|
|
120
|
+
removeSlice(slice: Slice): void;
|
|
121
|
+
getSlicesForZoneModule(): number[];
|
|
100
122
|
clearSlices(): void;
|
|
101
|
-
|
|
123
|
+
addGridMeasure(measure: Partial<GridMeasure>): GridMeasure;
|
|
124
|
+
removeGridMeasure(measure: Partial<GridMeasure>): void;
|
|
125
|
+
setModulationValues(values: number[]): void;
|
|
126
|
+
bindMarkerToSlice(slice: Slice): void;
|
|
127
|
+
unbindMarkerFromSlice(): void;
|
|
102
128
|
mappedSampleChanged(): void;
|
|
103
129
|
modulations: Modulation[];
|
|
104
130
|
}
|
gorilla-engine/index.d.ts
CHANGED
|
@@ -119,6 +119,12 @@ declare namespace GorillaEngine {
|
|
|
119
119
|
* @returns The serialised module found at the given `path` or `false` if nothing was found.
|
|
120
120
|
*/
|
|
121
121
|
getModuleAtPath(path: string): string | boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Method used to set a module in an instrument in a given path
|
|
124
|
+
* @param path The path to the module that should be retrieved.
|
|
125
|
+
* @param module The serialised module to set as a string
|
|
126
|
+
*/
|
|
127
|
+
setModuleAtPath(path: string, module: string): boolean;
|
|
122
128
|
/**
|
|
123
129
|
* Method used to determine if a value from the Gorilla Engine is a module.
|
|
124
130
|
*
|
|
@@ -338,8 +344,8 @@ declare namespace GorillaEngine {
|
|
|
338
344
|
function initialiseSpliceRTO(pluginName?: string): any;
|
|
339
345
|
function disposeInstrument(instrument: Instrument): void;
|
|
340
346
|
function setActiveInstrument(instrument: Instrument): void;
|
|
341
|
-
function setSessionSaveCallback(callback:
|
|
342
|
-
function setSessionLoadCallback(callback:
|
|
347
|
+
function setSessionSaveCallback(callback: (state: string) => string, instance: any): void;
|
|
348
|
+
function setSessionLoadCallback(callback: (state: string) => string, instance: any): void;
|
|
343
349
|
function setParametersDirty(dirty: boolean): void;
|
|
344
350
|
function areParametersDirty(): boolean;
|
|
345
351
|
function shouldWaitForReadySignal(): 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.7",
|
|
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": "253caf741a202c77d97a0b6ffb66ec24c1dd873d05ccf7c28ad6cb3b3852d86a",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|