lexgui 0.1.34 → 0.1.36
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 +6 -3
- package/build/lexgui.css +37 -20
- package/build/lexgui.js +405 -269
- package/build/lexgui.module.js +384 -261
- package/changelog.md +20 -0
- package/demo.js +12 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# lexgui.js
|
|
2
2
|
|
|
3
|
-
**lexgui.js** is a lightweight JavaScript library that allows you to create web interfaces using only JavaScript, HTML, and CSS.
|
|
3
|
+
**lexgui.js** is a lightweight JavaScript library that allows you to create web interfaces using only JavaScript, HTML, and CSS. It provides an easy-to-use API for building dynamic and interactive common and complex editor interfaces without the need for tedious frameworks or big libraries. With lexgui.js, you can create custom UI components, handle user interactions, and update the interface dynamically.
|
|
4
4
|
|
|
5
5
|
<img src="data/Screenshot.png" alt="Screenshot" style="width: 100%"/>
|
|
6
6
|
<img src="data/Screenshot_Godot.png"/>
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
### Code Editor
|
|
9
9
|
<img src="data/Screenshot_Code.png"/>
|
|
10
10
|
|
|
11
|
+
### Node Graph Editor (WIP)
|
|
12
|
+
<img src="data/Screenshot_Graph.png"/>
|
|
13
|
+
|
|
11
14
|
## Docs
|
|
12
15
|
|
|
13
16
|
The library documentation is in progress but you can check it [here](https://jxarco.github.io/lexgui.js/docs/).
|
|
@@ -20,8 +23,8 @@ Look at this [examples](https://jxarco.github.io/lexgui.js/examples/) to see how
|
|
|
20
23
|
|
|
21
24
|
<table>
|
|
22
25
|
<tr>
|
|
23
|
-
<td valign="top"><h3>Animics (EU H2020 SignON project)</h3><a href="https://github.com/upf-gti/
|
|
24
|
-
<td valign="top"><h3>Performs (EU H2020 SignON project)</h3><a href="https://github.com/upf-gti/
|
|
26
|
+
<td valign="top"><h3>Animics (EU H2020 SignON project)</h3><a href="https://github.com/upf-gti/animics">github.com/upf-gti/animics</a><br><br><img src="data/scriptAnimation_signon.png" alt="scriptAnimation_signon"/></td>
|
|
27
|
+
<td valign="top"><h3>Performs (EU H2020 SignON project)</h3><a href="https://github.com/upf-gti/performs">github.com/upf-gti/performs</a><br><br><img src="data/realizer_signon.png" alt="scriptAnimation_signon"/></td>
|
|
25
28
|
</tr>
|
|
26
29
|
</table>
|
|
27
30
|
|
package/build/lexgui.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--global-font: "Figtree", sans-serif;
|
|
7
7
|
--global-title-font: "Poppins", sans-serif;
|
|
8
8
|
--global-font-size: 12px;
|
|
9
|
+
--global-font-size-big: 14px;
|
|
9
10
|
--global-color-primary: #212121;
|
|
10
11
|
--global-color-secondary: #2c2c2c;
|
|
11
12
|
--global-color-terciary: #444;
|
|
@@ -828,7 +829,7 @@ body.noevents * {
|
|
|
828
829
|
}
|
|
829
830
|
|
|
830
831
|
.lexbutton.array a {
|
|
831
|
-
margin-top:
|
|
832
|
+
margin-top: 2px;
|
|
832
833
|
}
|
|
833
834
|
|
|
834
835
|
.lexbutton:hover {
|
|
@@ -873,7 +874,8 @@ body.noevents * {
|
|
|
873
874
|
}
|
|
874
875
|
|
|
875
876
|
.lexcombobuttons .lexbutton.combo {
|
|
876
|
-
margin-left:
|
|
877
|
+
margin-left: 1px;
|
|
878
|
+
margin-right: 1px;
|
|
877
879
|
border-radius: 0px;
|
|
878
880
|
display: flex;
|
|
879
881
|
padding-top: 0.35em;
|
|
@@ -882,13 +884,15 @@ body.noevents * {
|
|
|
882
884
|
}
|
|
883
885
|
|
|
884
886
|
.lexcombobuttons .lexbutton.combo:first-child {
|
|
885
|
-
border-top-left-radius:
|
|
886
|
-
border-bottom-left-radius:
|
|
887
|
+
border-top-left-radius: 4px;
|
|
888
|
+
border-bottom-left-radius: 4px;
|
|
889
|
+
margin-left: 0px;
|
|
887
890
|
}
|
|
888
891
|
|
|
889
892
|
.lexcombobuttons .lexbutton.combo:last-child {
|
|
890
|
-
border-top-right-radius:
|
|
891
|
-
border-bottom-right-radius:
|
|
893
|
+
border-top-right-radius: 4px;
|
|
894
|
+
border-bottom-right-radius: 4px;
|
|
895
|
+
margin-right: 0px;
|
|
892
896
|
}
|
|
893
897
|
|
|
894
898
|
.lexcombobuttons .lexbutton.combo.selected {
|
|
@@ -930,6 +934,10 @@ body.noevents * {
|
|
|
930
934
|
padding: 2px 3px;
|
|
931
935
|
}
|
|
932
936
|
|
|
937
|
+
.lexdropdown .lexfilter a {
|
|
938
|
+
transform: translateX(-10px);
|
|
939
|
+
}
|
|
940
|
+
|
|
933
941
|
.lexdropdown .lexoptions .lexlistitem {
|
|
934
942
|
font-size: 11px;
|
|
935
943
|
}
|
|
@@ -956,7 +964,8 @@ body.noevents * {
|
|
|
956
964
|
background-color: var(--global-blur-background);
|
|
957
965
|
-webkit-backdrop-filter: blur(10px);
|
|
958
966
|
backdrop-filter: blur(10px);
|
|
959
|
-
padding:
|
|
967
|
+
padding: 0px;
|
|
968
|
+
transform: translateY(-4px);
|
|
960
969
|
z-index: 10;
|
|
961
970
|
margin-top: 5px;
|
|
962
971
|
width: 100%;
|
|
@@ -1111,9 +1120,11 @@ input[type=checkbox]:checked:after {
|
|
|
1111
1120
|
|
|
1112
1121
|
.lexcolor {
|
|
1113
1122
|
display: flex;
|
|
1123
|
+
/*
|
|
1114
1124
|
flex-wrap: wrap;
|
|
1115
1125
|
padding-left: 6px;
|
|
1116
1126
|
padding-right: 6px;
|
|
1127
|
+
*/
|
|
1117
1128
|
align-items: center;
|
|
1118
1129
|
}
|
|
1119
1130
|
|
|
@@ -1146,6 +1157,10 @@ input[type=checkbox]:checked:after {
|
|
|
1146
1157
|
cursor: pointer;
|
|
1147
1158
|
}
|
|
1148
1159
|
|
|
1160
|
+
.lexcolor .lexwidget {
|
|
1161
|
+
padding: 0px;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1149
1164
|
/* Vector Widgets */
|
|
1150
1165
|
|
|
1151
1166
|
.lexvector {
|
|
@@ -1652,7 +1667,7 @@ meter::-webkit-meter-even-less-good-value {
|
|
|
1652
1667
|
|
|
1653
1668
|
.lexcontextmenu {
|
|
1654
1669
|
position: absolute;
|
|
1655
|
-
padding-right:
|
|
1670
|
+
padding-right: 8px;
|
|
1656
1671
|
z-index: 1001;
|
|
1657
1672
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.63) !important;
|
|
1658
1673
|
background-color: var(--global-blur-background);
|
|
@@ -1682,7 +1697,7 @@ meter::-webkit-meter-even-less-good-value {
|
|
|
1682
1697
|
width: 100%;
|
|
1683
1698
|
color: #d5d7dbee;
|
|
1684
1699
|
padding: 4px;
|
|
1685
|
-
padding-left:
|
|
1700
|
+
padding-left: 8px;
|
|
1686
1701
|
padding-right: 0px;
|
|
1687
1702
|
padding-bottom: 6px;
|
|
1688
1703
|
cursor: pointer;
|
|
@@ -1772,12 +1787,9 @@ meter::-webkit-meter-even-less-good-value {
|
|
|
1772
1787
|
float: right;
|
|
1773
1788
|
margin-top: 3px;
|
|
1774
1789
|
font-weight: bold;
|
|
1775
|
-
color: var(--global-
|
|
1790
|
+
color: var(--global-text-primary);
|
|
1776
1791
|
margin-right: 12px;
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
.lexcontextmenu .lexcontextmenuentry:hover .lexentryshort {
|
|
1780
|
-
color: #f5f5f5;
|
|
1792
|
+
text-align: right;
|
|
1781
1793
|
}
|
|
1782
1794
|
|
|
1783
1795
|
.lexmenubar .lexmenubuttons {
|
|
@@ -2078,9 +2090,9 @@ meter::-webkit-meter-even-less-good-value {
|
|
|
2078
2090
|
}
|
|
2079
2091
|
|
|
2080
2092
|
.lexoverlaybuttons .lexbutton {
|
|
2081
|
-
padding:
|
|
2082
|
-
font-size: var(--global-font-size);
|
|
2083
|
-
border-radius:
|
|
2093
|
+
padding: 18px 12px;
|
|
2094
|
+
font-size: var(--global-font-size-big);
|
|
2095
|
+
border-radius: 10px;
|
|
2084
2096
|
justify-content: center;
|
|
2085
2097
|
background-color: #313132a5;
|
|
2086
2098
|
-webkit-backdrop-filter: blur(6px);
|
|
@@ -2088,9 +2100,13 @@ meter::-webkit-meter-even-less-good-value {
|
|
|
2088
2100
|
color: #d1d1d3bd;
|
|
2089
2101
|
}
|
|
2090
2102
|
|
|
2103
|
+
.lexoverlaybuttons .lexbutton span {
|
|
2104
|
+
font-size: var(--global-font-size-big);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2091
2107
|
.lexoverlaybuttons .lexbutton a {
|
|
2092
2108
|
line-height: 19px;
|
|
2093
|
-
font-size: var(--global-font-size);
|
|
2109
|
+
font-size: var(--global-font-size-big);
|
|
2094
2110
|
}
|
|
2095
2111
|
|
|
2096
2112
|
.lexoverlaybuttons .lexbutton img {
|
|
@@ -2130,6 +2146,7 @@ meter::-webkit-meter-even-less-good-value {
|
|
|
2130
2146
|
background: none;
|
|
2131
2147
|
-webkit-backdrop-filter: none;
|
|
2132
2148
|
backdrop-filter: none;
|
|
2149
|
+
aspect-ratio: 1;
|
|
2133
2150
|
}
|
|
2134
2151
|
|
|
2135
2152
|
.lexoverlaybuttons.vertical .lexoverlaygroup {
|
|
@@ -2201,11 +2218,11 @@ meter::-webkit-meter-even-less-good-value {
|
|
|
2201
2218
|
}
|
|
2202
2219
|
|
|
2203
2220
|
.lexareatabs.row .lexareatab {
|
|
2204
|
-
background-color: var(--global-color-
|
|
2221
|
+
background-color: var(--global-color-terciary);
|
|
2205
2222
|
padding-left: 16px;
|
|
2206
2223
|
padding-right: 16px;
|
|
2207
2224
|
margin-right: 4px;
|
|
2208
|
-
border-radius:
|
|
2225
|
+
border-radius: 4px;
|
|
2209
2226
|
}
|
|
2210
2227
|
|
|
2211
2228
|
.lexareatabs.fit {
|