lexgui 0.6.12 → 0.7.1

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.
Files changed (46) hide show
  1. package/README.md +14 -9
  2. package/build/{components → extensions}/audio.js +11 -11
  3. package/build/{components → extensions}/codeeditor.js +95 -63
  4. package/build/{components → extensions}/docmaker.js +10 -3
  5. package/build/{components → extensions}/imui.js +19 -12
  6. package/build/{components → extensions}/nodegraph.js +1 -1
  7. package/build/{components → extensions}/timeline.js +23 -23
  8. package/build/{components → extensions}/videoeditor.js +1 -1
  9. package/build/lexgui-docs.css +9 -9
  10. package/build/lexgui.css +500 -226
  11. package/build/lexgui.js +1562 -772
  12. package/build/lexgui.min.css +8 -2
  13. package/build/lexgui.min.js +1 -1
  14. package/build/lexgui.module.js +1563 -773
  15. package/build/lexgui.module.min.js +1 -1
  16. package/changelog.md +81 -21
  17. package/demo.js +45 -31
  18. package/examples/{all_widgets.html → all-components.html} +22 -4
  19. package/examples/{area_tabs.html → area-tabs.html} +3 -3
  20. package/examples/{asset_view.html → asset-view.html} +3 -3
  21. package/examples/{code_editor.html → code-editor.html} +4 -4
  22. package/examples/dialogs.html +3 -3
  23. package/examples/editor.html +27 -18
  24. package/examples/{immediate_ui.html → immediate-ui.html} +3 -3
  25. package/examples/index.html +8 -8
  26. package/examples/{node_graph.html → node-graph.html} +3 -3
  27. package/examples/previews/all-components.png +0 -0
  28. package/examples/previews/area-tabs.png +0 -0
  29. package/examples/previews/asset-view.png +0 -0
  30. package/examples/previews/code-editor.png +0 -0
  31. package/examples/previews/dialogs.png +0 -0
  32. package/examples/previews/editor.png +0 -0
  33. package/examples/previews/node-graph.png +0 -0
  34. package/examples/previews/side-bar.png +0 -0
  35. package/examples/previews/timeline.png +0 -0
  36. package/examples/{side_bar.html → side-bar.html} +3 -3
  37. package/examples/timeline.html +4 -4
  38. package/examples/{video_editor.html → video-editor.html} +3 -3
  39. package/examples/{video_editor2.html → video-editor2.html} +3 -3
  40. package/package.json +2 -2
  41. package/examples/previews/all_widgets.png +0 -0
  42. package/examples/previews/area_tabs.png +0 -0
  43. package/examples/previews/asset_view.png +0 -0
  44. package/examples/previews/code_editor.png +0 -0
  45. package/examples/previews/node_graph.png +0 -0
  46. package/examples/previews/side_bar.png +0 -0
@@ -5,12 +5,12 @@
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
6
  <title>LexGUI ImUI Demo</title>
7
7
  <link rel="stylesheet" href="../build/lexgui.css">
8
- <link rel="icon" href="../images/icon.png">
8
+ <link rel="icon" href="../images/favicon.png">
9
9
  <script type="importmap">
10
10
  {
11
11
  "imports": {
12
12
  "lexgui": "../build/lexgui.module.js",
13
- "lexgui/components/": "../build/components/"
13
+ "lexgui/extensions/": "../build/extensions/"
14
14
  }
15
15
  }
16
16
  </script>
@@ -20,7 +20,7 @@
20
20
  <script type="module">
21
21
 
22
22
  import { LX } from 'lexgui';
23
- import 'lexgui/components/imui.js';
23
+ import 'lexgui/extensions/imui.js';
24
24
 
25
25
  // init library and get main area
26
26
  let area = await LX.init();
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
6
6
  <title>Examples - LexGUI.js </title>
7
7
  <link rel="stylesheet" href="../build/lexgui.css">
8
- <link rel="icon" href="../images/icon.png">
8
+ <link rel="icon" href="../images/favicon.png">
9
9
  <style>
10
10
  iframe { border: none; }
11
11
  </style>
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "imports": {
15
15
  "lexgui": "../build/lexgui.module.js",
16
- "lexgui/components/": "../build/components/"
16
+ "lexgui/extensions/": "../build/extensions/"
17
17
  }
18
18
  }
