lexgui 0.4.1 → 0.5.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/build/components/audio.js +155 -154
- package/build/components/codeeditor.js +8 -6
- package/build/components/nodegraph.js +4 -3
- package/build/components/timeline.js +5 -2
- package/build/lexgui.css +552 -379
- package/build/lexgui.js +4457 -3593
- package/build/lexgui.min.css +7 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +4462 -3600
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +32 -2
- package/demo.js +1 -4
- package/examples/area_tabs.html +17 -2
- package/examples/dialogs.html +3 -3
- package/examples/timeline.html +1 -1
- package/package.json +28 -22
package/changelog.md
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
# lexgui.js changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.5.0 (master)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Widgets:
|
|
6
|
+
- Created classes for each widget to create them at any place.
|
|
7
|
+
- `Panel.addTabs`: Renamed to `addTabSections`. Added name parameter (1st). Returns `TabSections` widget instance.
|
|
8
|
+
- `Panel.addDropdown`: Renamed to `addSelect`. Returns `Select` widget instance.
|
|
9
|
+
- Added support for labels in Select Widget.
|
|
10
|
+
- `Panel.addContent` and `Panel.addImage` now accepts name as first parameter.
|
|
11
|
+
- Title: `Panel.addTitle` now returns `Title` widget instance, not its inner title HTMLElement.
|
|
12
|
+
- Tree: `Panel.addTree` now returns `Tree` widget instance, not its inner `NodeTree`.
|
|
13
|
+
- Table: Added support for `options.sortable` rows and `title` for row action icons.
|
|
14
|
+
|
|
15
|
+
Fixed Select Widget overflow inside dialog.
|
|
16
|
+
New `DropdownMenu` class.
|
|
17
|
+
Added `displaySelected` option to Sidebar to display selected entry.
|
|
18
|
+
Started Notifications docs.
|
|
19
|
+
Added Icons/ page in docs.
|
|
20
|
+
Fixed Menubar entries auto-open when menubar is focused.
|
|
21
|
+
Minor CSS tweaks.
|
|
22
|
+
|
|
23
|
+
## 0.4.2
|
|
24
|
+
|
|
25
|
+
Widgets:
|
|
26
|
+
- RadioGroup: Add name parameter (1st).
|
|
27
|
+
- Added `options.hideName` for supported widgets: Don't use label but add `name` to allow registering.
|
|
28
|
+
|
|
29
|
+
Sidebar subentries are now collapsable (`true` by default).
|
|
30
|
+
Support `options.header` and `options.footer` for custom sidebar elements.
|
|
31
|
+
Added `extraClass` parameter for `LX.makeIcon`.
|
|
32
|
+
Fixed Menubar.getButton.
|
|
33
|
+
Fixed some CSS icon alignment issues.
|
|
34
|
+
|
|
35
|
+
## 0.4.1
|
|
6
36
|
|
|
7
37
|
Widgets:
|
|
8
38
|
- Text: Skip callback if no changes.
|
package/demo.js
CHANGED
|
@@ -13,10 +13,7 @@ let area = LX.init( { strictViewport: false } );
|
|
|
13
13
|
|
|
14
14
|
m.setButtonImage("lexgui.js", "images/icon.png", () => {window.open("https://jxarco.github.io/lexgui.js/")}, {float: "left"})
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
m.add( "Docs/Pepe", { icon: "fa-solid fa-magnifying-glass", short: "F1", callback: () => { window.open("./docs/") }});
|
|
18
|
-
m.add( "Docs/Luis/ac", { icon: "fa-solid fa-magnifying-glass", short: "F1", callback: () => { window.open("./docs/") }});
|
|
19
|
-
m.add( "Docs/Luis/vrr", { icon: "fa-solid fa-magnifying-glass", short: "F1", callback: () => { window.open("./docs/") }});
|
|
16
|
+
m.add( "Docs", { icon: "fa-solid fa-magnifying-glass", short: "F1", callback: () => { window.open("./docs/") }});
|
|
20
17
|
|
|
21
18
|
const panel = new LX.Panel();
|
|
22
19
|
panel.addButton(null, "Search command...", () => { LX.setCommandbarState( true ) }, { width: "256px", className: "right", buttonClass: "outline left" });
|
package/examples/area_tabs.html
CHANGED
|
@@ -53,6 +53,10 @@
|
|
|
53
53
|
fillPanelB( panelB );
|
|
54
54
|
rightTabs.add( "PanelB", panelB );
|
|
55
55
|
|
|
56
|
+
var panelC = new LX.Panel();
|
|
57
|
+
fillPanelC( panelC );
|
|
58
|
+
rightTabs.add( "panelC", panelC );
|
|
59
|
+
|
|
56
60
|
function loop(dt) {
|
|
57
61
|
|
|
58
62
|
var ctx = canvas.getContext("2d");
|
|
@@ -77,7 +81,6 @@
|
|
|
77
81
|
// **** **** **** **** **** **** **** **** **** **** **** ****
|
|
78
82
|
|
|
79
83
|
function fillPanelA( panel ) {
|
|
80
|
-
|
|
81
84
|
panel.branch("Canvas", {icon: "fa-solid fa-palette", filter: true});
|
|
82
85
|
panel.addColor("Background", "#b7a9b1");
|
|
83
86
|
panel.addText("Text", "Lexgui.js @jxarco", null, {placeholder: "e.g. ColorPicker", icon: "fa fa-font"});
|
|
@@ -94,7 +97,6 @@
|
|
|
94
97
|
}
|
|
95
98
|
|
|
96
99
|
function fillPanelB( panel ) {
|
|
97
|
-
|
|
98
100
|
panel.branch("Settings", {icon: "fa-solid fa-palette", filter: true});
|
|
99
101
|
panel.addTitle("Configuration (Im a title)");
|
|
100
102
|
panel.addCheckbox("Toggle me", true, (value, event) => {
|
|
@@ -107,5 +109,18 @@
|
|
|
107
109
|
panel.merge();
|
|
108
110
|
}
|
|
109
111
|
|
|
112
|
+
function fillPanelC( panel ) {
|
|
113
|
+
panel.branch("Some Branch", {icon: "fa-solid fa-palette", filter: true});
|
|
114
|
+
panel.addTitle("C title");
|
|
115
|
+
panel.addToggle("A cool Toggle", true, (value, event) => {
|
|
116
|
+
console.log(value);
|
|
117
|
+
}, { suboptions: (p) => {
|
|
118
|
+
p.addText(null, "Suboption 1");
|
|
119
|
+
p.addNumber("Suboption 2", 12);
|
|
120
|
+
} });
|
|
121
|
+
panel.addRange("Yup", 15, data => { console.log(data) }, {} );
|
|
122
|
+
panel.merge();
|
|
123
|
+
}
|
|
124
|
+
|
|
110
125
|
</script>
|
|
111
126
|
</html>
|
package/examples/dialogs.html
CHANGED
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
p.branch("Canvas");
|
|
68
68
|
p.addColor("Background", "#b7a9b1");
|
|
69
69
|
p.addText("Text", "Pocket Dialog Lexgui.js @jxarco", null, {placeholder: "e.g. ColorPicker", icon: "fa fa-font"});
|
|
70
|
+
p.addSelect("Best Engine", ["Godot", "Unity", "Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Pepe"], "Godot", (value, event) => {
|
|
71
|
+
console.log(value);
|
|
72
|
+
}, {filter: true});
|
|
70
73
|
p.addColor("Font Color", [1, 0.1, 0.6], (value, event) => {
|
|
71
74
|
console.log("Font Color: ", value);
|
|
72
75
|
});
|
|
@@ -76,9 +79,6 @@
|
|
|
76
79
|
p.addVector2("2D Position", [250, 350], (value, event) => {
|
|
77
80
|
console.log(value);
|
|
78
81
|
}, { min: 0, max: 1024 });
|
|
79
|
-
p.addDropdown("Best Engine", ["Godot", "Unity", "Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Unreal Engine","Pepe"], "Godot", (value, event) => {
|
|
80
|
-
console.log(value);
|
|
81
|
-
}, {filter: true});
|
|
82
82
|
p.merge();
|
|
83
83
|
}, { size: ["350px", null], draggable: true });
|
|
84
84
|
|
package/examples/timeline.html
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
let kfTimeline = new LX.KeyFramesTimeline('keyframesTimeline', {
|
|
189
189
|
disableNewTracks: true,
|
|
190
190
|
onBeforeCreateTopBar: (panel) => {
|
|
191
|
-
panel.
|
|
191
|
+
panel.addSelect("Animation", ["Anim 1", "Anim 2", "Anim 3"], "Anim 1", ()=> {})
|
|
192
192
|
},
|
|
193
193
|
onAfterCreateTopBar: (panel) => {
|
|
194
194
|
panel.addButton("", "autoKeyEnable", null, { icon: 'fa fa-wand-magic-sparkles', name: 'autoKeyEnabled', width: "40px" });
|
package/package.json
CHANGED
|
@@ -1,38 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lexgui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "JS library to create web graphical user interfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/lexgui.js",
|
|
7
7
|
"module": "./build/lexgui.module.js",
|
|
8
8
|
"repository": {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/jxarco/lexgui.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
"build",
|
|
14
|
+
"build/components",
|
|
15
|
+
"examples",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"package.json",
|
|
18
|
+
"changelog.md",
|
|
19
|
+
"README.md",
|
|
20
|
+
"demo.js"
|
|
21
21
|
],
|
|
22
22
|
"keywords": [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
"lexgui",
|
|
24
|
+
"lexgui.js",
|
|
25
|
+
"javascript",
|
|
26
|
+
"editor",
|
|
27
|
+
"gui",
|
|
28
|
+
"interface",
|
|
29
|
+
"canvas",
|
|
30
|
+
"svg",
|
|
31
|
+
"html5"
|
|
32
32
|
],
|
|
33
33
|
"author": "jxarco",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"bugs": {
|
|
36
|
-
|
|
36
|
+
"url": "https://github.com/jxarco/lexgui.js/issues"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"minify-css": "cleancss -o build/lexgui.min.css build/lexgui.css",
|
|
40
|
+
"minify-js": "uglifyjs build/lexgui.module.js -o build/lexgui.module.min.js --compress --mangle --module && uglifyjs build/lexgui.js -o build/lexgui.min.js --compress --mangle --no-module",
|
|
41
|
+
"minify": "npm run minify-js && npm run minify-css",
|
|
42
|
+
"build": "python build-legacy.py && npm run minify"
|
|
37
43
|
}
|
|
38
|
-
|
|
44
|
+
}
|