lexgui 0.1.37 → 0.1.40

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/changelog.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # lexgui.js changelog
2
2
 
3
+ ## 0.1.41 (dev)
4
+
5
+
6
+
7
+ ## 0.1.40 (master)
8
+
9
+ New widget: Form. Series of Text + Submit Button using form data (Object).
10
+ Fix non-unique "input-filter" id.
11
+ Improved Number/Vector mouse interaction with `pointerLock`.
12
+ Updated docs.
13
+
14
+ ## 0.1.39
15
+
16
+ New widget: Pad. Bidimensional slider.
17
+ `LX.makeDraggable` now supports 'absolute' and 'fixed' positions.
18
+ Fix passing onDragStart/onMove functions to Dialogs.
19
+ Minor bug fixes.
20
+
21
+ ## 0.1.38
22
+
23
+ Timeline: Fixed timeline signals and added callbacks
24
+
25
+ Number/Vector widgets:
26
+ - Support for onPress&onRelease for catching mouse events.
27
+ - Added `setLimits` for min, max, step parameters.
28
+
29
+ Added Size Widget (N dimension number widget).
30
+ Minor bug fixes.
31
+
3
32
  ## 0.1.37
4
33
 
5
34
  Audio:
@@ -14,7 +43,7 @@ Fixed Number/Vector precision.
14
43
  Fixed ContextMenu position on creation over window size.
15
44
  Minor bug fixes.
16
45
 
17
- ## 0.1.36 (master)
46
+ ## 0.1.36
18
47
 
19
48
  Default skipCallback as `true` on emit widget signal.
20
49
  Add some vec2 math functions.
package/demo.js CHANGED
@@ -478,14 +478,12 @@ function fillPanel( panel ) {
478
478
  panel.branch("Preferences", {icon: "fa-solid fa-gear"});
479
479
  panel.addButton(null, "Click me, Im Full Width...");
480
480
  panel.addText("Text", "Warning text", null, { warning: true });
481
- panel.addKnob("A Knob", 4, 0, 200, value => { console.log(value) }, /*{ size: 'sm' }*/);
482
481
  panel.sameLine(2);
483
482
  panel.addFile("Img1", data => { console.log(data) }, {} );
484
483
  panel.addFile("Img2", data => { console.log(data) }, {} );
485
484
  panel.addDropdown("Best Engine", ["Godot", "Unity", "Unreal Engine"], "Unity", (value, event) => {
486
485
  console.log(value);
487
486
  });
488
-
489
487
  panel.addDropdown("Best Logo", [{value:"Godot", src: "https://godotengine.org/assets/press/logo_vertical_color_light.webp"}, {value: "Unity", src: "https://logos-world.net/wp-content/uploads/2023/01/Unity-Logo.png"}, {value:"Unreal Engine", src: "https://cdn2.unrealengine.com/ue-logo-stacked-unreal-engine-w-677x545-fac11de0943f.png"}], "Godot", (value, event) => {
490
488
  console.log(value);
491
489
  }, {filter: true});
@@ -539,6 +537,17 @@ function fillPanel( panel ) {
539
537
  panel.addCurve("Opacity", opacityValues, (value, event) => {
540
538
  console.log(value);
541
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" });
542
551
 
543
552
  // another branch
544
553
  panel.branch("Canvas", {icon: "fa-solid fa-palette", filter: true});
@@ -694,6 +703,7 @@ function fillBottomPanel( panel ) {
694
703
  panel.addTextArea("Notes", "", (value, event) => {
695
704
  console.log(value);
696
705
  }, { placeholder: 'Some notes...' });
706
+ panel.addKnob("A Knob", 4, 0, 200, value => { console.log(value) }, /*{ size: 'sm' }*/);
697
707
  panel.addButton("Apply", "Add button to branch", (value, event) => {
698
708
  const branch = panel.getBranch("Information");
699
709
  panel.queue( branch.content );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.1.37",
3
+ "version": "0.1.40",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",