lexgui 0.7.2 → 0.7.4

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,29 @@
2
2
 
3
3
  ## dev
4
4
 
5
- ## 0.7.2 (master)
5
+ ## 0.7.4 (master)
6
+
7
+ Added `LX.toKebabCase`.
8
+
9
+ CodeEditor:
10
+ - Added support to togge status bar items by default.
11
+ - Scopes, symbols and block comments refactor to fix instabilities.
12
+ - Improved method-calls, variable symbols detection.
13
+ - New autocomplete item icons based on Symbols.
14
+ - Minor bugs fixed.
15
+
16
+ ## 0.7.3
17
+
18
+ VideoEditor:
19
+ - Minor Controls sizes refactor.
20
+ - Fixed Controls event listeners.
21
+
22
+ CodeEditor:
23
+ - Improved scope detection.
24
+ - Added basic symbols detection to feed autocomplete.
25
+ - Fixed resizing and scrollbar issues.
26
+
27
+ ## 0.7.2
6
28
 
7
29
  Fixed AssetView Filter select.
8
30
  Fixed tooltips on Dialog without modal.
@@ -22,6 +22,10 @@
22
22
  import { LX } from 'lexgui';
23
23
  import 'lexgui/extensions/codeeditor.js';
24
24
 
25
+ LX.CodeEditor.debugScopes = false;
26
+ LX.CodeEditor.debugSymbols = false;
27
+ LX.CodeEditor.debugProcessedLines = false;
28
+
25
29
  // init library and get main area
26
30
  let area = await LX.init();
27
31
 
@@ -52,27 +56,37 @@
52
56
  // autocomplete: false,
53
57
  // disableEdition: true,
54
58
  // skipInfo: true,
55
- fileExplorer: fileExplorer
59
+ fileExplorer: fileExplorer,
60
+ // statusShowFontSizeZoom: false,
61
+ // skipTabs: true,
62
+ files: [
63
+ "../data/js_sample.js",
64
+ "../data/ts_sample.ts",
65
+ "../data/json_sample.json",
66
+ "../data/css_sample.css",
67
+ "../data/cpp_sample.cpp",
68
+ "../data/cpp_header_sample.hpp",
69
+ "../data/c_sample.c",
70
+ "../data/xml_sample.xml",
71
+ "../data/python_sample.py",
72
+ "../data/rust_sample.rs",
73
+ "../data/php_sample.php",
74
+ "../data/localhost.bat",
75
+ "../data/frag.wgsl",
76
+ "../changelog.md",
77
+ "../index.html",
78
+ ],
79
+ onFilesLoaded: ( instance, numFilesLoaded ) => {
80
+ console.log( `CodeEditor: ${ numFilesLoaded } files loaded!` );
81
+ instance.loadTab("js_sample.js");
82
+ }
56
83
  });
57
84
 
58
- editor.loadFile("../data/js_sample.js");
59
- editor.loadFile("../data/ts_sample.ts");
60
- editor.loadFile("../data/json_sample.json");
61
- editor.loadFile("../data/css_sample.css");
62
- editor.loadFile("../data/cpp_sample.cpp");
63
- editor.loadFile("../data/cpp_header_sample.hpp");
64
- editor.loadFile("../data/c_sample.c");
65
- editor.loadFile("../data/xml_sample.xml");
66
- editor.loadFile("../data/python_sample.py");
67
- editor.loadFile("../data/rust_sample.rs");
68
- editor.loadFile("../data/animation.bml", { language: "JSON" });
69
- editor.loadFile("../data/CMakeLists.txt", { language: "CMake" });
70
- editor.loadFile("../data/php_sample.php");
71
- editor.loadFile("../data/localhost.bat");
72
- editor.loadFile("../changelog.md");
73
- editor.loadFile("../index.html");
74
-
75
- if (!fileExplorer) {
85
+ // editor.loadFile("../data/animation.bml", { language: "JSON" });
86
+ // editor.loadFile("../data/CMakeLists.txt", { language: "CMake" });
87
+
88
+ if( !fileExplorer )
89
+ {
76
90
  var ctx = canvas.getContext("2d");
77
91
  ctx.fillStyle = "#b7a9b1";
78
92
  ctx.font = "48px Monospace";
@@ -34,7 +34,8 @@
34
34
  videoArea.attach(video);
35
35
 
36
36
  const videoEditor = new LX.VideoEditor(leftArea, { videoArea, video, crop: true })
37
-
37
+ videoEditor._loadVideo();
38
+
38
39
  const canvas = document.createElement('canvas');
39
40
  canvas.width = video.clientWidth;
40
41
  canvas.height = video.clientHeight;
@@ -29,7 +29,8 @@
29
29
 
30
30
  // Split main area
31
31
  let [leftArea, rightArea] = area.split({ sizes: ["75%", "25%"], minimizable: true });
32
- let [topArea, bottomArea] = leftArea.split({ sizes: ["90%", null], minimizable: false, resize: false, type: "vertical" });
32
+ let [topArea, bottomArea] = leftArea.split({ sizes: ["80%", null], minimizable: false, resize: false, type: "vertical" });
33
+ let [controlsArea, buttonsArea] = bottomArea.split({ sizes: ["50%", null], minimizable: false, resize: false, type: "vertical" });
33
34
  area.extend();
34
35
 
35
36
  /* Create video area with a menubar */
@@ -39,8 +40,8 @@
39
40
  const video = document.createElement('video');
40
41
  video.src = "../data/video.mp4";
41
42
  videoArea.attach(video);
42
- const videoEditor = new LX.VideoEditor(topArea, { videoArea, video })
43
-
43
+ const videoEditor = new LX.VideoEditor(topArea, { videoArea, video, controlsArea })
44
+ videoEditor._loadVideo();
44
45
  /* Add canvas above video */
45
46
  const canvas = document.createElement('canvas');
46
47
  canvas.width = video.clientWidth;
@@ -80,7 +81,7 @@
80
81
  }
81
82
  }], { float: 'tvr' });
82
83
 
83
- let p = bottomArea.addPanel({ width: "100%", height: "100%", style: { display: "flex", "flex-direction": "row", "justify-content": "center", "align-content": "flex-start", "flex-wrap": "wrap" } });
84
+ let p = buttonsArea.addPanel({ width: "100%", height: "100%", style: { display: "flex", "flex-direction": "row", "justify-content": "center", "align-content": "flex-start", "flex-wrap": "wrap" } });
84
85
  p.addButton(null, "Trim", (v) => {
85
86
  console.log(videoEditor.getTrimedTimes())
86
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",