litegui.ts 1.0.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.
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/@types/Inspector/index.d.ts +462 -0
- package/dist/@types/Inspector/index.d.ts.map +1 -0
- package/dist/@types/globals/index.d.ts +10 -0
- package/dist/@types/globals/index.d.ts.map +1 -0
- package/dist/Pickr/pickr.es5.min.js +3 -0
- package/dist/Pickr/pickr.es5.min.js.map +1 -0
- package/dist/Pickr/pickr.min.js +3 -0
- package/dist/Pickr/pickr.min.js.map +1 -0
- package/dist/Pickr/themes/classic.min.css +2 -0
- package/dist/Pickr/themes/monolith.min.css +2 -0
- package/dist/Pickr/themes/nano.min.css +2 -0
- package/dist/area.d.ts +277 -0
- package/dist/area.d.ts.map +1 -0
- package/dist/console.d.ts +27 -0
- package/dist/console.d.ts.map +1 -0
- package/dist/core.d.ts +438 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/dialog.d.ts +369 -0
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dragger.d.ts +132 -0
- package/dist/dragger.d.ts.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/inspector/array.d.ts +76 -0
- package/dist/inspector/array.d.ts.map +1 -0
- package/dist/inspector/button.d.ts +62 -0
- package/dist/inspector/button.d.ts.map +1 -0
- package/dist/inspector/checkbox.d.ts +50 -0
- package/dist/inspector/checkbox.d.ts.map +1 -0
- package/dist/inspector/color.d.ts +43 -0
- package/dist/inspector/color.d.ts.map +1 -0
- package/dist/inspector/combo.d.ts +76 -0
- package/dist/inspector/combo.d.ts.map +1 -0
- package/dist/inspector/dataTree.d.ts +20 -0
- package/dist/inspector/dataTree.d.ts.map +1 -0
- package/dist/inspector/file.d.ts +57 -0
- package/dist/inspector/file.d.ts.map +1 -0
- package/dist/inspector/flag.d.ts +36 -0
- package/dist/inspector/flag.d.ts.map +1 -0
- package/dist/inspector/icon.d.ts +60 -0
- package/dist/inspector/icon.d.ts.map +1 -0
- package/dist/inspector/index.d.ts +24 -0
- package/dist/inspector/index.d.ts.map +1 -0
- package/dist/inspector/info.d.ts +47 -0
- package/dist/inspector/info.d.ts.map +1 -0
- package/dist/inspector/inspector.d.ts +350 -0
- package/dist/inspector/inspector.d.ts.map +1 -0
- package/dist/inspector/line.d.ts +20 -0
- package/dist/inspector/line.d.ts.map +1 -0
- package/dist/inspector/list.d.ts +153 -0
- package/dist/inspector/list.d.ts.map +1 -0
- package/dist/inspector/number.d.ts +85 -0
- package/dist/inspector/number.d.ts.map +1 -0
- package/dist/inspector/pad.d.ts +66 -0
- package/dist/inspector/pad.d.ts.map +1 -0
- package/dist/inspector/seperator.d.ts +15 -0
- package/dist/inspector/seperator.d.ts.map +1 -0
- package/dist/inspector/slider.d.ts +55 -0
- package/dist/inspector/slider.d.ts.map +1 -0
- package/dist/inspector/string.d.ts +71 -0
- package/dist/inspector/string.d.ts.map +1 -0
- package/dist/inspector/stringButton.d.ts +45 -0
- package/dist/inspector/stringButton.d.ts.map +1 -0
- package/dist/inspector/tags.d.ts +53 -0
- package/dist/inspector/tags.d.ts.map +1 -0
- package/dist/inspector/textArea.d.ts +48 -0
- package/dist/inspector/textArea.d.ts.map +1 -0
- package/dist/inspector/tree.d.ts +41 -0
- package/dist/inspector/tree.d.ts.map +1 -0
- package/dist/inspector/vector.d.ts +64 -0
- package/dist/inspector/vector.d.ts.map +1 -0
- package/dist/litegui.css +2 -0
- package/dist/litegui.css.map +1 -0
- package/dist/litegui.d.ts +439 -0
- package/dist/litegui.d.ts.map +1 -0
- package/dist/litegui.js +11898 -0
- package/dist/litegui.js.map +1 -0
- package/dist/litegui.mini.js +1 -0
- package/dist/menubar.d.ts +279 -0
- package/dist/menubar.d.ts.map +1 -0
- package/dist/panel.d.ts +124 -0
- package/dist/panel.d.ts.map +1 -0
- package/dist/table.d.ts +105 -0
- package/dist/table.d.ts.map +1 -0
- package/dist/tabs.d.ts +426 -0
- package/dist/tabs.d.ts.map +1 -0
- package/dist/utilities.d.ts +508 -0
- package/dist/utilities.d.ts.map +1 -0
- package/dist/widgets/button.d.ts +33 -0
- package/dist/widgets/button.d.ts.map +1 -0
- package/dist/widgets/checkbox.d.ts +36 -0
- package/dist/widgets/checkbox.d.ts.map +1 -0
- package/dist/widgets/complexList.d.ts +83 -0
- package/dist/widgets/complexList.d.ts.map +1 -0
- package/dist/widgets/contextMenu.d.ts +97 -0
- package/dist/widgets/contextMenu.d.ts.map +1 -0
- package/dist/widgets/index.d.ts +10 -0
- package/dist/widgets/index.d.ts.map +1 -0
- package/dist/widgets/lineEditor.d.ts +112 -0
- package/dist/widgets/lineEditor.d.ts.map +1 -0
- package/dist/widgets/list.d.ts +59 -0
- package/dist/widgets/list.d.ts.map +1 -0
- package/dist/widgets/listBox.d.ts +47 -0
- package/dist/widgets/listBox.d.ts.map +1 -0
- package/dist/widgets/searchBox.d.ts +43 -0
- package/dist/widgets/searchBox.d.ts.map +1 -0
- package/dist/widgets/slider.d.ts +61 -0
- package/dist/widgets/slider.d.ts.map +1 -0
- package/dist/widgets/tree.d.ts +348 -0
- package/dist/widgets/tree.d.ts.map +1 -0
- package/package.json +81 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 by Alvaro Estrada
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
LITEGUI.TS
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
First of all, I want to credit the original author of [litegui.js](https://github.com/jagenjo/litegui.js), [Javi Agenjo](https://github.com/jagenjo). Even though this is a typescript port of the original library, there are some breaking changes that make it not backwards compatible with the original library.
|
|
5
|
+
|
|
6
|
+
LiteGUI.ts is a typescript library to create webapps with a desktop look-alike user interface, similar to [imgui](https://github.com/ocornut/imgui). All the widgets, panels,
|
|
7
|
+
dialogs, etc are created from code instead of HTML. The upside of this is that this helps to create more dynamic
|
|
8
|
+
interfaces and gives a lot of flexibility. The downside is that you'll need to write some code to make it all work. If
|
|
9
|
+
you're looking for a library that just needs some HTML and a couple of event handlers to work, litegui is not what
|
|
10
|
+
you're looking for. On the other hand, any advanced UI will need a lot of coding and in creating advanced UI's litegui shines.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
Creating a UI
|
|
15
|
+
-----------
|
|
16
|
+
|
|
17
|
+
Start with the following index.html:
|
|
18
|
+
```html
|
|
19
|
+
<!DOCTYPE html>
|
|
20
|
+
<html>
|
|
21
|
+
<head>
|
|
22
|
+
<title>Algae</title>
|
|
23
|
+
<link type="text/css" rel="stylesheet" href="dist/litegui.css">
|
|
24
|
+
|
|
25
|
+
<script type="application/javascript" src="dist/litegui.js"></script>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<script src="init.js"></script>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Add the following to init.js:
|
|
34
|
+
```javascript
|
|
35
|
+
// Initialize the library
|
|
36
|
+
LiteGUI.init();
|
|
37
|
+
|
|
38
|
+
// Create a menu bar
|
|
39
|
+
var menu = new LiteGUI.Menubar();
|
|
40
|
+
|
|
41
|
+
// This will create a File menu button with New and Settings listed under it
|
|
42
|
+
menu.add('File/New');
|
|
43
|
+
menu.add('File/Settings');
|
|
44
|
+
// This will be shown greyed out
|
|
45
|
+
menu.add('File/I\'m not clickable', { disabled: true });
|
|
46
|
+
|
|
47
|
+
// Let's add a second main menu button
|
|
48
|
+
menu.add('Help/Help');
|
|
49
|
+
menu.add('Help/About');
|
|
50
|
+
|
|
51
|
+
// Add the menu bar to the main container
|
|
52
|
+
LiteGUI.add(menu);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Now open index.html in your browser. You should see a menu bar on the top of the screen. Right now it's not doing anything when you click on the menu items. Let's add a dialog with interactions so you can see how it works.
|
|
56
|
+
|
|
57
|
+
Add the following code to init.js after the call to LiteGUI.init():
|
|
58
|
+
```javascript
|
|
59
|
+
function createSettingsDialog() {
|
|
60
|
+
// Create a new dialog
|
|
61
|
+
var dialog = new LiteGUI.Dialog('Settings', { title:'Settings', close: true, minimize: false, width: 300, height: 500, scroll: false, resizable: false, draggable: true });
|
|
62
|
+
|
|
63
|
+
// Create a collection of widgets
|
|
64
|
+
var widgets = new LiteGUI.Inspector();
|
|
65
|
+
var nameWidget = widgets.addString("Your name","foo");
|
|
66
|
+
var ageWidget = widgets.addNumber("Your age", 35, { min: 0, max: 125 });
|
|
67
|
+
|
|
68
|
+
dialog.add(widgets);
|
|
69
|
+
|
|
70
|
+
// Placeholder function to show the new settings
|
|
71
|
+
function applySettings() {
|
|
72
|
+
console.log("Your name is " + nameWidget.getValue() + ", and you are " + ageWidget.getValue() + " years old");
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Add some buttons
|
|
76
|
+
dialog.addButton('Ok', { close: true, callback: applySettings });
|
|
77
|
+
dialog.addButton('Apply', { close: false, callback: applySettings });
|
|
78
|
+
dialog.addButton('Cancel',{ close: 'fade' });
|
|
79
|
+
|
|
80
|
+
return dialog;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
var settingsDialog = createSettingsDialog();
|
|
84
|
+
|
|
85
|
+
// Dialogs are shown on creation, let's hide it until the settings menu item is clicked
|
|
86
|
+
settingsDialog.hide();
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
And change the initialization of the menu bar:
|
|
90
|
+
```javascript
|
|
91
|
+
menu.add('File/Settings', {callback: function() { settingsDialog.show(); } });
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Now when you click the setting item, you should see a dialog asking about your name and age.
|
|
95
|
+
|
|
96
|
+
Check the [examples](examples) and [guides](guides) folders for more information.
|
|
97
|
+
|
|
98
|
+
Special thanks to
|
|
99
|
+
----------------
|
|
100
|
+
- [Javi Agenjo](https://github.com/jagenjo) for creating the original litegui.js library
|
|
101
|
+
- [Pickr](https://github.com/Simonwep/pickr) for the color picker widget
|
|
102
|
+
- [Andres Sandoval](https://github.com/Ansaor04) and [Mario Villalvazo](https://github.com/MarioVillalvazo) for the initial conversion to typescript
|
|
103
|
+
|
|
104
|
+
Final note
|
|
105
|
+
----------------
|
|
106
|
+
Why did I do this? Coming from a C++ background, I was familiar with ImGui and looking for something similar to create simple interfaces for web games the same as I did with ImGui. I found the original library almost 6 years ago, I still use it, turned it into a typescript library because that's what I was using at the time but it was a private repository. I know that now with LLMs it's easier to create interfaces, but I still find this library useful just to have a reliable tool that it's not meant to see production but it's great for development and testing. I hope that other people find it useful too.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
import type { Inspector } from "../../inspector/inspector";
|
|
2
|
+
import type { FileAddedResponse } from "../../inspector/file";
|
|
3
|
+
import type { TreeData } from "../../widgets/tree";
|
|
4
|
+
/**
|
|
5
|
+
***********************************************************************************************
|
|
6
|
+
* Inspector types
|
|
7
|
+
***********************************************************************************************
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Union type representing possible values for inspector widgets.
|
|
11
|
+
*/
|
|
12
|
+
export type InspectorValue = number | string | boolean | InspectorValue[] | {
|
|
13
|
+
[key: string]: InspectorValue;
|
|
14
|
+
} | FileAddedResponse | TreeData | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* String union type defining all supported widget types in the inspector.
|
|
17
|
+
*/
|
|
18
|
+
export type InspectorWidgetTypes = 'null' | 'undefined' | 'title' | 'info' | 'number' | 'slide' | 'string' | 'text' | 'textarea' | 'color' | 'boolean' | 'checkbox' | 'icon' | 'vec2' | 'vector2' | 'vec3' | 'vector3' | 'vec4' | 'vector 4' | 'enum' | 'string' | 'dropdown' | 'combo' | 'button' | 'buttons' | 'file' | 'line' | 'list' | 'tree' | 'datatree' | 'pad' | 'array' | 'separator' | 'function';
|
|
19
|
+
/**
|
|
20
|
+
***********************************************************************************************
|
|
21
|
+
* Inspector options
|
|
22
|
+
***********************************************************************************************
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Configuration options for creating an Inspector instance.
|
|
26
|
+
* @interface InspectorOptions
|
|
27
|
+
*/
|
|
28
|
+
export interface InspectorOptions {
|
|
29
|
+
/**
|
|
30
|
+
* Type identifier for the inspector.
|
|
31
|
+
*/
|
|
32
|
+
type?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Parent element to append the inspector to.
|
|
35
|
+
*/
|
|
36
|
+
parent?: HTMLElement;
|
|
37
|
+
/**
|
|
38
|
+
* Callback function triggered when any value in the inspector changes.
|
|
39
|
+
* @param {string} [name] The name of the property that changed.
|
|
40
|
+
* @param {InspectorValue} [value] The new value.
|
|
41
|
+
* @param {InspectorWidget} [element] The widget element that triggered the change.
|
|
42
|
+
*/
|
|
43
|
+
onChange?: (name?: string, value?: InspectorValue, element?: InspectorWidget) => void;
|
|
44
|
+
/**
|
|
45
|
+
* If true, disables the default scroll behavior.
|
|
46
|
+
*/
|
|
47
|
+
noscroll?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Width for the widgets area.
|
|
50
|
+
*/
|
|
51
|
+
widgetsWidth?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Width for the name/label area.
|
|
54
|
+
*/
|
|
55
|
+
nameWidth?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Height of the inspector.
|
|
58
|
+
*/
|
|
59
|
+
height?: string | number;
|
|
60
|
+
/**
|
|
61
|
+
* Width of the inspector.
|
|
62
|
+
*/
|
|
63
|
+
width?: string | number;
|
|
64
|
+
/**
|
|
65
|
+
* If true, renders widgets in a single line layout.
|
|
66
|
+
*/
|
|
67
|
+
oneLine?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* If true, uses full width for widgets.
|
|
70
|
+
*/
|
|
71
|
+
full?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Offset width adjustment.
|
|
74
|
+
*/
|
|
75
|
+
offsetWidth?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Offset height adjustment.
|
|
78
|
+
*/
|
|
79
|
+
offsetHeight?: number;
|
|
80
|
+
/**
|
|
81
|
+
* CSS class name to add to the inspector container.
|
|
82
|
+
*/
|
|
83
|
+
className?: string;
|
|
84
|
+
/**
|
|
85
|
+
* ID attribute for the inspector container.
|
|
86
|
+
*/
|
|
87
|
+
id?: string;
|
|
88
|
+
/**
|
|
89
|
+
* If true, the inspector starts collapsed.
|
|
90
|
+
*/
|
|
91
|
+
collapsed?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* If true, prevents the inspector from being collapsible.
|
|
94
|
+
*/
|
|
95
|
+
noCollapse?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The object instance associated with the inspector.
|
|
98
|
+
*/
|
|
99
|
+
instance?: object;
|
|
100
|
+
/**
|
|
101
|
+
* Number of widgets per row.
|
|
102
|
+
*/
|
|
103
|
+
widgetsPerRow?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Callback function executed when the inspector collapse state changes.
|
|
106
|
+
* @param {boolean} value True if collapsed, false otherwise.
|
|
107
|
+
*/
|
|
108
|
+
callback?: (value: boolean) => void;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Options related to processing or updating an element.
|
|
112
|
+
* @interface ProcessElementOptions
|
|
113
|
+
*/
|
|
114
|
+
export interface ProcessElementOptions {
|
|
115
|
+
/**
|
|
116
|
+
* Callback function triggered on update.
|
|
117
|
+
* @returns {unknown} return value.
|
|
118
|
+
*/
|
|
119
|
+
onUpdate?: () => unknown;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Options for appending widgets to the DOM.
|
|
123
|
+
* @interface AppendOptions
|
|
124
|
+
*/
|
|
125
|
+
export interface AppendOptions {
|
|
126
|
+
/**
|
|
127
|
+
* Parent HTMLDivElement to append the widget to.
|
|
128
|
+
*/
|
|
129
|
+
widgetParent?: HTMLDivElement;
|
|
130
|
+
/**
|
|
131
|
+
* HTMLDivElement to replace with the new widget.
|
|
132
|
+
*/
|
|
133
|
+
replace?: HTMLDivElement;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Options for adding a container.
|
|
137
|
+
* @interface AddContainerOptions
|
|
138
|
+
*/
|
|
139
|
+
export interface AddContainerOptions extends HTMLDivElementOptions {
|
|
140
|
+
/**
|
|
141
|
+
* Number of widgets per row in the container.
|
|
142
|
+
*/
|
|
143
|
+
widgetPerRow?: number;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Options for beginning a group of widgets.
|
|
147
|
+
* @interface BeginGroupOptions
|
|
148
|
+
*/
|
|
149
|
+
export interface BeginGroupOptions extends AppendOptions {
|
|
150
|
+
/**
|
|
151
|
+
* Title of the group.
|
|
152
|
+
*/
|
|
153
|
+
title?: string;
|
|
154
|
+
/**
|
|
155
|
+
* If true, the group starts collapsed.
|
|
156
|
+
*/
|
|
157
|
+
collapsed?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Content height of the group.
|
|
160
|
+
*/
|
|
161
|
+
height?: number | string;
|
|
162
|
+
/**
|
|
163
|
+
* If true, the group content is scrollable.
|
|
164
|
+
*/
|
|
165
|
+
scrollable?: boolean;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Common options for HTMLDivElements in the inspector.
|
|
169
|
+
* @interface HTMLDivElementOptions
|
|
170
|
+
*/
|
|
171
|
+
export interface HTMLDivElementOptions {
|
|
172
|
+
/**
|
|
173
|
+
* CSS class name to add to the element.
|
|
174
|
+
*/
|
|
175
|
+
className?: string;
|
|
176
|
+
/**
|
|
177
|
+
* ID attribute for the element.
|
|
178
|
+
*/
|
|
179
|
+
id?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Width of the element.
|
|
182
|
+
*/
|
|
183
|
+
width?: string | number;
|
|
184
|
+
/**
|
|
185
|
+
* Height of the element.
|
|
186
|
+
*/
|
|
187
|
+
height?: string | number;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Comprehensive options for creating a widget.
|
|
191
|
+
* @interface CreateWidgetOptions
|
|
192
|
+
*/
|
|
193
|
+
export interface CreateWidgetOptions extends AppendOptions, ProcessElementOptions, HTMLDivElementOptions {
|
|
194
|
+
/**
|
|
195
|
+
* Title or label for the widget. Can be an array for multiple titles.
|
|
196
|
+
*/
|
|
197
|
+
title?: string | string[];
|
|
198
|
+
/**
|
|
199
|
+
* Text to display before the title.
|
|
200
|
+
*/
|
|
201
|
+
preTitle?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Internal name for the widget.
|
|
204
|
+
*/
|
|
205
|
+
widgetName?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Width of the name/label section.
|
|
208
|
+
*/
|
|
209
|
+
nameWidth?: number | string;
|
|
210
|
+
/**
|
|
211
|
+
* Width of the content section.
|
|
212
|
+
*/
|
|
213
|
+
contentWidth?: number | string;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Options for handling widget value changes.
|
|
217
|
+
* @interface WidgetChangeOptions
|
|
218
|
+
*/
|
|
219
|
+
export interface WidgetChangeOptions {
|
|
220
|
+
/**
|
|
221
|
+
* If true, skips the widget change event.
|
|
222
|
+
*/
|
|
223
|
+
skipWChange?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Callback function triggered when the widget value changes.
|
|
226
|
+
* @param {InspectorValue} value The new value.
|
|
227
|
+
* @param {Event} [e] The event object.
|
|
228
|
+
*/
|
|
229
|
+
callback?: ((value: InspectorValue, e?: Event) => void) | ((...args: unknown[]) => void);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Options for creating a property widget bound to an object instance.
|
|
233
|
+
* @interface PropertyOptions
|
|
234
|
+
*/
|
|
235
|
+
export interface PropertyOptions extends GenericCreationOptions {
|
|
236
|
+
/**
|
|
237
|
+
* The object instance containing the property.
|
|
238
|
+
*/
|
|
239
|
+
instance?: object;
|
|
240
|
+
/**
|
|
241
|
+
* The name of the property variable.
|
|
242
|
+
*/
|
|
243
|
+
varname?: string | number;
|
|
244
|
+
/**
|
|
245
|
+
* The widget type or instance.
|
|
246
|
+
*/
|
|
247
|
+
widget?: InspectorWidgetTypes | string;
|
|
248
|
+
/**
|
|
249
|
+
* Callback function triggered on change.
|
|
250
|
+
* @param {unknown} [value] The new value.
|
|
251
|
+
* @param {Event} [e] The event object.
|
|
252
|
+
*/
|
|
253
|
+
callback?: ((value?: unknown, e?: Event) => void) | ((...args: unknown[]) => void);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Generic options for creating various types of widgets.
|
|
257
|
+
* @interface GenericCreationOptions
|
|
258
|
+
*/
|
|
259
|
+
export interface GenericCreationOptions extends CreateWidgetOptions {
|
|
260
|
+
/**
|
|
261
|
+
* The type of widget to create.
|
|
262
|
+
*/
|
|
263
|
+
type?: InspectorWidgetTypes;
|
|
264
|
+
/**
|
|
265
|
+
* The name/label of the widget.
|
|
266
|
+
*/
|
|
267
|
+
name?: string;
|
|
268
|
+
/**
|
|
269
|
+
* The initial value of the widget.
|
|
270
|
+
*/
|
|
271
|
+
value?: InspectorValue;
|
|
272
|
+
/**
|
|
273
|
+
* Additional creation options.
|
|
274
|
+
*/
|
|
275
|
+
options?: CreateWidgetOptions;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Options for adding a title widget.
|
|
279
|
+
* @interface AddTitleOptions
|
|
280
|
+
*/
|
|
281
|
+
export interface AddTitleOptions extends AppendOptions {
|
|
282
|
+
/**
|
|
283
|
+
* Help text to display (e.g., in a tooltip).
|
|
284
|
+
*/
|
|
285
|
+
help?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
***********************************************************************************************
|
|
289
|
+
* Inspector Widgets
|
|
290
|
+
*********************************************************************************************
|
|
291
|
+
*/
|
|
292
|
+
/**
|
|
293
|
+
* Interface for an inspector container element.
|
|
294
|
+
* @interface InspectorContainer
|
|
295
|
+
*/
|
|
296
|
+
export interface InspectorContainer extends HTMLDivElement {
|
|
297
|
+
/**
|
|
298
|
+
* Refreshes the container.
|
|
299
|
+
*/
|
|
300
|
+
refresh: () => void;
|
|
301
|
+
/**
|
|
302
|
+
* Callback executed when the container is refreshed.
|
|
303
|
+
* @param {InspectorContainer} container The container being refreshed.
|
|
304
|
+
*/
|
|
305
|
+
onRefresh: (container: InspectorContainer) => void;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Interface for an inspector section element.
|
|
309
|
+
* @interface InspectorSection
|
|
310
|
+
*/
|
|
311
|
+
export interface InspectorSection extends HTMLElement {
|
|
312
|
+
/**
|
|
313
|
+
* Reference to a parent or associated section.
|
|
314
|
+
*/
|
|
315
|
+
section?: InspectorSection;
|
|
316
|
+
/**
|
|
317
|
+
* The title element of the section.
|
|
318
|
+
*/
|
|
319
|
+
sectionTitle?: Element;
|
|
320
|
+
/**
|
|
321
|
+
* The object instance associated with the section.
|
|
322
|
+
*/
|
|
323
|
+
instance?: object;
|
|
324
|
+
/**
|
|
325
|
+
* Internal stack for container management.
|
|
326
|
+
*/
|
|
327
|
+
lastContainerStack?: InspectorContainer[];
|
|
328
|
+
/**
|
|
329
|
+
* Refreshes the section.
|
|
330
|
+
*/
|
|
331
|
+
refresh: () => void;
|
|
332
|
+
/**
|
|
333
|
+
* Callback executed when the section is refreshed.
|
|
334
|
+
* @param {InspectorSection} widget The section being refreshed.
|
|
335
|
+
*/
|
|
336
|
+
onRefresh: (widget: InspectorSection) => void;
|
|
337
|
+
/**
|
|
338
|
+
* Clean up or end the section.
|
|
339
|
+
*/
|
|
340
|
+
end: () => void;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Base interface for an inspector widget.
|
|
344
|
+
* @interface InspectorWidget
|
|
345
|
+
*/
|
|
346
|
+
export interface InspectorWidget extends HTMLDivElement {
|
|
347
|
+
/**
|
|
348
|
+
* Reference to the Inspector instance.
|
|
349
|
+
*/
|
|
350
|
+
inspector?: Inspector;
|
|
351
|
+
/**
|
|
352
|
+
* Reference to the section containing this widget.
|
|
353
|
+
*/
|
|
354
|
+
section?: InspectorSection;
|
|
355
|
+
/**
|
|
356
|
+
* Configuration options used to create this widget.
|
|
357
|
+
*/
|
|
358
|
+
options?: CreateWidgetOptions;
|
|
359
|
+
/**
|
|
360
|
+
* The name of the widget.
|
|
361
|
+
*/
|
|
362
|
+
name?: string;
|
|
363
|
+
/**
|
|
364
|
+
* The content element of the widget.
|
|
365
|
+
*/
|
|
366
|
+
content?: HTMLElement;
|
|
367
|
+
/**
|
|
368
|
+
* Callback function executed when the widget is updated.
|
|
369
|
+
* @param {InspectorWidget} widget The widget being updated.
|
|
370
|
+
*/
|
|
371
|
+
onWidgetUpdate?: (widget: InspectorWidget) => void;
|
|
372
|
+
/**
|
|
373
|
+
* Gets the current value of the widget.
|
|
374
|
+
* @returns {InspectorValue} The current value.
|
|
375
|
+
*/
|
|
376
|
+
getValue?: () => InspectorValue;
|
|
377
|
+
/**
|
|
378
|
+
* Sets the value of the widget.
|
|
379
|
+
* @param {InspectorValue} [value] The value to set.
|
|
380
|
+
* @param {boolean} [skipEvent] If true, does not trigger change events.
|
|
381
|
+
*/
|
|
382
|
+
setValue?: (value?: InspectorValue, skipEvent?: boolean) => void;
|
|
383
|
+
/**
|
|
384
|
+
* Sets the icon for the widget.
|
|
385
|
+
* @param {string} img URL or identifier for the icon image.
|
|
386
|
+
*/
|
|
387
|
+
setIcon?: (img: string) => void;
|
|
388
|
+
/**
|
|
389
|
+
* Disables the widget.
|
|
390
|
+
*/
|
|
391
|
+
disable?: () => void;
|
|
392
|
+
/**
|
|
393
|
+
* Enables the widget.
|
|
394
|
+
*/
|
|
395
|
+
enable?: () => void;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Interface for a group widget in the inspector.
|
|
399
|
+
* @interface InspectorGroupWidget
|
|
400
|
+
*/
|
|
401
|
+
export interface InspectorGroupWidget extends InspectorWidget {
|
|
402
|
+
/**
|
|
403
|
+
* Indicates if this widget acts as a group.
|
|
404
|
+
*/
|
|
405
|
+
group?: boolean;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Interface for an active inspector widget, requiring standard methods to be present.
|
|
409
|
+
* @interface InspectorActiveWidget
|
|
410
|
+
*/
|
|
411
|
+
export interface InspectorActiveWidget extends InspectorWidget {
|
|
412
|
+
/**
|
|
413
|
+
* Reference to the Inspector instance.
|
|
414
|
+
*/
|
|
415
|
+
inspector: Inspector;
|
|
416
|
+
/**
|
|
417
|
+
* Reference to the section containing this widget.
|
|
418
|
+
*/
|
|
419
|
+
section: InspectorSection;
|
|
420
|
+
/**
|
|
421
|
+
* Configuration options used to create this widget.
|
|
422
|
+
*/
|
|
423
|
+
options: CreateWidgetOptions;
|
|
424
|
+
/**
|
|
425
|
+
* The name of the widget.
|
|
426
|
+
*/
|
|
427
|
+
name: string;
|
|
428
|
+
/**
|
|
429
|
+
* The content element of the widget.
|
|
430
|
+
*/
|
|
431
|
+
content: HTMLElement;
|
|
432
|
+
/**
|
|
433
|
+
* Callback function executed when the widget is updated.
|
|
434
|
+
* @param {InspectorWidget} widget The widget being updated.
|
|
435
|
+
*/
|
|
436
|
+
onWidgetUpdate: (widget: InspectorWidget) => void;
|
|
437
|
+
/**
|
|
438
|
+
* Gets the current value of the widget.
|
|
439
|
+
* @returns {InspectorValue} The current value.
|
|
440
|
+
*/
|
|
441
|
+
getValue: () => InspectorValue;
|
|
442
|
+
/**
|
|
443
|
+
* Sets the value of the widget.
|
|
444
|
+
* @param {unknown} [value] The value to set.
|
|
445
|
+
* @param {boolean} [skipEvent] If true, does not trigger change events.
|
|
446
|
+
*/
|
|
447
|
+
setValue: (value?: InspectorValue, skipEvent?: boolean) => void;
|
|
448
|
+
/**
|
|
449
|
+
* Sets the icon for the widget.
|
|
450
|
+
* @param {string} img URL or identifier for the icon image.
|
|
451
|
+
*/
|
|
452
|
+
setIcon: (img: string) => void;
|
|
453
|
+
/**
|
|
454
|
+
* Disables the widget.
|
|
455
|
+
*/
|
|
456
|
+
disable: () => void;
|
|
457
|
+
/**
|
|
458
|
+
* Enables the widget.
|
|
459
|
+
*/
|
|
460
|
+
enable: () => void;
|
|
461
|
+
}
|
|
462
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/@types/Inspector/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,M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