sunrize 1.7.25 → 1.7.27
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
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.27",
|
|
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": "^33.0.1",
|
|
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.12",
|
|
102
|
-
"material-symbols": "^0.
|
|
102
|
+
"material-symbols": "^0.25.1",
|
|
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.0.0",
|
|
112
|
-
"x_ite": "^10.5.
|
|
112
|
+
"x_ite": "^10.5.7"
|
|
113
113
|
},
|
|
114
114
|
"config": {
|
|
115
115
|
"forge": {
|
|
@@ -252,7 +252,7 @@ module .exports = class ScriptEditor extends Interface
|
|
|
252
252
|
return;
|
|
253
253
|
|
|
254
254
|
this .#declarations ??= fs .readFileSync (X3D .TYPE_SCRIPT_PATH, "utf8")
|
|
255
|
-
.replace (/^.*?(?:
|
|
255
|
+
.replace (/^.*?(?:export = X3D;)/s, "");
|
|
256
256
|
|
|
257
257
|
const fields = Array .from (this .node .getUserDefinedFields (), field =>
|
|
258
258
|
{
|
|
@@ -267,23 +267,23 @@ module .exports = class ScriptEditor extends Interface
|
|
|
267
267
|
case X3D .X3DConstants .SFNode:
|
|
268
268
|
{
|
|
269
269
|
if (field .getValue ())
|
|
270
|
-
return `declare let ${field .getName ()}:
|
|
270
|
+
return `declare let ${field .getName ()}: X3D .${field .getValue () .getTypeName ()}Proxy;`;
|
|
271
271
|
else
|
|
272
|
-
return `declare let ${field .getName ()}: SFNode | null;`;
|
|
272
|
+
return `declare let ${field .getName ()}: X3D .SFNode | null;`;
|
|
273
273
|
}
|
|
274
274
|
case X3D .X3DConstants .MFNode:
|
|
275
275
|
{
|
|
276
276
|
const types = Array .from (new Set (Array .from (field, node => node ? `${node .getNodeTypeName ()}Proxy` : "null")));
|
|
277
277
|
|
|
278
278
|
if (types .length)
|
|
279
|
-
return `declare let ${field .getName ()}: MFNode <${types .join ("|")}|null>;`;
|
|
279
|
+
return `declare let ${field .getName ()}: X3D .MFNode <${types .join ("|")}|null>;`;
|
|
280
280
|
else
|
|
281
|
-
return `declare let ${field .getName ()}: MFNode;`;
|
|
281
|
+
return `declare let ${field .getName ()}: X3D .MFNode;`;
|
|
282
282
|
}
|
|
283
283
|
default:
|
|
284
284
|
{
|
|
285
285
|
return `declare let ${field .getName ()}: ${
|
|
286
|
-
this .#internalTypes .get (field .getType ()) ?? field .getTypeName ()
|
|
286
|
+
this .#internalTypes .get (field .getType ()) ?? "X3D ." + field .getTypeName ()
|
|
287
287
|
};`
|
|
288
288
|
}
|
|
289
289
|
}
|
|
@@ -295,8 +295,8 @@ module .exports = class ScriptEditor extends Interface
|
|
|
295
295
|
{
|
|
296
296
|
content: /* ts */ `
|
|
297
297
|
${this .#declarations};
|
|
298
|
-
declare const Browser: X3DBrowser;
|
|
299
|
-
declare const X3DConstants: X3DConstants;
|
|
298
|
+
declare const Browser: X3D .X3DBrowser;
|
|
299
|
+
declare const X3DConstants: X3D .X3DConstants;
|
|
300
300
|
declare const TRUE: true;
|
|
301
301
|
declare const FALSE: false;
|
|
302
302
|
declare const NULL: null;
|
|
@@ -355,7 +355,7 @@ module .exports = class ScriptEditor extends Interface
|
|
|
355
355
|
element .on ("contextmenu", (event) => this .showContextMenu ());
|
|
356
356
|
element .detach ();
|
|
357
357
|
|
|
358
|
-
//this .debugFindActions (editor)
|
|
358
|
+
// this .debugFindActions (editor)
|
|
359
359
|
this .editors .set (node, { element, editor, monaco });
|
|
360
360
|
|
|
361
361
|
// Return editor.
|
|
@@ -369,31 +369,31 @@ module .exports = class ScriptEditor extends Interface
|
|
|
369
369
|
showContextMenu ()
|
|
370
370
|
{
|
|
371
371
|
const menu = [
|
|
372
|
-
{
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
},
|
|
372
|
+
// {
|
|
373
|
+
// label: _("Go to Definition"),
|
|
374
|
+
// args: ["runAction", "editor.action.revealDefinition"],
|
|
375
|
+
// },
|
|
376
|
+
// {
|
|
377
|
+
// label: _("Go to References"),
|
|
378
|
+
// args: ["runAction", "editor.action.goToReferences"],
|
|
379
|
+
// },
|
|
380
|
+
// {
|
|
381
|
+
// label: _("Go to Symbol..."),
|
|
382
|
+
// args: ["runAction", "editor.action.quickOutline"],
|
|
383
|
+
// },
|
|
384
|
+
// {
|
|
385
|
+
// label: _("Peek"),
|
|
386
|
+
// submenu: [
|
|
387
|
+
// {
|
|
388
|
+
// label: _("Peek Definition"),
|
|
389
|
+
// args: ["runAction", "editor.action.peekDefinition"],
|
|
390
|
+
// },
|
|
391
|
+
// {
|
|
392
|
+
// label: _("Peek References"),
|
|
393
|
+
// args: ["runAction", "editor.action.referenceSearch.trigger"],
|
|
394
|
+
// },
|
|
395
|
+
// ],
|
|
396
|
+
// },
|
|
397
397
|
{ type: "separator" },
|
|
398
398
|
{
|
|
399
399
|
label: _("Rename Symbol"),
|
|
@@ -479,14 +479,14 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
renderObject .
|
|
482
|
+
renderObject .getHAnimNode () .push (null);
|
|
483
483
|
renderObject .getSensors () .push (X3DNodeTool .#sensors);
|
|
484
484
|
|
|
485
485
|
for (const innerNode of this .#innerNodes)
|
|
486
486
|
innerNode ?.traverse (type, renderObject);
|
|
487
487
|
|
|
488
488
|
renderObject .getSensors () .pop ();
|
|
489
|
-
renderObject .
|
|
489
|
+
renderObject .getHAnimNode () .pop ();
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
// Destruction
|