lexgui 0.6.3 → 0.6.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,37 @@
2
2
 
3
3
  ## dev
4
4
 
5
- ## 0.6.3 (master)
5
+ ## 0.6.5 (master)
6
+
7
+ Timeline:
8
+ - Refactored undo-redo.
9
+ - ClipsTimeline: added an argument on `addClip` to start search at a particular track.
10
+ - Documentation updated.
11
+ - Minor fixes.
12
+
13
+ Use sidebar inside Sheet element on mobile.
14
+ Removed LX.UTILS. Moved methods to global namespace `LX`.
15
+ Minor fixes in example demos.
16
+
17
+ ## 0.6.4
18
+
19
+ Timeline:
20
+ - Paste refactor.
21
+ - `onUpdateTrack` now expects an array of track indices as argument.
22
+ - Added root.
23
+ - Added documentation.
24
+ - Fixed example.
25
+
26
+ Widgets:
27
+ - Centered Map2D initial position.
28
+
29
+ Add `Editor` demo example.
30
+ Separate source into files. Generate module using `npm rollup`.
31
+ Fixed making floating branch + docking to panel.
32
+ Fixed graph renaming bug in NodeGraph editor.
33
+ Resize fixes in VideoEditor component.
34
+
35
+ ## 0.6.3
6
36
 
7
37
  Widgets:
8
38
  - New Map2D Widget (For NNI).
package/demo.js CHANGED
@@ -7,21 +7,11 @@ window.LX = LX;
7
7
 
8
8
  const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
9
9
 
10
- const map2Dpoints = [
11
- { "name": "angry", "pos": [-0.29348334680286725,-0.8813498603327697] },
12
- { "name": "happy", "pos": [0.5728906393051147,-0.2508566975593567] },
13
- { "name": "sad", "pos": [-0.542498156289837,0.3795300176749039] },
14
- { "name": "calm", "pos": [0.46099435955317536,0.6203009288162395] },
15
- { "name": "bored", "pos": [-0.349232931016368,0.8103832270857154] },
16
- { "name": "frustrated", "pos": [-0.49046521102390306,-0.5708814736724744] },
17
- { "name": "smile", "pos": [0.5762101669277435,0.20211987262339348] },
18
- { "name": "upset", "pos": [-0.5796645457655041,-0.1907168771335228] }
19
- ];
20
-
21
10
  // Menubar
