sunrize 1.11.9 → 1.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "1.11.9",
4
+ "version": "1.11.10",
5
5
  "description": "A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
@@ -88,10 +88,10 @@
88
88
  "shell-tools": "^1.1.9"
89
89
  },
90
90
  "dependencies": {
91
- "@vscode/codicons": "^0.0.42",
91
+ "@vscode/codicons": "^0.0.43",
92
92
  "capitalize": "^2.0.4",
93
93
  "console": "^0.7.2",
94
- "electron": "^39.2.2",
94
+ "electron": "^39.2.4",
95
95
  "electron-prompt": "^1.7.0",
96
96
  "electron-squirrel-startup": "^1.0.1",
97
97
  "electron-tabs": "^1.0.4",
@@ -100,17 +100,17 @@
100
100
  "jquery-ui-dist": "^1.13.3",
101
101
  "jstree": "^3.3.17",
102
102
  "material-icons": "^1.13.14",
103
- "material-symbols": "^0.39.4",
103
+ "material-symbols": "^0.40.0",
104
104
  "md5": "^2.3.0",
105
- "mime-types": "^3.0.1",
106
- "monaco-editor": "^0.54.0",
105
+ "mime-types": "^3.0.2",
106
+ "monaco-editor": "^0.55.1",
107
107
  "node-localstorage": "^3.0.5",
108
108
  "qtip2": "^3.0.3",
109
109
  "spectrum-colorpicker2": "^2.0.10",
110
110
  "string-similarity": "^4.0.4",
111
111
  "tweakpane": "^3.1.10",
112
112
  "update-electron-app": "^3.1.1",
113
- "x_ite": "^12.1.9",
113
+ "x_ite": "^12.1.10",
114
114
  "x3d-traverse": "^1.0.22"
115
115
  }
116
116
  }
@@ -1633,7 +1633,7 @@ module .exports = class OutlineView extends Interface
1633
1633
  case X3D .X3DConstants .SFBool:
