lexgui 0.5.1 → 0.5.2
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/codeeditor.js +4 -4
- package/build/components/nodegraph.js +3 -3
- package/build/components/timeline.js +1 -1
- package/build/lexgui.css +91 -32
- package/build/lexgui.js +518 -342
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +518 -342
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +14 -1
- package/package.json +1 -1
|
@@ -1536,8 +1536,8 @@ class CodeEditor {
|
|
|
1536
1536
|
|
|
1537
1537
|
panel.sameLine();
|
|
1538
1538
|
panel.addLabel( this.code.title, { float: 'right', signal: "@tab-name" });
|
|
1539
|
-
panel.addLabel( "Ln " + 1, {
|
|
1540
|
-
panel.addLabel( "Col " + 1, {
|
|
1539
|
+
panel.addLabel( "Ln " + 1, { xmaxWidth: "48px", signal: "@cursor-line" });
|
|
1540
|
+
panel.addLabel( "Col " + 1, { xmaxWidth: "48px", signal: "@cursor-pos" });
|
|
1541
1541
|
panel.addButton( null, "Spaces: " + this.tabSpaces, ( value, event ) => {
|
|
1542
1542
|
LX.addContextMenu( "Spaces", event, m => {
|
|
1543
1543
|
const options = [ 2, 4, 8 ];
|
|
@@ -1548,7 +1548,7 @@ class CodeEditor {
|
|
|
1548
1548
|
this._updateDataInfoPanel( "@tab-spaces", "Spaces: " + this.tabSpaces );
|
|
1549
1549
|
} );
|
|
1550
1550
|
});
|
|
1551
|
-
}, {
|
|
1551
|
+
}, { nameWidth: "15%", signal: "@tab-spaces" });
|
|
1552
1552
|
panel.addButton( "<b>{ }</b>", this.highlight, ( value, event ) => {
|
|
1553
1553
|
LX.addContextMenu( "Language", event, m => {
|
|
1554
1554
|
for( const lang of Object.keys( this.languages ) )
|
|
@@ -1558,7 +1558,7 @@ class CodeEditor {
|
|
|
1558
1558
|
} );
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
1561
|
-
}, {
|
|
1561
|
+
}, { nameWidth: "15%", signal: "@highlight" });
|
|
1562
1562
|
panel.endLine();
|
|
1563
1563
|
|
|
1564
1564
|
return panel;
|
|
@@ -1965,7 +1965,7 @@ class GraphEditor {
|
|
|
1965
1965
|
for( let node of nodesOutsideViewport )
|
|
1966
1966
|
{
|
|
1967
1967
|
let dom = this._getNodeDOMElement( node.id );
|
|
1968
|
-
dom.classList.toggle( '
|
|
1968
|
+
dom.classList.toggle( 'hidden-opacity', true );
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
|
|
@@ -2397,10 +2397,10 @@ class GraphEditor {
|
|
|
2397
2397
|
if( graph_bb.inside( node_bb, false ) )
|
|
2398
2398
|
{
|
|
2399
2399
|
// Show if node in viewport..
|
|
2400
|
-
dom.classList.toggle( '
|
|
2400
|
+
dom.classList.toggle( 'hidden-opacity', false );
|
|
2401
2401
|
|
|
2402
2402
|
// And hide content if scale is very small..
|
|
2403
|
-
dom.childNodes[ 1 ].classList.toggle( '
|
|
2403
|
+
dom.childNodes[ 1 ].classList.toggle( 'hidden-opacity', this.currentGraph.scale < 0.5 );
|
|
2404
2404
|
|
|
2405
2405
|
continue;
|
|
2406
2406
|
}
|
package/build/lexgui.css
CHANGED
|
@@ -293,11 +293,17 @@ body.noevents * {
|
|
|
293
293
|
top: 0;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
.
|
|
296
|
+
.hidden-opacity {
|
|
297
297
|
opacity: 0 !important;
|
|
298
298
|
pointer-events: none;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
.ellipsis-overflow {
|
|
302
|
+
white-space: nowrap;
|
|
303
|
+
overflow: hidden;
|
|
304
|
+
text-overflow: ellipsis;
|
|
305
|
+
}
|
|
306
|
+
|
|
301
307
|
svg.xs { width: var(--svg-size-xs); height: var(--svg-size-xs); }
|
|
302
308
|
svg.sm { width: var(--svg-size-sm); height: var(--svg-size-sm); }
|
|
303
309
|
svg.lg { width: var(--svg-size-lg); height: var(--svg-size-lg); }
|
|
@@ -347,6 +353,8 @@ svg.xxl { width: var(--svg-size-xxl); height: var(--svg-size-xxl); }
|
|
|
347
353
|
line-height: inherit !important;
|
|
348
354
|
color: var(--global-text-secondary);
|
|
349
355
|
align-content: center;
|
|
356
|
+
border-radius: 4px;
|
|
357
|
+
transition: all 0.15s linear;
|
|
350
358
|
}
|
|
351
359
|
|
|
352
360
|
.lexicon:hover {
|
|
@@ -358,6 +366,10 @@ svg.xxl { width: var(--svg-size-xxl); height: var(--svg-size-xxl); }
|
|
|
358
366
|
transform: scale(0.99);
|
|
359
367
|
}
|
|
360
368
|
|
|
369
|
+
.lexicon.triggered {
|
|
370
|
+
background-color: var(--global-button-color);
|
|
371
|
+
}
|
|
372
|
+
|
|
361
373
|
svg, svg path {
|
|
362
374
|
width: 1rem;
|
|
363
375
|
height: 1rem;
|
|
@@ -1247,11 +1259,6 @@ a svg, svg path {
|
|
|
1247
1259
|
margin-right: 8px;
|
|
1248
1260
|
}
|
|
1249
1261
|
|
|
1250
|
-
.lexwidget.micro button {
|
|
1251
|
-
padding-left: 4px;
|
|
1252
|
-
padding-right: 4px;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
1262
|
.lexwidget.small {
|
|
1256
1263
|
width: 5% !important;
|
|
1257
1264
|
}
|
|
@@ -1263,7 +1270,6 @@ a svg, svg path {
|
|
|
1263
1270
|
.lexinlinewidgets {
|
|
1264
1271
|
display: flex;
|
|
1265
1272
|
gap: 0.1rem;
|
|
1266
|
-
justify-content: space-around;
|
|
1267
1273
|
}
|
|
1268
1274
|
|
|
1269
1275
|
.lexwidgetseparator div {
|
|
@@ -1313,7 +1319,8 @@ a svg, svg path {
|
|
|
1313
1319
|
.lexwidget .lextext {
|
|
1314
1320
|
border-radius: 6px;
|
|
1315
1321
|
position: relative;
|
|
1316
|
-
transition: 0.2s linear;
|
|
1322
|
+
transition: border 0.2s linear;
|
|
1323
|
+
border: 1px solid transparent;
|
|
1317
1324
|
}
|
|
1318
1325
|
|
|
1319
1326
|
.lexwidget .lextext.formlabel {
|
|
@@ -1325,10 +1332,24 @@ a svg, svg path {
|
|
|
1325
1332
|
background-color: var(--global-button-color);
|
|
1326
1333
|
}
|
|
1327
1334
|
|
|
1335
|
+
.lexwidget .lextext.outline {
|
|
1336
|
+
background: var(--global-color-primary);
|
|
1337
|
+
border: 1px solid #7a797c4f;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.lexwidget .lextext.dashed {
|
|
1341
|
+
background: var(--global-color-primary);
|
|
1342
|
+
border: 1px dashed #7a797c4f;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1328
1345
|
.lexwidget input:not(.lexcheckbox, .lextoggle, .lexrangeslider):hover {
|
|
1329
1346
|
background-color: color-mix(in srgb, var(--global-button-color), #000 7%);
|
|
1330
1347
|
}
|
|
1331
1348
|
|
|
1349
|
+
.lexwidget .lextext.outline input:hover {
|
|
1350
|
+
background: none;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1332
1353
|
.lexwidget .lextext input {
|
|
1333
1354
|
padding: 5px;
|
|
1334
1355
|
}
|
|
@@ -1410,7 +1431,7 @@ a svg, svg path {
|
|
|
1410
1431
|
}
|
|
1411
1432
|
|
|
1412
1433
|
:root[data-theme="light"] .lexwidget .lextext {
|
|
1413
|
-
border: 1px solid var(--global-color-tertiary)
|
|
1434
|
+
border: 1px solid var(--global-color-tertiary);
|
|
1414
1435
|
}
|
|
1415
1436
|
|
|
1416
1437
|
:root[data-theme="light"] .lexbranch .lexseparator {
|
|
@@ -1507,7 +1528,8 @@ a svg, svg path {
|
|
|
1507
1528
|
.lexbutton.xs { width: 25% !important; margin: 0 auto; }
|
|
1508
1529
|
.lexbutton.sm { width: 45% !important; margin: 0 auto; }
|
|
1509
1530
|
/* Styles */
|
|
1510
|
-
.lexbutton.outline { box-shadow: none; --
|
|
1531
|
+
.lexbutton.outline { box-shadow: none; color: var(--global-text-primary) !important; background-color: var(--global-color-primary) !important; border: 1px solid var(--button-color) !important; }
|
|
1532
|
+
.lexbutton.dashed { box-shadow: none; color: var(--global-text-primary) !important; background-color: var(--global-color-primary) !important; border: 1px dashed var(--button-color) !important; }
|
|
1511
1533
|
|
|
1512
1534
|
.lexbutton.left {
|
|
1513
1535
|
text-align: left;
|
|
@@ -1516,6 +1538,11 @@ a svg, svg path {
|
|
|
1516
1538
|
|
|
1517
1539
|
.lexbutton span {
|
|
1518
1540
|
align-items: center;
|
|
1541
|
+
display: flex;
|
|
1542
|
+
flex-wrap: wrap;
|
|
1543
|
+
place-content: center;
|
|
1544
|
+
pointer-events: none;
|
|
1545
|
+
gap: 0.4rem;
|
|
1519
1546
|
}
|
|
1520
1547
|
|
|
1521
1548
|
.lexbutton span:has(.lexbadge) {
|
|
@@ -1540,6 +1567,10 @@ a svg, svg path {
|
|
|
1540
1567
|
pointer-events: none;
|
|
1541
1568
|
}
|
|
1542
1569
|
|
|
1570
|
+
.lexbutton svg {
|
|
1571
|
+
pointer-events: none;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1543
1574
|
.lexbutton.array span {
|
|
1544
1575
|
display: inline-flex;
|
|
1545
1576
|
}
|
|
@@ -1796,6 +1827,7 @@ dialog .lexselect .lexselectoptions {
|
|
|
1796
1827
|
width: 1.5em;
|
|
1797
1828
|
height: 1.5em;
|
|
1798
1829
|
padding: 0.12rem;
|
|
1830
|
+
padding-left: 0.13rem;
|
|
1799
1831
|
display: inline-block;
|
|
1800
1832
|
background-color: var(--global-color-primary);
|
|
1801
1833
|
color: var(--checkbox-fg-color);
|
|
@@ -1855,10 +1887,11 @@ dialog .lexselect .lexselectoptions {
|
|
|
1855
1887
|
}
|
|
1856
1888
|
|
|
1857
1889
|
.lexcheckboxsubmenu {
|
|
1858
|
-
width: 100
|
|
1890
|
+
width: calc(100% - 16px);
|
|
1859
1891
|
padding: 4px;
|
|
1860
1892
|
padding-inline: 8px;
|
|
1861
1893
|
color: var(--global-text-secondary);
|
|
1894
|
+
grid-column: span 2;
|
|
1862
1895
|
}
|
|
1863
1896
|
|
|
1864
1897
|
.lexcheckboxsubmenu .lexwidget {
|
|
@@ -2010,10 +2043,12 @@ dialog .lexselect .lexselectoptions {
|
|
|
2010
2043
|
}
|
|
2011
2044
|
|
|
2012
2045
|
.lextogglesubmenu {
|
|
2013
|
-
width: 100
|
|
2046
|
+
width: calc(100% - 16px);
|
|
2014
2047
|
padding: 6px;
|
|
2048
|
+
padding-inline: 8px;
|
|
2015
2049
|
color: var(--global-text-secondary);
|
|
2016
2050
|
margin-top: -1px;
|
|
2051
|
+
grid-column: span 2;
|
|
2017
2052
|
}
|
|
2018
2053
|
|
|
2019
2054
|
/* Radio Group Widget */
|
|
@@ -2450,13 +2485,16 @@ input[type=number] {
|
|
|
2450
2485
|
}
|
|
2451
2486
|
|
|
2452
2487
|
.lexwidget .lexpad .lexinnerpad .lexpadthumb {
|
|
2453
|
-
background-color: var(--global-selected
|
|
2488
|
+
background-color: var(--global-selected);
|
|
2454
2489
|
width: 10%;
|
|
2455
2490
|
height: 10%;
|
|
2456
2491
|
border-radius: 2px;
|
|
2457
2492
|
transform: translate(0px, 0px);
|
|
2458
2493
|
}
|
|
2459
2494
|
|
|
2495
|
+
.lexwidget .lexpad .lexinnerpad .lexpadthumb.active {
|
|
2496
|
+
background-color: var(--global-selected-light);
|
|
2497
|
+
}
|
|
2460
2498
|
|
|
2461
2499
|
/* Tabs Widget */
|
|
2462
2500
|
|
|
@@ -2531,8 +2569,6 @@ input[type=number] {
|
|
|
2531
2569
|
width: 100%;
|
|
2532
2570
|
min-height: 12px;
|
|
2533
2571
|
margin: 0 auto;
|
|
2534
|
-
margin-top: 6px;
|
|
2535
|
-
margin-bottom: -8px;
|
|
2536
2572
|
color: var(--global-text-secondary);
|
|
2537
2573
|
font-weight: 600;
|
|
2538
2574
|
font-size: var(--global-font-size);
|
|
@@ -3045,6 +3081,10 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3045
3081
|
user-select: none;
|
|
3046
3082
|
}
|
|
3047
3083
|
|
|
3084
|
+
.lexmenubar .lexmenubutton:last-child {
|
|
3085
|
+
margin-right: 8px;
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3048
3088
|
.lexmenubar .lexmenubutton a {
|
|
3049
3089
|
margin-left: 0px !important;
|
|
3050
3090
|
}
|
|
@@ -3681,7 +3721,7 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3681
3721
|
|
|
3682
3722
|
.lexareatabs .lexareatab.thumb {
|
|
3683
3723
|
position: absolute;
|
|
3684
|
-
background:
|
|
3724
|
+
background: var(--global-selected);
|
|
3685
3725
|
z-index: 0;
|
|
3686
3726
|
transition: linear transform 0.15s;
|
|
3687
3727
|
}
|
|
@@ -3855,10 +3895,11 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3855
3895
|
cursor: pointer;
|
|
3856
3896
|
border-radius: 4px;
|
|
3857
3897
|
font-size: var(--global-font-size-sm);
|
|
3898
|
+
transition: background-color 0.15s linear;
|
|
3858
3899
|
}
|
|
3859
3900
|
|
|
3860
3901
|
.lexlayer.selected {
|
|
3861
|
-
--layer-color:
|
|
3902
|
+
--layer-color: var(--global-selected);
|
|
3862
3903
|
color: #fff;
|
|
3863
3904
|
}
|
|
3864
3905
|
|
|
@@ -3898,6 +3939,7 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3898
3939
|
-moz-user-select: none;
|
|
3899
3940
|
-ms-user-select: none;
|
|
3900
3941
|
user-select: none;
|
|
3942
|
+
transition: background-color 0.15s linear;
|
|
3901
3943
|
}
|
|
3902
3944
|
|
|
3903
3945
|
.lexlistitem a {
|
|
@@ -3916,7 +3958,7 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3916
3958
|
|
|
3917
3959
|
.lexlistitem.selected {
|
|
3918
3960
|
color: #fff;
|
|
3919
|
-
background-color:
|
|
3961
|
+
background-color: var(--global-selected);
|
|
3920
3962
|
}
|
|
3921
3963
|
|
|
3922
3964
|
/* Array Widget */
|
|
@@ -3927,6 +3969,9 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3927
3969
|
.lexwidget:has(.lexcustomcontainer) {
|
|
3928
3970
|
background-color: light-dark(var(--global-color-tertiary), var(--global-medium-background));
|
|
3929
3971
|
border-radius: 6px;
|
|
3972
|
+
display: grid;
|
|
3973
|
+
grid-template-columns: repeat(2, 1fr);
|
|
3974
|
+
grid-template-rows: auto auto;
|
|
3930
3975
|
}
|
|
3931
3976
|
|
|
3932
3977
|
.lexarray .lexwidget {
|
|
@@ -3940,6 +3985,7 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3940
3985
|
color: var(--global-text-secondary);
|
|
3941
3986
|
font-size: var(--global-font-size);
|
|
3942
3987
|
margin-top: -1px;
|
|
3988
|
+
grid-column: span 2;
|
|
3943
3989
|
}
|
|
3944
3990
|
|
|
3945
3991
|
.lexarrayitems .small .lexbutton {
|
|
@@ -3991,7 +4037,7 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3991
4037
|
|
|
3992
4038
|
.lexcounter {
|
|
3993
4039
|
display: flex;
|
|
3994
|
-
|
|
4040
|
+
place-content: center;
|
|
3995
4041
|
}
|
|
3996
4042
|
|
|
3997
4043
|
.lexcounterbox {
|
|
@@ -4063,10 +4109,18 @@ tr.dragging {
|
|
|
4063
4109
|
pointer-events: none;
|
|
4064
4110
|
}
|
|
4065
4111
|
|
|
4112
|
+
th, td {
|
|
4113
|
+
padding: 6px;
|
|
4114
|
+
padding-inline: 12px;
|
|
4115
|
+
text-align: left;
|
|
4116
|
+
align-content: center;
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4066
4119
|
th {
|
|
4067
4120
|
--th-color: var(--global-text-secondary);
|
|
4068
4121
|
color: var(--th-color);
|
|
4069
4122
|
font-size: var(--global-font-size);
|
|
4123
|
+
padding-block: 2px;
|
|
4070
4124
|
cursor: pointer;
|
|
4071
4125
|
transition: all 0.1s linear;
|
|
4072
4126
|
background-color: var(--global-color-tertiary);
|
|
@@ -4080,6 +4134,15 @@ th a {
|
|
|
4080
4134
|
pointer-events: none;
|
|
4081
4135
|
}
|
|
4082
4136
|
|
|
4137
|
+
th span {
|
|
4138
|
+
border-radius: 6px;
|
|
4139
|
+
padding: 0.4rem;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
th span:hover {
|
|
4143
|
+
background-color: var(--global-color-secondary);
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4083
4146
|
th a, td a {
|
|
4084
4147
|
font-size: var(--global-font-size-xs) !important;
|
|
4085
4148
|
display: flex;
|
|
@@ -4095,13 +4158,6 @@ th:hover {
|
|
|
4095
4158
|
color: color-mix(in srgb, var(--th-color), #000 10%);
|
|
4096
4159
|
}
|
|
4097
4160
|
|
|
4098
|
-
th, td {
|
|
4099
|
-
padding: 6px;
|
|
4100
|
-
padding-inline: 12px;
|
|
4101
|
-
text-align: left;
|
|
4102
|
-
align-content: center;
|
|
4103
|
-
}
|
|
4104
|
-
|
|
4105
4161
|
th.centered, td.centered {
|
|
4106
4162
|
text-align: center;
|
|
4107
4163
|
}
|
|
@@ -4119,6 +4175,11 @@ th .lexcheckbox, td .lexcheckbox {
|
|
|
4119
4175
|
height: 1.25em;
|
|
4120
4176
|
}
|
|
4121
4177
|
|
|
4178
|
+
th a {
|
|
4179
|
+
display: inline-block;
|
|
4180
|
+
transform: translate(6px, 3px);
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4122
4183
|
td {
|
|
4123
4184
|
justify-items: center;
|
|
4124
4185
|
border-top: 2px solid;
|
|
@@ -4137,11 +4198,12 @@ thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td
|
|
|
4137
4198
|
|
|
4138
4199
|
.lextable .lextablebuttons {
|
|
4139
4200
|
display: inline-flex;
|
|
4140
|
-
gap: 0.
|
|
4201
|
+
gap: 0.2rem;
|
|
4141
4202
|
}
|
|
4142
4203
|
|
|
4143
4204
|
.lextable .lextablebuttons .lexicon {
|
|
4144
4205
|
font-size: var(--global-font-size-sm) !important;
|
|
4206
|
+
padding: 0.2rem;
|
|
4145
4207
|
}
|
|
4146
4208
|
|
|
4147
4209
|
:root[data-theme="light"] .lextable table {
|
|
@@ -4156,6 +4218,7 @@ thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td
|
|
|
4156
4218
|
color: var(--global-text-secondary);
|
|
4157
4219
|
font-size: var(--global-font-size);
|
|
4158
4220
|
margin-top: -1px;
|
|
4221
|
+
grid-column: span 2;
|
|
4159
4222
|
}
|
|
4160
4223
|
|
|
4161
4224
|
.lexcustomcontainer span {
|
|
@@ -4394,14 +4457,10 @@ thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td
|
|
|
4394
4457
|
|
|
4395
4458
|
.lextimeline .lexwidget:has(.lexbutton:not(.array)) {
|
|
4396
4459
|
padding: 1px;
|
|
4397
|
-
/* padding-left: 10px;
|
|
4398
|
-
padding-right: 10px; */
|
|
4399
4460
|
}
|
|
4400
4461
|
|
|
4401
4462
|
.lextimeline .lexinlinewidgets {
|
|
4402
4463
|
padding-right: 10px;
|
|
4403
|
-
/* background-color: var(--global-color-secondary); */
|
|
4404
|
-
/* height: 100%; */
|
|
4405
4464
|
}
|
|
4406
4465
|
|
|
4407
4466
|
.lextimeline .lexbutton:hover {
|
|
@@ -4922,7 +4981,7 @@ ul.lexassetscontent {
|
|
|
4922
4981
|
position: absolute;
|
|
4923
4982
|
z-index: 3;
|
|
4924
4983
|
bottom: 0px;
|
|
4925
|
-
|
|
4984
|
+
justify-items: end;
|
|
4926
4985
|
}
|
|
4927
4986
|
|
|
4928
4987
|
.lexcodegutter {
|