lexgui 0.1.28 → 0.1.29

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/lexgui.css CHANGED
@@ -27,6 +27,7 @@
27
27
  --transition-time: 1000;
28
28
  --code-editor-font-size: 14px;
29
29
  --code-editor-row-height: 20px;
30
+ --graphnode-background: 17, 17, 17;
30
31
  }
31
32
 
32
33
  /* Some global colors */
@@ -319,7 +320,7 @@ body.noevents * {
319
320
  }
320
321
 
321
322
  .lexdialog.pocket.dockable {
322
- transition: ease-out left 0.2s, ease-out top 0.2s;
323
+ transition: ease-out left 0.2s, ease-out top 0.2s, ease-in transform 0.2s;
323
324
  }
324
325
 
325
326
  .lexdialog.pocket .lexdialogtitle {
@@ -637,8 +638,18 @@ body.noevents * {
637
638
  transition: border-color 0.1s linear;
638
639
  }
639
640
 
640
- .lexwidget .lextext, .lexwidget .lexnumber {
641
- padding-left: 4px;
641
+ .lexwidget .lextext {
642
+ border-radius: 6px;
643
+ position: relative;
644
+ transition: 0.1s linear;
645
+ }
646
+
647
+ .lexwidget .lextext:not(:has(div)) {
648
+ background-color: var(--global-button-color);
649
+ }
650
+
651
+ .lexwidget .lextext:not(:has(div)):hover {
652
+ background-color: var(--global-button-color-hovered);
642
653
  }
643
654
 
644
655
  .lexwidget .lextext input {
@@ -647,6 +658,8 @@ body.noevents * {
647
658
 
648
659
  .lexwidget .lextext div {
649
660
  color: #b2b2b5d6;
661
+ padding: 2px;
662
+ padding-left: 6px;
650
663
  }
651
664
 
652
665
  .lexwidget .lextext.lexwarning div {
@@ -660,13 +673,13 @@ body.noevents * {
660
673
  }
661
674
 
662
675
  .lexwidget .lextext input:focus {
663
- border-color: var(--global-selected);
676
+ border: 2px solid var(--global-selected);
664
677
  }
665
678
 
666
679
  .lexwidget .inputicon {
667
- padding: 4px;
668
- font-size: 11px;
669
- margin-top: 2px;
680
+ padding: 6px;
681
+ font-size: 10px;
682
+ margin-top: 4px;
670
683
  }
671
684
 
672
685
  .lexwidget textarea {
@@ -1811,8 +1824,8 @@ meter::-webkit-meter-even-less-good-value {
1811
1824
  }
1812
1825
 
1813
1826
  .lexcontextmenubox:before {
1814
- content:"";
1815
- position:absolute;
1827
+ content: "";
1828
+ position: absolute;
1816
1829
  width: 100%;
1817
1830
  height: 100%;
1818
1831
  top:0;
@@ -1865,6 +1878,9 @@ meter::-webkit-meter-even-less-good-value {
1865
1878
  margin-right: 10px;
1866
1879
  margin-top: 2px;
1867
1880
  font-size: var(--global-font-size);
1881
+ white-space: nowrap;
1882
+ overflow: hidden;
1883
+ text-overflow: ellipsis;
1868
1884
  }
1869
1885
 
1870
1886
  .lexcontextmenubox .lexcontextmenuentry .lexentryname.disabled {
@@ -2903,6 +2919,10 @@ ul.lexassetscontent {
2903
2919
  overflow: scroll;
2904
2920
  }
2905
2921
 
2922
+ .lexcodeeditor .codetabsarea.no-code-info {
2923
+ height: calc( 100% - 28px ) !important;
2924
+ }
2925
+
2906
2926
  .lexcodeeditor .codetabsarea::-webkit-scrollbar {
2907
2927
  display: none;
2908
2928
  }
@@ -3248,16 +3268,64 @@ pre .line-gutter {
3248
3268
 
3249
3269
  .lexgraph {
3250
3270
  overflow: hidden;
3271
+ position: relative;
3272
+ outline: none;
3273
+ cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA4lJREFUWEftl1FIk1EUx/9qOGtNU4wkC1RQEc2hD9P5oigqH1PxIQqhgYI+iHtIE0ZQKoZo6BDniFScsIcgCSEILMPhJBRCh6G+qKSopHy2iVnOudniyDdZY3NTJ/rghcvGuPvO7/zP/557Pz+c8/A75/i4cAAERNPGzTMXyFEBfwAB6+vrqoiIiMcA9gFYzhrEEeAKgKC1tbX6nZ2dh3t7e3UJCQnvAJgBWM8KxBkgWKvV3g8KCnoZFxfHZ1l2fHV1tS4vL+8rgD1OFZ+WxREgAMCN0tLSex0dHR9DQkJ4ra2tkMlkFoPBoGppaWlTqVQGrix/fUXhCEDfQwDcMRqNY9nZ2YKpqSkkJydDoVBYExMTN7a3t5vi4+M1AHZ9VRbnbXgdQOTs7OzbtrY2YV9f32GiUqkU7e3tFpPJNL6ystKckZExyvmDzHri4QxwFUDE2NhYvV6vL5HJZIHOT6ay1NTU2FiW7RoYGFBUVVWtnKYszgAU8KZarS5JSkpqEIlEfFepRUdHo7e3dzclJWVrc3NTERMT8/qkZXEGICOGSSQSYX9//yCfz6et6XYUFxdDrVbTNp1YWlpqT01NHTxuWZwB7Ea8y7LsF4ZhgicnJ90C8Hg8ZGZmQiwWo6GhAQaD4VV4ePgTDoK6qcfh6iw4MOL09PSbzs7O1O7u7v8eEhsbC4lEgtzcXLNYLPa32WyW5eXlaaPR+Hlubm64srJyAsAOAK+2qisAMuItnU73fH5+/lF5efmhEaurq9HY2GhZWFhYWlxcnNRqtd9UKtUsgF8AqEf8BLDF+eHEClDA8J6engcikahJKBReIwnS0tIwMjKyL5fLXyiVSqoLBfrDZWsCQJMyt/cIj/LTAlcKkBFDs7KykoaGhoYDAwPpkIJOp9u1Wq0fcnJyOgFscFlTMGrRdFbQpJ7glfR2OlcAjkbUMQwTWlBQgLKystWoqCgpgGVObsqYgh4roLMs7i4kZMTbMzMzGqVSmdbV1UXt+Gltbe17AD8A/PbVweQO4MCIo6OjcoFAIDWbzZ/S09ObAVDX2+Rk96rGnha5AyAjhmk0msL8/PxnDMOU6fX67wBYzmxeOdxTcHcmpN/JiILCwsLIiooKcVFR0TCX+bavpD/KhHYwHt2QAFA7JqfbHe9NYl6vOepWfHBHBECftL1o+kx6Twp4ncFpF16494LTJnTs/18qcKnAPygqQzAAgQjBAAAAAElFTkSuQmCC) 4 4, auto !important;
3251
3274
  }
3252
3275
 
3253
- .lexgraph .lexgraphnodes {
3276
+ .lexgraph .lexdropdown ul {
3277
+ max-height: unset;
3278
+ }
3279
+
3280
+ .lexgraph .lexgraphnodes, .lexgraph .lexgraphlinks {
3254
3281
  width: 100%;
3255
3282
  height: 100%;
3256
- position: relative;
3283
+ position: absolute;
3257
3284
  }
3258
3285
 
3259
- .lexgraph .background-svg {
3286
+ .lexgraph .lexgraphlinks {
3287
+ pointer-events: none;
3288
+ }
3289
+
3290
+ .lexgraph .lexgraphlinks path {
3291
+ stroke-width: 3px;
3292
+ stroke-opacity: 0.9;
3293
+ }
3294
+
3295
+ .lexgraph .lexgraphlinks path.running {
3296
+ stroke-dasharray: 5px;
3297
+ stroke-linecap: round;
3298
+ stroke-dashoffset: 50;
3299
+ animation: dash 1s linear;
3300
+ animation-iteration-count: infinite;
3301
+ }
3302
+
3303
+ @keyframes dash {
3304
+ to {
3305
+ stroke-dashoffset: 0;
3306
+ }
3307
+ }
3308
+
3309
+ .lexgraph svg {
3260
3310
  position: absolute;
3311
+ overflow: visible;
3312
+ top: 0;
3313
+ left: 0;
3314
+ bottom: 0;
3315
+ right: 0;
3316
+ }
3317
+
3318
+ .lexgraph .box-selection-svg {
3319
+ stroke-width: 3px;
3320
+ stroke: var(--global-selected);
3321
+ border-radius: 8px;
3322
+ fill: var(--global-selected);
3323
+ fill-opacity: 0.2;
3324
+ }
3325
+
3326
+ .lexgraph .box-selection-svg.removing {
3327
+ stroke-dasharray: 6px;
3328
+ stroke-linecap: round;
3261
3329
  }
3262
3330
 
3263
3331
  .lexgraphnode {
@@ -3270,26 +3338,72 @@ pre .line-gutter {
3270
3338
  min-width: 96px;
3271
3339
  min-height: 32px;
3272
3340
  border-radius: 10px;
3273
- background-color: #111;
3274
- border: 2px solid var(--global-color-transparent);
3341
+
3342
+ /* background-color: rgba(var(--graphnode-background), 0.75); */
3343
+ background: linear-gradient(15deg, #161616da 10%, #080808da);
3344
+ background-color: unset; background-origin: border-box;
3345
+
3346
+ -webkit-backdrop-filter: blur(4px);
3347
+ backdrop-filter: blur(4px);
3348
+ border: 3px solid var(--global-color-transparent);
3275
3349
  transition: border 0.05s linear;
3276
3350
  padding: 4px;
3277
3351
  }
3278
3352
 
3353
+ .lexgraphnode.math {
3354
+ background: linear-gradient(15deg, #0687d1da 10%, #00ffccda);
3355
+ background-color: unset; background-origin: border-box;
3356
+ }
3357
+
3358
+ .lexgraphnode.logic {
3359
+ background: linear-gradient(15deg, #FB4D3Dda 10%, #A74482da);
3360
+ background-color: unset; background-origin: border-box;
3361
+ }
3362
+
3363
+ .lexgraphnode.inputs {
3364
+ background: linear-gradient(15deg, #84e100da 10%, #79a095da);
3365
+ background-color: unset; background-origin: border-box;
3366
+ }
3367
+
3368
+ .lexgraphnode.variables {
3369
+ background: linear-gradient(15deg, #f1e643da 10%, #e78b8bda);
3370
+ background-color: unset; background-origin: border-box;
3371
+ }
3372
+
3373
+ .lexgraphnode.events {
3374
+ background: linear-gradient(15deg, #ec49d7da 10%, #8dc0b8da);
3375
+ background-color: unset; background-origin: border-box;
3376
+ }
3377
+
3378
+
3279
3379
  .lexgraphnode.selected {
3280
- border: 2px solid var(--global-selected);
3380
+ border: 3px solid var(--global-selected-dark);
3381
+ border: 3px solid #ffc107;
3281
3382
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.14);
3282
3383
  }
3283
3384
 
3284
- .lexgraphnode .lexgraphnodeheader {
3385
+ .lexgraphnode .lexgraphnodeheader, .lexgraphnode .lexgraphnodeproperties {
3285
3386
  font-family: var(--global-title-font);
3286
3387
  font-weight: 700;
3287
3388
  font-size: 13px;
3288
3389
  color: #d9d9e3;
3289
- text-shadow: 0px 1px 4px #2222228f;
3290
- border-bottom: 1px solid var(--global-blur-background);
3390
+ text-shadow: 0px 0px 2px #1b1b1bdc;
3391
+ border-bottom: 1px solid #ffffff46;
3291
3392
  margin-bottom: 2px;
3292
3393
  pointer-events: none;
3394
+ text-align: -webkit-center;
3395
+ text-align: center;
3396
+ margin-left: -7px;
3397
+ width: calc(100% + 14px);
3398
+ }
3399
+
3400
+ .lexgraphnode.selected .lexgraphnodeheader, .lexgraphnode.selected .lexgraphnodeproperties {
3401
+ margin-left: -4px;
3402
+ width: calc(100% + 8px);
3403
+ }
3404
+
3405
+ .lexgraphnode .lexgraphnodeproperties {
3406
+ pointer-events: all;
3293
3407
  }
3294
3408
 
3295
3409
  .lexgraphnode .lexgraphnodeios {
@@ -3298,61 +3412,197 @@ pre .line-gutter {
3298
3412
  }
3299
3413
 
3300
3414
  .lexgraphnode .lexgraphnodeios .lexgraphnodeinputs {
3301
- margin-right: 12px;
3415
+ margin-right: 6px;
3302
3416
  }
3303
3417
 
3304
3418
  .lexgraphnode .lexgraphnodeios .lexgraphnodeoutputs {
3305
- margin-left: 12px;
3419
+ margin-left: 6px;
3306
3420
  }
3307
3421
 
3308
3422
  .lexgraphnode .lexgraphnodeio {
3309
3423
  font-family: var(--global-title-font);
3310
3424
  font-weight: 500;
3311
- font-size: 11px;
3425
+ font-size: 10px;
3312
3426
  color: #d9d9e3;
3313
3427
  text-shadow: 0px 1px 6px #22222283;
3314
3428
  display: flex;
3315
3429
  min-height: 18px;
3316
3430
  }
3317
3431
 
3318
- .lexgraphnode .lexgraphnodeio.output {
3432
+ .lexgraphnode .lexgraphnodeio.iooutput {
3319
3433
  justify-content: right;
3320
3434
  }
3321
3435
 
3322
3436
  .lexgraphnode .lexgraphnodeio .io__type {
3323
3437
  font-size: 7px;
3324
3438
  font-weight: 700;
3325
- line-height: 11px;
3326
- min-width: 12px;
3327
- min-height: 12px;
3439
+ line-height: 10px;
3440
+ min-width: 11px;
3441
+ max-width: 11px;
3442
+ min-height: 10px;
3443
+ max-height: 10px;
3328
3444
  background-color: #afafaf;
3329
3445
  align-self: center;
3330
3446
  margin-right: 3px;
3331
3447
  border-radius: 3px;
3448
+ padding-top: 1px;
3332
3449
  text-align: -webkit-center;
3333
3450
  text-align: center;
3334
- border: 1px solid var(--global-text-terciary);
3451
+ border: 1px solid #afafaf6b;
3452
+ color: var(--global-color-primary);
3453
+ pointer-events: all;
3454
+ }
3455
+
3456
+ .lexgraphnode .lexgraphnodeio .io__type span {
3457
+ pointer-events: none;
3458
+ }
3459
+
3460
+ .lexgraphnode .lexgraphnodeio .io__typedesc {
3461
+ position: absolute;
3462
+ margin-left: -30px;
3463
+ font-weight: 600;
3464
+ margin-top: 3px;
3465
+ background-color: #afafaf;
3335
3466
  color: var(--global-color-primary);
3336
- pointer-events: all !important;
3467
+ font-size: 8px;
3468
+ border-radius: 4px;
3469
+ width: 28px;
3470
+ text-align: center;
3471
+ opacity: 0;
3472
+ transition: opacity ease-in 0.1s;
3337
3473
  }
3338
3474
 
3339
- .lexgraphnode .lexgraphnodeio .io__type.vec2 { background-color: #63a9ee; }
3340
- .lexgraphnode .lexgraphnodeio .io__type.vec3 { background-color: #e75d4e; }
3341
- .lexgraphnode .lexgraphnodeio .io__type.bool { background-color: #cc8ce5; }
3475
+ .lexgraphnode .lexgraphnodeio .io__typedesc.output {
3476
+ margin-right: -30px;
3477
+ }
3478
+
3479
+ .lexgraphnode .lexgraphnodeio .io__type.vec2,
3480
+ .lexgraphnode .lexgraphnodeio .io__typedesc.vec2 { background-color: #ecea4c; }
3481
+ .lexgraphnode .lexgraphnodeio .io__type.vec3,
3482
+ .lexgraphnode .lexgraphnodeio .io__typedesc.vec3 { background-color: #ee87e5; }
3483
+ .lexgraphnode .lexgraphnodeio .io__type.vec4,
3484
+ .lexgraphnode .lexgraphnodeio .io__typedesc.vec4 { background-color: #9d56d8; }
3485
+ .lexgraphnode .lexgraphnodeio .io__type.string,
3486
+ .lexgraphnode .lexgraphnodeio .io__typedesc.string { background-color: #79cc9c; }
3487
+ .lexgraphnode .lexgraphnodeio .io__type.mat,
3488
+ .lexgraphnode .lexgraphnodeio .io__typedesc.mat { background-color: #56a8d8; }
3489
+
3490
+ .lexgraphnode .lexgraphnodeio .io__name {
3491
+ margin-top: 2px;
3492
+ }
3342
3493
 
3343
3494
  .lexgraphnode .lexgraphnodeio .io__type.output {
3344
3495
  margin-right: unset;
3345
3496
  margin-left: 3px;
3346
3497
  }
3347
3498
 
3499
+ .lexgraphnode .lexgraphnodeio:hover .io__typedesc {
3500
+ opacity: 1;
3501
+ }
3502
+
3348
3503
  .lexgraphnode .lexgraphnodeio .io__type:hover {
3349
- filter: opacity(0.75);
3504
+ filter: brightness(1.2);
3350
3505
  }
3351
3506
 
3352
- .lexgraphnode .lexgraphnodeio .io__type.active {
3353
- background-color: var(--global-text-primary);
3507
+ .lexgraphnode .lexgraphnodeio[data-active] .io__type:hover {
3508
+ background-color: rgba(255, 58, 58, 0.829);
3354
3509
  }
3355
3510
 
3356
- .lexgraphnode .lexgraphnodeio .io__name {
3357
- margin-top: 1px;
3358
- }
3511
+ .lexgraphnode .lexgraphnodeio[data-active] .io__type:hover span {
3512
+ display: none;
3513
+ }
3514
+
3515
+ .lexgraphnode .lexgraphnodeio[data-active] .io__type:hover::after {
3516
+ content: 'X';
3517
+ }
3518
+
3519
+ .lexgraphnode .lexgraphnodeio[data-active] .io__type {
3520
+ filter: brightness(1.4);
3521
+ }
3522
+
3523
+ .lexgraph .lexgraphpropdialog {
3524
+ transform: translateY(-96px);
3525
+ }
3526
+
3527
+ .lexgraph .lexgraphpropdialog.opened {
3528
+ transform: translateY(0px);
3529
+ }
3530
+
3531
+ .lexgraph .lexgraphgroups {
3532
+ z-index: 1;
3533
+ }
3534
+
3535
+ .lexgraphgroup {
3536
+ position: absolute;
3537
+ -webkit-user-select: none; /* Safari 3.1+ */
3538
+ -moz-user-select: none; /* Firefox 2+ */
3539
+ -ms-user-select: none; /* IE 10+ */
3540
+ user-select: none; /* Standard syntax */
3541
+ cursor: pointer;
3542
+ min-width: 96px;
3543
+ min-height: 32px;
3544
+ border-radius: 8px;
3545
+
3546
+ background: linear-gradient(35deg, #949292 10%, #a7c4bd);
3547
+ background-color: unset; background-origin: border-box;
3548
+
3549
+ -webkit-backdrop-filter: blur(4px);
3550
+ backdrop-filter: blur(4px);
3551
+ border: 1px solid var(--global-text-primary);
3552
+ transition: border 0.05s linear;
3553
+ opacity: 0.5;
3554
+ }
3555
+
3556
+ .lexgraphgroup .lexgraphgrouptitle {
3557
+ font-size: 14px;
3558
+ margin: 8px;
3559
+ font-weight: 800;
3560
+ color: var(--global-color-primary);
3561
+ font-family: var(--global-title-font);
3562
+ outline: none;
3563
+ border: none;
3564
+ background: none;
3565
+ max-width: 128px;
3566
+ overflow: hidden;
3567
+ white-space: nowrap;
3568
+ text-overflow: ellipsis;
3569
+ border-bottom: 1px solid var(--global-color-primary);
3570
+ }
3571
+
3572
+ .lexgraphgroup .lexgraphgrouptitle:disabled {
3573
+ pointer-events: none;
3574
+ border: none;
3575
+ }
3576
+
3577
+ .lexgraphgroup .lexgraphgroupresizer {
3578
+ position: absolute;
3579
+ bottom: 2px;
3580
+ right: 2px;
3581
+ width: 12px;
3582
+ height: 12px;
3583
+ border-bottom: 2px solid var(--global-color-primary);
3584
+ border-right: 2px solid var(--global-color-primary);
3585
+ border-bottom-right-radius: 8px;
3586
+ }
3587
+
3588
+ .lexgraphgroup .lexgraphgroupresizer:hover {
3589
+ border-bottom: 2px solid #4b4b4ba8;
3590
+ border-right: 2px solid #4b4b4ba8;
3591
+ }
3592
+
3593
+ /* .lexgraphnodeproperties .lexwidget .numberbox, .lexgraphnodeproperties .lexwidget .lextext {
3594
+ margin: unset;
3595
+ background-color: unset;
3596
+ }
3597
+
3598
+ .lexgraphnodeproperties .lexwidget.nobranch {
3599
+ padding: 0px;
3600
+ }
3601
+
3602
+ .lexgraphnodeproperties .lexwidget input {
3603
+ font-size: 14px;
3604
+ font-weight: 800;
3605
+ color: var(--global-color-primary);
3606
+ font-family: var(--global-title-font);
3607
+ max-width: 64px;
3608
+ } */