sunrize 1.9.1 → 1.10.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/README.md +5 -1
- package/package.json +7 -8
- package/src/Application/Application.js +46 -17
- package/src/Application/Dashboard.js +1 -1
- package/src/Application/Document.js +40 -0
- package/src/Application/Registry.js +43 -0
- package/src/Application/Tabs.js +8 -1
- package/src/Application/Template.js +2 -2
- package/src/Controls/RenameNodeInput.js +11 -2
- package/src/Editors/OutlineEditor.js +9 -0
- package/src/Editors/OutlineRouteGraph.js +16 -4
- package/src/Editors/OutlineView.js +7 -7
- package/src/Editors/Panel.js +1 -1
- package/src/Editors/SceneProperties.js +4 -4
- package/src/Editors/ScriptEditor.js +120 -87
- package/src/Undo/Editor.js +3 -3
- package/src/assets/X3D.reg +81 -0
- package/src/assets/html/application-template.html +18 -1
- package/src/assets/html/window-template.html +0 -1
- package/src/assets/images/icon.ico +0 -0
- package/src/assets/images/loading/Higher Jump.ttf +0 -0
- package/src/assets/images/loading/icons.png +0 -0
- package/src/assets/images/loading/loading.png +0 -0
- package/src/assets/images/loading/loading.x3d +170 -0
- package/src/assets/images/loading.gif +0 -0
- package/src/assets/images/logo.svg +58 -0
- package/src/assets/themes/{default-template.css → default.css} +231 -42
- package/src/assets/themes/media-template.css +12 -0
- package/src/assets/themes/system-colors.css +2 -0
- package/src/main.js +4 -0
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
@charset "utf-8";
|
|
2
2
|
@import url(https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&display=swap);
|
|
3
|
-
@import url(
|
|
4
|
-
@import url(../../node_modules/material-symbols/index.css);
|
|
5
|
-
@import url(../../node_modules/spectrum-colorpicker2/dist/spectrum.css);
|
|
6
|
-
@import url(system-colors.css);
|
|
3
|
+
@import url(media.css);
|
|
7
4
|
|
|
8
5
|
html {
|
|
9
6
|
overflow: hidden;
|
|
@@ -24,7 +21,7 @@ body {
|
|
|
24
21
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
|
|
25
22
|
}
|
|
26
23
|
|
|
27
|
-
|
|
24
|
+
:focus {
|
|
28
25
|
outline: none;
|
|
29
26
|
}
|
|
30
27
|
|
|
@@ -37,6 +34,39 @@ body {
|
|
|
37
34
|
background: var(--selection-background-color);
|
|
38
35
|
}
|
|
39
36
|
|
|
37
|
+
/* Scrollbars */
|
|
38
|
+
|
|
39
|
+
::-webkit-scrollbar {
|
|
40
|
+
width: 14px;
|
|
41
|
+
height: 14px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
::-webkit-scrollbar-track, /* Track */
|
|
45
|
+
::-webkit-scrollbar-thumb:window-inactive, /* Handle */
|
|
46
|
+
::-webkit-scrollbar-corner { /* Corner */
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Handle */
|
|
51
|
+
:hover::-webkit-scrollbar-thumb {
|
|
52
|
+
background-color: var(--scrollbar-thumb-color);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* https://developer.chrome.com/docs/css-ui/scrollbar-styling?hl=de */
|
|
56
|
+
:hover {
|
|
57
|
+
--fix: ; /* This custom property invalidates styles on hover, thereby enforcing a style recomputation. This is needed to work around a bug in Safari. */
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* textarea resizer */
|
|
61
|
+
|
|
62
|
+
::-webkit-resizer {
|
|
63
|
+
background-color: transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:hover::-webkit-resizer {
|
|
67
|
+
background-color: var(--scrollbar-thumb-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
40
70
|
/* common */
|
|
41
71
|
|
|
42
72
|
.green {
|
|
@@ -57,7 +87,7 @@ body {
|
|
|
57
87
|
|
|
58
88
|
textarea, input, button, select,
|
|
59
89
|
th, td,
|
|
60
|
-
.ui-widget, .ui-widget
|
|
90
|
+
.ui-widget, .ui-widget:has(input, select, textarea, button), .ui-widget-content {
|
|
61
91
|
border: none;
|
|
62
92
|
padding: 0;
|
|
63
93
|
background: none;
|
|
@@ -177,7 +207,6 @@ tr.disabled ~ tr > td > div {
|
|
|
177
207
|
|
|
178
208
|
.vertical-splitter-left,
|
|
179
209
|
.vertical-splitter-right {
|
|
180
|
-
background-color: var(--background-color);
|
|
181
210
|
position: absolute;
|
|
182
211
|
box-sizing: border-box;
|
|
183
212
|
top: 0;
|
|
@@ -350,7 +379,7 @@ tr.disabled ~ tr > td > div {
|
|
|
350
379
|
|
|
351
380
|
.ui-tabs > .ui-tabs-nav .ui-tabs-anchor,
|
|
352
381
|
.ui-tabs > .ui-tabs-nav .ui-tabs-active .ui-tabs-anchor {
|
|
353
|
-
cursor: pointer;
|
|
382
|
+
cursor: pointer !important;
|
|
354
383
|
color: inherit;
|
|
355
384
|
}
|
|
356
385
|
|
|
@@ -462,12 +491,28 @@ body.light .qtip-tipsy {
|
|
|
462
491
|
box-sizing: border-box;
|
|
463
492
|
}
|
|
464
493
|
|
|
494
|
+
.horizontal-toolbar {
|
|
495
|
+
top: 0;
|
|
496
|
+
width: 100%;
|
|
497
|
+
height: var(--toolbar-width);
|
|
498
|
+
}
|
|
499
|
+
|
|
465
500
|
.vertical-toolbar {
|
|
466
501
|
right: 0;
|
|
467
502
|
height: 100%;
|
|
468
503
|
width: var(--toolbar-width);
|
|
469
504
|
}
|
|
470
505
|
|
|
506
|
+
.horizontal-toolbar .material-icons,
|
|
507
|
+
.horizontal-toolbar .material-symbols-outlined {
|
|
508
|
+
display: inline-block;
|
|
509
|
+
margin: auto 5px;
|
|
510
|
+
height: var(--icon-size);
|
|
511
|
+
cursor: pointer;
|
|
512
|
+
font-size: var(--icon-size);
|
|
513
|
+
user-select: none;
|
|
514
|
+
}
|
|
515
|
+
|
|
471
516
|
.vertical-toolbar .material-icons,
|
|
472
517
|
.vertical-toolbar .material-symbols-outlined {
|
|
473
518
|
display: block;
|
|
@@ -478,6 +523,12 @@ body.light .qtip-tipsy {
|
|
|
478
523
|
user-select: none;
|
|
479
524
|
}
|
|
480
525
|
|
|
526
|
+
.horizontal-toolbar .material-symbols-outlined {
|
|
527
|
+
font-size: calc(var(--icon-size) + 7px);
|
|
528
|
+
position: relative;
|
|
529
|
+
top: 3px;
|
|
530
|
+
}
|
|
531
|
+
|
|
481
532
|
.vertical-toolbar .material-symbols-outlined {
|
|
482
533
|
font-size: calc(var(--icon-size) + 7px);
|
|
483
534
|
position: relative;
|
|
@@ -489,6 +540,32 @@ body.light .qtip-tipsy {
|
|
|
489
540
|
left: -1px;
|
|
490
541
|
}
|
|
491
542
|
|
|
543
|
+
.horizontal-toolbar .text {
|
|
544
|
+
display: inline-block;
|
|
545
|
+
position: relative;
|
|
546
|
+
top: -2px;
|
|
547
|
+
margin: auto 5px;
|
|
548
|
+
font-size: var(--font-size);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.horizontal-toolbar .input {
|
|
552
|
+
display: inline-block;
|
|
553
|
+
position: relative;
|
|
554
|
+
top: -3px;
|
|
555
|
+
margin: auto 5px;
|
|
556
|
+
font-size: var(--font-size);
|
|
557
|
+
border: 1px solid var(--system-gray3);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.horizontal-toolbar .separator {
|
|
561
|
+
display: inline-block;
|
|
562
|
+
margin: auto 10px;
|
|
563
|
+
width: 0;
|
|
564
|
+
height: var(--icon-size);
|
|
565
|
+
border-right: 1px solid var(--separator-color);
|
|
566
|
+
user-select: none;
|
|
567
|
+
}
|
|
568
|
+
|
|
492
569
|
.vertical-toolbar .separator {
|
|
493
570
|
display: block;
|
|
494
571
|
margin: 10px auto;
|
|
@@ -498,20 +575,33 @@ body.light .qtip-tipsy {
|
|
|
498
575
|
user-select: none;
|
|
499
576
|
}
|
|
500
577
|
|
|
578
|
+
.horizontal-toolbar .material-icons:hover,
|
|
579
|
+
.horizontal-toolbar .material-symbols-outlined:hover,
|
|
501
580
|
.vertical-toolbar .material-icons:hover,
|
|
502
581
|
.vertical-toolbar .material-symbols-outlined:hover {
|
|
503
582
|
color: var(--highlight-color);
|
|
504
583
|
}
|
|
505
584
|
|
|
585
|
+
.horizontal-toolbar .material-icons.active,
|
|
586
|
+
.horizontal-toolbar .material-symbols-outlined.active,
|
|
506
587
|
.vertical-toolbar .material-icons.active,
|
|
507
588
|
.vertical-toolbar .material-symbols-outlined.active {
|
|
508
589
|
color: var(--accent-color);
|
|
509
590
|
}
|
|
510
591
|
|
|
592
|
+
.horizontal-toolbar .material-icons.disabled,
|
|
593
|
+
.horizontal-toolbar .material-symbols-outlined.disabled,
|
|
594
|
+
.horizontal-toolbar .text.disabled,
|
|
595
|
+
.horizontal-toolbar .input.disabled,
|
|
511
596
|
.vertical-toolbar .material-icons.disabled,
|
|
512
597
|
.vertical-toolbar .material-symbols-outlined.disabled {
|
|
513
598
|
pointer-events: none;
|
|
514
599
|
color: var(--system-gray3);
|
|
600
|
+
border-color: var(--system-gray3);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.horizontal-toolbar .right {
|
|
604
|
+
float: right;
|
|
515
605
|
}
|
|
516
606
|
|
|
517
607
|
.large-toolbar .material-icons {
|
|
@@ -521,7 +611,7 @@ body.light .qtip-tipsy {
|
|
|
521
611
|
}
|
|
522
612
|
|
|
523
613
|
.large-toolbar .image-icon {
|
|
524
|
-
background: no-repeat;
|
|
614
|
+
background-repeat: no-repeat;
|
|
525
615
|
display: block;
|
|
526
616
|
width: 24px;
|
|
527
617
|
height: 24px;
|
|
@@ -539,18 +629,6 @@ body.light .qtip-tipsy {
|
|
|
539
629
|
filter: var(--filter-accent-color);
|
|
540
630
|
}
|
|
541
631
|
|
|
542
|
-
.image-icon.hand {
|
|
543
|
-
background-image: url(../images/icons/hand.svg);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.image-icon.arrow {
|
|
547
|
-
background-image: url(../images/icons/arrow.svg);
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
.image-icon.straighten {
|
|
551
|
-
background-image: url(../images/icons/straighten.svg);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
632
|
/* Browser */
|
|
555
633
|
|
|
556
634
|
#browser-pane {
|
|
@@ -594,7 +672,7 @@ body.dark .dialog ::placeholder {
|
|
|
594
672
|
}
|
|
595
673
|
|
|
596
674
|
.dialog .tabs-panel {
|
|
597
|
-
|
|
675
|
+
margin: 0.5em 1em;
|
|
598
676
|
}
|
|
599
677
|
|
|
600
678
|
.dialog.ui-dialog {
|
|
@@ -654,8 +732,8 @@ body.dark .dialog ::placeholder {
|
|
|
654
732
|
user-select: none;
|
|
655
733
|
position: absolute;
|
|
656
734
|
overflow: scroll;
|
|
657
|
-
margin:
|
|
658
|
-
inset: 75px
|
|
735
|
+
margin: 1rem 1rem 0.5rem 1rem;
|
|
736
|
+
inset: 75px 0 0 0;
|
|
659
737
|
}
|
|
660
738
|
|
|
661
739
|
.ui-widget .library-list {
|
|
@@ -701,38 +779,101 @@ body.dark .ui-widget .library-list .component {
|
|
|
701
779
|
/* Node List */
|
|
702
780
|
|
|
703
781
|
.node-list {
|
|
704
|
-
|
|
782
|
+
user-select: none;
|
|
783
|
+
overflow: auto;
|
|
705
784
|
position: absolute;
|
|
706
785
|
inset: 0 0 0 0;
|
|
707
786
|
padding: 0;
|
|
708
787
|
}
|
|
709
788
|
|
|
710
|
-
.node-list
|
|
789
|
+
.node-list ul {
|
|
711
790
|
margin: 0;
|
|
712
791
|
padding: 0;
|
|
792
|
+
width: fit-content;
|
|
793
|
+
min-width: 100%;
|
|
713
794
|
list-style-type: none;
|
|
714
795
|
}
|
|
715
796
|
|
|
716
|
-
.node-list > ul
|
|
717
|
-
|
|
718
|
-
|
|
797
|
+
.node-list > ul {
|
|
798
|
+
padding: 1px 0;
|
|
799
|
+
color: var(--system-blue);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.node-list > ul > li > ul {
|
|
803
|
+
color: var(--system-orange);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.node-list .main {
|
|
807
|
+
color: var(--system-indigo);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.node-list.alternating > ul li:has(li) {
|
|
811
|
+
border-bottom: 1px solid var(--tint-color2);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.node-list .item {
|
|
719
815
|
margin: 0;
|
|
720
|
-
padding:
|
|
816
|
+
padding: 5px 10px 5px 0;
|
|
721
817
|
white-space: nowrap;
|
|
722
818
|
}
|
|
723
819
|
|
|
724
|
-
.node-list > ul > li
|
|
820
|
+
.node-list > ul > li > .item {
|
|
821
|
+
padding-left: 10px;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.node-list > ul > li > ul > li > .item {
|
|
825
|
+
padding-left: 20px;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/* .node-list > ul > li:has(> .item:hover) {
|
|
829
|
+
outline: 1px solid var(--system-blue);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.node-list > ul > li > ul > li:has(> .item:hover) {
|
|
833
|
+
outline: 1px solid var(--system-orange);
|
|
834
|
+
} */
|
|
835
|
+
|
|
836
|
+
.node-list.alternating > ul li:not(:has(li)):nth-child(odd) > .item {
|
|
725
837
|
background-color: var(--tint-color1);
|
|
726
838
|
}
|
|
727
839
|
|
|
728
|
-
.node-list > ul
|
|
729
|
-
background-color: var(--tint-color2);
|
|
840
|
+
.node-list.alternating > ul .item:hover {
|
|
841
|
+
background-color: var(--tint-color2) !important;
|
|
730
842
|
}
|
|
731
843
|
|
|
732
844
|
.node-list .icon {
|
|
733
845
|
position: relative;
|
|
734
|
-
margin-right:
|
|
846
|
+
margin-right: 5px;
|
|
847
|
+
top: 1px;
|
|
848
|
+
width: 16px;
|
|
849
|
+
height: 12px;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.node-list .button {
|
|
853
|
+
cursor: pointer;
|
|
854
|
+
position: relative;
|
|
735
855
|
top: 2px;
|
|
856
|
+
font-size: var(--font-size);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.node-list .button:hover {
|
|
860
|
+
color: var(--system-cyan);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.node-list .button.on {
|
|
864
|
+
color: var(--system-blue);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.node-list .button.on:hover {
|
|
868
|
+
color: var(--system-cyan);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.node-list .button.off {
|
|
872
|
+
color: var(--system-gray1);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.node-list .button.off:hover {
|
|
876
|
+
color: var(--system-gray0);
|
|
736
877
|
}
|
|
737
878
|
|
|
738
879
|
/* Footer */
|
|
@@ -908,10 +1049,8 @@ body.dark .ui-widget .library-list .component {
|
|
|
908
1049
|
}
|
|
909
1050
|
|
|
910
1051
|
.script-editor .node-list {
|
|
911
|
-
user-select: none;
|
|
912
1052
|
bottom: var(--input-height);
|
|
913
1053
|
border-bottom: 1px solid var(--border-color);
|
|
914
|
-
color: var(--system-blue);
|
|
915
1054
|
}
|
|
916
1055
|
|
|
917
1056
|
.script-editor .type-name {
|
|
@@ -935,9 +1074,62 @@ body.dark .ui-widget .library-list .component {
|
|
|
935
1074
|
/* Animation Editor */
|
|
936
1075
|
|
|
937
1076
|
.animation-editor {
|
|
1077
|
+
--input-height: 20px;
|
|
1078
|
+
|
|
938
1079
|
box-sizing: border-box;
|
|
939
1080
|
}
|
|
940
1081
|
|
|
1082
|
+
.animation-editor-toolbar {
|
|
1083
|
+
padding-left: 5px;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.animation-editor-navigation {
|
|
1087
|
+
top: var(--toolbar-width);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.animation-editor .animation-editor-content {
|
|
1091
|
+
position: absolute;
|
|
1092
|
+
box-sizing: border-box;
|
|
1093
|
+
top: var(--toolbar-width);
|
|
1094
|
+
right: var(--toolbar-width);
|
|
1095
|
+
left: 0;
|
|
1096
|
+
bottom: 0;
|
|
1097
|
+
border-top: 1px solid var(--border-color);
|
|
1098
|
+
border-right: 1px solid var(--border-color);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.animation-editor .timeline {
|
|
1102
|
+
user-select: none;
|
|
1103
|
+
border-left: 1px solid var(--border-color);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.animation-editor .node-list {
|
|
1107
|
+
bottom: var(--input-height);
|
|
1108
|
+
border-bottom: 1px solid var(--border-color);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.animation-editor .type-name {
|
|
1112
|
+
font-weight: bold;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.animation-editor .node-name {
|
|
1116
|
+
position: absolute;
|
|
1117
|
+
bottom: 0px;
|
|
1118
|
+
width: 100%;
|
|
1119
|
+
height: var(--input-height);
|
|
1120
|
+
border: none;
|
|
1121
|
+
background-color: var(--background-color);
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
.animation-editor .tracks {
|
|
1125
|
+
position: absolute;
|
|
1126
|
+
display: block;
|
|
1127
|
+
width: calc(100% - var(--toolbar-width));
|
|
1128
|
+
height: calc(100% - var(--toolbar-width));
|
|
1129
|
+
top: var(--toolbar-width);
|
|
1130
|
+
image-rendering: pixelated;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
941
1133
|
/* Sidebar */
|
|
942
1134
|
|
|
943
1135
|
.sidebar.ui-widget.ui-widget-content {
|
|
@@ -1442,10 +1634,7 @@ body.dark .ui-widget .library-list .component {
|
|
|
1442
1634
|
all: revert;
|
|
1443
1635
|
}
|
|
1444
1636
|
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
.monaco-inputbox > .ibwrapper {
|
|
1450
|
-
height: auto !important;
|
|
1637
|
+
/* Fix stange tooltip with placehoder in Find widget */
|
|
1638
|
+
.context-view.monaco-component {
|
|
1639
|
+
display: none;
|
|
1451
1640
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@import url(../../node_modules/material-icons/iconfont/material-icons.css);
|
|
2
|
+
@import url(../../node_modules/material-symbols/index.css);
|
|
3
|
+
@import url(../../node_modules/spectrum-colorpicker2/dist/spectrum.css);
|
|
4
|
+
@import url(system-colors.css);
|
|
5
|
+
|
|
6
|
+
.image-icon.hand {
|
|
7
|
+
background-image: url(../images/icons/hand.svg);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.image-icon.arrow {
|
|
11
|
+
background-image: url(../images/icons/arrow.svg);
|
|
12
|
+
}
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
--selection-color: black;
|
|
31
31
|
--selection-background-color: rgb(246, 196, 197);
|
|
32
|
+
--scrollbar-thumb-color: rgba(0, 0, 0, 0.2);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
/* TweakPanel colors */
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
|
|
91
92
|
--selection-color: white;
|
|
92
93
|
--selection-background-color: rgb(167, 118, 119);
|
|
94
|
+
--scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
/* TweakPanel colors */
|