lexgui 0.1.41 → 0.1.42

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,11 +1,30 @@
1
1
  # lexgui.js changelog
2
2
 
3
- ## 0.1.42 (dev)
3
+ ## 0.1.43 (dev)
4
4
 
5
- ## 0.1.41 (master)
5
+
6
+
7
+ ## 0.1.42 (master)
8
+
9
+ AssetView:
10
+ - Support custom element title on hover for Content layout mode `options.useNativeTitle`
11
+ - AssetView onRefreshContent option
12
+
13
+ CodeEditor:
14
+ - Renamed all option parameters (remove snake case).
15
+ - Fixed tab language override.
16
+ - Support addTab() and loadFile() with options (`options.language`)
17
+ - Fixed XML highlighting
18
+
19
+ Support options.title in Panel.addButton.
20
+ [Area] `options.no_append` -> `options.skipAppend`.
21
+ [Area] `options.skip_default_area` -> `options.skipDefaultArea`.
22
+ Minor bug fixes.
23
+
24
+ ## 0.1.41
6
25
 
7
26
  AssetView:
8
- - Renamed all option parameters (remove snake_case).
27
+ - Renamed all option parameters (remove snake case).
9
28
  - Support showing `lastModified` file data.
10
29
 
11
30
  Knob Widget:
package/demo.js CHANGED
@@ -176,18 +176,16 @@ bottom.addMenubar( m => {
176
176
  kfTimeline.resize();
177
177
  }
178
178
  else {
179
- kfTimeline = new LX.KeyFramesTimeline("kf-timeline", { width: m.root.clientWidth, height: m.parent.root.parentElement.clientHeight - m.root.clientHeight });
179
+ kfTimeline = new LX.KeyFramesTimeline("kf-timeline", {
180
+ onBeforeCreateTopBar: panel => {
181
+ panel.addButton('', '<i class="fa fa-wand-magic-sparkles"></i>', ( value, event ) => { });
182
+ }
183
+ });
184
+
180
185
  bottom.attach(kfTimeline.root);
181
186
  kfTimeline.setSelectedItems(["Item 1", "Item 2", "Item 3"]);
182
187
  kfTimeline.setAnimationClip({tracks: [{name: "Item 1.position", values: [0,1,0, 1], times: [0, 0.1, 0.2, 0.3]}, {name: "Item 1.scale", values: [0,1,0, 0.5], times: [0, 0.1, 0.2, 0.3]}, {name: "Item 2", values: [0,1,0,1], times: [0.1, 0.2, 0.3, 0.8]}, {name: "Item 3.position", values: [0,1,0], times: [0, 0.1, 0.2, 0.3]}, {name: "Item 3.scale", values: [0,1,0], times: [0, 0.1, 0.2, 0.3]}], duration: 1});
183
-
184
- kfTimeline.addButtons([
185
- { icon: 'fa fa-wand-magic-sparkles', name: 'autoKeyEnabled' },
186
- { icon: 'fa fa-filter', name: "optimize", callback: (value, event) => { kfTimeline.onShowOptimizeMenu(event);}},
187
- { icon: 'fa-regular fa-rectangle-xmark', name: 'unselectAll', callback: (value, event) => { kfTimeline.unSelectAllKeyFrames();}}
188
- ]);
189
-
190
- kfTimeline.draw(0);
188
+ kfTimeline.draw( 0 );
191
189
  }
192
190
  });
193
191
 
@@ -42,7 +42,8 @@
42
42
  canvas.height = bounding.height;
43
43
  };
44
44
 
45
- let assetView = new LX.AssetView({
45
+ let assetView = new LX.AssetView({
46
+ // useNativeTitle: true,
46
47
  // skipBrowser: true,
47
48
  // skipPreview: true,
48
49
  // rootPath: "../"
@@ -121,7 +122,7 @@
121
122
  {
122
123
  id: "color.png",
123
124
  type: "image",
124
- src: "https://cdn.icon-icons.com/icons2/2389/PNG/512/unreal_engine_logo_icon_144771.png"
125
+ src: "https://cdn2.unrealengine.com/ue-logotype-2023-vertical-white-1686x2048-bbfded26daa7.png"
125
126
  },
126
127
  {
127
128
  id: "demo.js",
@@ -23,9 +23,9 @@
23
23
  // init library and get main area
24
24
  let area = LX.init();
25
25
 
26
- const file_explorer = true;
26
+ const fileExplorer = true;
27
27
 
28
- if( !file_explorer )
28
+ if( !fileExplorer )
29
29
  {
30
30
  var [leftArea, rightArea] = area.split({ sizes:["55%","45%"] });
31
31
 
@@ -46,10 +46,10 @@
46
46
  }
47
47
 
48
48
  let editor = new LX.CodeEditor(area, {
49
- // allow_add_scripts: false,
49
+ // allowAddScripts: false,
50
50
  // autocomplete: false,
51
- // disable_edition: true,
52
- file_explorer: file_explorer
51
+ // disableEdition: true,
52
+ fileExplorer: fileExplorer
53
53
  });
54
54
 
55
55
  editor.loadFile( "../data/js_sample.js" );
@@ -59,9 +59,11 @@
59
59
  editor.loadFile( "../data/xml_sample.xml" );
60
60
  editor.loadFile( "../data/python_sample.py" );
61
61
  editor.loadFile( "../data/rust_sample.rs" );
62
+ editor.loadFile( "../data/animation.bml", { language: "JSON" } );
62
63
  editor.loadFile( "../localhost.bat" );
64
+ editor.loadFile( "../index.html" );
63
65
 
64
- if( !file_explorer )
66
+ if( !fileExplorer )
65
67
  {
66
68
  var ctx = canvas.getContext("2d");
67
69
  ctx.fillStyle = "#b7a9b1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",