1634
1634
  {
1635
1635
  $("<img></img>")
1636
- .addClass (["boolean-button", "field-button", "button",])
1636
+ .addClass (["boolean-button", "field-button", "button"])
1637
1637
  .attr ("src", `../images/OutlineEditor/Values/${field .getValue () ? "TRUE" : "FALSE"}.svg`)
1638
1638
  .attr ("title", _("Toggle value."))
1639
1639
  .appendTo (child);
@@ -1645,7 +1645,7 @@ module .exports = class OutlineView extends Interface
1645
1645
  case X3D .X3DConstants .SFColorRGBA:
1646
1646
  {
1647
1647
  $("<div></div>")
1648
- .addClass (["color-button", "field-button", "button",])
1648
+ .addClass (["color-button", "field-button", "button"])
1649
1649
  .attr ("title", _("Open color picker."))
1650
1650
  .css ("background-color", this .getColorFromField (node, field))
1651
1651
  .appendTo (child);
@@ -1656,7 +1656,7 @@ module .exports = class OutlineView extends Interface
1656
1656
  case X3D .X3DConstants .SFTime:
1657
1657
  {
1658
1658
  $("<img></img>")
1659
- .addClass (["time-button", "field-button", "button",])
1659
+ .addClass (["time-button", "field-button", "button"])
1660
1660
  .attr ("src", `../images/OutlineEditor/Values/Bell.svg`)
1661
1661
  .attr ("title", _("Set current time."))
1662
1662
  .appendTo (child);
@@ -1680,7 +1680,23 @@ module .exports = class OutlineView extends Interface
1680
1680
  break;
1681
1681
  }
1682
1682
  }
1683
+ else if (field .isOutput ())
1684
+ {
1685
+ switch (field .getType ())
1686
+ {
1687
+ case X3D .X3DConstants .SFBool:
1688
+ {
1689
+ $("<img></img>")
1690
+ .addClass (["boolean-out-button", "field-button"])
1691
+ .attr ("src", `../images/OutlineEditor/Values/${field .getValue () ? "TRUE" : "FALSE"}-out.svg`)
1692
+ .attr ("title", _("State of value."))
1693
+ .appendTo (child);
1683
1694
 
1695
+ field .addFieldCallback (this .#fieldButtonSymbol, this .updateBoolean .bind (this, parent, node, field));
1696
+ break;
1697
+ }
1698
+ }
1699
+ }
1684
1700
 
1685
1701
  // Access type
1686
1702
 
@@ -1943,8 +1959,16 @@ module .exports = class OutlineView extends Interface
1943
1959
 
1944
1960
  updateBoolean (parent, node, field)
1945
1961
  {
1946
- parent .find (`.field[field-id=${field .getId ()}] > .item .boolean-button`)
1947
- .attr ("src", `../images/OutlineEditor/Values/${field .getValue () ? "TRUE" : "FALSE"}.svg`)
1962
+ if (field .isInitializable ())
1963
+ {
1964
+ parent .find (`.field[field-id=${field .getId ()}] > .item .boolean-button`)
1965
+ .attr ("src", `../images/OutlineEditor/Values/${field .getValue () ? "TRUE" : "FALSE"}.svg`)
1966
+ }
1967
+ else if (field .isOutput ())
1968
+ {
1969
+ parent .find (`.field[field-id=${field .getId ()}] > .item .boolean-out-button`)
1970
+ .attr ("src", `../images/OutlineEditor/Values/${field .getValue () ? "TRUE" : "FALSE"}-out.svg`)
1971
+ }
1948
1972
  }
1949
1973
 
1950
1974
  updateColor (parent, node, field)
@@ -102,6 +102,28 @@ DEF Sunny Background {
102
102
  0.48 0.48 0.45
103
103
  ]
104
104
  }
105
+ `
106
+ },
107
+ {
108
+ componentInfo: { name: "EnvironmentalEffects" },
109
+ typeName: "Background Sunset",
110
+ x3dSyntax: `
111
+ DEF Sunset Background {
112
+ skyAngle [
113
+ 0.8, 1.2, 1.5, 1.55, 1.5708
114
+ ]
115
+ skyColor [
116
+ 0.0196078 0.0196078 0.0196078,
117
+ 0.054902 0.0705882 0.0862745,
118
+ 0.203922 0.243137 0.313726,
119
+ 0.541176 0.462745 0.435294,
120
+ 0.745098 0.541176 0.376471,
121
+ 0.890196 0.537255 0.172549
122
+ ]
123
+ groundColor [
124
+ 0 0 0
125
+ ]
126
+ }
105
127
  `
106
128
  },
107
129
  {
@@ -147,7 +147,7 @@ module .exports = class ScriptEditor extends Interface
147
147
  {
148
148
  return new Promise (resolve =>
149
149
  {
150
- monacoLoader .require (["vs/editor/editor.main"], ({ m: monaco }) => resolve (monaco));
150
+ monacoLoader .require (["vs/editor/editor.main"], resolve);
151
151
  });
152
152
  }
153
153
 
@@ -0,0 +1,84 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="12"
4
+ height="12"
5
+ viewBox="0 0 3.175 3.1750001"
6
+ version="1.1"
7
+ id="svg8"
8
+ inkscape:version="1.4.2 (ebf0e940, 2025-05-08)"
9
+ sodipodi:docname="FALSE-out.svg"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ xmlns:svg="http://www.w3.org/2000/svg"
14
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
15
+ xmlns:cc="http://creativecommons.org/ns#"
16
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
17
+ <defs
18
+ id="defs2" />
19
+ <sodipodi:namedview
20
+ id="base"
21
+ pagecolor="#e6e6e6"
22
+ bordercolor="#666666"
23
+ borderopacity="1.0"
24
+ inkscape:pageopacity="0"
25
+ inkscape:pageshadow="2"
26
+ inkscape:zoom="26.354658"
27
+ inkscape:cx="13.375245"
28
+ inkscape:cy="4.7619666"
29
+ inkscape:document-units="mm"
30
+ inkscape:current-layer="layer1"
31
+ inkscape:document-rotation="0"
32
+ showgrid="true"
33
+ inkscape:window-width="1472"
34
+ inkscape:window-height="840"
35
+ inkscape:window-x="-1"
36
+ inkscape:window-y="34"
37
+ inkscape:window-maximized="0"
38
+ units="px"
39
+ inkscape:object-nodes="true"
40
+ inkscape:snap-bbox="true"
41
+ inkscape:bbox-nodes="true"
42
+ inkscape:showpageshadow="2"
43
+ inkscape:pagecheckerboard="0"
44
+ inkscape:deskcolor="#d1d1d1">
45
+ <inkscape:grid
46
+ type="xygrid"
47
+ id="grid42"
48
+ empspacing="1"
49
+ originx="0"
50
+ originy="0"
51
+ spacingy="1"
52
+ spacingx="1"
53
+ units="px" />
54
+ </sodipodi:namedview>
55
+ <metadata
56
+ id="metadata5">
57
+ <rdf:RDF>
58
+ <cc:Work
59
+ rdf:about="">
60
+ <dc:format>image/svg+xml</dc:format>
61
+ <dc:type
62
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
63
+ </cc:Work>
64
+ </rdf:RDF>
65
+ </metadata>
66
+ <g
67
+ inkscape:label="Ebene 1"
68
+ inkscape:groupmode="layer"
69
+ id="layer1">
70
+ <circle
71
+ style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.265;stroke-dasharray:none;stroke-opacity:1"
72
+ id="path1"
73
+ cx="1.5875001"
74
+ cy="1.5875001"
75
+ r="1.455" />
76
+ <ellipse
77
+ ry="0.92604178"
78
+ rx="0.92604172"
79
+ style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264583;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
80
+ id="path890"
81
+ cx="1.5875"
82
+ cy="1.5875" />
83
+ </g>
84
+ </svg>
@@ -0,0 +1,84 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="12"
4
+ height="12"
5
+ viewBox="0 0 3.175 3.1750001"
6
+ version="1.1"
7
+ id="svg8"
8
+ inkscape:version="1.4.2 (ebf0e940, 2025-05-08)"
9
+ sodipodi:docname="TRUE-out.svg"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ xmlns:svg="http://www.w3.org/2000/svg"
14
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
15
+ xmlns:cc="http://creativecommons.org/ns#"
16
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
17
+ <defs
18
+ id="defs2" />
19
+ <sodipodi:namedview
20
+ id="base"
21
+ pagecolor="#e6e6e6"
22
+ bordercolor="#666666"
23
+ borderopacity="1.0"
24
+ inkscape:pageopacity="0"
25
+ inkscape:pageshadow="2"
26
+ inkscape:zoom="26.354658"
27
+ inkscape:cx="5.2931819"
28
+ inkscape:cy="3.7754237"
29
+ inkscape:document-units="mm"
30
+ inkscape:current-layer="layer1"
31
+ inkscape:document-rotation="0"
32
+ showgrid="true"
33
+ inkscape:window-width="976"
34
+ inkscape:window-height="840"
35
+ inkscape:window-x="0"
36
+ inkscape:window-y="34"
37
+ inkscape:window-maximized="0"
38
+ units="px"
39
+ inkscape:object-nodes="true"
40
+ inkscape:snap-bbox="true"
41
+ inkscape:bbox-nodes="true"
42
+ inkscape:showpageshadow="2"
43
+ inkscape:pagecheckerboard="0"
44
+ inkscape:deskcolor="#d1d1d1">
45
+ <inkscape:grid
46
+ type="xygrid"
47
+ id="grid42"
48
+ empspacing="1"
49
+ originx="0"
50
+ originy="0"
51
+ spacingy="1"
52
+ spacingx="1"
53
+ units="px" />
54
+ </sodipodi:namedview>
55
+ <metadata
56
+ id="metadata5">
57
+ <rdf:RDF>
58
+ <cc:Work
59
+ rdf:about="">
60
+ <dc:format>image/svg+xml</dc:format>
61
+ <dc:type
62
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
63
+ </cc:Work>
64
+ </rdf:RDF>
65
+ </metadata>
66
+ <g
67
+ inkscape:label="Ebene 1"
68
+ inkscape:groupmode="layer"
69
+ id="layer1">
70
+ <circle
71
+ style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.265;stroke-dasharray:none;stroke-opacity:1"
72
+ id="path1"
73
+ cx="1.5875001"
74
+ cy="1.5875001"
75
+ r="1.455" />
76
+ <ellipse
77
+ ry="0.92604178"
78
+ rx="0.92604172"
79
+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
80
+ id="path890"
81
+ cx="1.5875001"
82
+ cy="1.5875001" />
83
+ </g>
84
+ </svg>
@@ -1320,6 +1320,18 @@ body.light .console-output .selected {
1320
1320
  inset: 0;
1321
1321
  }
1322
1322
 
1323
+ /* monaco editor */
1324
+
1325
+ .monaco-editor,
1326
+ .monaco-editor * {
1327
+ all: revert;
1328
+ }
1329
+
1330
+ /* Hide monaco tooltips. */
1331
+ .context-view.monaco-component {
1332
+ display: none;
1333
+ }
1334
+
1323
1335
  /* Animation Editor */
1324
1336
 
1325
1337
  .animation-editor {
@@ -1605,7 +1617,7 @@ body.light .console-output .selected {
1605
1617
  color: var(--system-brown);
1606
1618
  }
1607
1619
 
1608
- .scene-graph .exported-node > .item .boolean-button {
1620
+ .scene-graph .exported-node > .item :is(.boolean-button, .boolean-out-button) {
1609
1621
  top: 2px
1610
1622
  }
1611
1623
 
@@ -1636,6 +1648,14 @@ body.light .console-output .selected {
1636
1648
  top: 4px;
1637
1649
  }
1638
1650
 
1651
+ .scene-graph .boolean-out-button {
1652
+ position: relative;
1653
+ margin-left: 10px;
1654
+ width: 12px;
1655
+ height: 12px;
1656
+ top: 4px;
1657
+ }
1658
+
1639
1659
  .scene-graph .color-button {
1640
1660
  position: relative;
1641
1661
  box-sizing: border-box;
@@ -1913,15 +1933,3 @@ body.light .console-output .selected {
1913
1933
  .tp-ckbv_w svg path {
1914
1934
  stroke: var(--system-green) !important;
1915
1935
  }
1916
-
1917
- /* monaco editor */
1918
-
1919
- .monaco-editor,
1920
- .monaco-editor * {
1921
- all: revert;
1922
- }
1923
-
1924
- /* Fix stange tooltip with placehoder in Find widget */
1925
- .context-view.monaco-component {
1926
- display: none;
1927
- }