@types/gorilla-engine 1.1.3 → 1.1.4

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: Wed, 20 Sep 2023 17:08:03 GMT
11
+ * Last updated: Tue, 26 Sep 2023 18:06:54 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `GorillaEngine`
14
14
 
@@ -18,7 +18,7 @@ declare namespace GorillaEngine.UI {
18
18
  checkmarkPadding: ComboBoxPadding;
19
19
  }
20
20
 
21
- interface ComboBoxProps extends Common, Bounds, Background, Clickable, Font {
21
+ interface ComboBoxProps extends Common, Bounds, Background, Clickable, Font, Highlight {
22
22
  value: number;
23
23
  /**
24
24
  * List of options
@@ -1,10 +1,23 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface KnobProps extends Common, Bounds, Clickable, Background, Skinnable {
2
+ interface KnobProps extends Common, Bounds, Clickable, Background, Skinnable, MIDILearn, Highlight {
3
3
  text: string;
4
4
  min: number;
5
5
  max: number;
6
6
  value: number;
7
7
  stepSize: number;
8
+ inverted: boolean;
9
+ scrollWheelEnabled: boolean;
10
+ thumbImage: string;
11
+ image: string;
12
+ snapsToMousePosition: boolean;
13
+ minRotation: number;
14
+ maxRotation: number;
15
+ sliderBounds: {
16
+ x: number;
17
+ y: number;
18
+ width: number;
19
+ height: number;
20
+ }
8
21
  }
9
22
 
10
23
  interface Knob extends KnobProps {}
@@ -1,8 +1,10 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface LabelProps extends Common, Bounds, Background, Font, Clickable {
2
+ interface LabelProps extends Common, Bounds, Background, Font, Clickable, Margin, Keyable {
3
+ value: any;
3
4
  text: string | number;
4
5
  format: string;
5
6
  multiLine: boolean;
7
+ stretchText: boolean;
6
8
  }
7
9
 
8
10
  /**
@@ -1,5 +1,5 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface ListBoxProps extends Common, Bounds, Font, Clickable, Background, Scrollable {
2
+ interface ListBoxProps extends Common, Bounds, Font, Clickable, Background, Scrollable, Highlight, MIDILearn {
3
3
  items?: string[];
4
4
  horizontalMargin?: number;
5
5
  cellColor?: string;
@@ -10,6 +10,7 @@ declare namespace GorillaEngine.UI {
10
10
  stop(): void;
11
11
  pause(): void;
12
12
  setFrame(frame: number): void;
13
+ setTargetFrame(frame: number): void;
13
14
  setFrameFromLinearTransform(value: number, min: number, max: number): void;
14
15
  setProperties(
15
16
  selector: string,
@@ -1,5 +1,5 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface PadProps extends Common, Bounds, Background, KeyboardFocus {
2
+ interface PadProps extends Common, Bounds, Background, KeyboardFocus, Clickable, Skinnable, Font {
3
3
  midiNote: number;
4
4
  velocity: number;
5
5
  padState: boolean;
@@ -0,0 +1,9 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface RubberbandProps extends Common, Bounds {
3
+ }
4
+
5
+ class Rubberband extends Component {
6
+ constructor(options: Partial<RubberbandProps>);
7
+ }
8
+ interface Rubberband extends RubberbandProps {}
9
+ }
@@ -3,6 +3,8 @@ declare namespace GorillaEngine.UI {
3
3
  scrollbarThickness: number;
4
4
  hideVerticalScrollbar: boolean;
5
5
  hideHorizontalScrollbar: boolean;
6
+ ignoreKeypressEvent: boolean;
7
+ scrollChildIntoView(childIndex: number): void;
6
8
  }
7
9
 
8
10
  class ScrollView extends Component {
@@ -1,6 +1,7 @@
1
1
  declare namespace GorillaEngine.UI {
2
2
  interface SliceStyle {
3
3
  y: number;
4
+ xOffset: number;
4
5
  width: number;
5
6
  height: number;
6
7
  color: string;
@@ -45,10 +46,14 @@ declare namespace GorillaEngine.UI {
45
46
  setValues: (values: any) => void;
46
47
  }
47
48
  interface GridMeasure {
48
- fractionOfBar: number;
49
- showLabels?: boolean;
50
- tickHeight: number;
51
- font?: { size: number };
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 };
52
57
  }
53
58
 
54
59
  interface SliceEditorProps extends Common, Bounds, Background, Clickable {
@@ -56,11 +61,12 @@ declare namespace GorillaEngine.UI {
56
61
  audioLengthInSamples: number;
57
62
  audioLengthInBeats: number;
58
63
  minSliceSpacing: number;
64
+ minMarkerSpacing: number;
59
65
  canChangeSlices: boolean;
60
66
  canAddSlices: boolean;
61
67
  canRemoveSlices: boolean;
62
68
  snapSlicesToGrid: boolean;
63
- zoom: { start: number; end: number };
69
+ zoom: { start: number; end: number; dragToZoomFactor: number; dragToZoomEnabled: boolean };
64
70
  addModulation(modulation: Partial<Modulation>): Modulation;
65
71
  grid: Partial<{
66
72
  position: string;
@@ -80,6 +86,7 @@ declare namespace GorillaEngine.UI {
80
86
  }>;
81
87
  selectionAreaStyle: Partial<{
82
88
  backgroundColor: string;
89
+ enabled: boolean;
83
90
  border: Partial<{
84
91
  width: number;
85
92
  radius: number;
@@ -13,7 +13,9 @@ declare namespace GorillaEngine.UI {
13
13
  width: number;
14
14
  height: number;
15
15
  cornerRadius: number;
16
- border: number;
16
+ borderSizeX: number;
17
+ borderSizeY: number;
18
+ activeColor: string;
17
19
  markDefault: boolean;
18
20
  incrementHeight: number;
19
21
  backgroundColor: string;
@@ -0,0 +1,17 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface TagBrowserProps extends Common, Bounds, Background, Font {
3
+ value: any;
4
+ tags: Tag[];
5
+ }
6
+
7
+ class TagBrowser extends Component {
8
+ constructor(options: Partial<TagBrowserProps>);
9
+ }
10
+ interface TagBrowser extends TagBrowserProps {}
11
+ }
12
+
13
+
14
+
15
+
16
+
17
+
@@ -0,0 +1,15 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface TagEditorProps extends Common, Bounds, Background, Font {
3
+ value: any;
4
+ tags: Tag[];
5
+ editable: boolean;
6
+ action: string;
7
+ removeAction: string;
8
+ }
9
+
10
+ class TagEditor extends Component {
11
+ constructor(options: Partial<TagEditorProps>);
12
+ }
13
+ interface TagEditor extends TagEditorProps {}
14
+ }
15
+
@@ -1,5 +1,5 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface TextBoxProps extends Font, Clickable, Bounds, Background {
2
+ interface TextBoxProps extends Font, Clickable, Bounds, Background, Margin, Keyable {
3
3
  text: string;
4
4
  palceholder: string;
5
5
  unit: string;
@@ -14,6 +14,11 @@ declare namespace GorillaEngine.UI {
14
14
  acceptedDataType: "integer" | "int" | "float" | "string";
15
15
  minValue: number;
16
16
  maxValue: number;
17
+ highlightStart: number;
18
+ highlightEnd: number;
19
+ keyDownAction: string;
20
+ textChangedAction: string;
21
+ focusLostUpdate: boolean;
17
22
  }
18
23
 
19
24
  interface TextBox extends TextBoxProps {
@@ -1,5 +1,5 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface ToggleProps extends Common, Bounds, Font, Clickable, Background {
2
+ interface ToggleProps extends Common, Bounds, Font, Clickable, Background, Highlight, MIDILearn, Margin {
3
3
  text: string;
4
4
  onColor: string;
5
5
  offColor: string;
@@ -1,6 +1,7 @@
1
1
  declare namespace GorillaEngine.UI {
2
- interface TriggerProps extends Common, Bounds, Font, Clickable, Background, KeyboardFocus {
2
+ interface TriggerProps extends Common, Bounds, Font, Clickable, Background, KeyboardFocus, Keyable {
3
3
  text: string;
4
+ isDumb: boolean;
4
5
  images: {
5
6
  normal?: string;
6
7
  hover?: string;
@@ -34,7 +34,7 @@ declare namespace GorillaEngine.UI {
34
34
  canResize: boolean;
35
35
  }
36
36
 
37
- interface WaveformProps extends Common, Bounds, Background, Font, Clickable {
37
+ interface WaveformProps extends Common, Bounds, Background, Font, Clickable, Margin {
38
38
  waveformColor: string;
39
39
  gradientCenterColor: string;
40
40
  gradientEndColor: string;
@@ -47,6 +47,7 @@ declare namespace GorillaEngine.UI {
47
47
  fitHeight: boolean;
48
48
  paintCenterLine: boolean;
49
49
  value: number;
50
+ drawUsingLegacy: boolean;
50
51
  dragzone: Partial<WaveformDragZone>;
51
52
  markers: Partial<WaveformMarker>;
52
53
  }
@@ -0,0 +1,19 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface XYPadProps extends Common, Bounds, Clickable, Background {
3
+ valueX: number;
4
+ valueY: number;
5
+ minX: number;
6
+ maxX: number;
7
+ minY: number;
8
+ maxY: number;
9
+ stepSizeX: number;
10
+ stepSizeY: number;
11
+ snapsToMousePosition: boolean;
12
+ thumbImage: string;
13
+ }
14
+
15
+ interface XYPad extends XYPadProps {}
16
+ class XYPad extends Component {
17
+ constructor(options: Partial<XYPadProps>);
18
+ }
19
+ }
gorilla-engine/index.d.ts CHANGED
@@ -17,6 +17,11 @@
17
17
  /// <reference path = "interfaces/KeyboardFocus.d.ts" />
18
18
  /// <reference path = "interfaces/Scrollable.d.ts" />
19
19
  /// <reference path = "interfaces/Skinnable.d.ts" />
20
+ /// <reference path = "interfaces/MIDILearn.d.ts" />
21
+ /// <reference path = "interfaces/Highlight.d.ts" />
22
+ /// <reference path = "interfaces/Keyable.d.ts" />
23
+ /// <reference path = "interfaces/Margin.d.ts" />
24
+ /// <reference path = "interfaces/Tag.d.ts" />
20
25
 
21
26
  /// <reference path = "components/AmpEnv.d.ts" />
22
27
  /// <reference path = "components/BarStepEditor.d.ts" />
@@ -40,6 +45,10 @@
40
45
  /// <reference path = "components/Trigger.d.ts" />
41
46
  /// <reference path = "components/Waveform.d.ts" />
42
47
  /// <reference path = "components/Window.d.ts" />
48
+ /// <reference path = "components/TagBrowser.d.ts" />
49
+ /// <reference path = "components/TagEditor.d.ts" />
50
+ /// <reference path = "components/XYPad.d.ts" />
51
+ /// <reference path = "components/Rubberband.d.ts" />
43
52
 
44
53
  declare namespace GorillaEngine {
45
54
  /**
@@ -302,12 +311,40 @@ declare namespace GorillaEngine {
302
311
  function registerUncaughtUIExceptionCallback(handler: (err: Error) => void): void;
303
312
  function getResourcePath(): string;
304
313
  function getPluginName(): string;
314
+ function getPluginType(): string;
315
+ function getPluginPath(): string;
316
+ function quitApplication(): void;
305
317
  function getManufacturerName(): string;
306
318
  function loadBlob(blobPath: string): Blob;
319
+ function getPluginNRTB(enable: boolean): void;
320
+ /**
321
+ * Method updates the list of the automatable parameters note it does not work for all DAWS
322
+ */
323
+ function updateHostDisplay(): void;
324
+ /**
325
+ * Method returns the Host name of the plugin is running in
326
+ * @returns The name of the host
327
+ */
328
+ function getHostDescription(): string;
329
+ function showNativeMessageBox(options: {
330
+ title: string;
331
+ message: string;
332
+ iconType: 'info' | 'question' | 'warning';
333
+ }): void;
334
+ function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): number;
335
+ function checkLicense(): boolean;
336
+ function isTrial(): boolean;
337
+ function trialExpirationTimestamp(): number;
338
+ function initialiseSpliceRTO(pluginName?: string): any;
307
339
  function disposeInstrument(instrument: Instrument): void;
308
340
  function setActiveInstrument(instrument: Instrument): void;
309
341
  function setSessionSaveCallback(callback: any, instance: any): void;
310
342
  function setSessionLoadCallback(callback: any, instance: any): void;
343
+ function setParametersDirty(dirty: boolean): void;
344
+ function areParametersDirty(): boolean;
345
+ function shouldWaitForReadySignal(): void;
346
+ function signalReady(): void;
347
+ function setParametersDirtyCallback(callback: any): void;
311
348
  function getBuildInformation(): any;
312
349
  function openURLinBrowser(path: string): void;
313
350
  function getPluginMM(v: boolean): void;
@@ -322,6 +359,19 @@ declare namespace GorillaEngine {
322
359
  allowedExtensions?: string;
323
360
  defaultLocation?: string;
324
361
  }): void;
