lexgui 0.6.2 → 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.css +6 -5
- package/build/lexgui.js +7885 -7388
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +7862 -7366
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +31 -1
- package/demo.js +31 -16
- package/examples/all_widgets.html +30 -1
- 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,37 @@
|
|
|
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
|
|
24
|
+
|
|
25
|
+
Widgets:
|
|
26
|
+
- New Map2D Widget (For NNI).
|
|
27
|
+
- Fixed `NodeTree.select` when item is not shown.
|
|
28
|
+
- Fixed issue corrupting table body when manual sorting in Table Widget.
|
|
29
|
+
|
|
30
|
+
Fixed `autoTheme` on start with `dark` color scheme.
|
|
31
|
+
Improved Context Menu docs section.
|
|
32
|
+
Added a few more icon solid variants.
|
|
33
|
+
Minor fixes.
|
|
34
|
+
|
|
35
|
+
## 0.6.2
|
|
6
36
|
|
|
7
37
|
Widgets:
|
|
8
38
|
- Fixed Title Widget class override.
|
package/demo.js
CHANGED
|
@@ -7,11 +7,11 @@ window.LX = LX;
|
|
|
7
7
|
|
|
8
8
|
const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
// Menubar
|
|
12
11
|
{
|
|
13
12
|
const menubar = area.addMenubar( [
|
|
14
|
-
{ name: "Docs",
|
|
13
|
+
{ name: "Docs", callback: () => { window.open("./docs/") } },
|
|
14
|
+
{ name: "Examples", callback: () => { window.open("./examples/") } },
|
|
15
15
|
] );
|
|
16
16
|
|
|
17
17
|
menubar.setButtonImage("lexgui.js", "images/icon.png", () => {window.open("https://jxarco.github.io/lexgui.js/")}, {float: "left"})
|
|
@@ -173,7 +173,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
173
173
|
'actions': [
|
|
174
174
|
{
|
|
175
175
|
'name': 'Open script',
|
|
176
|
-
'icon': '
|
|
176
|
+
'icon': 'Scroll'
|
|
177
177
|
}
|
|
178
178
|
]
|
|
179
179
|
}
|
|
@@ -236,6 +236,18 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
236
236
|
panel.addCheckbox("Visibility", true, null, { className: "accent" });
|
|
237
237
|
panel.addLayers("Layers", 10, null);
|
|
238
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
|
+
];
|
|
249
|
+
panel.addMap2D("Map2D", map2Dpoints, null, { size: [ 300, 300 ] });
|
|
250
|
+
|
|
239
251
|
panel.addTitle( "Transform" );
|
|
240
252
|
panel.addVector3( "Position", [0.0, 0.0, 0.0] );
|
|
241
253
|
panel.addVector4( "Rotation", [0.0, 0.0, 0.0, 1.0] );
|
|
@@ -361,7 +373,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
361
373
|
{
|
|
362
374
|
// Buttons
|
|
363
375
|
{
|
|
364
|
-
const mailPreviewHeader = LX.makeContainer( [ "100%", "
|
|
376
|
+
const mailPreviewHeader = LX.makeContainer( [ "100%", "43.5px" ], "flex flex-row border-bottom p-1", "", right );
|
|
365
377
|
|
|
366
378
|
mailPreviewHeader.appendChild( new LX.Button( null, "", null, { title: "Archive", tooltip: true, buttonClass: "bg-none", icon: "Archive" } ).root );
|
|
367
379
|
mailPreviewHeader.appendChild( new LX.Button( null, "", null, { title: "Move to junk", tooltip: true, buttonClass: "bg-none", icon: "ArchiveX" } ).root );
|
|
@@ -421,7 +433,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
421
433
|
LX.toast( "Message sent!", "To:" + mail.email, { timeout: 5000, action: { name: "Undo", callback: ( toast, actionName, event ) => {
|
|
422
434
|
toast.close();
|
|
423
435
|
} } } );
|
|
424
|
-
}, { className: "ml-auto", buttonClass: "contrast" } );
|
|
436
|
+
}, { className: "ml-auto", buttonClass: "contrast px-2" } );
|
|
425
437
|
previewButtons.appendChild( sendButton.root );
|
|
426
438
|
};
|
|
427
439
|
}
|
|
@@ -439,17 +451,17 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
439
451
|
`, tasksContainer );
|
|
440
452
|
|
|
441
453
|
const tableWidget = new LX.Table(null, {
|
|
442
|
-
head: ["Name", "Status", "Priority"],
|
|
454
|
+
head: [ "Name", "Status", "Priority", "ID" ],
|
|
443
455
|
body: [
|
|
444
|
-
["Alice", "In Progress", "High"],
|
|
445
|
-
["Bob", "Backlog", "Medium"],
|
|
446
|
-
["Prince", "Canceled", "Low"],
|
|
447
|
-
["Sean", "Done", "High"],
|
|
448
|
-
["Carter", "In Progress", "Medium"],
|
|
449
|
-
["James", "Backlog", "Low"],
|
|
450
|
-
["Mickey", "Todo", "Low"],
|
|
451
|
-
["Charlie", "Canceled", "Low"],
|
|
452
|
-
["Potato", "Todo", "High"]
|
|
456
|
+
[ "Alice", "In Progress", "High", 1 ],
|
|
457
|
+
[ "Bob", "Backlog", "Medium", 2 ],
|
|
458
|
+
[ "Prince", "Canceled", "Low", 3 ],
|
|
459
|
+
[ "Sean", "Done", "High", 4 ],
|
|
460
|
+
[ "Carter", "In Progress", "Medium", 5 ],
|
|
461
|
+
[ "James", "Backlog", "Low", 6 ],
|
|
462
|
+
[ "Mickey", "Todo", "Low", 7 ],
|
|
463
|
+
[ "Charlie", "Canceled", "Low", 8 ],
|
|
464
|
+
[ "Potato", "Todo", "High", 9 ]
|
|
453
465
|
]
|
|
454
466
|
}, {
|
|
455
467
|
selectable: true,
|
|
@@ -459,6 +471,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
459
471
|
customFilters: [
|
|
460
472
|
{ name: "Status", options: ["Backlog", "Todo", "In Progress", "Done", "Cancelled"] },
|
|
461
473
|
{ name: "Priority", options: ["Low", "Medium", "High"] },
|
|
474
|
+
{ name: "ID", type: "range", min: 0, max: 9, step: 1, units: "hr" },
|
|
462
475
|
],
|
|
463
476
|
rowActions: [
|
|
464
477
|
{ icon: "Edit", title: "Edit Row" },
|
|
@@ -469,7 +482,9 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
469
482
|
return [
|
|
470
483
|
{ name: "Export" },
|
|
471
484
|
{ name: "Make a copy" },
|
|
472
|
-
{ name: "Favourite" }
|
|
485
|
+
{ name: "Favourite" },
|
|
486
|
+
null,
|
|
487
|
+
{ name: "Delete", icon: "Trash2", className: "fg-error" },
|
|
473
488
|
]
|
|
474
489
|
}
|
|
475
490
|
});
|
|
@@ -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 });
|
|
@@ -277,7 +290,7 @@
|
|
|
277
290
|
'actions': [
|
|
278
291
|
{
|
|
279
292
|
'name': 'Open script',
|
|
280
|
-
'icon': '
|
|
293
|
+
'icon': 'Scroll',
|
|
281
294
|
'callback': function (node) {
|
|
282
295
|
console.log(node.id + ": Script opened!")
|
|
283
296
|
}
|
|
@@ -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
|
|