lexgui 0.1.42 → 0.1.43

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,10 +1,23 @@
1
1
  # lexgui.js changelog
2
2
 
3
- ## 0.1.43 (dev)
3
+ ## 0.1.44 (dev)
4
4
 
5
5
 
6
6
 
7
- ## 0.1.42 (master)
7
+ ## 0.1.43 (master)
8
+
9
+ CodeEditor:
10
+ - Support C and CMake highlight.
11
+ - Support C/C++ header files highlighting.
12
+
13
+ Support `options.skipRoot` on LX.init.
14
+ Support lock aspect ratio in Panel.addSize
15
+ Improved CSS for overlay buttons `Area.addOverlayButtons`.
16
+ Docs Updated. Add interactive widget examples.
17
+ Minor CSS general changes.
18
+ Minor bug fixes.
19
+
20
+ ## 0.1.42
8
21
 
9
22
  AssetView:
10
23
  - Support custom element title on hover for Content layout mode `options.useNativeTitle`
package/demo.js CHANGED
@@ -129,6 +129,12 @@ area.addMenubar( m => {
129
129
  // split main area
130
130
  var [left, right] = area.split({ sizes:["80%","20%"], minimizable: true });
131
131
 
132
+ // left.addSidebar( m => {
133
+ // m.add( "Scene", { icon: "fa fa-cube", callback: () => { } } );
134
+ // m.add( "Code", { icon: "fa fa-code", callback: () => { } } );
135
+ // m.add( "Search", { icon: "fa fa-search", bottom: true, callback: () => { } } );
136
+ // });
137
+
132
138
  // split left area
133
139
  var [up, bottom] = left.split({ type: 'vertical', sizes:["50%", null], minimizable: true });
134
140
 
@@ -540,7 +546,7 @@ function fillPanel( panel ) {
540
546
  }, { padSize: "100px", min: -1, max: 2 });
541
547
  panel.addSize("Screen Res", [1280, 720], (value, event) => {
542
548
  console.log(value);
543
- }, { units: "p" });
549
+ }, { units: "p", precision: 0 });
544
550
 
545
551
  const formData = { username: "", password: { value: "", type: "password" } };
546
552
  panel.addForm("Test form", formData, (value, event) => {
@@ -701,9 +707,9 @@ function fillBottomPanel( panel ) {
701
707
  panel.addTextArea("Notes", "", (value, event) => {
702
708
  console.log(value);
703
709
  }, { placeholder: 'Some notes...' });
704
- panel.addKnob("A Small Knob", 4, 0, 200, value => { console.log( value ) }, { size: 'sm', disabled: true });
710
+ panel.addKnob("A Small but disabled Knob", 4, 0, 200, value => { console.log( value ) }, { size: 'sm', disabled: true });
705
711
  panel.addKnob("A Knob", 4, 0, 200, value => { console.log( value ) } );
706
- panel.addKnob("A Big Knob", 4, 0, 200, value => { console.log( value ) }, { size: 'bg', snap: 4 });
712
+ panel.addKnob("A Big Knob with Snap", 4, 0, 200, value => { console.log( value ) }, { size: 'bg', snap: 4 });
707
713
  panel.addButton("Apply", "Add button to branch", (value, event) => {
708
714
  const branch = panel.getBranch("Information");
709
715
  panel.queue( branch.content );
@@ -56,10 +56,13 @@
56
56
  editor.loadFile( "../data/json_sample.json" );
57
57
  editor.loadFile( "../data/css_sample.css" );
58
58
  editor.loadFile( "../data/cpp_sample.cpp" );
59
+ editor.loadFile( "../data/cpp_header_sample.hpp" );
60
+ editor.loadFile( "../data/c_sample.c" );
59
61
  editor.loadFile( "../data/xml_sample.xml" );
60
62
  editor.loadFile( "../data/python_sample.py" );
61
63
  editor.loadFile( "../data/rust_sample.rs" );
62
64
  editor.loadFile( "../data/animation.bml", { language: "JSON" } );
65
+ editor.loadFile( "../data/CMakeLists.txt", { language: "CMake" } );
63
66
  editor.loadFile( "../localhost.bat" );
64
67
  editor.loadFile( "../index.html" );
65
68
 
Binary file
Binary file
@@ -60,12 +60,12 @@
60
60
 
61
61
  var ctx = canvas.getContext("2d");
62
62
 
63
- ctx.fillStyle = "#def698";
63
+ ctx.fillStyle = "#b7a9b1";
64
64
 
65
65
  ctx.fillRect(0, 0, canvas.width, canvas.height);
66
66
  ctx.font = "44px Monospace";
67
67
 
68
- ctx.fillStyle = "#f13523";
68
+ ctx.fillStyle = "#ff1999";
69
69
 
70
70
  const text = "lexgui @jxarco";
71
71
  const pos2D = [200, 200];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",