lexgui 0.1.39 → 0.1.41
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/README.md +3 -1
- package/build/components/audio.js +63 -26
- package/build/components/codeeditor.js +4 -4
- package/build/components/imui.js +1 -1
- package/build/components/nodegraph.js +2 -2
- package/build/components/timeline.js +61 -54
- package/build/components/videoeditor.js +43 -10
- package/build/lexgui.css +43 -0
- package/build/lexgui.js +313 -152
- package/build/lexgui.module.js +316 -155
- package/changelog.md +23 -2
- package/demo.js +16 -9
- package/examples/asset_view.html +10 -7
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
# lexgui.js changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.42 (dev)
|
|
4
4
|
|
|
5
|
-
## 0.1.
|
|
5
|
+
## 0.1.41 (master)
|
|
6
|
+
|
|
7
|
+
AssetView:
|
|
8
|
+
- Renamed all option parameters (remove snake_case).
|
|
9
|
+
- Support showing `lastModified` file data.
|
|
10
|
+
|
|
11
|
+
Knob Widget:
|
|
12
|
+
- Support disabled option.
|
|
13
|
+
- Add `options.snap` = # subdivisions for value snapping.
|
|
14
|
+
|
|
15
|
+
More Timeline refactor and fixes.
|
|
16
|
+
Removed `LX.UTILS.clamp`. Still can be used in `LX.clamp`.
|
|
17
|
+
Update Fontawesome CSS to v6.7.2.
|
|
18
|
+
|
|
19
|
+
## 0.1.40
|
|
20
|
+
|
|
21
|
+
New widget: Form. Series of Text + Submit Button using form data (Object).
|
|
22
|
+
Fix non-unique "input-filter" id.
|
|
23
|
+
Improved Number/Vector mouse interaction with `pointerLock`.
|
|
24
|
+
Updated docs.
|
|
25
|
+
|
|
26
|
+
## 0.1.39
|
|
6
27
|
|
|
7
28
|
New widget: Pad. Bidimensional slider.
|
|
8
29
|
`LX.makeDraggable` now supports 'absolute' and 'fixed' positions.
|
package/demo.js
CHANGED
|
@@ -481,12 +481,6 @@ function fillPanel( panel ) {
|
|
|
481
481
|
panel.sameLine(2);
|
|
482
482
|
panel.addFile("Img1", data => { console.log(data) }, {} );
|
|
483
483
|
panel.addFile("Img2", data => { console.log(data) }, {} );
|
|
484
|
-
panel.addPad("2D Pad", [0.5, 0.5], (value, event) => {
|
|
485
|
-
console.log(value);
|
|
486
|
-
}, { padSize: "100px", min: -1, max: 2 });
|
|
487
|
-
panel.addSize("Screen Res", [1280, 720], (value, event) => {
|
|
488
|
-
console.log(value);
|
|
489
|
-
}, { units: "p" });
|
|
490
484
|
panel.addDropdown("Best Engine", ["Godot", "Unity", "Unreal Engine"], "Unity", (value, event) => {
|
|
491
485
|
console.log(value);
|
|
492
486
|
});
|
|
@@ -543,6 +537,17 @@ function fillPanel( panel ) {
|
|
|
543
537
|
panel.addCurve("Opacity", opacityValues, (value, event) => {
|
|
544
538
|
console.log(value);
|
|
545
539
|
});
|
|
540
|
+
panel.addPad("2D Pad", [0.5, 0.5], (value, event) => {
|
|
541
|
+
console.log(value);
|
|
542
|
+
}, { padSize: "100px", min: -1, max: 2 });
|
|
543
|
+
panel.addSize("Screen Res", [1280, 720], (value, event) => {
|
|
544
|
+
console.log(value);
|
|
545
|
+
}, { units: "p" });
|
|
546
|
+
|
|
547
|
+
const formData = { username: "", password: { value: "", type: "password" } };
|
|
548
|
+
panel.addForm("Test form", formData, (value, event) => {
|
|
549
|
+
console.log(value);
|
|
550
|
+
}, { actionName: "Login" });
|
|
546
551
|
|
|
547
552
|
// another branch
|
|
548
553
|
panel.branch("Canvas", {icon: "fa-solid fa-palette", filter: true});
|
|
@@ -698,7 +703,9 @@ function fillBottomPanel( panel ) {
|
|
|
698
703
|
panel.addTextArea("Notes", "", (value, event) => {
|
|
699
704
|
console.log(value);
|
|
700
705
|
}, { placeholder: 'Some notes...' });
|
|
701
|
-
panel.addKnob("A Knob", 4, 0, 200, value => { console.log(value) },
|
|
706
|
+
panel.addKnob("A Small Knob", 4, 0, 200, value => { console.log( value ) }, { size: 'sm', disabled: true });
|
|
707
|
+
panel.addKnob("A Knob", 4, 0, 200, value => { console.log( value ) } );
|
|
708
|
+
panel.addKnob("A Big Knob", 4, 0, 200, value => { console.log( value ) }, { size: 'bg', snap: 4 });
|
|
702
709
|
panel.addButton("Apply", "Add button to branch", (value, event) => {
|
|
703
710
|
const branch = panel.getBranch("Information");
|
|
704
711
|
panel.queue( branch.content );
|
|
@@ -706,8 +713,8 @@ function fillBottomPanel( panel ) {
|
|
|
706
713
|
panel.clearQueue();
|
|
707
714
|
});
|
|
708
715
|
|
|
709
|
-
panel.branch("A collapsed branch", {closed: true});
|
|
710
|
-
panel.addText(null, "Nothing here", null, {disabled: true});
|
|
716
|
+
panel.branch("A collapsed branch", { closed: true });
|
|
717
|
+
panel.addText(null, "Nothing here", null, { disabled: true });
|
|
711
718
|
panel.merge();
|
|
712
719
|
}
|
|
713
720
|
|
package/examples/asset_view.html
CHANGED
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
let assetView = new LX.AssetView({
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
46
|
+
// skipBrowser: true,
|
|
47
|
+
// skipPreview: true,
|
|
48
|
+
// rootPath: "../"
|
|
49
49
|
});
|
|
50
50
|
bottomArea.attach( assetView );
|
|
51
51
|
|
|
@@ -53,17 +53,19 @@
|
|
|
53
53
|
{
|
|
54
54
|
id: "dog.png",
|
|
55
55
|
type: "image",
|
|
56
|
-
|
|
56
|
+
path: "https://pngfre.com/wp-content/uploads/1653714420512-1-904x1024.png"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
id: "sigml_test.sigml",
|
|
60
60
|
type: "sigml",
|
|
61
|
-
src: "../data/sigml_test.sigml"
|
|
61
|
+
src: "../data/sigml_test.sigml",
|
|
62
|
+
lastModified: 1740588312813
|
|
62
63
|
},
|
|
63
64
|
{
|
|
64
65
|
id: "test.json",
|
|
65
66
|
type: "JSON",
|
|
66
|
-
src: "../data/test.json"
|
|
67
|
+
src: "../data/test.json",
|
|
68
|
+
lastModified: 1740581312813
|
|
67
69
|
},
|
|
68
70
|
{
|
|
69
71
|
id: "godot",
|
|
@@ -136,7 +138,8 @@
|
|
|
136
138
|
{
|
|
137
139
|
id: "brow_lowerer.png",
|
|
138
140
|
type: "clip",
|
|
139
|
-
src: "../data/brow_lowerer.png"
|
|
141
|
+
src: "../data/brow_lowerer.png",
|
|
142
|
+
lastModified: 1740181312813
|
|
140
143
|
}
|
|
141
144
|
];
|
|
142
145
|
|