lexgui 0.7.3 → 0.7.5

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.3 (master)
5
+ ## 0.7.5 (master)
6
+
7
+ CodeEditor:
8
+ - Hotfixed issue not processing lines in some cases.
9
+ - Minor restyle tabs and added options for closing tabs.
10
+ - Support for `options.onCreateFile` callback to modify new file options.
11
+ - Replaced old context menus for new Dropdowns.
12
+
13
+ VideoEditor:
14
+ - Added callback functions when change start/end values.
15
+
16
+ Added `options.event` to Dropdown to offset position based on event position.
17
+ Added some more CSS classes.
18
+
19
+ ## 0.7.4
20
+
21
+ Added `LX.toKebabCase`.
22
+
23
+ CodeEditor:
24
+ - Added support to togge status bar items by default.
25
+ - Scopes, symbols and block comments refactor to fix instabilities.
26
+ - Improved method-calls, variable symbols detection.
27
+ - New autocomplete item icons based on Symbols.
28
+ - Minor bugs fixed.
29
+
30
+ ## 0.7.3
6
31
 
7
32
  VideoEditor:
8
33
  - Minor Controls sizes refactor.
@@ -24,6 +24,7 @@
24
24
 
25
25
  LX.CodeEditor.debugScopes = false;
26
26
  LX.CodeEditor.debugSymbols = false;
27
+ LX.CodeEditor.debugProcessedLines = false;
27
28
 
28
29
  // init library and get main area
29
30
  let area = await LX.init();
@@ -56,27 +57,40 @@
56
57
  // disableEdition: true,
57
58
  // skipInfo: true,
58
59
  fileExplorer: fileExplorer,
59
- // skipTabs: true
60
+ explorerName: "EXPLORER",
61
+ // statusShowFontSizeZoom: false,
62
+ // skipTabs: true,
63
+ files: [
64
+ "../data/js_sample.js",
65
+ "../data/ts_sample.ts",
66
+ "../data/json_sample.json",
67
+ "../data/css_sample.css",
68
+ "../data/cpp_sample.cpp",
69
+ "../data/cpp_header_sample.hpp",
70
+ "../data/c_sample.c",
71
+ "../data/xml_sample.xml",
72
+ "../data/python_sample.py",
73
+ "../data/rust_sample.rs",
74
+ "../data/php_sample.php",
75
+ "../data/localhost.bat",
76
+ "../data/frag.wgsl",
77
+ "../changelog.md",
78
+ "../index.html",
79
+ ],
80
+ onFilesLoaded: ( instance, numFilesLoaded ) => {
81
+ console.log( `CodeEditor: ${ numFilesLoaded } files loaded!` );
82
+ instance.loadTab("js_sample.js");
83
+ },
84
+ xonCreateFile: ( instance ) => {
85
+ return { name: "new_shader.wgsl", language: "WGSL" }
86
+ }
60
87
  });
61
88
 
62
- editor.loadFile("../data/js_sample.js");
63
- editor.loadFile("../data/ts_sample.ts");
64
- editor.loadFile("../data/json_sample.json");
65
- editor.loadFile("../data/css_sample.css");
66
- editor.loadFile("../data/cpp_sample.cpp");
67
- editor.loadFile("../data/cpp_header_sample.hpp");
68
- editor.loadFile("../data/c_sample.c");
69
- editor.loadFile("../data/xml_sample.xml");
70
- editor.loadFile("../data/python_sample.py");
71
- editor.loadFile("../data/rust_sample.rs");
72
- editor.loadFile("../data/animation.bml", { language: "JSON" });
73
- editor.loadFile("../data/CMakeLists.txt", { language: "CMake" });
74
- editor.loadFile("../data/php_sample.php");
75
- editor.loadFile("../data/localhost.bat");
76
- editor.loadFile("../changelog.md");
77
- editor.loadFile("../index.html");
78
-
79
- if (!fileExplorer) {
89
+ // editor.loadFile("../data/animation.bml", { language: "JSON" });
90
+ // editor.loadFile("../data/CMakeLists.txt", { language: "CMake" });
91
+
92
+ if( !fileExplorer )
93
+ {
80
94
  var ctx = canvas.getContext("2d");
81
95
  ctx.fillStyle = "#b7a9b1";
82
96
  ctx.font = "48px Monospace";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",