22
11
  {
23
12
  const menubar = area.addMenubar( [
24
- { name: "Docs", icon: "search", kbd: "F1", callback: () => { window.open("./docs/") } }
13
+ { name: "Docs", callback: () => { window.open("./docs/") } },
14
+ { name: "Examples", callback: () => { window.open("./examples/") } },
25
15
  ] );
26
16
 
27
17
  menubar.setButtonImage("lexgui.js", "images/icon.png", () => {window.open("https://jxarco.github.io/lexgui.js/")}, {float: "left"})
@@ -245,6 +235,17 @@ const map2Dpoints = [
245
235
  panel.addText("Name", "node_1");
246
236
  panel.addCheckbox("Visibility", true, null, { className: "accent" });
247
237
  panel.addLayers("Layers", 10, null);
238
+
239
+ const map2Dpoints = [
240
+ { "name": "angry", "pos": [-0.29348334680286725,-0.8813498603327697] },
241
+ { "name": "happy", "pos": [0.5728906393051147,-0.2508566975593567] },
242
+ { "name": "sad", "pos": [-0.542498156289837,0.3795300176749039] },
243
+ { "name": "calm", "pos": [0.46099435955317536,0.6203009288162395] },
244
+ { "name": "bored", "pos": [-0.349232931016368,0.8103832270857154] },
245
+ { "name": "frustrated", "pos": [-0.49046521102390306,-0.5708814736724744] },
246
+ { "name": "smile", "pos": [0.5762101669277435,0.20211987262339348] },
247
+ { "name": "upset", "pos": [-0.5796645457655041,-0.1907168771335228] }
248
+ ];
248
249
  panel.addMap2D("Map2D", map2Dpoints, null, { size: [ 300, 300 ] });
249
250
 
250
251
  panel.addTitle( "Transform" );
@@ -468,7 +469,7 @@ const map2Dpoints = [
468
469
  toggleColumns: true,
469
470
  filter: "Name",
470
471
  customFilters: [
471
- { name: "Status", options: ["Backlog", "Todo", "In Progress", "Done", "Cancelled"] },
472
+ { name: "Status", options: ["Backlog", "Todo", "In Progress", "Done", "Canceled"] },
472
473
  { name: "Priority", options: ["Low", "Medium", "High"] },
473
474
  { name: "ID", type: "range", min: 0, max: 9, step: 1, units: "hr" },
474
475
  ],
@@ -60,6 +60,17 @@
60
60
 
61
61
  let closedDefault = false;
62
62
 
63
+ const map2Dpoints = [
64
+ { "name": "angry", "pos": [-0.29348334680286725,-0.8813498603327697] },
65
+ { "name": "happy", "pos": [0.5728906393051147,-0.2508566975593567] },
66
+ { "name": "sad", "pos": [-0.542498156289837,0.3795300176749039] },
67
+ { "name": "calm", "pos": [0.46099435955317536,0.6203009288162395] },
68
+ { "name": "bored", "pos": [-0.349232931016368,0.8103832270857154] },
69
+ { "name": "frustrated", "pos": [-0.49046521102390306,-0.5708814736724744] },
70
+ { "name": "smile", "pos": [0.5762101669277435,0.20211987262339348] },
71
+ { "name": "upset", "pos": [-0.5796645457655041,-0.1907168771335228] }
72
+ ];
73
+
63
74
  fillPanels();
64
75
 
65
76
  // **** **** **** **** **** **** **** **** **** **** **** ****
@@ -222,6 +233,8 @@
222
233
  panelB.addOTP("Custom Pattern", "23423411", null, { pattern: "xxxx-xxxx" });
223
234
  panelB.addOTP("Empty", "");
224
235
  panelB.addOTP("Disabled OTP", "965114", null, { disabled: true });
236
+ panelB.branch("Map2D Inputs", { closed: closedDefault });
237
+ panelB.addMap2D("Map2D", map2Dpoints, null, { size: [ 300, 300 ] });
225
238
  panelB.branch("Color Inputs", { closed: closedDefault });
226
239
  panelB.addColor("From Hex Color", "#b7a9b1");
227
240
  panelB.addColor("From RGB Color", { r: 1, g: 0.1, b: 0.6 });
@@ -338,6 +351,14 @@
338
351
  });
339
352
  }
340
353
 
354
+ // List
355
+ {
356
+ panelC.branch("List", { closed: closedDefault });
357
+ panelC.addList("Number List", [ 1, 2, 3, 4 ] );
358
+ panelC.addList("String List", [ 'GPTeam', 'Blat Bunny', 'Blat Panthers' ], 'Blat Panthers');
359
+ panelC.addList("String List with Icons", [['GPTeam', 'Gpu'], ['Blat Bunny', 'Bone'], ['Blat Panthers', 'PawPrint']], 'Blat Panthers');
360
+ }
361
+
341
362
  // Table
342
363
  {
343
364
  panelC.branch("Tables", { closed: closedDefault });
@@ -360,7 +381,7 @@
360
381
  toggleColumns: true,
361
382
  filter: "Name",
362
383
  customFilters: [
363
- { name: "Status", options: ["Backlog", "Todo", "In Progress", "Done", "Cancelled"] },
384
+ { name: "Status", options: ["Backlog", "Todo", "In Progress", "Done", "Canceled"] },
364
385
  { name: "Priority", options: ["Low", "Medium", "High"] },
365
386
  ],
366
387
  rowActions: [
@@ -389,6 +410,14 @@
389
410
  panelC.branch("Layers", { closed: closedDefault });
390
411
  panelC.addLayers("Layers", 10);
391
412
  }
413
+
414
+ // Progress
415
+ {
416
+ panelC.branch("Progress", { closed: closedDefault });
417
+ panelC.addProgress("Default", 0.65, { showValue: true });
418
+ panelC.addProgress("Custom", 0.1, { min: -1, max: 1, low: -0.25, high: 0.25, optimum: 0.75, showValue: true });
419
+ panelC.addProgress("Custom Editable", -0.4, { min: -1, max: 1, low: -0.25, high: 0.25, optimum: 0.75, showValue: true, editable: true });
420
+ }
392
421
  }
393
422
  </script>
394
423
 
@@ -22,7 +22,7 @@
22
22
  import { LX } from 'lexgui';
23
23
 
24
24
  // Init library and get main area
25
- let area = await LX.init({ skip_default_area: true });
25
+ let area = await LX.init({ skipDefaultArea: true });
26
26
 
27
27
  LX.popup("Hello! I'm a popup dialog :)", null, { position: ["45%", "20%"] })
28
28