sunrize 2.1.8 → 2.1.10
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 +22 -14
- package/src/Application/ActionKeys.js +1 -1
- package/src/Application/DataStorage.js +1 -1
- package/src/Application/Document.js +1 -1
- package/src/Application/Footer.js +15 -15
- package/src/Application/Hierarchy.js +1 -1
- package/src/Application/Registry.js +1 -1
- package/src/Application/Selection.js +1 -1
- package/src/Application/Sidebar.js +16 -16
- package/src/Application/Tabs.js +2 -2
- package/src/Bits/MimeTypes.js +1 -1
- package/src/Controls/AnimationPropertiesPopover.js +3 -3
- package/src/Controls/Dialog.js +2 -2
- package/src/Controls/EditNodePopover.js +1 -1
- package/src/Controls/EditUserDefinedFieldPopover.js +13 -45
- package/src/Controls/ExportNodePopover.js +1 -1
- package/src/Controls/ImportNodePopover.js +1 -1
- package/src/Controls/RenameNodeInput.js +1 -1
- package/src/Controls/Splitter.js +2 -2
- package/src/Controls/Tabs.js +25 -25
- package/src/Controls/TexturePreviewPopover.js +3 -3
- package/src/Controls/VideoPreviewPopover.js +3 -3
- package/src/Editors/AnimationEditor.js +10 -10
- package/src/Editors/AnimationMemberList.js +1 -1
- package/src/Editors/FileManager.js +7 -7
- package/src/Editors/Library.js +2 -2
- package/src/Editors/OutlineEditor.js +37 -37
- package/src/Editors/OutlineRouteGraph.js +2 -2
- package/src/Editors/OutlineView.js +99 -97
- package/src/Editors/Panel.js +17 -10
- package/src/Editors/SceneProperties.js +8 -8
- package/src/Editors/ScriptEditor.js +7 -7
- package/src/Editors/Units.js +1 -1
- package/src/Parser/AudioParser.js +1 -1
- package/src/Parser/ImageParser.js +1 -1
- package/src/Parser/VideoParser.js +1 -1
- package/src/Tools/CADGeometry/CADAssemblyTool.js +4 -4
- package/src/Tools/CADGeometry/CADFaceTool.js +4 -4
- package/src/Tools/CADGeometry/CADLayerTool.js +4 -4
- package/src/Tools/CADGeometry/CADPartTool.js +4 -4
- package/src/Tools/Core/X3DBaseTool.js +1 -1
- package/src/Tools/Core/X3DNodeTool.js +3 -1
- package/src/Tools/Core/X3DPrototypeInstanceTool.js +1 -1
- package/src/Tools/Grouping/GroupTool.js +1 -1
- package/src/Tools/Grouping/StaticGroupTool.js +4 -4
- package/src/Tools/Grouping/SwitchTool.js +4 -4
- package/src/Tools/Grouping/TransformTool.js +4 -4
- package/src/Tools/Grouping/X3DTransformNodeTool.js +1 -1
- package/src/Tools/HAnim/HAnimHumanoidTool.js +4 -4
- package/src/Tools/HAnim/HAnimJointTool.js +4 -4
- package/src/Tools/HAnim/HAnimSegmentTool.js +4 -4
- package/src/Tools/HAnim/HAnimSiteTool.js +4 -4
- package/src/Tools/Layering/LayerTool.js +3 -3
- package/src/Tools/Layering/ViewportTool.js +1 -1
- package/src/Tools/Networking/AnchorTool.js +4 -4
- package/src/Tools/Networking/InlineGeometryTool.js +1 -1
- package/src/Tools/Networking/InlineTool.js +4 -4
- package/src/Undo/Editor.js +68 -68
- package/src/Undo/UndoManager.js +1 -1
- package/src/assets/X3DUOM.xml +30 -50
- package/src/assets/images/OutlineEditor/Fields/MFQuaternion.svg +199 -0
- package/src/assets/images/OutlineEditor/Fields/SFQuaternion.svg +199 -0
|
@@ -154,17 +154,17 @@ module .exports = new class SceneProperties extends Dialog
|
|
|
154
154
|
.on ("click", function ()
|
|
155
155
|
{
|
|
156
156
|
if (!$(this) .val ())
|
|
157
|
-
return
|
|
157
|
+
return;
|
|
158
158
|
|
|
159
|
-
$(this) .attr ("placeholder", $(this) .val ())
|
|
160
|
-
$(this) .val ("")
|
|
159
|
+
$(this) .attr ("placeholder", $(this) .val ());
|
|
160
|
+
$(this) .val ("");
|
|
161
161
|
})
|
|
162
162
|
.on ("mouseleave", function ()
|
|
163
163
|
{
|
|
164
164
|
if ($(this) .val ())
|
|
165
|
-
return
|
|
165
|
+
return;
|
|
166
166
|
|
|
167
|
-
$(this) .val ($(this) .attr ("placeholder"))
|
|
167
|
+
$(this) .val ($(this) .attr ("placeholder"));
|
|
168
168
|
})
|
|
169
169
|
.on ("change", event => this .changeUnitName (event));
|
|
170
170
|
|
|
@@ -263,7 +263,7 @@ module .exports = new class SceneProperties extends Dialog
|
|
|
263
263
|
sortMetaData: false,
|
|
264
264
|
});
|
|
265
265
|
|
|
266
|
-
this .updateMetaDataSort ()
|
|
266
|
+
this .updateMetaDataSort ();
|
|
267
267
|
|
|
268
268
|
if (this .executionContext)
|
|
269
269
|
this .onclose ();
|
|
@@ -433,7 +433,7 @@ module .exports = new class SceneProperties extends Dialog
|
|
|
433
433
|
{
|
|
434
434
|
this .metaData .table .head .find (".sort-key")
|
|
435
435
|
.removeClass ("active")
|
|
436
|
-
.addClass (this .config .file .sortMetaData ? ["active"] : [ ])
|
|
436
|
+
.addClass (this .config .file .sortMetaData ? ["active"] : [ ]);
|
|
437
437
|
|
|
438
438
|
if (this .config .file .sortMetaData)
|
|
439
439
|
this .metaData .table .body .sortable ("disable");
|
|
@@ -489,7 +489,7 @@ module .exports = new class SceneProperties extends Dialog
|
|
|
489
489
|
// Add Open Link in Browser button if it matches a link somewhere in value.
|
|
490
490
|
{
|
|
491
491
|
const
|
|
492
|
-
http = /(https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._
|
|
492
|
+
http = /(https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*))/,
|
|
493
493
|
match = value .match (http);
|
|
494
494
|
|
|
495
495
|
if (match)
|
|
@@ -256,7 +256,7 @@ module .exports = class ScriptEditor extends Interface
|
|
|
256
256
|
">>=",
|
|
257
257
|
">>>=",
|
|
258
258
|
],
|
|
259
|
-
symbols: /[
|
|
259
|
+
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
260
260
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
261
261
|
integersuffix: /([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,
|
|
262
262
|
floatsuffix: /[fFlL]?/,
|
|
@@ -294,7 +294,7 @@ module .exports = class ScriptEditor extends Interface
|
|
|
294
294
|
{ include: "@whitespace" },
|
|
295
295
|
|
|
296
296
|
// delimiters and operators
|
|
297
|
-
[/[{}()
|
|
297
|
+
[/[{}()[\]]/, "@brackets"],
|
|
298
298
|
[/@symbols/,
|
|
299
299
|
{
|
|
300
300
|
cases: {
|
|
@@ -304,8 +304,8 @@ module .exports = class ScriptEditor extends Interface
|
|
|
304
304
|
}],
|
|
305
305
|
|
|
306
306
|
// numbers
|
|
307
|
-
[/\d*\d+[eE]([
|
|
308
|
-
[/\d*\.\d+([eE][
|
|
307
|
+
[/\d*\d+[eE]([-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
308
|
+
[/\d*\.\d+([eE][-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
309
309
|
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
|
310
310
|
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
|
311
311
|
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
|
@@ -317,10 +317,10 @@ module .exports = class ScriptEditor extends Interface
|
|
|
317
317
|
],
|
|
318
318
|
|
|
319
319
|
comment: [
|
|
320
|
-
[/[
|
|
320
|
+
[/[^/*]+/, "comment"],
|
|
321
321
|
[/\/\*/, "comment", "@push"],
|
|
322
322
|
["\\*/", "comment", "@pop"],
|
|
323
|
-
[/[
|
|
323
|
+
[/[/*]/, "comment"],
|
|
324
324
|
],
|
|
325
325
|
|
|
326
326
|
whitespace: [
|
|
@@ -402,7 +402,7 @@ module .exports = class ScriptEditor extends Interface
|
|
|
402
402
|
|
|
403
403
|
this .set_directOutput ();
|
|
404
404
|
this .set_mustEvaluate ();
|
|
405
|
-
break
|
|
405
|
+
break;
|
|
406
406
|
}
|
|
407
407
|
case "ShaderPart":
|
|
408
408
|
{
|
package/src/Editors/Units.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class CADAssemblyTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .DARK_GREEN
|
|
9
|
+
toolBBoxColor = ToolColors .DARK_GREEN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = CADAssemblyTool
|
|
12
|
+
module .exports = CADAssemblyTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class CADFaceTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .BROWN
|
|
9
|
+
toolBBoxColor = ToolColors .BROWN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = CADFaceTool
|
|
12
|
+
module .exports = CADFaceTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class CADLayerTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .DARK_YELLOW
|
|
9
|
+
toolBBoxColor = ToolColors .DARK_YELLOW;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = CADLayerTool
|
|
12
|
+
module .exports = CADLayerTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DTransformNodeTool = require ("../Grouping/X3DTransformNodeTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class CADPartTool extends X3DTransformNodeTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .GREEN
|
|
9
|
+
toolBBoxColor = ToolColors .GREEN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = CADPartTool
|
|
12
|
+
module .exports = CADPartTool;
|
|
@@ -216,7 +216,7 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
216
216
|
X3DNodeTool .tools .delete (this);
|
|
217
217
|
X3DNodeTool .processToolInterests ();
|
|
218
218
|
|
|
219
|
-
const nodesToDispose = [ ]
|
|
219
|
+
const nodesToDispose = [ ];
|
|
220
220
|
|
|
221
221
|
for (const tool of this .#tools)
|
|
222
222
|
{
|
|
@@ -412,6 +412,7 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
412
412
|
|
|
413
413
|
switch (value .getType ())
|
|
414
414
|
{
|
|
415
|
+
case X3D .X3DConstants .SFQuaternion:
|
|
415
416
|
case X3D .X3DConstants .SFRotation:
|
|
416
417
|
case X3D .X3DConstants .SFVec2d:
|
|
417
418
|
case X3D .X3DConstants .SFVec2f:
|
|
@@ -433,6 +434,7 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
433
434
|
|
|
434
435
|
switch (value .getType ())
|
|
435
436
|
{
|
|
437
|
+
case X3D .X3DConstants .SFQuaternion:
|
|
436
438
|
case X3D .X3DConstants .SFRotation:
|
|
437
439
|
case X3D .X3DConstants .SFVec2d:
|
|
438
440
|
case X3D .X3DConstants .SFVec2f:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("./X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class StaticGroupTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .DARK_GREY
|
|
9
|
+
toolBBoxColor = ToolColors .DARK_GREY;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = StaticGroupTool
|
|
12
|
+
module .exports = StaticGroupTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("./X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class SwitchTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .YELLOW
|
|
9
|
+
toolBBoxColor = ToolColors .YELLOW;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = SwitchTool
|
|
12
|
+
module .exports = SwitchTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DTransformNodeTool = require ("./X3DTransformNodeTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class TransformTool extends X3DTransformNodeTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .GREEN
|
|
9
|
+
toolBBoxColor = ToolColors .GREEN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = TransformTool
|
|
12
|
+
module .exports = TransformTool;
|
|
@@ -121,7 +121,7 @@ class X3DTransformNodeTool extends X3DChildNodeTool
|
|
|
121
121
|
Editor .roundToIntegerIfAlmostEqual (center);
|
|
122
122
|
|
|
123
123
|
if (Editor .almostEqual (scale .x, scale .y) && Editor .almostEqual (scale .x, scale .z))
|
|
124
|
-
scaleOrientation .assign (
|
|
124
|
+
scaleOrientation .assign (X3D .SFRotation .IDENTITY);
|
|
125
125
|
|
|
126
126
|
Editor .setFieldValue (this .getExecutionContext (), this .node, this ._translation, translation);
|
|
127
127
|
Editor .setFieldValue (this .getExecutionContext (), this .node, this ._rotation, rotation);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DTransformNodeTool = require ("../Grouping/X3DTransformNodeTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class HAnimHumanoidTool extends X3DTransformNodeTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .GREEN
|
|
9
|
+
toolBBoxColor = ToolColors .GREEN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = HAnimHumanoidTool
|
|
12
|
+
module .exports = HAnimHumanoidTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DTransformNodeTool = require ("../Grouping/X3DTransformNodeTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class HAnimJointTool extends X3DTransformNodeTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .GREEN
|
|
9
|
+
toolBBoxColor = ToolColors .GREEN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = HAnimJointTool
|
|
12
|
+
module .exports = HAnimJointTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class HAnimSegmentTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .DARK_GREEN
|
|
9
|
+
toolBBoxColor = ToolColors .DARK_GREEN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = HAnimSegmentTool
|
|
12
|
+
module .exports = HAnimSegmentTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DTransformNodeTool = require ("../Grouping/X3DTransformNodeTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class HAnimSiteTool extends X3DTransformNodeTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .GREEN
|
|
9
|
+
toolBBoxColor = ToolColors .GREEN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = HAnimSiteTool
|
|
12
|
+
module .exports = HAnimSiteTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class AnchorTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .LILA
|
|
9
|
+
toolBBoxColor = ToolColors .LILA;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = AnchorTool
|
|
12
|
+
module .exports = AnchorTool;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
4
|
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
-
ToolColors = require ("../Core/ToolColors")
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
6
|
|
|
7
7
|
class InlineTool extends X3DBoundedObjectTool
|
|
8
8
|
{
|
|
9
|
-
toolBBoxColor = ToolColors .WHITE
|
|
9
|
+
toolBBoxColor = ToolColors .WHITE;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
module .exports = InlineTool
|
|
12
|
+
module .exports = InlineTool;
|