@types/gorilla-engine 1.1.30 → 1.1.31
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/AmpEnv.d.ts +44 -0
- gorilla-engine/components/BarStepEditor.d.ts +41 -2
- gorilla-engine/components/ComboBox.d.ts +63 -3
- gorilla-engine/components/Curve.d.ts +52 -0
- gorilla-engine/components/Knob.d.ts +30 -0
- gorilla-engine/components/Label.d.ts +6 -0
- gorilla-engine/components/LevelMeter.d.ts +60 -0
- gorilla-engine/components/ListBox.d.ts +24 -0
- gorilla-engine/components/LottieAnimation.d.ts +37 -0
- gorilla-engine/components/MidiKeyboard.d.ts +70 -0
- gorilla-engine/components/Pad.d.ts +13 -0
- gorilla-engine/components/Rubberband.d.ts +3 -0
- gorilla-engine/components/ScrollView.d.ts +24 -0
- gorilla-engine/components/Slider.d.ts +10 -0
- gorilla-engine/components/StepEditor.d.ts +37 -0
- gorilla-engine/components/TextBox.d.ts +45 -1
- gorilla-engine/components/Toggle.d.ts +66 -0
- gorilla-engine/components/Waveform.d.ts +117 -0
- gorilla-engine/components/Window.d.ts +12 -0
- gorilla-engine/components/XYPad.d.ts +30 -0
- gorilla-engine/index.d.ts +4 -1
- gorilla-engine/interfaces/Background.d.ts +26 -0
- gorilla-engine/interfaces/Bounds.d.ts +10 -1
- gorilla-engine/interfaces/Clickable.d.ts +34 -0
- gorilla-engine/interfaces/Common.d.ts +28 -0
- gorilla-engine/interfaces/Font.d.ts +19 -0
- gorilla-engine/interfaces/Highlight.d.ts +23 -0
- gorilla-engine/interfaces/Keyable.d.ts +7 -0
- gorilla-engine/interfaces/KeyboardFocus.d.ts +13 -0
- gorilla-engine/interfaces/MIDILearn.d.ts +6 -0
- gorilla-engine/interfaces/Margin.d.ts +12 -0
- gorilla-engine/interfaces/Scrollable.d.ts +3 -0
- gorilla-engine/interfaces/Skinnable.d.ts +17 -0
- gorilla-engine/package.json +2 -2
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
2
|
interface Font {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the font family to be used for text rendering (e.g., "Arial", "Helvetica Neue", "Roboto").
|
|
5
|
+
* The system will attempt to use this font, falling back to a default if it's unavailable.
|
|
6
|
+
*/
|
|
3
7
|
font: string;
|
|
8
|
+
/**
|
|
9
|
+
* Defines the size of the font in a numeric unit, typically pixels (px) or points (pt).
|
|
10
|
+
* Larger values result in larger text.
|
|
11
|
+
*/
|
|
4
12
|
fontSize: number;
|
|
13
|
+
/**
|
|
14
|
+
* Adjusts the spacing between individual characters (kerning) in the text.
|
|
15
|
+
* Positive values increase the space, while negative values decrease it, allowing for fine-tuned text appearance.
|
|
16
|
+
*/
|
|
5
17
|
fontKerning: number;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the color of the text. This can be a named color (e.g., "red") or a hexadecimal value (e.g., "FF0000"). To specify an RGBA color set the hex alpha as a prefix (e.g., "80FF0000").
|
|
20
|
+
*/
|
|
6
21
|
textColor: string;
|
|
22
|
+
/**
|
|
23
|
+
* Controls the alignment of the text within its bounding box.
|
|
24
|
+
* This can include horizontal (left, center, right) and vertical (top, center, bottom) alignments.
|
|
25
|
+
*/
|
|
7
26
|
textAlign:
|
|
8
27
|
| "centered left"
|
|
9
28
|
| "centered right"
|
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
|
+
/**
|
|
3
|
+
* Highlight interface for Gorilla Engine UI.
|
|
4
|
+
* This draws an automation highlight on knobs, Combobox, Toggle and listbox controls. Currently only works for AAX plugins.
|
|
5
|
+
* Note you will have to turn on this feature by setting AAXEnableParameterHighlighting in the .ugep file
|
|
6
|
+
*/
|
|
2
7
|
interface Highlight {
|
|
3
8
|
highlight: {
|
|
9
|
+
/**
|
|
10
|
+
* If this is set to true the highlight will be a filled circle else it will be a rectangle boundary
|
|
11
|
+
*/
|
|
4
12
|
drawFilledCircle: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* This determines the width of the line used to draw the highlight
|
|
15
|
+
*/
|
|
5
16
|
lineWidth: number;
|
|
17
|
+
/**
|
|
18
|
+
* The x coordinate on where to draw the highlight within the control
|
|
19
|
+
*/
|
|
6
20
|
x: number;
|
|
21
|
+
/**
|
|
22
|
+
* The y coordinate on where to draw the highlight within the control
|
|
23
|
+
*/
|
|
7
24
|
y: number;
|
|
25
|
+
/**
|
|
26
|
+
* The highlight width. Note if this is zero or less the bounds used to draw the highlight will be the control bounds
|
|
27
|
+
*/
|
|
8
28
|
width: number;
|
|
29
|
+
/**
|
|
30
|
+
* The highlight height. Note if this is zero or less the bounds used to draw the highlight will be the control bounds
|
|
31
|
+
*/
|
|
9
32
|
height: number;
|
|
10
33
|
};
|
|
11
34
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
|
+
/**
|
|
3
|
+
* Key Event interface for Gorilla Engine UI.
|
|
4
|
+
* This interface handles key press actions and event consumption.
|
|
5
|
+
*/
|
|
2
6
|
interface Keyable {
|
|
7
|
+
/**
|
|
8
|
+
* String that represents an action in a view model.
|
|
9
|
+
*/
|
|
3
10
|
keyPressAction: string;
|
|
4
11
|
consumeEvent: boolean;
|
|
5
12
|
}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
|
+
/**
|
|
3
|
+
* KeyboardFocus interface for Gorilla Engine UI.
|
|
4
|
+
* Defines how a cotrol appears when it has the keyboard focus
|
|
5
|
+
*/
|
|
2
6
|
interface KeyboardFocus {
|
|
3
7
|
keyboardFocus: {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the color of the focus border.
|
|
10
|
+
*/
|
|
4
11
|
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the line width of the focus border.
|
|
14
|
+
*/
|
|
5
15
|
lineWidth?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the corner radius of the focus border.
|
|
18
|
+
*/
|
|
6
19
|
cornerRadius?: number;
|
|
7
20
|
};
|
|
8
21
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
|
+
/** MIDILearn interface for Gorilla Engine UI.
|
|
3
|
+
* This interface is used to define the properties related to MIDI learning functionality.
|
|
4
|
+
*/
|
|
2
5
|
interface MIDILearn {
|
|
6
|
+
/**
|
|
7
|
+
* Determines if MIDI learn is enabled or not
|
|
8
|
+
*/
|
|
3
9
|
midiLearn: {
|
|
4
10
|
enabled: boolean;
|
|
5
11
|
};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
|
+
/**
|
|
3
|
+
* Margin interface for Gorilla Engine UI.
|
|
4
|
+
* Configures the positioning of the text element inside the components container. Provides more precise text alignment than the `textAlign` property.
|
|
5
|
+
*/
|
|
2
6
|
interface Margin {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the margin properties that can be applied to UI elements.
|
|
9
|
+
*/
|
|
3
10
|
margin: number | {
|
|
11
|
+
/**The default margin for sides not explicitly set. */
|
|
4
12
|
other: number;
|
|
13
|
+
/** The margin on the left side.*/
|
|
5
14
|
left: number;
|
|
15
|
+
/** The margin on the top side.*/
|
|
6
16
|
top: number;
|
|
17
|
+
/** The margin on the right side.*/
|
|
7
18
|
right: number;
|
|
19
|
+
/** The margin on the bottom side.*/
|
|
8
20
|
bottom: number;
|
|
9
21
|
};
|
|
10
22
|
}
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
2
|
interface Skinnable {
|
|
3
|
+
/**
|
|
4
|
+
* Defines properties for a filmstrip-based animation or visual sequence.
|
|
5
|
+
*/
|
|
3
6
|
filmstrip: {
|
|
7
|
+
/**
|
|
8
|
+
* The file path to the filmstrip image, which contains a series of animation frames.
|
|
9
|
+
*/
|
|
4
10
|
path: string;
|
|
11
|
+
/**
|
|
12
|
+
* The total number of individual frames contained within the filmstrip image.
|
|
13
|
+
*/
|
|
5
14
|
count: number;
|
|
15
|
+
/**
|
|
16
|
+
* Optional. Specifies the direction in which frames are arranged within the filmstrip (e.g., "horizontal", "vertical").
|
|
17
|
+
* If omitted, a default or inferred direction may be used.
|
|
18
|
+
*/
|
|
6
19
|
direction?: string;
|
|
7
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Reference to a LottieAnimation instance
|
|
23
|
+
* that this control is linked to.
|
|
24
|
+
*/
|
|
8
25
|
animation: LottieAnimation;
|
|
9
26
|
}
|
|
10
27
|
}
|
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.31",
|
|
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": "
|
|
49
|
+
"typesPublisherContentHash": "5e39daa6bc0c9e33f26203cfad41d9b1dcb89e4e943ed427f70e0dbdc2a11b29",
|
|
50
50
|
"typeScriptVersion": "5.2",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|