19
19
  </script>
@@ -29,7 +29,7 @@
29
29
 
30
30
  const mobile = navigator && /Android|iPhone/i.test( navigator.userAgent );
31
31
  const examples = [
32
- 'All Widgets',
32
+ 'All Components',
33
33
  'Area Tabs',
34
34
  'Asset View',
35
35
  'Code Editor',
@@ -57,7 +57,7 @@
57
57
  if( mobile )
58
58
  {
59
59
  const sheetArea = new LX.Area({ skipAppend: true });
60
- panel = sheetArea.addPanel();
60
+ panel = sheetArea.addPanel({ className: "flex flex-col gap-2" });
61
61
  iFrameArea = area;
62
62
 
63
63
  overlayButtons.splice( 0, 0, {
@@ -70,7 +70,7 @@
70
70
  }
71
71
  else
72
72
  {
73
- let [ leftArea, rightArea ] = area.split({ sizes: ["20%","80%"], resize: false });
73
+ let [ leftArea, rightArea ] = area.split({ sizes: ["15%","85%"], resize: false });
74
74
  leftArea.root.style.borderRight = "2px solid gray";
75
75
 
76
76
  const menubar = leftArea.addMenubar( [
@@ -78,7 +78,7 @@
78
78
  ] );
79
79
  menubar.setButtonIcon("Github", "Github", () => {window.open("https://github.com/jxarco/lexgui.js/")}, { float: "left" });
80
80
 
81
- panel = leftArea.addPanel();
81
+ panel = leftArea.addPanel({ className: "flex flex-col gap-1" });
82
82
  iFrameArea = rightArea;
83
83
  }
84
84
 
@@ -86,7 +86,7 @@
86
86
 
87
87
  let iframe = document.createElement('iframe');
88
88
  iframe.id = iframe.name = 'viewer';
89
- iframe.src = examples[0].replace(" ", "_").toLowerCase() + ".html";
89
+ iframe.src = examples[0].replace(" ", "-").toLowerCase() + ".html";
90
90
  iframe.style.width = "100%";
91
91
  iframe.style.height = "100%";
92
92
  iFrameArea.root.appendChild(iframe);
@@ -101,7 +101,7 @@
101
101
 
102
102
  for( let ex of examples )
103
103
  {
104
- const id = ex.replace(" ", "_").toLowerCase();
104
+ const id = ex.replace(" ", "-").toLowerCase();
105
105
  const options = {
106
106
  img: "previews/" + id + ".png",
107
107
  callback: function() {
@@ -5,12 +5,12 @@
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
6
  <title>LexGUI Node Graph Demo</title>
7
7
  <link rel="stylesheet" href="../build/lexgui.css">
8
- <link rel="icon" href="../images/icon.png">
8
+ <link rel="icon" href="../images/favicon.png">
9
9
  <script type="importmap">
10
10
  {
11
11
  "imports": {
12
12
  "lexgui": "../build/lexgui.module.js",
13
- "lexgui/components/": "../build/components/"
13
+ "lexgui/extensions/": "../build/extensions/"
14
14
  }
15
15
  }
16
16
  </script>
@@ -20,7 +20,7 @@
20
20
  <script type="module">
21
21
 
22
22
  import { LX } from 'lexgui';
23
- import 'lexgui/components/nodegraph.js';
23
+ import 'lexgui/extensions/nodegraph.js';
24
24
 
25
25
  // init library and get main area
26
26
  let area = await LX.init();
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -5,12 +5,12 @@
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
6
  <title>LexGUI Area Tabs Demo</title>
7
7
  <link rel="stylesheet" href="../build/lexgui.css">
8
- <link rel="icon" href="../images/icon.png">
8
+ <link rel="icon" href="../images/favicon.png">
9
9
  <script type="importmap">
10
10
  {
11
11
  "imports": {
12
12
  "lexgui": "../build/lexgui.module.js",
13
- "lexgui/components/": "../build/components/"
13
+ "lexgui/extensions/": "../build/extensions/"
14
14
  }
15
15
  }
16
16
  </script>
@@ -65,7 +65,7 @@
65
65
  }, {
66
66
  headerTitle: "jxarco",
67
67
  headerSubtitle: "alexroco.30@gmail.com",
68
- headerImage: "https://raw.githubusercontent.com/jxarco/lexgui.js/refs/heads/master/images/icon.png",
68
+ headerImage: "https://raw.githubusercontent.com/jxarco/lexgui.js/refs/heads/master/images/favicon.png",
69
69
  footerTitle: "jxarco",
70
70
  footerSubtitle: "alexroco.30@gmail.com",
71
71
  footerImage: "https://avatars.githubusercontent.com/u/25059187?s=400&u=ad8907b748c13e4e1a7cdd3882826acb6a2928b5&v=4",
@@ -4,12 +4,12 @@
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
5
  <title>LexGUI Timelines Demo</title>
6
6
  <link rel="stylesheet" href="../build/lexgui.css">
7
- <link rel="icon" href="../images/icon.png">
7
+ <link rel="icon" href="../images/favicon.png">
8
8
  <script type="importmap">
9
9
  {
10
10
  "imports": {
11
11
  "lexgui": "../build/lexgui.module.js",
12
- "lexgui/components/": "../build/components/"
12
+ "lexgui/extensions/": "../build/extensions/"
13
13
  }
14
14
  }
15
15
  </script>
@@ -18,7 +18,7 @@
18
18
  <script type="module">
19
19
 
20
20
  import { LX } from 'lexgui';
21
- import { Timeline, KeyFramesTimeline, ClipsTimeline } from 'lexgui/components/timeline.js';
21
+ import { Timeline, KeyFramesTimeline, ClipsTimeline } from 'lexgui/extensions/timeline.js';
22
22
 
23
23
  // init library and get main area
24
24
  let area = await LX.init();
@@ -97,7 +97,7 @@
97
97
  ctx.font = panel.getValue('Font Size') + "px Monospace";
98
98
  ctx.fillStyle = panel.getValue('Font Color');
99
99
 
100
- // Get values from panel widgets (e.g. position value)
100
+ // Get values from panel component (e.g. position value)
101
101
  const text = panel.getValue('Text');
102
102
  const pos2D = panel.getValue('2D Position');
103
103
  ctx.fillText(text, pos2D[0], pos2D[1]);
@@ -5,12 +5,12 @@
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
6
  <title>LexGUI Video Editor Demo</title>
7
7
  <link rel="stylesheet" href="../build/lexgui.css">
8
- <link rel="icon" href="../images/icon.png">
8
+ <link rel="icon" href="../images/favicon.png">
9
9
  <script type="importmap">
10
10
  {
11
11
  "imports": {
12
12
  "lexgui": "../build/lexgui.module.js",
13
- "lexgui/components/": "../build/components/"
13
+ "lexgui/extensions/": "../build/extensions/"
14
14
  }
15
15
  }
16
16
  </script>
@@ -20,7 +20,7 @@
20
20
  <script type="module">
21
21
 
22
22
  import { LX } from 'lexgui';
23
- import { VideoEditor } from 'lexgui/components/videoeditor.js';
23
+ import { VideoEditor } from 'lexgui/extensions/videoeditor.js';
24
24
  // init library and get main area
25
25
  let area = await LX.init();
26
26
 
@@ -5,12 +5,12 @@
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
6
  <title>LexGUI Video Editor Demo</title>
7
7
  <link rel="stylesheet" href="../build/lexgui.css">
8
- <link rel="icon" href="../images/icon.png">
8
+ <link rel="icon" href="../images/favicon.png">
9
9
  <script type="importmap">
10
10
  {
11
11
  "imports": {
12
12
  "lexgui": "../build/lexgui.module.js",
13
- "lexgui/components/": "../build/components/"
13
+ "lexgui/extensions/": "../build/extensions/"
14
14
  }
15
15
  }
16
16
  </script>
@@ -20,7 +20,7 @@
20
20
  <script type="module">
21
21
 
22
22
  import { LX } from 'lexgui';
23
- import { VideoEditor } from 'lexgui/components/videoeditor.js';
23
+ import { VideoEditor } from 'lexgui/extensions/videoeditor.js';
24
24
 
25
25
  // Init library and get main area
26
26
  let area = await LX.init();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.6.12",
3
+ "version": "0.7.1",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "files": [
13
13
  "build",
14
- "build/components",
14
+ "build/extensions",
15
15
  "examples",
16
16
  "LICENSE",
17
17
  "package.json",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file