sunrize 2.6.3 → 2.6.5
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/README.md +6 -4
- package/package.json +9 -8
- package/src/Application/Document.js +16 -10
- package/src/Controls/AnimationPropertiesPopover.js +1 -1
- package/src/assets/X3DUOM.xml +39 -21
package/README.md
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
## Introduction
|
|
8
8
|
|
|
9
|
-
Sunrize is
|
|
9
|
+
Sunrize is an easy-to-use editor for X3D files, built on top of the [X_ITE](https://create3000.github.io/x_ite/) framework. It provides an intuitive interface for creating, editing, and previewing interactive 3D scenes directly in the browser. With support for the full [X3D standard](https://www.web3d.org/standards) and X_ITE’s advanced rendering features, Sunrize makes it simple to experiment with nodes, materials, and animations while immediately seeing the results in real time.
|
|
10
|
+
|
|
11
|
+

|
|
10
12
|
|
|
11
13
|
## Quick Links
|
|
12
14
|
|
|
@@ -19,12 +21,12 @@ The latest builds of Sunrize are available as installer packages on the [Sunrize
|
|
|
19
21
|
|
|
20
22
|
## Run from Console
|
|
21
23
|
|
|
22
|
-
First you need to install
|
|
24
|
+
First you need to install **Node.js** with **npm** on your system. To accomplish this, you can use a [Node.js installer or nvm](https://nodejs.org/en/download/), or use [Homebrew](https://brew.sh), or your systems package manager.
|
|
23
25
|
|
|
24
26
|
Then you can run Sunrize without installing it using npm's **npx** command:
|
|
25
27
|
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
+
```sh
|
|
29
|
+
npx sunrize@latest [files]
|
|
28
30
|
```
|
|
29
31
|
|
|
30
32
|
>**Note:** The first time, it may take a while for Sunrize to start.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sunrize",
|
|
3
3
|
"productName": "Sunrize X3D Editor",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.5",
|
|
5
5
|
"description": "Sunrize — A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@electron-forge/publisher-github": "^8.0.1",
|
|
99
99
|
"@eslint/js": "^10.0.1",
|
|
100
100
|
"@reforged/maker-appimage": "^6.0.0",
|
|
101
|
-
"eslint": "^10.
|
|
101
|
+
"eslint": "^10.14.0",
|
|
102
102
|
"globals": "^17.13.0",
|
|
103
103
|
"shell-tools": "^1.1.9"
|
|
104
104
|
},
|
|
@@ -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.
|
|
109
|
+
"electron": "^45.2.1",
|
|
110
110
|
"electron-prompt": "^1.7.0",
|
|
111
111
|
"electron-squirrel-startup": "^1.0.1",
|
|
112
112
|
"electron-tabs": "^1.0.4",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"jquery": "^3.7.1",
|
|
115
115
|
"jquery-ui-dist": "^1.13.3",
|
|
116
116
|
"jstree": "^3.3.17",
|
|
117
|
-
"material-symbols": "^0.48.
|
|
117
|
+
"material-symbols": "^0.48.2",
|
|
118
118
|
"md5": "^2.3.0",
|
|
119
119
|
"mime-types": "^3.0.2",
|
|
120
120
|
"monaco-editor": "^0.55.1",
|
|
@@ -124,10 +124,11 @@
|
|
|
124
124
|
"string-similarity": "^4.0.4",
|
|
125
125
|
"tweakpane": "^4.0.5",
|
|
126
126
|
"update-electron-app": "^3.3.0",
|
|
127
|
-
"x_ite": "^16.
|
|
128
|
-
"x_ite-off-parser": "^1.
|
|
129
|
-
"x_ite-sog-parser": "^2.
|
|
130
|
-
"x_ite-spz-parser": "^2.
|
|
127
|
+
"x_ite": "^16.7.0",
|
|
128
|
+
"x_ite-off-parser": "^1.4.0",
|
|
129
|
+
"x_ite-sog-parser": "^2.2.0",
|
|
130
|
+
"x_ite-spz-parser": "^2.2.0",
|
|
131
|
+
"x_ite-vrml1-parser": "^1.1.0",
|
|
131
132
|
"x3d-traverse": "^3.0.3"
|
|
132
133
|
},
|
|
133
134
|
"allowScripts": {
|
|
@@ -25,6 +25,7 @@ require ("x_ite-sog-parser");
|
|
|
25
25
|
require ("x_ite-spz-parser/x_ite-spz-parser-123.js");
|
|
26
26
|
require ("x_ite-spz-parser/x_ite-spz-parser-4.js");
|
|
27
27
|
require ("x_ite-off-parser");
|
|
28
|
+
require ("x_ite-vrml1-parser");
|
|
28
29
|
|
|
29
30
|
module .exports = class Document extends Interface
|
|
30
31
|
{
|
|
@@ -465,34 +466,39 @@ module .exports = class Document extends Interface
|
|
|
465
466
|
{
|
|
466
467
|
const
|
|
467
468
|
response = await fetch ("https://api.github.com/repos/create3000/sunrize/releases/latest"),
|
|
468
|
-
|
|
469
|
+
latest = await response .json (),
|
|
469
470
|
pkg = require ("../../package.json");
|
|
470
471
|
|
|
471
|
-
if (
|
|
472
|
+
if (latest .name === `v${pkg .version}`)
|
|
472
473
|
return setTimeout (() => this .checkReleases (), 24 * 60 * 60 * 1_000);
|
|
473
474
|
|
|
474
|
-
let
|
|
475
|
+
let filename;
|
|
475
476
|
|
|
476
477
|
switch (process .platform)
|
|
477
478
|
{
|
|
478
479
|
case "win32":
|
|
479
|
-
|
|
480
|
+
filename = `Sunrize.X3D.Editor-${latest .name .substring (1)}.Setup.exe`;
|
|
480
481
|
break;
|
|
481
482
|
case "darwin":
|
|
482
|
-
|
|
483
|
+
filename = `Sunrize.X3D.Editor-darwin-arm64-${latest .name .substring (1)}.zip`;
|
|
483
484
|
break;
|
|
484
485
|
default:
|
|
485
|
-
|
|
486
|
+
filename = `Sunrize.X3D.Editor-${latest .name .substring (1)}-x64.AppImage`;
|
|
486
487
|
break;
|
|
487
488
|
}
|
|
488
489
|
|
|
490
|
+
const fileURL = `https://github.com/create3000/sunrize/releases/download/${latest .name}/${filename}`;
|
|
491
|
+
|
|
489
492
|
this .footer .console .addSplitter ();
|
|
490
|
-
this .footer .console .addMessage ("info", "", 0, `A new Sunrize version ${
|
|
491
|
-
this .footer .console .addMessage ("info", "", 0, `Download new version: <a download href="
|
|
493
|
+
this .footer .console .addMessage ("info", "", 0, `A new Sunrize version ${latest .name} is now available on GitHub.`);
|
|
494
|
+
this .footer .console .addMessage ("info", "", 0, `Download new version: <a download href="${fileURL}">${filename}</a>`, true);
|
|
492
495
|
this .footer .console .addSplitter ();
|
|
493
496
|
}
|
|
494
|
-
catch
|
|
495
|
-
{
|
|
497
|
+
catch (error)
|
|
498
|
+
{
|
|
499
|
+
if (process .env .SUNRISE_ENVIRONMENT === "DEVELOPMENT")
|
|
500
|
+
console .error (error);
|
|
501
|
+
}
|
|
496
502
|
}
|
|
497
503
|
|
|
498
504
|
/*
|
package/src/assets/X3DUOM.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!-- X3D Unified Object Model (X3DUOM) X3dUnifiedObjectModel-4.1.xml -->
|
|
3
3
|
<!-- Online at https://www.web3d.org/specifications/X3dUnifiedObjectModel-4.1.xml -->
|
|
4
4
|
<!-- This file contains a listing of all abstract and concrete nodes in version 4.1 of X3D -->
|
|
5
|
-
<!-- Generated 2026-
|
|
5
|
+
<!-- Generated 2026-10-28-07:00 19:32:04.834869-07:00 -->
|
|
6
6
|
<X3dUnifiedObjectModel xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
|
|
7
7
|
version="4.1"
|
|
8
8
|
xsd:noNamespaceSchemaLocation="https://www.web3d.org/specifications/X3dUnifiedObjectModel.xsd">
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
documentation="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#containerField">
|
|
344
344
|
<enumeration value="children" appinfo="parent node is another HAnimJoint"/>
|
|
345
345
|
<enumeration value="joints"
|
|
346
|
-
appinfo="parent node is HAnimHumanoid, typically as a USE node"/>
|
|
346
|
+
appinfo="parent node is HAnimHumanoid, typically as a USE node (deprecated X3D 4.1)"/>
|
|
347
347
|
<enumeration value="skeleton" appinfo="parent node is HAnimHumanoid"/>
|
|
348
348
|
</SimpleType>
|
|
349
349
|
<SimpleType name="containerFieldChoicesHAnimMotion"
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
documentation="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#containerField">
|
|
360
360
|
<enumeration value="children" appinfo="parent node is HAnimJoint"/>
|
|
361
361
|
<enumeration value="segments"
|
|
362
|
-
appinfo="parent node is HAnimHumanoid, typically as a USE node"/>
|
|
362
|
+
appinfo="parent node is HAnimHumanoid, typically as a USE node (deprecated X3D 4.1)"/>
|
|
363
363
|
</SimpleType>
|
|
364
364
|
<SimpleType name="containerFieldChoicesHAnimSite"
|
|
365
365
|
baseType="xs:NMTOKEN"
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
documentation="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#containerField">
|
|
368
368
|
<enumeration value="children" appinfo="parent node is HAnimSegment"/>
|
|
369
369
|
<enumeration value="sites"
|
|
370
|
-
appinfo="parent node is HAnimHumanoid, typically as a USE node"/>
|
|
370
|
+
appinfo="parent node is HAnimHumanoid, typically as a USE node (deprecated X3D 4.1)"/>
|
|
371
371
|
<enumeration value="skeleton" appinfo="parent node is HAnimHumanoid"/>
|
|
372
372
|
<enumeration value="viewpoints" appinfo="parent node is HAnimHumanoid"/>
|
|
373
373
|
</SimpleType>
|
|
@@ -4389,7 +4389,7 @@
|
|
|
4389
4389
|
</SimpleType>
|
|
4390
4390
|
<SimpleType name="multiTextureModeValues"
|
|
4391
4391
|
baseType="MFString"
|
|
4392
|
-
appinfo="multiTextureModeValues are supported enumeration values for the MultiTexture mode attribute, one per each texture. Multiple optional values, but cannot be extended. (previously no underscores in X3D 3.0-4.0)"
|
|
4392
|
+
appinfo="multiTextureModeValues are supported enumeration values for the MultiTexture mode attribute, one per each texture. Multiple optional values, but cannot be extended. (Note: previously no underscores in X3D 3.0-4.0)"
|
|
4393
4393
|
documentation="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/texturing.html#t-MultitextureModes">
|
|
4394
4394
|
<enumeration value=""ADD""/>
|
|
4395
4395
|
<enumeration value=""ADD_SIGNED""/>
|
|
@@ -4732,7 +4732,7 @@
|
|
|
4732
4732
|
appinfo="Sphere mapping but in local coordinates. (previously hypenated in X3D 3.0-4.0)"/>
|
|
4733
4733
|
<enumeration value="COORD" appinfo="Use vertex coordinates"/>
|
|
4734
4734
|
<enumeration value="COORD_EYE"
|
|
4735
|
-
appinfo="Use vertex coordinates transformed to camera space. (
|
|
4735
|
+
appinfo="Use vertex coordinates transformed to camera space. (underscores used in X3D 4.1)"/>
|
|
4736
4736
|
<enumeration value="NOISE"
|
|
4737
4737
|
appinfo="Apply Perlin solid noise function on vertex coordinates"/>
|
|
4738
4738
|
<enumeration value="NOISE_EYE"
|
|
@@ -20992,13 +20992,13 @@
|
|
|
20992
20992
|
</ConcreteNode>
|
|
20993
20993
|
<ConcreteNode name="HAnimDisplacer">
|
|
20994
20994
|
<InterfaceDefinition specificationUrl="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/hanim.html#HAnimDisplacer"
|
|
20995
|
-
appinfo="HAnimDisplacer nodes alter the shape of coordinate-based geometry within
|
|
20995
|
+
appinfo="HAnimDisplacer nodes alter the shape of coordinate-based geometry within HAnim nodes.">
|
|
20996
20996
|
<componentInfo name="HAnim" level="1"/>
|
|
20997
20997
|
<Inheritance baseType="X3DGeometricPropertyNode"/>
|
|
20998
20998
|
<field name="coordIndex"
|
|
20999
20999
|
type="MFInt32"
|
|
21000
21000
|
accessType="inputOutput"
|
|
21001
|
-
description="Defines index values into the parent
|
|
21001
|
+
description="Defines index values into the parent HAnimJoint or ancestor HAnimHumanoid coordinate array for the mesh of vertices affected by this HAnimDisplacer."/>
|
|
21002
21002
|
<field name="description"
|
|
21003
21003
|
type="SFString"
|
|
21004
21004
|
accessType="inputOutput"
|
|
@@ -21985,7 +21985,6 @@
|
|
|
21985
21985
|
<field name="version"
|
|
21986
21986
|
type="SFString"
|
|
21987
21987
|
accessType="inputOutput"
|
|
21988
|
-
use="required"
|
|
21989
21988
|
additionalEnumerationValuesAllowed="false"
|
|
21990
21989
|
simpleType="hanimVersionChoices"
|
|
21991
21990
|
baseType="xs:NMTOKEN"
|
|
@@ -22068,29 +22067,32 @@
|
|
|
22068
22067
|
<InterfaceDefinition specificationUrl="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/hanim.html#HAnimJoint"
|
|
22069
22068
|
appinfo="HAnimJoint node can represent each joint in a body.">
|
|
22070
22069
|
<componentInfo name="HAnim" level="1"/>
|
|
22071
|
-
<Inheritance baseType="
|
|
22070
|
+
<Inheritance baseType="X3DGroupingNode"/>
|
|
22072
22071
|
<AdditionalInheritance baseType="X3DBoundedObject"/>
|
|
22073
22072
|
<field name="addChildren"
|
|
22074
22073
|
type="MFNode"
|
|
22075
22074
|
accessType="inputOnly"
|
|
22076
|
-
acceptableNodeTypes="
|
|
22075
|
+
acceptableNodeTypes="X3DChildNode"
|
|
22076
|
+
inheritedFrom="X3DGroupingNode">
|
|
22077
|
+
<componentInfo name="Grouping" level="2"/>
|
|
22078
|
+
</field>
|
|
22077
22079
|
<field name="bboxCenter"
|
|
22078
22080
|
type="SFVec3f"
|
|
22079
22081
|
accessType="initializeOnly"
|
|
22080
22082
|
default="0 0 0"
|
|
22081
|
-
inheritedFrom="
|
|
22083
|
+
inheritedFrom="X3DGroupingNode"
|
|
22082
22084
|
description="Bounding box center accompanies bboxSize and provides an optional hint for bounding box position offset from origin of local coordinate system."/>
|
|
22083
22085
|
<field name="bboxDisplay"
|
|
22084
22086
|
type="SFBool"
|
|
22085
22087
|
accessType="inputOutput"
|
|
22086
22088
|
default="false"
|
|
22087
|
-
inheritedFrom="
|
|
22089
|
+
inheritedFrom="X3DGroupingNode"
|
|
22088
22090
|
description="Whether to display bounding box for associated geometry, aligned with world coordinates."/>
|
|
22089
22091
|
<field name="bboxSize"
|
|
22090
22092
|
type="SFVec3f"
|
|
22091
22093
|
accessType="initializeOnly"
|
|
22092
22094
|
default="-1 -1 -1"
|
|
22093
|
-
inheritedFrom="
|
|
22095
|
+
inheritedFrom="X3DGroupingNode"
|
|
22094
22096
|
baseType="bboxSizeType"
|
|
22095
22097
|
description="Bounding box size is usually omitted, and can easily be calculated automatically by an X3D player at scene-loading time with minimal computational cost."/>
|
|
22096
22098
|
<field name="center"
|
|
@@ -22101,7 +22103,8 @@
|
|
|
22101
22103
|
<field name="children"
|
|
22102
22104
|
type="MFNode"
|
|
22103
22105
|
accessType="inputOutput"
|
|
22104
|
-
acceptableNodeTypes="
|
|
22106
|
+
acceptableNodeTypes="X3DChildNode"
|
|
22107
|
+
inheritedFrom="X3DGroupingNode"
|
|
22105
22108
|
description="Grouping nodes contain an ordered list of children nodes."/>
|
|
22106
22109
|
<field name="description"
|
|
22107
22110
|
type="SFString"
|
|
@@ -23027,7 +23030,10 @@
|
|
|
23027
23030
|
<field name="removeChildren"
|
|
23028
23031
|
type="MFNode"
|
|
23029
23032
|
accessType="inputOnly"
|
|
23030
|
-
acceptableNodeTypes="
|
|
23033
|
+
acceptableNodeTypes="X3DChildNode"
|
|
23034
|
+
inheritedFrom="X3DGroupingNode">
|
|
23035
|
+
<componentInfo name="Grouping" level="2"/>
|
|
23036
|
+
</field>
|
|
23031
23037
|
<field name="rotation"
|
|
23032
23038
|
type="SFRotation"
|
|
23033
23039
|
accessType="inputOutput"
|
|
@@ -23074,7 +23080,7 @@
|
|
|
23074
23080
|
type="SFBool"
|
|
23075
23081
|
accessType="inputOutput"
|
|
23076
23082
|
default="true"
|
|
23077
|
-
inheritedFrom="
|
|
23083
|
+
inheritedFrom="X3DGroupingNode"
|
|
23078
23084
|
description="Whether or not renderable content within this node is visually displayed."/>
|
|
23079
23085
|
<field name="DEF"
|
|
23080
23086
|
type="SFString"
|
|
@@ -23107,11 +23113,9 @@
|
|
|
23107
23113
|
description="The style attribute on each X3D node and statement provides an inline block of CSS source for element styling, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets."/>
|
|
23108
23114
|
<containerField default="children" type="containerFieldChoicesHAnimJoint"/>
|
|
23109
23115
|
<ContentModel>
|
|
23116
|
+
<GroupContentModel name="ChildContentModel" minOccurs="0" maxOccurs="unbounded"/>
|
|
23110
23117
|
<GroupContentModel name="ChildContentModelCore" minOccurs="0"/>
|
|
23111
23118
|
<NodeContentModel name="HAnimDisplacer"/>
|
|
23112
|
-
<NodeContentModel name="HAnimJoint"/>
|
|
23113
|
-
<NodeContentModel name="HAnimSegment"/>
|
|
23114
|
-
<NodeContentModel name="ProtoInstance"/>
|
|
23115
23119
|
</ContentModel>
|
|
23116
23120
|
</InterfaceDefinition>
|
|
23117
23121
|
</ConcreteNode>
|
|
@@ -24298,6 +24302,8 @@
|
|
|
24298
24302
|
<ContentModel>
|
|
24299
24303
|
<GroupContentModel name="ChildContentModel" minOccurs="0" maxOccurs="unbounded"/>
|
|
24300
24304
|
<GroupContentModel name="ChildContentModelCore" minOccurs="0"/>
|
|
24305
|
+
<NodeContentModel name="Coordinate"/>
|
|
24306
|
+
<NodeContentModel name="CoordinateDouble"/>
|
|
24301
24307
|
<NodeContentModel name="HAnimDisplacer"/>
|
|
24302
24308
|
</ContentModel>
|
|
24303
24309
|
</InterfaceDefinition>
|
|
@@ -24344,10 +24350,19 @@
|
|
|
24344
24350
|
acceptableNodeTypes="X3DChildNode"
|
|
24345
24351
|
inheritedFrom="X3DGroupingNode"
|
|
24346
24352
|
description="Grouping nodes contain an ordered list of children nodes."/>
|
|
24353
|
+
<field name="coord"
|
|
24354
|
+
type="SFNode"
|
|
24355
|
+
accessType="inputOutput"
|
|
24356
|
+
default="NULL"
|
|
24357
|
+
acceptableNodeTypes="X3DCoordinateNode"/>
|
|
24347
24358
|
<field name="description"
|
|
24348
24359
|
type="SFString"
|
|
24349
24360
|
accessType="inputOutput"
|
|
24350
24361
|
description="Author-provided prose that describes intended purpose of this node."/>
|
|
24362
|
+
<field name="displacers"
|
|
24363
|
+
type="MFNode"
|
|
24364
|
+
accessType="inputOutput"
|
|
24365
|
+
acceptableNodeTypes="HAnimDisplacer"/>
|
|
24351
24366
|
<field name="IS"
|
|
24352
24367
|
type="SFNode"
|
|
24353
24368
|
accessType="inputOutput"
|
|
@@ -25181,6 +25196,9 @@
|
|
|
25181
25196
|
<ContentModel>
|
|
25182
25197
|
<GroupContentModel name="ChildContentModel" minOccurs="0" maxOccurs="unbounded"/>
|
|
25183
25198
|
<GroupContentModel name="ChildContentModelCore" minOccurs="0"/>
|
|
25199
|
+
<NodeContentModel name="Coordinate"/>
|
|
25200
|
+
<NodeContentModel name="CoordinateDouble"/>
|
|
25201
|
+
<NodeContentModel name="HAnimDisplacer"/>
|
|
25184
25202
|
</ContentModel>
|
|
25185
25203
|
</InterfaceDefinition>
|
|
25186
25204
|
</ConcreteNode>
|
|
@@ -39435,7 +39453,7 @@
|
|
|
39435
39453
|
appinfo="Sphere mapping but in local coordinates. (previously hypenated in X3D 3.0-4.0)."/>
|
|
39436
39454
|
<enumeration value="COORD" appinfo="Use vertex coordinates."/>
|
|
39437
39455
|
<enumeration value="COORD_EYE"
|
|
39438
|
-
appinfo="Use vertex coordinates transformed to camera space. (
|
|
39456
|
+
appinfo="Use vertex coordinates transformed to camera space. (underscores used in X3D 4.1)."/>
|
|
39439
39457
|
<enumeration value="NOISE"
|
|
39440
39458
|
appinfo="Apply Perlin solid noise function on vertex coordinates."/>
|
|
39441
39459
|
<enumeration value="NOISE_EYE"
|