lexgui 8.2.0 → 8.2.1
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/Avatar.d.ts +15 -15
- package/build/components/NodeTree.d.ts +51 -51
- package/build/components/Vector.d.ts +10 -10
- package/build/core/Event.d.ts +6 -6
- package/build/core/Namespace.js +1 -1
- package/build/core/Namespace.js.map +1 -1
- package/build/core/Panel.d.ts +538 -538
- package/build/extensions/AssetView.d.ts +137 -137
- package/build/extensions/AssetView.js +5 -6
- package/build/extensions/AssetView.js.map +1 -1
- package/build/extensions/CodeEditor.d.ts +358 -358
- package/build/extensions/CodeEditor.js +7 -7
- package/build/extensions/CodeEditor.js.map +1 -1
- package/build/extensions/DocMaker.js +1 -0
- package/build/extensions/DocMaker.js.map +1 -1
- package/build/extensions/GraphEditor.js +2754 -2754
- package/build/extensions/Timeline.d.ts +668 -668
- package/build/extensions/Timeline.js +2 -2
- package/build/extensions/Timeline.js.map +1 -1
- package/build/extensions/VideoEditor.d.ts +37 -15
- package/build/extensions/VideoEditor.js +287 -166
- package/build/extensions/VideoEditor.js.map +1 -1
- package/build/index.css.d.ts +3 -3
- package/build/index.d.ts +57 -57
- package/build/lexgui.all.js +327 -185
- package/build/lexgui.all.js.map +1 -1
- package/build/lexgui.all.min.js +1 -1
- package/build/lexgui.all.module.js +327 -185
- package/build/lexgui.all.module.js.map +1 -1
- package/build/lexgui.all.module.min.js +1 -1
- package/build/lexgui.css +213 -220
- package/build/lexgui.js +25 -4
- package/build/lexgui.js.map +1 -1
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +25 -4
- package/build/lexgui.module.js.map +1 -1
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +23 -1
- package/examples/all-components.html +3 -4
- package/examples/code-editor.html +11 -0
- package/examples/dialogs.html +13 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -2,7 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## dev
|
|
4
4
|
|
|
5
|
-
## 8.2 (master)
|
|
5
|
+
## 8.2.1 (master)
|
|
6
|
+
|
|
7
|
+
CodeEditor:
|
|
8
|
+
- Fixed `options.onReady` being called before processing lines.
|
|
9
|
+
|
|
10
|
+
VideoEditor:
|
|
11
|
+
- Added `resizeVideo` and `resizeControls` to update area sizes. They are automatically called by resize.
|
|
12
|
+
- Added `controlsComponents` object that holds all buttons and timebar that will be displayed in the ui.
|
|
13
|
+
- Added a `createControls` function to create different button layouts. It creates all buttons and then calls a layout creator.
|
|
14
|
+
- Added `createControlsLayout_0` and `createControlsLayout_1` with default button layouts.
|
|
15
|
+
- Added `controlsLayout` option to specify which default layout to use or a custom function.
|
|
16
|
+
- Added `onChangeState` and `onChangeLoop` user callbacks.
|
|
17
|
+
- Added `resetCropBtn`. Only displayed in layout 1.
|
|
18
|
+
|
|
19
|
+
VideoEditor TimeBar:
|
|
20
|
+
- `mousemove` and `mouseup` events now attach to document instead of canvas, for a better user experience.
|
|
21
|
+
- Added `unbind` function to remove document events.
|
|
22
|
+
- Fixed marker grabbing when both overlapped.
|
|
23
|
+
|
|
24
|
+
Expose DocMaker extension in LX.
|
|
25
|
+
Minor CSS fixes.
|
|
26
|
+
|
|
27
|
+
## 8.2
|
|
6
28
|
|
|
7
29
|
Use Tailwind (finally) to create and compile CSS.
|
|
8
30
|
Removed custom utility classes, refactored theme colors and every theme variable used in LX.
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
title: "Change Theme",
|
|
45
|
-
icon: "Moon",
|
|
46
|
-
swap: "Sun",
|
|
47
|
-
callback: (
|
|
45
|
+
icon: starterTheme == "dark" ? "Moon" : "Sun",
|
|
46
|
+
swap: starterTheme == "dark" ? "Sun" : "Moon",
|
|
47
|
+
callback: () => LX.switchMode()
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
title: "Switch Spacing",
|
|
@@ -167,7 +167,6 @@
|
|
|
167
167
|
buttonsRightPanel.addButton(null, "Warning Outline", null, { buttonClass: "warning outline" });
|
|
168
168
|
buttonsRightPanel.addButton(null, "Destructive Outline", null, { buttonClass: "destructive outline" });
|
|
169
169
|
buttonsRightPanel.branch("Dashed Buttons", { closed: closedDefault });
|
|
170
|
-
buttonsRightPanel.addButton(null, "Primary Dashed", null, { buttonClass: "primary dashed" });
|
|
171
170
|
buttonsRightPanel.addButton(null, "Secondary Dashed", null, { buttonClass: "secondary dashed" });
|
|
172
171
|
buttonsRightPanel.addButton(null, "Muted Dashed", null, { buttonClass: "muted dashed" });
|
|
173
172
|
buttonsRightPanel.addButton(null, "Success Dashed", null, { buttonClass: "success dashed" });
|
|
@@ -29,6 +29,17 @@
|
|
|
29
29
|
// init library and get main area
|
|
30
30
|
let area = await LX.init();
|
|
31
31
|
|
|
32
|
+
const starterTheme = LX.getMode();
|
|
33
|
+
const menubar = area.addMenubar( [], { sticky: false } );
|
|
34
|
+
menubar.addButtons([
|
|
35
|
+
{
|
|
36
|
+
title: "Change Theme",
|
|
37
|
+
icon: starterTheme == "dark" ? "Moon" : "Sun",
|
|
38
|
+
swap: starterTheme == "dark" ? "Sun" : "Moon",
|
|
39
|
+
callback: () => LX.switchMode()
|
|
40
|
+
}
|
|
41
|
+
]);
|
|
42
|
+
|
|
32
43
|
const fileExplorer = true;
|
|
33
44
|
|
|
34
45
|
if( !fileExplorer )
|
package/examples/dialogs.html
CHANGED
|
@@ -22,7 +22,18 @@
|
|
|
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();
|
|
26
|
+
|
|
27
|
+
const starterTheme = LX.getMode();
|
|
28
|
+
const menubar = area.addMenubar( [], { sticky: false } );
|
|
29
|
+
menubar.addButtons([
|
|
30
|
+
{
|
|
31
|
+
title: "Change Theme",
|
|
32
|
+
icon: starterTheme == "dark" ? "Moon" : "Sun",
|
|
33
|
+
swap: starterTheme == "dark" ? "Sun" : "Moon",
|
|
34
|
+
callback: () => LX.switchMode()
|
|
35
|
+
}
|
|
36
|
+
]);
|
|
26
37
|
|
|
27
38
|
LX.popup("Hello! I'm a popup dialog :)", null, { position: ["45%", "20%"] })
|
|
28
39
|
|
|
@@ -91,7 +102,7 @@
|
|
|
91
102
|
canvas.height = window.innerHeight
|
|
92
103
|
canvas.style.width = "100%";
|
|
93
104
|
canvas.style.height = "100%";
|
|
94
|
-
|
|
105
|
+
area.attach( canvas );
|
|
95
106
|
|
|
96
107
|
function loop(dt) {
|
|
97
108
|
|