lexgui 0.7.0 → 0.7.2

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
@@ -2,7 +2,32 @@
2
2
 
3
3
  ## dev
4
4
 
5
- ## 0.7.0 (master)
5
+ ## 0.7.2 (master)
6
+
7
+ Fixed AssetView Filter select.
8
+ Fixed tooltips on Dialog without modal.
9
+ Exposed LX.Timebar in VideoEditor extension.
10
+
11
+ CodeEditor:
12
+ - Fixed Ctrl+Wheel to modify font size.
13
+ - Added ZoomIn/ZoomOut buttons to Info Panel to modify font size.
14
+ - Selected Font size now persists locally using `localStorage`.
15
+ - Support for showing/hiding status bar elements.
16
+ - Improved syntax highlighting consistency using new HightlightRules.
17
+ - Added support for PHP and TypeScript highlighting.
18
+ - Started work on scope detection (enums, structs, methods, classes, etc.) for syntax highlighting.
19
+ - Added support for adding new custom language.
20
+
21
+ ## 0.7.1
22
+
23
+ Added support for selecting custom Min, Max range in RangeInput component.
24
+ Added value labels to RangeInput component.
25
+ `LX.asTooltip` Updates:
26
+ - Now supports `options.offsetX`, `options.offsetY` and `options.callback`.
27
+ - Change content and offsets dynamically using `trigger.dataset["tooltipContent" | "tooltipOffsetX" | "tooltipOffsetY"]`.
28
+ Fixed Popovers using `options.reference`.
29
+
30
+ ## 0.7.0
6
31
 
7
32
  General/Utils:
8
33
  - "Components" have been renamed to "Extensions".
package/demo.js CHANGED
@@ -259,7 +259,8 @@ const starterTheme = LX.getTheme();
259
259
  panel.addText("Text", "LexGUI.js @jxarco", null, {placeholder: "e.g. ColorPicker", icon: "Type"});
260
260
  panel.addColor("Font Color", "#303b8d", null);
261
261
  panel.addNumber("Font Size", 36, null, { min: 1, max: 48, step: 1, units: "px"});
262
- panel.addSelect("Font Family", ["Arial", "GeistSans", "Monospace", "Ubuntu"], "GeistSans");
262
+ panel.addSelect("Font Family", ["Arial", "GeistSans", "Monospace", "CascadiaCode"], "GeistSans");
263
+ panel.addRange("Threshold Range", [2, 7], (v) => console.log(v), { min: 0, max: 10, step: 1, className: "accent" });
263
264
  panel.addVector2("2D Position", [300, 350], null, { min: 0, max: 1024 });
264
265
  const opacityValues = [
265
266
  [0.2, 0.3146875],
@@ -262,6 +262,7 @@
262
262
  panelB.addRange("Warning", 2, null, { min: 0, max: 10, step: 1, className: "warning" });
263
263
  panelB.addRange("Inverted", 22, null, { min: 20, max: 48, step: 1, left: true });
264
264
  panelB.addRange("NoFill", 10, null, { min: 1, max: 48, step: 1, fill: false });
265
+ panelB.addRange("With Range", [2, 6], null, { min: 1, max: 10, step: 1 });
265
266
  panelB.addRange("Disabled", 29, null, { min: 1, max: 48, step: 1, disabled: true });
266
267
  panelB.branch("Select Inputs", { closed: closedDefault });
267
268
  panelB.addSelect("Classic", selectValues, "Unity", null);
@@ -27,8 +27,9 @@
27
27
 
28
28
  const fileExplorer = true;
29
29
 
30
- if (!fileExplorer) {
31
- var [leftArea, rightArea] = area.split({ sizes: ["55%", "45%"] });
30
+ if( !fileExplorer )
31
+ {
32
+ var [ leftArea, rightArea ] = area.split({ sizes: ["55%", "45%"] });
32
33
 
33
34
  var canvas = document.createElement('canvas');
34
35
  canvas.id = "mycanvas";
@@ -50,10 +51,12 @@
50
51
  // allowAddScripts: false,
51
52
  // autocomplete: false,
52
53
  // disableEdition: true,
54
+ // skipInfo: true,
53
55
  fileExplorer: fileExplorer
54
56
  });
55
57
 
56
58
  editor.loadFile("../data/js_sample.js");
59
+ editor.loadFile("../data/ts_sample.ts");
57
60
  editor.loadFile("../data/json_sample.json");
58
61
  editor.loadFile("../data/css_sample.css");
59
62
  editor.loadFile("../data/cpp_sample.cpp");
@@ -64,7 +67,9 @@
64
67
  editor.loadFile("../data/rust_sample.rs");
65
68
  editor.loadFile("../data/animation.bml", { language: "JSON" });
66
69
  editor.loadFile("../data/CMakeLists.txt", { language: "CMake" });
70
+ editor.loadFile("../data/php_sample.php");
67
71
  editor.loadFile("../data/localhost.bat");
72
+ editor.loadFile("../changelog.md");
68
73
  editor.loadFile("../index.html");
69
74
 
70
75
  if (!fileExplorer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",