362
+ /**
363
+ * Method to convert mp3 files to wave files
364
+ * @param mp3Filepath The path of the mp3 file to convert
365
+ * @param wavFilePath The path where the converted file should be stored
366
+ * @returns `true` if the convertion was successful
367
+ */
368
+ function convertMp3ToWav(mp3Filepath: string, wavFilePath: string): boolean;
369
+ /**
370
+ * Method to register opening and closing of the plugin editor
371
+ * @param openCallback The callback when the plugin editor opens
372
+ * @param closeCallback The callback when the plugin editor closes
373
+ */
374
+ function registerEditorCallbacks(openCallback?: any, closeCallback?: any): void;
325
375
  let sessionSaveLoadCallbackTimeoutMs: number;
326
376
 
327
377
  namespace UI {
@@ -0,0 +1,12 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface Highlight {
3
+ highlight: {
4
+ drawFilledCircle: boolean;
5
+ lineWidth: number;
6
+ x: number;
7
+ y: number;
8
+ width: number;
9
+ height: number;
10
+ };
11
+ }
12
+ }
@@ -0,0 +1,6 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface Keyable {
3
+ keyPressAction: string;
4
+ consumeEvent: boolean;
5
+ }
6
+ }
@@ -2,6 +2,8 @@ declare namespace GorillaEngine.UI {
2
2
  interface KeyboardFocus {
3
3
  keyboardFocus: {
4
4
  color?: string;
5
+ lineWidth?: number;
6
+ cornerRadius?: number;
5
7
  };
6
8
  }
7
9
  }
@@ -0,0 +1,7 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface MIDILearn {
3
+ midiLearn: {
4
+ enabled: boolean;
5
+ };
6
+ }
7
+ }
@@ -0,0 +1,11 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface Margin {
3
+ margin: {
4
+ other: number;
5
+ left: number;
6
+ top: number;
7
+ right: number;
8
+ bottom: number;
9
+ };
10
+ }
11
+ }
@@ -0,0 +1,10 @@
1
+ declare namespace GorillaEngine.UI {
2
+ interface Tag {
3
+ height: number;
4
+ borderSize: number;
5
+ cornerRadius: number;
6
+ textColor: { normal: string; active: string; header: string };
7
+ backgroundColor: { normal: string; active: string; header: string };
8
+ cancel: { x: number; width: number };
9
+ }
10
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/gorilla-engine",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
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": "1aa3f4d68bbb00e2253209f521e251eaac38ae9f43879ed886985b3163c75569",
48
+ "typesPublisherContentHash": "ecf023dc8e7796d608d0a7c933e520b488c9dc7e647a9ac2d035560d74e17b3d",
49
49
  "typeScriptVersion": "4.5"
50
50
  }