@types/gorilla-engine 1.1.32 → 1.1.34

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: Fri, 17 Apr 2026 09:57:54 GMT
11
+ * Last updated: Wed, 02 Sep 2026 14:35:44 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -1,19 +1,30 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /** Properties for a source in an internal or operating-system drag operation. */
2
3
  interface DragContainerProps extends Common, Bounds, Clickable {
4
+ /** Group used to match this source with compatible drag targets. */
3
5
  dragGroup: string;
6
+ /** Data made available to an internal drag target. */
4
7
  dragContent: string;
8
+ /** Name of the action invoked when an external drag starts. */
5
9
  externalDragStartAction: string;
10
+ /** Name of the action invoked when an external drag ends. */
6
11
  externalDragEndAction: string;
12
+ /** Whether an external destination may move, rather than only copy, dragged files. */
7
13
  destinationCanMoveDraggedFiles: boolean;
14
+ /** File paths supplied to an external drag operation. */
8
15
  externallyDraggedFiles: any;
16
+ /** Name of the action invoked while a drag operation is in progress. */
9
17
  onDragging: string;
18
+ /** Name of the action invoked when an external drag starts. */
10
19
  onExternalDragStart: string;
20
+ /** Name of the action invoked when an external drag ends. */
11
21
  onExternalDragEnd: string;
12
22
  }
13
23
 
14
24
  // tslint:disable-next-line:no-empty-interface
15
25
  interface DragContainer extends DragContainerProps {}
16
26
 
27
+ /** A component that provides data or files for drag-and-drop operations. */
17
28
  class DragContainer extends Component {
18
29
  constructor(options: Partial<DragContainerProps>);
19
30
  }
@@ -1,9 +1,13 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /** Properties for a target that receives internal drag operations. */
2
3
  interface DragTargetProps extends Common, Bounds, Clickable {
4
+ /** Group of drag sources accepted by this target. */
3
5
  dragGroup: string;
6
+ /** Name of the action invoked when compatible content is dropped. */
4
7
  onDrop: string;
5
8
  }
6
9
 
10
+ /** A component that receives content from a compatible drag container. */
7
11
  class DragTarget extends Component {
8
12
  constructor(options: Partial<DragTargetProps>);
9
13
  }
@@ -1,13 +1,21 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /** Properties for a target that receives files from the operating system. */
2
3
  interface DropZoneProps extends Common, Bounds, Clickable {
4
+ /**
5
+ * File patterns accepted by the drop zone, such as `"*.wav"`.
6
+ * Include `"*"` to accept every file type.
7
+ */
3
8
  acceptedFileTypes: string[] | string;
9
+ /** Name of the action invoked when files are dragged over the component. */
4
10
  onDraggedFiles: string;
11
+ /** Name of the action invoked when a file is dropped. */
5
12
  onDroppedFile: string;
6
13
  }
7
14
 
8
15
  // tslint:disable-next-line:no-empty-interface
9
16
  interface DropZone extends DropZoneProps {}
10
17
 
18
+ /** A component that accepts files dragged from the operating system. */
11
19
  class DropZone extends Component {
12
20
  constructor(options: Partial<DropZoneProps>);
13
21
  }
