lexgui 0.6.9 → 0.6.11
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/README.md +3 -3
- package/build/components/docmaker.js +2 -2
- package/build/components/timeline.js +102 -73
- package/build/lexgui-docs.css +0 -2
- package/build/lexgui.css +39 -4
- package/build/lexgui.js +640 -259
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +682 -301
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +33 -1
- package/demo.js +27 -0
- package/examples/editor.html +11 -6
- package/package.json +3 -2
package/changelog.md
CHANGED
|
@@ -2,7 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
## dev
|
|
4
4
|
|
|
5
|
-
## 0.6.
|
|
5
|
+
## 0.6.11 (master)
|
|
6
|
+
|
|
7
|
+
Widgets:
|
|
8
|
+
- Fixed Progress Widget value clamp and callback.
|
|
9
|
+
- Fixed Form data entries initial value if not an Object. Added support for Form `entryData.label`.
|
|
10
|
+
- Fixed Vector reset issue getting old values after reset.
|
|
11
|
+
|
|
12
|
+
Popover are now allowed to be created without a trigger element using `options.reference`.
|
|
13
|
+
Added support for DropdownMenu and Popover `options.sideOffset` and `options.alignOffset`.
|
|
14
|
+
Added support for new `LX.Tour` Component to guide users through an app.
|
|
15
|
+
Fixed light-dark themes in docs css.
|
|
16
|
+
Docs updated.
|
|
17
|
+
|
|
18
|
+
## 0.6.10
|
|
19
|
+
|
|
20
|
+
Timeline:
|
|
21
|
+
- Added support for cloning clips and tracks.
|
|
22
|
+
- Minor fixes.
|
|
23
|
+
|
|
24
|
+
Widgets:
|
|
25
|
+
- All `Button` widgets have now `setState` method (not only those with `swap` feature).
|
|
26
|
+
- Layers Widget allow `options.maxBits` to specify number of bit layers.
|
|
27
|
+
- If Button is selectable, the `selected` state is not sent to the callback.
|
|
28
|
+
- Fixed Color Picker not updating on change Hex text input.
|
|
29
|
+
- TabSections: Allow `item.selected` option. Add support for `select( tabName )`.
|
|
30
|
+
- Fixed Select Widget positioning when no space above&below.
|
|
31
|
+
|
|
32
|
+
New `AreaOverlayButtons` to improve management and support changing buttons state.
|
|
33
|
+
Fixed Commandbar error on checking String Menubar items.
|
|
34
|
+
Fixed Asset View custom title overflow.
|
|
35
|
+
Docs updated.
|
|
36
|
+
|
|
37
|
+
## 0.6.9
|
|
6
38
|
|
|
7
39
|
Timeline:
|
|
8
40
|
- `addKeyframes` now returns new indices.
|
package/demo.js
CHANGED
|
@@ -89,6 +89,33 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
|
|
|
89
89
|
] },
|
|
90
90
|
{ name: "Help", submenu: [
|
|
91
91
|
{ name: "Search Help", icon: "Search", kbd: "F1" },
|
|
92
|
+
{ name: "Start Tour", icon: "CircleHelp", callback: () => {
|
|
93
|
+
const exampleTour = new LX.Tour([
|
|
94
|
+
{
|
|
95
|
+
title: "Welcome to LexGUI.js",
|
|
96
|
+
content: "This is the main canvas where you can draw your application.",
|
|
97
|
+
reference: canvas,
|
|
98
|
+
side: "top",
|
|
99
|
+
align: "center"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: "Menubar",
|
|
103
|
+
content: "This menubar contains all the main actions and settings for your application.",
|
|
104
|
+
reference: menubar.root,
|
|
105
|
+
side: "bottom",
|
|
106
|
+
align: "center"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: "Side Panel",
|
|
110
|
+
content: "This panel contains various widgets and settings for your application.",
|
|
111
|
+
reference: sidePanel.root,
|
|
112
|
+
side: "left",
|
|
113
|
+
align: "start"
|
|
114
|
+
}
|
|
115
|
+
], { xoffset: 8, xradius: 12, xhorizontalOffset: 46, xverticalOffset: 46 });
|
|
116
|
+
|
|
117
|
+
exampleTour.begin();
|
|
118
|
+
} },
|
|
92
119
|
{ name: "Support LexGUI", icon: "Heart" },
|
|
93
120
|
] },
|
|
94
121
|
], { sticky: false });
|
package/examples/editor.html
CHANGED
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
name: "Help", submenu: [
|
|
200
|
-
{ name: "Search Help", icon: "Search", kbd: "F1", callback: () => { window.open("
|
|
200
|
+
{ name: "Search Help", icon: "Search", kbd: "F1", callback: () => { window.open("../docs/") } },
|
|
201
201
|
{ name: "Support LexGUI", icon: "Heart" },
|
|
202
202
|
]
|
|
203
203
|
},
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
{
|
|
226
226
|
icon: "RotateLeft",
|
|
227
227
|
callback: (value, event) => {
|
|
228
|
-
const playButton =
|
|
228
|
+
const playButton = menubar.getButton("Play");
|
|
229
229
|
playButton.swap();
|
|
230
230
|
}
|
|
231
231
|
},
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
// add on resize event to control canvas size
|
|
419
419
|
topTabs.area.onresize = resizeCanvas;
|
|
420
420
|
|
|
421
|
-
topTabs.area.addOverlayButtons([
|
|
421
|
+
const overlaybuttons = topTabs.area.addOverlayButtons([
|
|
422
422
|
[
|
|
423
423
|
{
|
|
424
424
|
name: "Select",
|
|
@@ -440,8 +440,9 @@
|
|
|
440
440
|
}
|
|
441
441
|
],
|
|
442
442
|
{
|
|
443
|
-
name: "
|
|
443
|
+
name: "Render Mode",
|
|
444
444
|
options: ["Lit", "Unlit", "Wireframe"],
|
|
445
|
+
value: "Lit",
|
|
445
446
|
callback: (value, event) => console.log(value)
|
|
446
447
|
},
|
|
447
448
|
[
|
|
@@ -452,7 +453,8 @@
|
|
|
452
453
|
selectable: true
|
|
453
454
|
},
|
|
454
455
|
{
|
|
455
|
-
name:
|
|
456
|
+
name: "Snap Values",
|
|
457
|
+
value: 10,
|
|
456
458
|
options: [10, 100, 1000],
|
|
457
459
|
callback: value => console.log(value)
|
|
458
460
|
}
|
|
@@ -727,6 +729,9 @@
|
|
|
727
729
|
panel.addLayers("Layers", 10, (value, event) => {
|
|
728
730
|
console.log(value);
|
|
729
731
|
});
|
|
732
|
+
panel.addLayers("Layers (8 bits)", 10, (value, event) => {
|
|
733
|
+
console.log(value);
|
|
734
|
+
}, { maxBits: 8 });
|
|
730
735
|
panel.addArray("An Item Array", ['GPTeam', 'Blat Panthers', 'Blat Bunny'], (value, event) => {
|
|
731
736
|
console.log(value);
|
|
732
737
|
});
|
|
@@ -1068,7 +1073,7 @@
|
|
|
1068
1073
|
|
|
1069
1074
|
p.attach(assetView);
|
|
1070
1075
|
let assetData = [];
|
|
1071
|
-
const values = ['brow_lowerer.png', 'godot_pixelart.png', '
|
|
1076
|
+
const values = ['brow_lowerer.png', 'godot_pixelart.png', 'realizer_signon.png'];
|
|
1072
1077
|
|
|
1073
1078
|
for (let i = 0; i < values.length; i++) {
|
|
1074
1079
|
let data = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lexgui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"description": "JS library to create web graphical user interfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/lexgui.js",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"rollup-js": "rollup -c rollup.build.config.js",
|
|
40
40
|
"minify-css": "cleancss -o build/lexgui.min.css build/lexgui.css",
|
|
41
41
|
"minify": "npm run rollup-js && npm run minify-css",
|
|
42
|
-
"
|
|
42
|
+
"legacy": "python build-legacy.py",
|
|
43
|
+
"build": "npm run legacy && npm run minify"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@rollup/plugin-terser": "^0.4.4"
|