sunrize 1.11.1 → 1.11.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/package.json +14 -13
- package/src/Application/Dashboard.js +12 -3
- package/src/Application/Document.js +8 -4
- package/src/Application/Hierarchy.js +10 -3
- package/src/Controls/Dialog.js +5 -2
- package/src/Editors/Console.js +252 -17
- package/src/Editors/Library.js +1 -1
- package/src/Editors/MaterialsLibrary.js +5 -3
- package/src/Editors/OutlineEditor.js +340 -222
- package/src/Editors/OutlineView.js +148 -173
- package/src/Editors/Panel.js +55 -1
- package/src/Editors/SceneProperties.js +1 -1
- package/src/Fields/MFStringTextArea.js +13 -11
- package/src/Fields/SFStringInput.js +12 -12
- package/src/Tools/Core/X3DNodeTool.js +1 -1
- package/src/Undo/Editor.js +91 -66
- package/src/assets/X3DUOM.xml +13 -4
- package/src/assets/themes/default.css +164 -38
- package/src/assets/themes/media-template.css +1 -9
- package/src/assets/themes/media.css +1 -9
- package/src/assets/themes/system-colors.css +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
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
3
|
@import url(media.css);
|
|
4
|
+
@import url(system-colors.css);
|
|
4
5
|
|
|
5
6
|
html {
|
|
6
7
|
overflow: hidden;
|
|
@@ -239,23 +240,20 @@ tr.disabled ~ tr > td > div {
|
|
|
239
240
|
width: 35%;
|
|
240
241
|
}
|
|
241
242
|
|
|
242
|
-
.
|
|
243
|
+
.ui-resizable-e,
|
|
244
|
+
.ui-resizable-w {
|
|
243
245
|
cursor: col-resize;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.vertical-splitter-left > .ui-resizable-e > div {
|
|
247
|
-
position: relative;
|
|
248
|
-
left: 0px;
|
|
249
246
|
width: 4px;
|
|
250
|
-
height: 100%;
|
|
251
247
|
}
|
|
252
248
|
|
|
253
|
-
.
|
|
249
|
+
.ui-resizable-w:hover,
|
|
250
|
+
.ui-resizable-e:hover {
|
|
254
251
|
animation: highlight-splitter 1000ms ease-out;
|
|
255
252
|
animation-fill-mode: forwards;
|
|
256
253
|
}
|
|
257
254
|
|
|
258
|
-
.
|
|
255
|
+
.ui-resizable-e:active,
|
|
256
|
+
.ui-resizable-e:active {
|
|
259
257
|
background-color: var(--accent-color);
|
|
260
258
|
}
|
|
261
259
|
|
|
@@ -301,33 +299,28 @@ tr.disabled ~ tr > td > div {
|
|
|
301
299
|
height: 40%;
|
|
302
300
|
}
|
|
303
301
|
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
#horizontal-splitter > .horizontal-splitter-top {
|
|
303
|
+
height: 60%;
|
|
306
304
|
}
|
|
307
305
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
#horizontal-splitter > .horizontal-splitter-bottom {
|
|
307
|
+
height: 40%;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.ui-resizable-s {
|
|
311
|
+
cursor: row-resize;
|
|
311
312
|
height: 4px;
|
|
312
313
|
}
|
|
313
314
|
|
|
314
|
-
.
|
|
315
|
+
.ui-resizable-s:hover {
|
|
315
316
|
animation: highlight-splitter 1000ms ease-out;
|
|
316
317
|
animation-fill-mode: forwards;
|
|
317
318
|
}
|
|
318
319
|
|
|
319
|
-
.
|
|
320
|
+
.ui-resizable-s:active {
|
|
320
321
|
background-color: var(--accent-color);
|
|
321
322
|
}
|
|
322
323
|
|
|
323
|
-
#horizontal-splitter > .horizontal-splitter-top {
|
|
324
|
-
height: 60%;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
#horizontal-splitter > .horizontal-splitter-bottom {
|
|
328
|
-
height: 40%;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
324
|
/* Tabs */
|
|
332
325
|
|
|
333
326
|
.ui-tabs {
|
|
@@ -646,27 +639,25 @@ html[platform=darwin] .horizontal-toolbar .select {
|
|
|
646
639
|
user-select: none;
|
|
647
640
|
}
|
|
648
641
|
|
|
649
|
-
.
|
|
650
|
-
.
|
|
651
|
-
.
|
|
652
|
-
.vertical-toolbar .material-symbols-outlined:hover {
|
|
642
|
+
.codicon:hover,
|
|
643
|
+
.material-icons:hover,
|
|
644
|
+
.material-symbols-outlined:hover {
|
|
653
645
|
color: var(--highlight-color);
|
|
654
646
|
}
|
|
655
647
|
|
|
656
|
-
.
|
|
657
|
-
.
|
|
658
|
-
.
|
|
659
|
-
.vertical-toolbar .material-symbols-outlined.active {
|
|
648
|
+
.codicon.active,
|
|
649
|
+
.material-icons.active,
|
|
650
|
+
.material-symbols-outlined.active {
|
|
660
651
|
color: var(--accent-color);
|
|
661
652
|
}
|
|
662
653
|
|
|
663
|
-
.
|
|
664
|
-
.
|
|
654
|
+
.codicon.disabled,
|
|
655
|
+
.material-icons.disabled,
|
|
656
|
+
.material-symbols-outlined.disabled,
|
|
665
657
|
.horizontal-toolbar .text.disabled,
|
|
666
658
|
.horizontal-toolbar .input.disabled,
|
|
667
659
|
.horizontal-toolbar .select.disabled,
|
|
668
|
-
.vertical-toolbar .material-icons.disabled
|
|
669
|
-
.vertical-toolbar .material-symbols-outlined.disabled {
|
|
660
|
+
.vertical-toolbar .material-icons.disabled {
|
|
670
661
|
pointer-events: none;
|
|
671
662
|
color: var(--system-gray3);
|
|
672
663
|
border-color: var(--system-gray3);
|
|
@@ -702,6 +693,14 @@ html[platform=darwin] .horizontal-toolbar .select {
|
|
|
702
693
|
filter: var(--filter-accent-color);
|
|
703
694
|
}
|
|
704
695
|
|
|
696
|
+
.image-icon.hand {
|
|
697
|
+
background-image: url(../images/icons/hand.svg);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.image-icon.arrow {
|
|
701
|
+
background-image: url(../images/icons/arrow.svg);
|
|
702
|
+
}
|
|
703
|
+
|
|
705
704
|
/* Browser */
|
|
706
705
|
|
|
707
706
|
#browser-pane {
|
|
@@ -737,7 +736,7 @@ html[platform=darwin] .horizontal-toolbar .select {
|
|
|
737
736
|
/* Dialog */
|
|
738
737
|
|
|
739
738
|
.dialog ::placeholder {
|
|
740
|
-
color: var(--system-
|
|
739
|
+
color: var(--system-gray1);
|
|
741
740
|
}
|
|
742
741
|
|
|
743
742
|
body.dark .dialog ::placeholder {
|
|
@@ -840,6 +839,7 @@ body.dark .dialog ::placeholder {
|
|
|
840
839
|
font-size: var(--small-font-size);
|
|
841
840
|
border-bottom: 1px solid var(--system-gray1);
|
|
842
841
|
color: var(--system-gray1);
|
|
842
|
+
clear: both;
|
|
843
843
|
}
|
|
844
844
|
|
|
845
845
|
body.dark .ui-widget .library-list .component {
|
|
@@ -869,6 +869,26 @@ body.dark .ui-widget .library-list .component {
|
|
|
869
869
|
display: none;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
+
.ui-widget .library-list.materials .component {
|
|
873
|
+
padding-top: 1em;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.library-list.materials .icon {
|
|
877
|
+
--padding: 5%;
|
|
878
|
+
box-sizing: border-box;
|
|
879
|
+
float: left;
|
|
880
|
+
width: calc(100% / 6);
|
|
881
|
+
height: auto;
|
|
882
|
+
aspect-ratio: 1 / 1;
|
|
883
|
+
padding: var(--padding);
|
|
884
|
+
background-size: calc(100% - 2 * var(--padding)) auto;
|
|
885
|
+
background-position: 50%;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.library-list.materials .text {
|
|
889
|
+
display: none;
|
|
890
|
+
}
|
|
891
|
+
|
|
872
892
|
/* Node List */
|
|
873
893
|
|
|
874
894
|
.node-list {
|
|
@@ -1000,6 +1020,7 @@ body.dark .ui-widget .library-list .component {
|
|
|
1000
1020
|
}
|
|
1001
1021
|
|
|
1002
1022
|
.console-left {
|
|
1023
|
+
overflow: hidden;
|
|
1003
1024
|
position: absolute;
|
|
1004
1025
|
box-sizing: border-box;
|
|
1005
1026
|
left: 0;
|
|
@@ -1125,6 +1146,100 @@ body.dark .ui-widget .library-list .component {
|
|
|
1125
1146
|
resize: none;
|
|
1126
1147
|
}
|
|
1127
1148
|
|
|
1149
|
+
.console-search {
|
|
1150
|
+
--accent-color: var(--system-blue);
|
|
1151
|
+
|
|
1152
|
+
box-sizing: border-box;
|
|
1153
|
+
display: flex;
|
|
1154
|
+
gap: 5px;
|
|
1155
|
+
position: absolute;
|
|
1156
|
+
top: 0px;
|
|
1157
|
+
right: 30px;
|
|
1158
|
+
width: 300px;
|
|
1159
|
+
height: 33px;
|
|
1160
|
+
padding: 0 8px;
|
|
1161
|
+
background: var(--background-color);
|
|
1162
|
+
box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.36);
|
|
1163
|
+
border-left: 2px solid var(--system-gray4);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.console-search-input-elements {
|
|
1167
|
+
position: relative;
|
|
1168
|
+
flex: 1 1 auto;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.console-search-input {
|
|
1172
|
+
box-sizing: border-box;
|
|
1173
|
+
display: block;
|
|
1174
|
+
margin: 5px 0px;
|
|
1175
|
+
padding: 2px 6px;
|
|
1176
|
+
padding-right: 30px;
|
|
1177
|
+
width: 100%;
|
|
1178
|
+
height: 23px;
|
|
1179
|
+
background: var(--system-gray5);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.console-search-input:focus {
|
|
1183
|
+
outline: 1px solid var(--system-blue);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.console-search-case-sensitive {
|
|
1187
|
+
cursor: pointer;
|
|
1188
|
+
position: absolute;
|
|
1189
|
+
right: 7px;
|
|
1190
|
+
top: 9px;
|
|
1191
|
+
padding: 0 1px;
|
|
1192
|
+
border-radius: 2px;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
.console-search-case-sensitive:hover {
|
|
1196
|
+
background-color: var(--system-gray3);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.console-search-case-sensitive.active {
|
|
1200
|
+
outline: 1px solid color-mix(in srgb, var(--system-blue), transparent 30%);
|
|
1201
|
+
background: color-mix(in srgb, var(--system-blue), transparent 70%);
|
|
1202
|
+
color: var(--system-gray0);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.console-search-status {
|
|
1206
|
+
flex: 0 0 auto;
|
|
1207
|
+
position: relative;
|
|
1208
|
+
top: 10px;
|
|
1209
|
+
min-width: 60px;
|
|
1210
|
+
font-size: 90%;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.console-search :is(.search-previous, .search-next) {
|
|
1214
|
+
user-select: none;
|
|
1215
|
+
cursor: pointer;
|
|
1216
|
+
box-sizing: border-box;
|
|
1217
|
+
position: relative;
|
|
1218
|
+
flex: 0 0 auto;
|
|
1219
|
+
top: 5px;
|
|
1220
|
+
height: 23px;
|
|
1221
|
+
padding: 3px 2px;
|
|
1222
|
+
padding-left: 1px;
|
|
1223
|
+
border-radius: 3px;
|
|
1224
|
+
font-size: 16px;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.console-search :is(.search-previous, .search-next):hover {
|
|
1228
|
+
background-color: var(--system-gray5);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
.console-search :is(.search-previous, .search-next):focus {
|
|
1232
|
+
outline: 1px solid var(--system-blue);
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
body.dark .console-output .selected {
|
|
1236
|
+
background: var(--system-gray5);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
body.light .console-output .selected {
|
|
1240
|
+
background: color-mix(in srgb, var(--system-yellow), white 80%);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1128
1243
|
/* Script Editor */
|
|
1129
1244
|
|
|
1130
1245
|
.script-editor {
|
|
@@ -1347,6 +1462,16 @@ body.dark .ui-widget .library-list .component {
|
|
|
1347
1462
|
outline: 1px solid var(--system-orange);
|
|
1348
1463
|
}
|
|
1349
1464
|
|
|
1465
|
+
.tree-view .jstree-node.manually.imported-node,
|
|
1466
|
+
.tree-view .jstree-node.manually.exported-node {
|
|
1467
|
+
outline: 1px dashed var(--system-brown);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
.tree-view .jstree-node.primary.imported-node,
|
|
1471
|
+
.tree-view .jstree-node.manually.exported-node {
|
|
1472
|
+
outline: 1px solid var(--system-brown);
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1350
1475
|
.tree-view .no-select {
|
|
1351
1476
|
user-select: none;
|
|
1352
1477
|
}
|
|
@@ -1384,6 +1509,7 @@ body.dark .ui-widget .library-list .component {
|
|
|
1384
1509
|
|
|
1385
1510
|
/* make drag & drop work */
|
|
1386
1511
|
.scene-graph .last {
|
|
1512
|
+
overflow: hidden;
|
|
1387
1513
|
height: 2px;
|
|
1388
1514
|
}
|
|
1389
1515
|
|
|
@@ -1428,7 +1554,7 @@ body.dark .ui-widget .library-list .component {
|
|
|
1428
1554
|
}
|
|
1429
1555
|
|
|
1430
1556
|
.scene-graph .scene > .item .name {
|
|
1431
|
-
font-weight: bold
|
|
1557
|
+
font-weight: bold;
|
|
1432
1558
|
font-style: italic;
|
|
1433
1559
|
color: var(--system-purple);
|
|
1434
1560
|
}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
@import url(../../node_modules/material-icons/iconfont/material-icons.css);
|
|
2
2
|
@import url(../../node_modules/material-symbols/index.css);
|
|
3
3
|
@import url(../../node_modules/spectrum-colorpicker2/dist/spectrum.css);
|
|
4
|
-
@import url(
|
|
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
|
-
}
|
|
4
|
+
@import url(../../node_modules/@vscode/codicons/dist/codicon.css);
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
@import url(file:///Users/holger/Desktop/X_ITE/sunrize/node_modules/material-icons/iconfont/material-icons.css);
|
|
2
2
|
@import url(file:///Users/holger/Desktop/X_ITE/sunrize/node_modules/material-symbols/index.css);
|
|
3
3
|
@import url(file:///Users/holger/Desktop/X_ITE/sunrize/node_modules/spectrum-colorpicker2/dist/spectrum.css);
|
|
4
|
-
@import url(file:///Users/holger/Desktop/X_ITE/sunrize/
|
|
5
|
-
|
|
6
|
-
.image-icon.hand {
|
|
7
|
-
background-image: url(file:///Users/holger/Desktop/X_ITE/sunrize/src/assets/images/icons/hand.svg);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.image-icon.arrow {
|
|
11
|
-
background-image: url(file:///Users/holger/Desktop/X_ITE/sunrize/src/assets/images/icons/arrow.svg);
|
|
12
|
-
}
|
|
4
|
+
@import url(file:///Users/holger/Desktop/X_ITE/sunrize/node_modules/@vscode/codicons/dist/codicon.css);
|
|
@@ -195,7 +195,7 @@ body {
|
|
|
195
195
|
/* Tools */
|
|
196
196
|
|
|
197
197
|
--tool-backdrop-filter: blur(25px);
|
|
198
|
-
--tool-background-color:
|
|
198
|
+
--tool-background-color: color-mix(in srgb, var(--sidebar-background-color), transparent 20%);
|
|
199
199
|
--tool-border-radius: 12px;
|
|
200
200
|
--tool-border: 1px solid var(--system-gray8);
|
|
201
201
|
--tool-shadow: 3px 3px 9px rgba(0, 0, 0, 0.6);
|
|
@@ -235,7 +235,7 @@ body {
|
|
|
235
235
|
|
|
236
236
|
/* Tools */
|
|
237
237
|
|
|
238
|
-
--tool-background-color:
|
|
238
|
+
--tool-background-color: color-mix(in srgb, var(--sidebar-background-color), transparent 20%);
|
|
239
239
|
--tool-border: 1px solid var(--system-gray2);
|
|
240
240
|
--tool-shadow: 3px 3px 9px var(--system-gray8);
|
|
241
241
|
|