@@ -1,7 +1,10 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /**
3
+ * Properties for a rotary control that edits a numeric value.
4
+ */
2
5
  interface KnobProps extends Common, Bounds, Clickable, Background, Skinnable, MIDILearn, Highlight {
3
6
  /**
4
- * The text displayed for component
7
+ * The text displayed by the control.
5
8
  */
6
9
  text: string;
7
10
  /**
@@ -21,6 +24,9 @@ declare namespace GorillaEngine.UI {
21
24
  */
22
25
  stepSize: number;
23
26
 
27
+ /**
28
+ * Whether the control runs from its maximum value to its minimum value.
29
+ */
24
30
  inverted: boolean;
25
31
  /**
26
32
  * If `true`, the knob's value can be adjusted using the mouse scroll wheel.
@@ -30,7 +36,9 @@ declare namespace GorillaEngine.UI {
30
36
  * The path to a single image used for the knob's appearance.
31
37
  */
32
38
  image: string;
33
- /** TODO:: this is rather a slider prop than a knob prop
39
+ /**
40
+ * Whether clicking a slider track moves its handle to the pointer position.
41
+ * This property only affects controls displayed as sliders.
34
42
  */
35
43
  snapsToMousePosition: boolean;
36
44
  /**
@@ -45,6 +53,9 @@ declare namespace GorillaEngine.UI {
45
53
 
46
54
  // tslint:disable-next-line:no-empty-interface
47
55
  interface Knob extends KnobProps {}
56
+ /**
57
+ * A rotary control for editing numeric values.
58
+ */
48
59
  class Knob extends Component {
49
60
  constructor(options: Partial<KnobProps>);
50
61
  }
@@ -1,4 +1,7 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /**
3
+ * Properties for a read-only text label.
4
+ */
2
5
  interface LabelProps extends Common, Bounds, Background, Font, Clickable, Margin, Keyable {
3
6
  /**
4
7
  * The initial text to display in the label. Doesn't update at runtime.
@@ -8,13 +11,16 @@ declare namespace GorillaEngine.UI {
8
11
  * The text to display in the label. Updates at runtime.
9
12
  */
10
13
  text: string | number;
14
+ /** Format string applied to the displayed value. */
11
15
  format: string;
16
+ /** Whether the label can display multiple lines of text. */
12
17
  multiLine: boolean;
18
+ /** Whether the text is scaled to fit the label's bounds. */
13
19
  stretchText: boolean;
14
20
  }
15
21
 
16
22
  /**
17
- * Use a Label to...
23
+ * A read-only control for displaying text or formatted values.
18
24
  */
19
25
  class Label extends Component {
20
26
  constructor(options: Partial<LabelProps>);
@@ -1,4 +1,5 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /** Properties for a mono or stereo audio level meter. */
2
3
  interface LevelMeterProps extends Common, Bounds, Background, Skinnable {
3
4
  /**
4
5
  * If `true`, the level meter will display and hold the highest peak level reached
@@ -62,13 +63,9 @@ declare namespace GorillaEngine.UI {
62
63
  * The thickness of the level meter's indicator.
63
64
  */
64
65
  indicatorThickness: number;
65
- /** TODO::
66
- * I have no idea that this does
67
- */
66
+ /** Start of the normalized meter range displayed by the control. */
68
67
  visibleSectionStart: number;
69
- /** TODO::
70
- * I have no idea that this does
71
- */
68
+ /** End of the normalized meter range displayed by the control. */
72
69
  visibleSectionEnd: number;
73
70
  /**
74
71
  * The direction of the level meter. This can be "horizontal" or "vertical".
@@ -78,11 +75,16 @@ declare namespace GorillaEngine.UI {
78
75
  * The current value of the level meter.
79
76
  */
80
77
  value: any;
78
+ /**
79
+ * Select which channel to show.
80
+ */
81
+ channelOffset: number;
81
82
  }
82
83
 
83
84
  // tslint:disable-next-line:no-empty-interface
84
85
  interface LevelMeter extends LevelMeterProps {}
85
86
 
87
+ /** A component that displays the current audio signal level. */
86
88
  class LevelMeter extends Component {
87
89
  constructor(options: Partial<LevelMeterProps>);
88
90
  }
@@ -9,7 +9,7 @@ declare namespace GorillaEngine.UI {
9
9
  */
10
10
  horizontalMargin?: number;
11
11
  /**
12
- * The bakcground color of the items in the list box.
12
+ * The background color of the items in the list box.
13
13
  */
14
14
  cellColor?: string;
15
15
  /**
@@ -1,4 +1,5 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /** Properties and playback methods for a Lottie animation. */
2
3
  interface LottieAnimationProps extends Common, Bounds {
3
4
  /**
4
5
  * The file path to the Lottie animation JSON file.
@@ -40,13 +41,15 @@ declare namespace GorillaEngine.UI {
40
41
  */
41
42
  setFrame(frame: number): void;
42
43
  /**
43
- * TODO:: No idea what this does
44
- * @param frame the target frame to set the animation to.
44
+ * Sets the target frame used by animated controls.
45
+ * @param frame Target frame between zero and the animation's last frame.
45
46
  */
46
47
  setTargetFrame(frame: number): void;
47
48
  /**
48
- * TODO:: No idea what this does
49
- * @param frame the target frame to set the animation to.
49
+ * Maps a value from the supplied range to the animation's frame range and displays that frame.
50
+ * @param value Value to map.
51
+ * @param min Lower bound of the value range.
52
+ * @param max Upper bound of the value range.
50
53
  */
51
54
  setFrameFromLinearTransform(value: number, min: number, max: number): void;
52
55
  setProperties(
@@ -66,6 +69,7 @@ declare namespace GorillaEngine.UI {
66
69
  ): void;
67
70
  }
68
71
 
72
+ /** A component that renders and controls a Lottie animation. */
69
73
  class LottieAnimation extends Component {
70
74
  constructor(options: Partial<LottieAnimationProps>);
71
75
  }
@@ -5,7 +5,7 @@ declare namespace GorillaEngine.UI {
5
5
  */
6
6
  midiNote: number;
7
7
  /**
8
- * The veloctiy of the pad when pressed and not controlled by midi
8
+ * The velocity sent when the pad is pressed without MIDI input.
9
9
  */
10
10
  velocity: number;
11
11
  /**
@@ -1,4 +1,5 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /** Properties and scrolling methods for a viewport containing child components. */
2
3
  interface ScrollViewProps extends Common, Bounds, Scrollable {
3
4
  /**
4
5
  * The thickness of the scrollbar in pixels.
@@ -14,8 +15,8 @@ declare namespace GorillaEngine.UI {
14
15
  * @default false
15
16
  */
16
17
  hideHorizontalScrollbar: boolean;
17
- /** TODO:: No idea if this is correct
18
- * If true, the scroll view will ignore keypress events.
18
+ /**
19
+ * Whether the scroll view declines keyboard input instead of handling it for scrolling.
19
20
  * @default false
20
21
  */
21
22
  ignoreKeypressEvent: boolean;
@@ -32,6 +33,7 @@ declare namespace GorillaEngine.UI {
32
33
  setScrollPositionProportionately(xPos: number, yPos: number): void;
33
34
  }
34
35
 
36
+ /** A scrollable viewport for child components. */
35
37
  class ScrollView extends Component {
36
38
  constructor(options: Partial<ScrollViewProps>);
37
39
  }
@@ -1,4 +1,7 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /**
3
+ * Properties for a numeric control with a handle that moves along a track.
4
+ */
2
5
  interface SliderProps extends KnobProps {
3
6
  /**
4
7
  * The direction of the slider.
@@ -9,20 +12,21 @@ declare namespace GorillaEngine.UI {
9
12
  */
10
13
  thumbImage: string;
11
14
 
12
- /**
13
- * TODO:: no idea what this does
14
- */
15
+ /** Bounds of the slider track relative to the control. */
15
16
  sliderBounds: {
17
+ /** Horizontal offset of the track in pixels. */
16
18
  x: number;
19
+ /** Vertical offset of the track in pixels. */
17
20
  y: number;
21
+ /** Width of the track in pixels. */
18
22
  width: number;
23
+ /** Height of the track in pixels. */
19
24
  height: number;
20
25
  };
21
26
  }
22
27
 
23
28
  /**
24
- * Use a slider to
25
- * - enable users to control numeric values by dragging up/down or left/right
29
+ * A control for editing numeric values by dragging horizontally or vertically.
26
30
  */
27
31
  class Slider extends Component {
28
32
  constructor(options: Partial<SliderProps>);
@@ -1,4 +1,7 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /**
3
+ * Properties for an editable or read-only text field.
4
+ */
2
5
  interface TextBoxProps extends Font, Clickable, Bounds, Background, Margin, Keyable {
3
6
  /**
4
7
  * The initial text value of the text box.
@@ -8,8 +11,8 @@ declare namespace GorillaEngine.UI {
8
11
  * The placeholder text of the text box.
9
12
  */
10
13
  placeholder: string;
11
- /** TODO:: check if it works
12
- * An additional suffix displayed in the textbox without alterting the text value.
14
+ /**
15
+ * A suffix displayed after the text without changing the text value.
13
16
  */
14
17
  unit: string;
15
18
  /**
@@ -41,8 +44,8 @@ declare namespace GorillaEngine.UI {
41
44
  */
42
45
  multiLine: boolean;
43
46
 
44
- /** TODO:: what is even the point of this?
45
- * If true, the text box will not allow user input and will be read-only.
47
+ /**
48
+ * Whether user input is disabled while the text remains selectable and readable.
46
49
  */
47
50
  readOnly: boolean;
48
51
  /**
@@ -58,10 +61,15 @@ declare namespace GorillaEngine.UI {
58
61
  * If acceptedDataType is numeric, this is the maximum value allowed in the text box.
59
62
  */
60
63
  maxValue: number;
64
+ /** Zero-based index of the first selected character. */
61
65
  highlightStart: number;
66
+ /** Zero-based index after the last selected character. */
62
67
  highlightEnd: number;
68
+ /** Name of the action invoked when a key is pressed while the text box has focus. */
63
69
  keyDownAction: string;
70
+ /** Name of the action invoked after the user changes the text. */
64
71
  textChangedAction: string;
72
+ /** Whether text changes are committed when the text box loses keyboard focus. */
65
73
  focusLostUpdate: boolean;
66
74
  }
67
75
 
@@ -69,6 +77,9 @@ declare namespace GorillaEngine.UI {
69
77
  grabKeyboardFocus(): void;
70
78
  }
71
79
 
80
+ /**
81
+ * A text field for displaying and editing string or numeric input.
82
+ */
72
83
  class TextBox extends Component {
73
84
  constructor(props: Partial<TextBoxProps>);
74
85
  }
@@ -1,16 +1,29 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /**
3
+ * Properties for a momentary button that invokes an action when clicked.
4
+ */
2
5
  interface TriggerProps extends Common, Bounds, Font, Clickable, Background, KeyboardFocus, Keyable {
6
+ /** Text displayed on the button. */
3
7
  text: string;
8
+ /** Whether the button omits its normal pressed-state behavior. */
4
9
  isDumb: boolean;
10
+ /** Images used for the button's interaction states. */
5
11
  images: {
12
+ /** Image displayed in the normal state. */
6
13
  normal?: string;
14
+ /** Image displayed while the pointer is over the button. */
7
15
  hover?: string;
16
+ /** Image displayed while the button is pressed. */
8
17
  down?: string;
9
18
  };
19
+ /** Lottie animation associated with the button. */
10
20
  animation: LottieAnimation;
11
21
  }
12
22
  // tslint:disable-next-line:no-empty-interface
13
23
  interface Trigger extends TriggerProps {}
24
+ /**
25
+ * A momentary button that invokes an action when clicked.
26
+ */
14
27
  class Trigger extends Component {
15
28
  constructor(options: Partial<TriggerProps>);
16
29
  }
gorilla-engine/index.d.ts CHANGED
@@ -471,11 +471,17 @@ declare namespace GorillaEngine {
471
471
  function getManufacturerName(): string;
472
472
  function quitApplication(): void;
473
473
  /**
474
- * Load blob at the specified path
475
- * @param blobPath the load blob
476
- * @throws if the blob could not be loaded e.g. it is not there or decryption failed
474
+ * Loads an instrument blob from the file system.
475
+ *
476
+ * The returned blob can be used to enumerate and load its instruments. Blob exports
477
+ * with separate headers must be loaded by passing the path to the first blob part.
478
+ *
479
+ * @param blobPath Absolute path to the blob file or the first part of a split blob.
480
+ * @param encryptionKey Encryption key used to decrypt the blob, when required.
481
+ * @returns The loaded blob.
482
+ * @throws If the file cannot be found or decrypted.
477
483
  */
478
- function loadBlob(blobPath: string): Blob;
484
+ function loadBlob(blobPath: string, encryptionKey?: string): Blob;
479
485
  function getPluginNRTB(enable: boolean): void;
480
486
  /**
481
487
  * Method updates the list of the automatable parameters note it does not work for all DAWS
@@ -516,12 +522,20 @@ declare namespace GorillaEngine {
516
522
  function initialiseSpliceRTO(pluginName?: string): any;
517
523
  function disposeInstrument(instrument: Instrument): void;
518
524
  /**
519
- * Activates an instrument, i.e. route MIDI to the instrument and send Audio from the isntrument to
520
- * the DAW. Currently only one instrument can be active. If there was
521
- * another instrument active before, it will get deativated.
522
- * @param instrument the instrument activate
525
+ * Activates an instrument for MIDI input and audio output.
526
+ *
527
+ * Only one instrument can be active at a time. Activating an instrument deactivates
528
+ * the previously active instrument.
529
+ *
530
+ * @param instrument The instrument to activate.
531
+ * @param streamBufferSizeSeconds Streaming buffer size in seconds. Omit to keep the current size.
532
+ * @param waitUntilPreloaded Whether to wait for sample preloading to complete before returning.
523
533
  */
524
- function setActiveInstrument(instrument: Instrument): void;
534
+ function setActiveInstrument(
535
+ instrument: Instrument,
536
+ streamBufferSizeSeconds?: number,
537
+ waitUntilPreloaded?: boolean,
538
+ ): void;
525
539
  /**
526
540
  * Create an empty dummy instrument. It can be modified with e.g. {@link Instrument.setModuleAtPath}
527
541
  * @returns the empty instrument.
@@ -534,8 +548,23 @@ declare namespace GorillaEngine {
534
548
  * @returns the instrument
535
549
  */
536
550
  function LoadInstrumentFromFile(instFilePath: string): Instrument;
537
- function setSessionSaveCallback(callback: (state: string) => string, instance: any): void;
538
- function setSessionLoadCallback(callback: (state: string) => string, instance: any): void;
551
+ /**
552
+ * Registers the callback used to serialize application state when the host saves its session.
553
+ *
554
+ * @param callback Called with additional state managed by Gorilla Engine. It must return the
555
+ * application state to store in the host session.
556
+ * @param instance Optional object used as `this` when the callback runs.
557
+ * @returns `true` when the callback was registered.
558
+ */
559
+ function setSessionSaveCallback(callback: (state: string) => string, instance?: object): boolean;
560
+ /**
561
+ * Registers the callback used to restore application state when the host loads its session.
562
+ *
563
+ * @param callback Called with the application state previously returned by the save callback.
564
+ * @param instance Optional object used as `this` when the callback runs.
565
+ * @returns `true` when the callback was registered.
566
+ */
567
+ function setSessionLoadCallback(callback: (state: string) => string, instance?: object): boolean;
539
568
  function setParametersDirty(dirty: boolean): void;
540
569
  function areParametersDirty(): boolean;
541
570
  /**
@@ -1,11 +1,19 @@
1
1
  declare namespace GorillaEngine.UI {
2
+ /** Base class for controls in the Gorilla Engine UI component tree. */
2
3
  abstract class Component {
4
+ /** Unique identifier used to look up the component. */
3
5
  id: string;
6
+ /** Components directly contained by this component. */
4
7
  children: Component[];
8
+ /** Component that contains this component. */
5
9
  parent: Component;
10
+ /** Registers a handler for an event emitted by the component. */
6
11
  on(event: string, handler: any): void;
12
+ /** Adds a component after the existing children. */
7
13
  appendChild(child: Component): void;
14
+ /** Removes a direct child component. */
8
15
  removeChild(child: Component): void;
16
+ /** Inserts a component immediately before another direct child. */
9
17
  insertBefore(child: Component, beforeChild: Component): void;
10
18
  }
11
19
  }
@@ -1,7 +1,6 @@
1
1
  declare namespace GorillaEngine.UI {
2
2
  /**
3
- * KeyboardFocus interface for Gorilla Engine UI.
4
- * Defines how a cotrol appears when it has the keyboard focus
3
+ * Defines how a control appears when it has keyboard focus.
5
4
  */
6
5
  interface KeyboardFocus {
7
6
  keyboardFocus: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/gorilla-engine",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
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",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "5b428da677257b134323d01ff432464f83b6699c1df4558fc69d2b772e963f43",
50
- "typeScriptVersion": "5.3",
49
+ "typesPublisherContentHash": "e196a9004353febf22f6a4c4e0532048375168da97eba35b4174127ae2e2733c",
50
+ "typeScriptVersion": "5.6",
51
51
  "nonNpm": true
52
52
  }