@types/gorilla-engine 1.0.0 → 1.1.0

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: Mon, 16 Jan 2023 13:32:40 GMT
11
+ * Last updated: Mon, 08 May 2023 09:02:51 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `GorillaEngine`
14
14
 
@@ -16,6 +16,7 @@ declare namespace GorillaEngine.UI {
16
16
  cornerRadius: number;
17
17
  padding: ComboBoxPadding | number;
18
18
  checkmarkPadding: ComboBoxPadding;
19
+ textAlign: string;
19
20
  }
20
21
 
21
22
  interface ComboBoxProps extends Common, Bounds, Background, Clickable, Font {
@@ -4,6 +4,7 @@ declare namespace GorillaEngine.UI {
4
4
  min: number;
5
5
  max: number;
6
6
  value: number;
7
+ stepSize: number;
7
8
  }
8
9
 
9
10
  interface Knob extends KnobProps {}
@@ -2,6 +2,7 @@ declare namespace GorillaEngine.UI {
2
2
  interface LabelProps extends Common, Bounds, Background, Font, Clickable {
3
3
  text: string | number;
4
4
  format: string;
5
+ multiLine: boolean;
5
6
  }
6
7
 
7
8
  /**
@@ -1,70 +1,104 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface SliceStyle {
3
- y: number;
2
+ interface SliceStyle {
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ color: string;
7
+ image: string;
8
+ }
9
+
10
+ interface Modulation {
11
+ legacyCompatibility?: boolean;
12
+ color?: string;
13
+ visible?: boolean;
14
+ active?: boolean;
15
+ resolution?: any;
16
+ tooltip: {
17
+ enabled?: boolean;
18
+ text?: string;
19
+ font?: {
20
+ size?: number;
21
+ color: string;
22
+ }
23
+ color: string;
24
+ border: {
4
25
  width: number;
5
- height: number;
6
26
  color: string;
7
- image: string;
8
- }
27
+ radius: number;
28
+ }
29
+ };
30
+ centerLine?: {
31
+ width?: number;
32
+ backgroundColor?: string;
33
+ visible?: boolean;
34
+ };
35
+ values: any;
36
+ centerValue: {
37
+ value?: number;
38
+ backgroundColor?: string;
39
+ visible?: boolean;
40
+ };
41
+ indication?: {
42
+ enabled?: boolean;
43
+ backgroundColor?: string;
44
+ };
45
+ setValues: (values: any) => void;
46
+ }
47
+ interface GridMeasure {
48
+ fractionOfBar: number;
49
+ showLabels?: boolean;
50
+ tickHeight: number;
51
+ font?: { size: number };
52
+ }
9
53
 
10
- interface Modulation {
54
+ interface SliceEditorProps extends Common, Bounds, Background, Clickable {
55
+ slices: any;
56
+ audioLengthInSamples: number;
57
+ audioLengthInBeats: number;
58
+ minSliceSpacing: number;
59
+ canChangeSlices: boolean;
60
+ canAddSlices: boolean;
61
+ canRemoveSlices: boolean;
62
+ snapSlicesToGrid: boolean;
63
+ zoom: { start: number; end: number };
64
+ addModulation(modulation: Partial<Modulation>): Modulation;
65
+ grid: Partial<{
66
+ position: string;
67
+ height: number;
68
+ minTickSpacing: number;
69
+ minLabelSpacing: number;
70
+ enabled: boolean;
71
+ backgroundColor: string;
72
+ backgroundImage: string;
73
+ measures: GridMeasure[];
74
+ addMeasure(measure: GridMeasure): void;
75
+ }>;
76
+ sliceStyles: Partial<{
77
+ normal: Partial<SliceStyle>;
78
+ hover: Partial<SliceStyle>;
79
+ selected: Partial<SliceStyle>;
80
+ }>;
81
+ selectionAreaStyle: Partial<{
82
+ backgroundColor: string;
83
+ border: Partial<{
84
+ width: number;
85
+ radius: number;
11
86
  color: string;
12
- tooltip: string;
13
- centerLine: any;
14
- values: any;
15
- centerValue: number;
16
- }
17
- interface GridMeasure {
18
- fractionOfBar: number;
19
- showLabels: boolean;
20
- tickHeight: number;
21
- font: string;
22
- }
23
-
24
- interface SliceEditorProps extends Common, Bounds, Background, Clickable {
25
- slices: any;
26
- audioLengthInSamples: number;
27
- audioLengthInBeats: number;
28
- canChangeSlices: boolean;
29
- canAddSlices: boolean;
30
- canRemoveSlices: boolean;
31
- snapSlicesToGrid: boolean;
32
- zoom: { start: number; end: number };
33
- addModulation(modulation: Partial<Modulation>): void;
34
- grid: Partial<{
35
- position: string;
36
- height: number;
37
- minTickSpacing: number;
38
- enabled: boolean;
39
- backgroundColor: string;
40
- backgroundImage: string;
41
- measures: GridMeasure[];
42
- addMeasure(measure: GridMeasure): void;
43
- }>;
44
- sliceStyles: Partial<{
45
- normal: Partial<SliceStyle>;
46
- hover: Partial<SliceStyle>;
47
- selected: Partial<SliceStyle>;
48
- }>;
49
- selectionAreaStyle: Partial<{
50
- backgroundColor: string;
51
- border: Partial<{
52
- width: number;
53
- radius: number;
54
- color: string;
55
- }>;
56
- }>;
57
- addMarker(marker: any): void;
58
- addSlice(slice: any): void;
59
- clearSlices(): void;
60
- setZoom: (start: number, end: number) => void;
61
- mappedSampleChanged(): void;
62
- modulations: Modulation[];
63
- }
87
+ }>;
88
+ }>;
89
+ addMarker(marker: any): void;
90
+ addSlice(slice: any): void;
91
+ removeSlice(slice: any): void;
92
+ getSlicesForZoneModule(): any[];
93
+ clearSlices(): void;
94
+ setZoom: (start: number, end: number) => void;
95
+ mappedSampleChanged(): void;
96
+ modulations: Modulation[];
97
+ }
64
98
 
65
- interface SliceEditor extends SliceEditorProps {}
99
+ interface SliceEditor extends SliceEditorProps { }
66
100
 
67
- class SliceEditor extends Component {
68
- constructor(options: Partial<SliceEditorProps>);
69
- }
101
+ class SliceEditor extends Component {
102
+ constructor(options: Partial<SliceEditorProps>);
103
+ }
70
104
  }
@@ -6,7 +6,7 @@ declare namespace GorillaEngine.UI {
6
6
  placeHolderColor: string;
7
7
  highlightTextColor: string;
8
8
  highlightColor: string;
9
- cartColor: string;
9
+ caretColor: string;
10
10
  maxLength: number;
11
11
  passwordCharacter: string;
12
12
  multiLine: boolean;
@@ -16,7 +16,9 @@ declare namespace GorillaEngine.UI {
16
16
  maxValue: number;
17
17
  }
18
18
 
19
- interface TextBox extends TextBoxProps {}
19
+ interface TextBox extends TextBoxProps {
20
+ grabKeyboardFocus(): void;
21
+ }
20
22
 
21
23
  class TextBox extends Component {
22
24
  constructor(props: Partial<TextBoxProps>);
@@ -1,48 +1,58 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface WaveformDragZone {
3
- x: number;
4
- y: number;
5
- x2: number;
6
- y2: number;
7
- leftHandleImage: number;
8
- rightHandleImage: number;
9
- backgroundColor: string;
10
- overlayColor: string;
11
- leftHandleWidth: number;
12
- rightHandleWidth: number;
13
- rightHandleHeight: number;
14
- canResize: boolean;
15
- canPan: boolean;
16
- enabled: boolean;
17
- markers: Partial<{
18
- leftHandleImage: number;
19
- rightHandleImage: number;
20
- backgroundColor: string;
21
- leftHandleWidth: number;
22
- leftHandleHeight: number;
23
- rightHandleWidth: number;
24
- rightHandleHeight: number;
25
- canResize: boolean;
26
- }>;
27
- }
2
+ interface WaveformDragZone {
3
+ x: number;
4
+ y: number;
5
+ x2: number;
6
+ y2: number;
7
+ leftHandleImage: string;
8
+ rightHandleImage: string;
9
+ backgroundColor: string;
10
+ overlayColor: string;
11
+ leftHandleWidth: number;
12
+ leftHandleHeight: number;
13
+ rightHandleWidth: number;
14
+ rightHandleHeight: number;
15
+ canResize: boolean;
16
+ canPan: boolean;
17
+ enabled: boolean;
18
+ bindings: any;
19
+ }
28
20
 
29
- interface WaveformProps extends Common, Bounds, Background, Font, Clickable {
30
- waveformColor: string;
31
- gradientCenterColor: string;
32
- gradientEndColor: string;
33
- horizontalAxisColor: string;
34
- waveformUnavailableText: string;
35
- waveWidth: number;
36
- waveHorizontalSapcing: number;
37
- verticalPadding: number;
38
- fitHeight: boolean;
39
- paintCenterLine: boolean;
40
- value: number;
41
- dragzone: Partial<WaveformDragZone>;
42
- }
21
+ interface WaveformMarker {
22
+ enabled: boolean;
23
+ x: number;
24
+ y: number;
25
+ x2: number;
26
+ y2: number;
27
+ leftHandleImage: string;
28
+ rightHandleImage: string;
29
+ backgroundColor: string;
30
+ leftHandleWidth: number;
31
+ leftHandleHeight: number;
32
+ rightHandleWidth: number;
33
+ rightHandleHeight: number;
34
+ canResize: boolean;
35
+ }
43
36
 
44
- interface Waveform extends WaveformProps {}
45
- class Waveform extends Component {
46
- constructor(options: Partial<WaveformProps>);
47
- }
37
+ interface WaveformProps extends Common, Bounds, Background, Font, Clickable {
38
+ waveformColor: string;
39
+ gradientCenterColor: string;
40
+ gradientEndColor: string;
41
+ horizontalAxisColor: string;
42
+ waveformUnavailableText: string;
43
+ waveWidth: number;
44
+ initialXOffset: number;
45
+ waveHorizontalSapcing: number;
46
+ verticalPadding: number;
47
+ fitHeight: boolean;
48
+ paintCenterLine: boolean;
49
+ value: number;
50
+ dragzone: Partial<WaveformDragZone>;
51
+ markers: Partial<WaveformMarker>;
52
+ }
53
+
54
+ interface Waveform extends WaveformProps { }
55
+ class Waveform extends Component {
56
+ constructor(options: Partial<WaveformProps>);
57
+ }
48
58
  }
gorilla-engine/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Gorilla Engine 1.0
1
+ // Type definitions for Gorilla Engine 1.1
2
2
  // Project: https://gorilla-engine.com
3
3
  // Definitions by: Julian Woodward <https://github.com/jhwoodward>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -36,66 +36,287 @@
36
36
  /// <reference path = "components/Waveform.d.ts" />
37
37
 
38
38
  declare namespace GorillaEngine {
39
+ /**
40
+ * Instrument parameter session persistence
41
+ */
42
+ interface InstrumentPropertyPersistence {
39
43
  /**
40
- * Instrument parameter session persistence
41
- */
42
- interface InstrumentPropertyPersistence {
43
- private: boolean;
44
- showInHost: boolean;
45
- saveInSession: boolean;
46
- saveInPreset: boolean;
47
- }
48
- /**
49
- * Instrument property
50
- */
51
- interface InstrumentProperty {
52
- normValue: number;
53
- value: number;
54
- normValueAsync: number;
55
- valueAsync: number;
56
- defaultValue: number;
57
- minValue: number;
58
- maxValue: number;
59
- resolution: number;
60
- numSteps: number;
61
- key: string;
62
- name: string;
63
- category: string;
64
- label: string;
65
- text: string;
66
- unit: string;
67
- steps: string[];
68
- persistence: InstrumentPropertyPersistence;
69
- }
70
-
71
- /**
72
- * Instrument
73
- */
74
- interface Instrument {
75
- on(propName: string, handler: (normValue: number) => void): void;
76
- }
77
-
78
- /**
79
- * Blob
80
- */
81
- interface Blob {
82
- loadInstrument(name: string): Instrument;
83
- getInstrumentNames(): string[];
84
- }
85
-
86
- function registerUncaughtUIExceptionCallback(handler: (err: Error) => void): void;
87
- function getResourcePath(): string;
88
- function getPluginName(): string;
89
- function getManufacturerName(): string;
90
- function loadBlob(blobPath: string): Blob;
91
- function disposeInstrument(instrument: Instrument): void;
92
- function setActiveInstrument(instrument: Instrument): void;
93
- function setSessionSaveCallback(callback: any, instance: any): void;
94
- function setSessionLoadCallback(callback: any, instance: any): void;
95
- function getBuildInformation(): any;
96
-
97
- namespace UI {
98
- function loadUIfromYAML(ymlPath: string): void;
99
- function getControlById(id: string): Component;
100
- }
44
+ * Indicates that the parameter is not exposed to the host DAW, should not saved in a preset and should not be saved in the session.
45
+ */
46
+ private: boolean;
47
+ /**
48
+ * Indicates the the parameter is exposed to the host DAW.
49
+ */
50
+ showInHost: boolean;
51
+ /**
52
+ * Indicates that the parameter should be saved in the session.
53
+ */
54
+ saveInSession: boolean;
55
+ /**
56
+ * Indicates that the parameter should be saved into a preset.
57
+ */
58
+ saveInPreset: boolean;
59
+ }
60
+ /**
61
+ * Instrument property
62
+ */
63
+ interface InstrumentProperty {
64
+ /**
65
+ * A normalised representation of its value.
66
+ */
67
+ normValue: number;
68
+ /**
69
+ * Its actual value.
70
+ */
71
+ value: number;
72
+ normValueAsync: number;
73
+ valueAsync: number;
74
+ readonly defaultValue: number;
75
+ readonly minValue: number;
76
+ readonly maxValue: number;
77
+ readonly resolution: number;
78
+ /**
79
+ * The number of its steps if it's a stepped parameter
80
+ */
81
+ readonly numSteps: number;
82
+ readonly key: string;
83
+ readonly name: string;
84
+ readonly category: string;
85
+ readonly label: string;
86
+ readonly text: string;
87
+ readonly unit: string;
88
+ /**
89
+ * Its steps if it's a stepped paramter
90
+ */
91
+ readonly steps: string[];
92
+ readonly persistence: InstrumentPropertyPersistence;
93
+ }
94
+
95
+ /**
96
+ * Instrument
97
+ */
98
+ interface Instrument {
99
+ on(propName: string, handler: (normValue: number) => void): void;
100
+ /**
101
+ * Method used to retrieve a serialised module from the Gorilla Engine.
102
+ *
103
+ * @param path The path to the module that should be retrieved.
104
+ * @returns The serialised module found at the given `path` or `false` if nothing was found.
105
+ */
106
+ getModuleAtPath(path: string): string | boolean;
107
+ /**
108
+ * Method used to determine if a value from the Gorilla Engine is a module.
109
+ *
110
+ * @param path The path to the value that should be determined.
111
+ * @returns `true` if the value found at the given `path` is a module or `false` if it's not or nothing was found.
112
+ */
113
+ isModuleAtPath(path: string): boolean;
114
+ /**
115
+ * Method used to retrieve a value from the Gorilla Engine.
116
+ *
117
+ * @param path The path to the value that should be retrieved.
118
+ * @returns The value found at the given `path` or `false` if nothing was found.
119
+ */
120
+ getValueAtPath(path: string): string | object | number | Int32Array | Float64Array | boolean;
121
+
122
+ /**
123
+ * Method used to set a string at a certain path in the engine.
124
+ * This method could for example be used to set a user sample to a certain Zone in the Gorilla Engine.
125
+ *
126
+ * @param path The path to the string that should be set.
127
+ * @param value The string that should be set at the given `path`.
128
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
129
+ */
130
+ setStringAtPath(path: string, value: string): boolean;
131
+
132
+ /**
133
+ * Method used to render a section of a sample to a waveform. Commonly used to source the `value` property of the `waveform` control.
134
+ *
135
+ * @param numPoints The number of points that the waveform should be rendered into.
136
+ * @param zoneId The id of the zone whichs sample should be rendered to a waveform.
137
+ * @param start A normalised value indicating from where in the sample waveform rendering should start.
138
+ * @param end A normalised value indicating where in the sample waveform rendering should end.
139
+ * @returns The waveform of the sample found at `zoneId`.
140
+ */
141
+ getWaveformData(numPoints: number, zoneId: number, start: number, end: number): Uint8Array;
142
+
143
+ /**
144
+ * Method used to retrieve an array of integers from the Gorilla Engine.
145
+ *
146
+ * @param path The path to the array that should be retrieved.
147
+ * @returns The array of integers found at the given `path` or `false` if nothing was found.
148
+ */
149
+ getIntArrayAtPath(path: string): Int32Array | boolean;
150
+
151
+ /**
152
+ * Method used to set an array of integers at a ceterain path in the Gorilla Engine.
153
+ *
154
+ * @param path The path to the integer array that should be set.
155
+ * @param value The integer array that should be set at the given `path`.
156
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
157
+ */
158
+ setIntArrayAtPath(path: string, value: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array): boolean;
159
+
160
+ /**
161
+ * Method used to retrieve an array of doubles from the Gorilla Engine.
162
+ *
163
+ * @param path The path to the array that should be retrieved.
164
+ * @returns The array of doubles found at the given `path` or `false` if nothing was found.
165
+ */
166
+ getDoubleArrayAtPath(path: string): Float64Array | boolean;
167
+
168
+ /**
169
+ * Method used to set an array of floats or doubles at a ceterain path in the Gorilla Engine.
170
+ *
171
+ * @param path The path to the double array that should be set.
172
+ * @param value The float or double array that should be set at the given `path`.
173
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
174
+ */
175
+ setDoubleArrayAtPath(path: string, value: Float32Array | Float64Array): boolean;
176
+
177
+ /**
178
+ * Method used to retrieve a double from the Gorilla Engine.
179
+ *
180
+ * @param path The path to the double should be retrieved.
181
+ * @returns The double found at the given `path` or `false` if nothing was found.
182
+ */
183
+ getDoubleAtPath(path: string): number | boolean;
184
+
185
+ /**
186
+ * Method used to set a double at a ceterain path in the Gorilla Engine.
187
+ *
188
+ * @param path The path to the double that should be set.
189
+ * @param value The double that should be set at the given `path`.
190
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
191
+ */
192
+ setDoubleAtPath(path: string, value: number): boolean;
193
+
194
+ /**
195
+ * Method used to set an integer at a ceterain path in the Gorilla Engine.
196
+ *
197
+ * @param path The path to the integer that should be set.
198
+ * @param value The integer that should be set at the given `path`.
199
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
200
+ */
201
+ setIntAtPath(path: string, value: number): boolean;
202
+
203
+ /**
204
+ * Method used to retrieve an integer from the Gorilla Engine.
205
+ *
206
+ * @param path The path to the integer should be retrieved.
207
+ * @returns The integer found at the given `path` or `false` if nothing was found.
208
+ */
209
+ getIntAtPath(path: string): number | boolean;
210
+
211
+ /**
212
+ * Method used to insert a Gorilla Engine module at a given path.
213
+ * Attempting to set a variable-length module array entry greater than the current length of the array
214
+ * will fail (for example, to set `Groups/2` the groups `0` and `1` must exist). Setting a module always inserts
215
+ * the module at the speficied index while other value types overwrite the value at the index.
216
+ * To replace a module at a `path` use {@link Instrument#removeModuleAtPath} prior to inserting the new module.
217
+ *
218
+ * @param path The path at which the module should be inserted.
219
+ * @param value A Gorilla Enginge module serialised to JSON that should be set at the given `path`.
220
+ * @returns `true` if the module has been inserted succcessfully or `false` otherwise.
221
+ */
222
+ insertModuleAtPath(path: string, value: string): boolean;
223
+
224
+ /**
225
+ * Method used to remove a module at a given `path`.
226
+ *
227
+ * @param path The path to the module that should be removed.
228
+ * @returns `true` if the module has been removed succcessfully or `false` otherwise.
229
+ */
230
+ removeModuleAtPath(path: string): boolean;
231
+
232
+ /**
233
+ * Method used to set a normalised double at a ceterain path in the Gorilla Engine.
234
+ *
235
+ * @param path The path to the normalised double that should be set.
236
+ * @param value The normalised double that should be set at the given `path`.
237
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
238
+ */
239
+ setNormalisedDoubleAtPath(path: string, value: number): boolean;
240
+
241
+ /**
242
+ * Method used to retrieve a normalised double from the Gorilla Engine.
243
+ *
244
+ * @param path The path to the normalised double should be retrieved.
245
+ * @returns The normalised double found at the given `path` or `false` if nothing was found.
246
+ */
247
+ getNormalisedDoubleAtPath(): number | boolean;
248
+
249
+ /**
250
+ * Method used to retrieve MIDI data from the first instrument script that implements `on midi_drag`
251
+ *
252
+ * @returns Array of Midi Events
253
+ */
254
+ getMidiDragData(): Array<{ status: any, data0: any, data1: any, tickAbsolute: any }>;
255
+
256
+ /**
257
+ * Method used to send a `note on` MIDI event to the Gorilla Engine.
258
+ *
259
+ * @param key The musical key that should be triggered. The key is expected to be between `0` and `127`.
260
+ * @param velocity The velocity that the key should be triggerd with. The velocity is expected to be between `0` and `127`.
261
+ */
262
+ noteOn(key: number, velocity: number): void;
263
+
264
+ /**
265
+ * Method used to send a `note off` MIDI event to the Gorilla Engine.
266
+ *
267
+ * @param key The musical key that should be untriggered. The key is expected to be between `0` and `127`.
268
+ */
269
+ noteOff(ke: number): void;
270
+
271
+ /**
272
+ * Method used to stringify a given `value` at a certain `path` in the Gorilla Engine.
273
+ * This is useful to get a label string for parameters in the Gorilla Engine.
274
+ * The value is denormalised according to the scale of the parameter found at `path` and
275
+ * the parameter’s unit is appended to the string accordingly.
276
+ *
277
+ * @param path The path at which the value should be stringified.
278
+ * @param value A value that should be stringified at the given `path`.
279
+ * @returns `false` if the value could not be stringified or the given `value` as a `string`.
280
+ */
281
+ valueToStringAtPath(path: string, value: number): boolean | string;
282
+ }
283
+
284
+ interface Blob {
285
+ loadInstrument(name: string): Instrument;
286
+ getInstrumentNames(): string[];
287
+ }
288
+
289
+ interface PreviewPlayer {
290
+ on(eventName: string, callback: any): void;
291
+ }
292
+
293
+ function registerUncaughtUIExceptionCallback(handler: (err: Error) => void): void;
294
+ function getResourcePath(): string;
295
+ function getPluginName(): string;
296
+ function getManufacturerName(): string;
297
+ function loadBlob(blobPath: string): Blob;
298
+ function disposeInstrument(instrument: Instrument): void;
299
+ function setActiveInstrument(instrument: Instrument): void;
300
+ function setSessionSaveCallback(callback: any, instance: any): void;
301
+ function setSessionLoadCallback(callback: any, instance: any): void;
302
+ function getBuildInformation(): any;
303
+ function openURLinBrowser(path: string): void;
304
+ function getPluginMM(v: boolean): void;
305
+ function getPluginAE(v: boolean): void;
306
+ function getPreviewPlayer(): PreviewPlayer;
307
+ function openFileChooser(config: {
308
+ allowMultiple?: boolean,
309
+ browseDirectory?: boolean,
310
+ saveDialog?: boolean,
311
+ warnOnOverwrite?: boolean,
312
+ hint?: string,
313
+ allowedExtensions?: string,
314
+ defaultLocation?: string,
315
+ }): void;
316
+ let sessionSaveLoadCallbackTimeoutMs: number;
317
+
318
+ namespace UI {
319
+ function loadUIfromYAML(ymlPath: string): void;
320
+ function getControlById(id: string): Component;
321
+ }
101
322
  }
@@ -4,9 +4,9 @@ declare namespace GorillaEngine.UI {
4
4
  backgroundColor: string;
5
5
  cornerRadius: number;
6
6
  border: {
7
- width: number;
8
- color: string;
9
- focusColor: string;
7
+ width?: number;
8
+ color?: string;
9
+ focusColor?: string;
10
10
  };
11
11
  }
12
12
  }
@@ -3,7 +3,7 @@ declare namespace GorillaEngine.UI {
3
3
  filmstrip: {
4
4
  path: string;
5
5
  count: number;
6
- direction: string;
6
+ direction?: string;
7
7
  };
8
8
  animation: LottieAnimation;
9
9
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/gorilla-engine",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
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",
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "scripts": {},
22
22
  "dependencies": {},
23
- "typesPublisherContentHash": "e54ee785bb3ed2374e79e767dd76f29c6effd5a33a81e05f15ff8b4bef5ce68f",
24
- "typeScriptVersion": "4.2"
23
+ "typesPublisherContentHash": "12bdeb156f83ff2066403c0052eb859a376fa08c8ddca01cc957304ab133e2a7",
24
+ "typeScriptVersion": "4.3"
25
25
  }