sunrize 2.7.0 → 2.7.1
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": "2.7.
|
|
4
|
+
"version": "2.7.1",
|
|
5
5
|
"description": "Sunrize — A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@vscode/codicons": "^0.0.45",
|
|
107
107
|
"capitalize": "^2.0.4",
|
|
108
108
|
"console": "^0.7.2",
|
|
109
|
-
"electron": "^45.3.
|
|
109
|
+
"electron": "^45.3.3",
|
|
110
110
|
"electron-prompt": "^1.7.0",
|
|
111
111
|
"electron-squirrel-startup": "^1.0.1",
|
|
112
112
|
"electron-tabs": "^1.0.4",
|
|
@@ -3265,7 +3265,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
|
|
|
3265
3265
|
|
|
3266
3266
|
if (sourceExecutionContext !== destinationExecutionContext)
|
|
3267
3267
|
{
|
|
3268
|
-
event .originalEvent .dataTransfer .dropEffect = "
|
|
3268
|
+
event .originalEvent .dataTransfer .dropEffect = "copy";
|
|
3269
3269
|
}
|
|
3270
3270
|
else
|
|
3271
3271
|
{
|
|
@@ -3275,42 +3275,42 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
|
|
|
3275
3275
|
event .originalEvent .dataTransfer .dropEffect = "link";
|
|
3276
3276
|
else
|
|
3277
3277
|
event .originalEvent .dataTransfer .dropEffect = "move";
|
|
3278
|
+
}
|
|
3278
3279
|
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3280
|
+
if (destinationElement .is (".scene-graph"))
|
|
3281
|
+
{
|
|
3282
|
+
destinationElement .addClass ("drag-after");
|
|
3283
|
+
}
|
|
3284
|
+
else if (destinationElement .is (".scene, .root-nodes, .field[type-name*=Node]"))
|
|
3285
|
+
{
|
|
3286
|
+
destinationElement .addClass ("drag-into");
|
|
3287
|
+
}
|
|
3288
|
+
else if (destinationElement .is (".node, .imported-node.instance"))
|
|
3289
|
+
{
|
|
3290
|
+
const
|
|
3291
|
+
item = destinationElement .find ("> .item"),
|
|
3292
|
+
y = event .pageY - destinationElement .offset () .top;
|
|
3293
|
+
|
|
3294
|
+
if (y < item .height () * 0.25)
|
|
3284
3295
|
{
|
|
3285
|
-
destinationElement .
|
|
3296
|
+
destinationElement .data ("drag-type", "drag-before");
|
|
3297
|
+
destinationElement .addClass ("drag-before");
|
|
3286
3298
|
}
|
|
3287
|
-
else if (destinationElement .
|
|
3299
|
+
else if (y > destinationElement .height () - item .height () * 0.25)
|
|
3288
3300
|
{
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
y = event .pageY - destinationElement .offset () .top;
|
|
3292
|
-
|
|
3293
|
-
if (y < item .height () * 0.25)
|
|
3294
|
-
{
|
|
3295
|
-
destinationElement .data ("drag-type", "drag-before");
|
|
3296
|
-
destinationElement .addClass ("drag-before");
|
|
3297
|
-
}
|
|
3298
|
-
else if (y > destinationElement .height () - item .height () * 0.25)
|
|
3299
|
-
{
|
|
3300
|
-
destinationElement .data ("drag-type", "drag-after");
|
|
3301
|
-
destinationElement .addClass ("drag-after");
|
|
3302
|
-
}
|
|
3303
|
-
else
|
|
3304
|
-
{
|
|
3305
|
-
destinationElement .data ("drag-type", "drag-into");
|
|
3306
|
-
destinationElement .addClass ("drag-into");
|
|
3307
|
-
}
|
|
3301
|
+
destinationElement .data ("drag-type", "drag-after");
|
|
3302
|
+
destinationElement .addClass ("drag-after");
|
|
3308
3303
|
}
|
|
3309
3304
|
else
|
|
3310
3305
|
{
|
|
3311
|
-
|
|
3306
|
+
destinationElement .data ("drag-type", "drag-into");
|
|
3307
|
+
destinationElement .addClass ("drag-into");
|
|
3312
3308
|
}
|
|
3313
3309
|
}
|
|
3310
|
+
else
|
|
3311
|
+
{
|
|
3312
|
+
event .originalEvent .dataTransfer .dropEffect = "none";
|
|
3313
|
+
}
|
|
3314
3314
|
}
|
|
3315
3315
|
else if (event .originalEvent .dataTransfer .types .includes ("sunrize/field"))
|
|
3316
3316
|
{
|
|
@@ -115,6 +115,8 @@ module .exports = class OutlineRouteGraph extends OutlineView
|
|
|
115
115
|
{
|
|
116
116
|
const canvases = this .sceneGraph .find (".route-curves");
|
|
117
117
|
|
|
118
|
+
canvases .css ("height", "");
|
|
119
|
+
|
|
118
120
|
// Determine visible routes, those routes have a value of 2.
|
|
119
121
|
|
|
120
122
|
const fields = new Map ();
|
|
@@ -1192,7 +1192,8 @@ module .exports = class OutlineView extends Interface
|
|
|
1192
1192
|
node ._isActive .addFieldCallback (this .#updateNodePlaySymbol, this .updateNodePlay .bind (this, node));
|
|
1193
1193
|
node ._isPaused .addFieldCallback (this .#updateNodePlaySymbol, this .updateNodePlay .bind (this, node));
|
|
1194
1194
|
node ._loop .addFieldCallback (this .#updateNodePlaySymbol, this .updateNodePlay .bind (this, node));
|
|
1195
|
-
|
|
1195
|
+
|
|
1196
|
+
node ._reverse ?.addFieldCallback (this .#updateNodePlaySymbol, this .updateNodePlay .bind (this, node));
|
|
1196
1197
|
|
|
1197
1198
|
buttons .push ($("<span></span>")
|
|
1198
1199
|
.attr ("order", "5")
|
|
@@ -1434,13 +1435,16 @@ module .exports = class OutlineView extends Interface
|
|
|
1434
1435
|
.removeClass (["on", "off"])
|
|
1435
1436
|
.addClass (node ._loop .getValue () ? "on" : "off"));
|
|
1436
1437
|
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1438
|
+
if (node .getFieldDefinitions () .get ("reverse"))
|
|
1439
|
+
{
|
|
1440
|
+
buttons .push (this .sceneGraph
|
|
1441
|
+
.find (`.node[node-id=${node .getId ()}],
|
|
1442
|
+
.imported-node[node-id=${node .getId ()}],
|
|
1443
|
+
.exported-node[node-id=${node .getId ()}]`)
|
|
1444
|
+
.find ("> .item [action=reverse-node]")
|
|
1445
|
+
.removeClass (["on", "off"])
|
|
1446
|
+
.addClass (node ._reverse .getValue () ? "on" : "off"));
|
|
1447
|
+
}
|
|
1444
1448
|
|
|
1445
1449
|
if (node ._enabled .getValue ())
|
|
1446
1450
|
buttons .slice (-3) .forEach (button => button .show ());
|
|
@@ -2643,7 +2647,7 @@ module .exports = class OutlineView extends Interface
|
|
|
2643
2647
|
}
|
|
2644
2648
|
else
|
|
2645
2649
|
{
|
|
2646
|
-
textarea .attr ("
|
|
2650
|
+
textarea .attr ("readonly", "");
|
|
2647
2651
|
}
|
|
2648
2652
|
|
|
2649
2653
|
this .connectArrayField (textarea, node, field, false);
|
|
@@ -3180,7 +3184,8 @@ module .exports = class OutlineView extends Interface
|
|
|
3180
3184
|
node ._isActive .removeFieldCallback (this .#updateNodePlaySymbol);
|
|
3181
3185
|
node ._isPaused .removeFieldCallback (this .#updateNodePlaySymbol);
|
|
3182
3186
|
node ._loop .removeFieldCallback (this .#updateNodePlaySymbol);
|
|
3183
|
-
|
|
3187
|
+
|
|
3188
|
+
node ._reverse ?.removeFieldCallback (this .#updateNodePlaySymbol);
|
|
3184
3189
|
continue;
|
|
3185
3190
|
}
|
|
3186
3191
|
case X3D .X3DConstants .X3DBindableNode:
|