sunrize 1.7.52 → 1.7.54
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 +4 -4
- package/src/Components/Grouping/StaticGroup.js +1 -6
- package/src/Controls/TexturePreviewPopover.js +3 -3
- package/src/Editors/Console.js +4 -8
- package/src/Editors/NodesLibrary.js +1 -1
- package/src/Editors/OutlineView.js +4 -4
- package/src/Editors/Primitives.js +17 -0
- package/src/Tools/Core/X3DChildNodeTool.js +1 -1
- package/src/assets/html/window-template.html +1 -1
- package/src/assets/html/window.html +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sunrize",
|
|
3
3
|
"productName": "Sunrize X3D Editor",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.54",
|
|
5
5
|
"description": "A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"capitalize": "^2.0.4",
|
|
92
92
|
"console": "^0.7.2",
|
|
93
|
-
"electron": "^
|
|
93
|
+
"electron": "^35.0.0",
|
|
94
94
|
"electron-prompt": "^1.7.0",
|
|
95
95
|
"electron-squirrel-startup": "^1.0.1",
|
|
96
96
|
"electron-tabs": "^1.0.4",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"jquery-ui-dist": "^1.13.3",
|
|
100
100
|
"jstree": "^3.3.17",
|
|
101
101
|
"material-icons": "^1.13.14",
|
|
102
|
-
"material-symbols": "^0.
|
|
102
|
+
"material-symbols": "^0.29.0",
|
|
103
103
|
"md5": "^2.3.0",
|
|
104
104
|
"mime-types": "^2.1.35",
|
|
105
105
|
"monaco-editor": "^0.50.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"string-similarity": "^4.0.4",
|
|
110
110
|
"tweakpane": "^3.1.10",
|
|
111
111
|
"update-electron-app": "^3.1.1",
|
|
112
|
-
"x_ite": "^11.
|
|
112
|
+
"x_ite": "^11.3.0",
|
|
113
113
|
"x3d-traverse": "^1.0.9"
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -30,12 +30,7 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, X3D .X3DChildNod
|
|
|
30
30
|
this .groupNode .setPrivate (true);
|
|
31
31
|
this .groupNode .setup ();
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
this .groupNode ._isCameraObject .addFieldInterest (this ._isCameraObject);
|
|
35
|
-
this .groupNode ._isPickableObject .addFieldInterest (this ._isPickableObject);
|
|
36
|
-
|
|
37
|
-
this .setCameraObject (this .groupNode .isCameraObject ());
|
|
38
|
-
this .setPickableObject (this .groupNode .isPickableObject ());
|
|
33
|
+
this .connectChildNode (this .groupNode);
|
|
39
34
|
},
|
|
40
35
|
getBBox (bbox, shadows)
|
|
41
36
|
{
|
|
@@ -153,9 +153,9 @@ $.fn.texturePreviewPopover = async function (node)
|
|
|
153
153
|
|
|
154
154
|
const _loadState = Symbol ();
|
|
155
155
|
|
|
156
|
-
node ._loadState
|
|
156
|
+
node ._loadState ?.addFieldCallback (_loadState, loadState);
|
|
157
157
|
|
|
158
|
-
loadState (node ._loadState
|
|
158
|
+
loadState (node ._loadState ?.getValue () ?? X3D .X3DConstants .COMPLETE_STATE);
|
|
159
159
|
|
|
160
160
|
// Reload handling.
|
|
161
161
|
|
|
@@ -175,7 +175,7 @@ $.fn.texturePreviewPopover = async function (node)
|
|
|
175
175
|
events: {
|
|
176
176
|
hide: (event, api) =>
|
|
177
177
|
{
|
|
178
|
-
node ._loadState
|
|
178
|
+
node ._loadState ?.removeFieldCallback (_loadState);
|
|
179
179
|
|
|
180
180
|
this .removeData ("preview");
|
|
181
181
|
|
package/src/Editors/Console.js
CHANGED
|
@@ -65,10 +65,6 @@ module .exports = class Console extends Interface
|
|
|
65
65
|
this .output .html ($("#console .console-output") .html ());
|
|
66
66
|
this .output .scrollTop (this .output .prop ("scrollHeight"));
|
|
67
67
|
}
|
|
68
|
-
else
|
|
69
|
-
{
|
|
70
|
-
this .addMessage (null, 1, "", "", this .browser .getWelcomeMessage ());
|
|
71
|
-
}
|
|
72
68
|
|
|
73
69
|
electron .ipcRenderer .on ("console-message", this .addMessageCallback);
|
|
74
70
|
|
|
@@ -99,14 +95,14 @@ module .exports = class Console extends Interface
|
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
// Add strings to exclude here:
|
|
102
|
-
excludes =
|
|
103
|
-
"The vm module of Node.js is
|
|
98
|
+
excludes = [
|
|
99
|
+
"The vm module of Node.js is unsupported",
|
|
104
100
|
// "Invalid asm.js: Invalid member of stdlib",
|
|
105
|
-
]
|
|
101
|
+
];
|
|
106
102
|
|
|
107
103
|
addMessage (event, level, sourceId, line, message)
|
|
108
104
|
{
|
|
109
|
-
if (this .excludes .
|
|
105
|
+
if (this .excludes .some (exclude => message .includes (exclude)))
|
|
110
106
|
return;
|
|
111
107
|
|
|
112
108
|
const
|
|
@@ -58,7 +58,7 @@ module .exports = class NodesLibrary extends LibraryPane
|
|
|
58
58
|
|
|
59
59
|
// Get recently used elements.
|
|
60
60
|
|
|
61
|
-
const recentNodes = this .config .global .recentNodes .map (typeName => this .browser .getConcreteNode (typeName));
|
|
61
|
+
const recentNodes = this .config .global .recentNodes .map (typeName => $.try (() => this .browser .getConcreteNode (typeName))) .filter (node => node);
|
|
62
62
|
|
|
63
63
|
// Create list for recently used elements.
|
|
64
64
|
|
|
@@ -2932,6 +2932,10 @@ module .exports = class OutlineView extends Interface
|
|
|
2932
2932
|
child = $(e),
|
|
2933
2933
|
node = this .getNode (child);
|
|
2934
2934
|
|
|
2935
|
+
// In case imported node is not yet loaded.
|
|
2936
|
+
if (!node)
|
|
2937
|
+
return;
|
|
2938
|
+
|
|
2935
2939
|
// If node is somewhere else, don't disconnect.
|
|
2936
2940
|
if (Array .from (this .sceneGraph .find (`.node[node-id="${node .getId ()}"],
|
|
2937
2941
|
.imported-node[node-id="${node .getId ()}"],
|
|
@@ -3071,10 +3075,6 @@ module .exports = class OutlineView extends Interface
|
|
|
3071
3075
|
item .audioPreviewPopover (node);
|
|
3072
3076
|
break;
|
|
3073
3077
|
}
|
|
3074
|
-
case X3D .X3DConstants .GeneratedCubeMapTexture:
|
|
3075
|
-
{
|
|
3076
|
-
break;
|
|
3077
|
-
}
|
|
3078
3078
|
case X3D .X3DConstants .MovieTexture:
|
|
3079
3079
|
{
|
|
3080
3080
|
if (!(node .getMediaElement () instanceof HTMLVideoElement))
|
|
@@ -360,6 +360,23 @@ DEF Sphere Transform {
|
|
|
360
360
|
geometry Sphere { }
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
+
`
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
componentInfo: { name: "Layout" },
|
|
367
|
+
typeName: "ScreenText",
|
|
368
|
+
x3dSyntax: `
|
|
369
|
+
DEF ScreenText Transform {
|
|
370
|
+
children Shape {
|
|
371
|
+
appearance Appearance {
|
|
372
|
+
material Material { }
|
|
373
|
+
}
|
|
374
|
+
geometry Text {
|
|
375
|
+
string "3D Text"
|
|
376
|
+
fontStyle ScreenFontStyle { }
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
363
380
|
`
|
|
364
381
|
},
|
|
365
382
|
{
|