lexgui 0.1.37 → 0.1.39

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,25 @@
1
1
  # lexgui.js changelog
2
2
 
3
+ ## 0.1.40 (dev)
4
+
5
+ ## 0.1.39 (master)
6
+
7
+ New widget: Pad. Bidimensional slider.
8
+ `LX.makeDraggable` now supports 'absolute' and 'fixed' positions.
9
+ Fix passing onDragStart/onMove functions to Dialogs.
10
+ Minor bug fixes.
11
+
12
+ ## 0.1.38
13
+
14
+ Timeline: Fixed timeline signals and added callbacks
15
+
16
+ Number/Vector widgets:
17
+ - Support for onPress&onRelease for catching mouse events.
18
+ - Added `setLimits` for min, max, step parameters.
19
+
20
+ Added Size Widget (N dimension number widget).
21
+ Minor bug fixes.
22
+
3
23
  ## 0.1.37
4
24
 
5
25
  Audio:
@@ -14,7 +34,7 @@ Fixed Number/Vector precision.
14
34
  Fixed ContextMenu position on creation over window size.
15
35
  Minor bug fixes.
16
36
 
17
- ## 0.1.36 (master)
37
+ ## 0.1.36
18
38
 
19
39
  Default skipCallback as `true` on emit widget signal.
20
40
  Add some vec2 math functions.
package/demo.js CHANGED
@@ -478,14 +478,18 @@ 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) }, {} );
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" });
485
490
  panel.addDropdown("Best Engine", ["Godot", "Unity", "Unreal Engine"], "Unity", (value, event) => {
486
491
  console.log(value);
487
492
  });
488
-
489
493
  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
494
  console.log(value);
491
495
  }, {filter: true});
@@ -694,6 +698,7 @@ function fillBottomPanel( panel ) {
694
698
  panel.addTextArea("Notes", "", (value, event) => {
695
699
  console.log(value);
696
700
  }, { placeholder: 'Some notes...' });
701
+ panel.addKnob("A Knob", 4, 0, 200, value => { console.log(value) }, /*{ size: 'sm' }*/);
697
702
  panel.addButton("Apply", "Add button to branch", (value, event) => {
698
703
  const branch = panel.getBranch("Information");
699
704
  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.39",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",