lexgui 0.6.3 → 0.6.4
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/build/components/nodegraph.js +4 -4
- package/build/components/timeline.js +1580 -2656
- package/build/components/videoeditor.js +72 -46
- package/build/lexgui.js +11859 -11919
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +11880 -11941
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +19 -1
- package/demo.js +13 -12
- package/examples/all_widgets.html +29 -0
- package/examples/dialogs.html +1 -1
- package/examples/editor.html +1104 -0
- package/examples/index.html +1 -0
- package/examples/previews/editor.png +0 -0
- package/examples/timeline.html +54 -28
- package/package.json +7 -4
package/changelog.md
CHANGED
|
@@ -2,7 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
## dev
|
|
4
4
|
|
|
5
|
-
## 0.6.
|
|
5
|
+
## 0.6.4 (master)
|
|
6
|
+
|
|
7
|
+
Timeline:
|
|
8
|
+
- Paste refactor.
|
|
9
|
+
- `onUpdateTrack` now expects an array of track indices as argument.
|
|
10
|
+
- Added root.
|
|
11
|
+
- Added documentation.
|
|
12
|
+
- Fixed example.
|
|
13
|
+
|
|
14
|
+
Widgets:
|
|
15
|
+
- Centered Map2D initial position.
|
|
16
|
+
|
|
17
|
+
Add `Editor` demo example.
|
|
18
|
+
Separate source into files. Generate module using `npm rollup`.
|
|
19
|
+
Fixed making floating branch + docking to panel.
|
|
20
|
+
Fixed graph renaming bug in NodeGraph editor.
|
|
21
|
+
Resize fixes in VideoEditor component.
|
|
22
|
+
|
|
23
|
+
## 0.6.3
|
|
6
24
|
|
|
7
25
|
Widgets:
|
|
8
26
|
- 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",
|
|
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" );
|
|
@@ -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 });
|
|
@@ -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
|
|
package/examples/dialogs.html
CHANGED
|
@@ -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({
|
|
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
|
|