sunrize 1.5.13 → 1.6.0

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.
Files changed (41) hide show
  1. package/package.json +5 -5
  2. package/src/Application/Application.js +2 -7
  3. package/src/Application/Dashboard.js +10 -10
  4. package/src/Application/DataStorage.js +177 -177
  5. package/src/Application/Document.js +72 -127
  6. package/src/Application/Interface.js +4 -0
  7. package/src/Application/Tabs.js +3 -3
  8. package/src/Controls/Dialog.js +3 -1
  9. package/src/Editors/BrowserFrame.js +171 -0
  10. package/src/Editors/OutlineEditor.js +149 -123
  11. package/src/Editors/OutlineRouteGraph.js +493 -493
  12. package/src/Editors/OutlineView.js +102 -64
  13. package/src/Editors/SceneProperties.js +137 -136
  14. package/src/Editors/ScriptEditor.js +1 -1
  15. package/src/Tools/Core/X3DNodeTool.js +66 -12
  16. package/src/Tools/Grids/AngleGridTool.js +0 -5
  17. package/src/Tools/Grids/AngleGridTool.x3d +1 -0
  18. package/src/Tools/Grids/AxonometricGrid.x3d +5 -5
  19. package/src/Tools/Grids/AxonometricGridTool.js +0 -5
  20. package/src/Tools/Grids/AxonometricGridTool.x3d +1 -0
  21. package/src/Tools/Grids/GridTool.js +0 -5
  22. package/src/Tools/Grids/GridTool.x3d +1 -0
  23. package/src/Tools/Grids/X3DGridNodeTool.js +131 -84
  24. package/src/Tools/Grouping/X3DTransformNodeTool.js +19 -21
  25. package/src/Tools/Grouping/X3DTransformNodeTool.x3d +20 -15
  26. package/src/Tools/Layering/X3DActiveLayerNodeTool.js +16 -21
  27. package/src/Tools/Lighting/DirectionalLightTool.js +32 -1
  28. package/src/Tools/Lighting/X3DLightNodeTool.x3d +4 -21
  29. package/src/Tools/Shaders/TextureShader.x3d +16 -3
  30. package/src/Tools/SnapTool/{SnapSourceTool.js → SnapSource.js} +2 -7
  31. package/src/Tools/SnapTool/SnapTarget.js +650 -0
  32. package/src/Tools/SnapTool/SnapTool.x3d +28 -27
  33. package/src/Tools/SnapTool/X3DSnapNodeTool.js +16 -15
  34. package/src/Tools/Sound/SoundTool.x3d +4 -21
  35. package/src/Tools/TextureProjection/X3DTextureProjectorNodeTool.x3d +19 -26
  36. package/src/Undo/Editor.js +185 -46
  37. package/src/assets/Info.plist +56 -56
  38. package/src/assets/themes/default-template.css +1 -0
  39. package/src/assets/themes/default.css +1 -0
  40. package/src/Editors/BrowserSize.js +0 -101
  41. package/src/Tools/SnapTool/SnapTargetTool.js +0 -20
@@ -15,7 +15,7 @@
15
15
  <string>model/x3d+xml</string>
16
16
  </array>
17
17
  <key>CFBundleTypeName</key>
18
- <string>X3D Model (XML Encoding)</string>
18
+ <string>X3D Model (XML Encoding)</string>
19
19
  <key>CFBundleTypeIconFile</key>
20
20
  <string>electron.icns</string>
21
21
  <key>CFBundleTypeRole</key>
@@ -24,12 +24,12 @@
24
24
  <string>Owner</string>
25
25
  <key>LSIsAppleDefaultForType</key>
26
26
  <true/>
27
- <key>LSItemContentTypes</key>
28
- <array>
29
- <string>io.github.create3000.x3d</string>
30
- <string>io.castleengine.view3dscene.x3d</string>
31
- <string>public.data</string>
32
- </array>
27
+ <key>LSItemContentTypes</key>
28
+ <array>
29
+ <string>io.github.create3000.x3d</string>
30
+ <string>io.castleengine.view3dscene.x3d</string>
31
+ <string>public.data</string>
32
+ </array>
33
33
  </dict>
34
34
  <dict>
35
35
  <key>CFBundleTypeExtensions</key>
@@ -45,7 +45,7 @@
45
45
  <string>application/gzip</string>
46
46
  </array>
47
47
  <key>CFBundleTypeName</key>
48
- <string>X3D Model (XML Encoding)</string>
48
+ <string>X3D Model (XML Encoding)</string>
49
49
  <key>CFBundleTypeIconFile</key>
50
50
  <string>electron.icns</string>
51
51
  <key>CFBundleTypeRole</key>
@@ -54,12 +54,12 @@
54
54
  <string>Owner</string>
55
55
  <key>LSIsAppleDefaultForType</key>
56
56
  <true/>
57
- <key>LSItemContentTypes</key>
58
- <array>
59
- <string>io.github.create3000.x3d</string>
60
- <string>io.castleengine.view3dscene.x3d</string>
61
- <string>public.data</string>
62
- </array>
57
+ <key>LSItemContentTypes</key>
58
+ <array>
59
+ <string>io.github.create3000.x3d</string>
60
+ <string>io.castleengine.view3dscene.x3d</string>
61
+ <string>public.data</string>
62
+ </array>
63
63
  </dict>
64
64
  <dict>
65
65
  <key>CFBundleTypeExtensions</key>
@@ -72,7 +72,7 @@
72
72
  <string>model/x3d+vrml</string>
73
73
  </array>
74
74
  <key>CFBundleTypeName</key>
75
- <string>X3D Model (Classic VRML Encoding)</string>
75
+ <string>X3D Model (Classic VRML Encoding)</string>
76
76
  <key>CFBundleTypeIconFile</key>
77
77
  <string>electron.icns</string>
78
78
  <key>CFBundleTypeRole</key>
@@ -81,12 +81,12 @@
81
81
  <string>Owner</string>
82
82
  <key>LSIsAppleDefaultForType</key>
83
83
  <true/>
84
- <key>LSItemContentTypes</key>
85
- <array>
86
- <string>io.github.create3000.x3dv</string>
87
- <string>io.castleengine.view3dscene.x3dv</string>
88
- <string>public.data</string>
89
- </array>
84
+ <key>LSItemContentTypes</key>
85
+ <array>
86
+ <string>io.github.create3000.x3dv</string>
87
+ <string>io.castleengine.view3dscene.x3dv</string>
88
+ <string>public.data</string>
89
+ </array>
90
90
  </dict>
91
91
  <dict>
92
92
  <key>CFBundleTypeExtensions</key>
@@ -102,7 +102,7 @@
102
102
  <string>application/gzip</string>
103
103
  </array>
104
104
  <key>CFBundleTypeName</key>
105
- <string>X3D Model (Classic VRML Encoding)</string>
105
+ <string>X3D Model (Classic VRML Encoding)</string>
106
106
  <key>CFBundleTypeIconFile</key>
107
107
  <string>electron.icns</string>
108
108
  <key>CFBundleTypeRole</key>
@@ -111,12 +111,12 @@
111
111
  <string>Owner</string>
112
112
  <key>LSIsAppleDefaultForType</key>
113
113
  <true/>
114
- <key>LSItemContentTypes</key>
115
- <array>
116
- <string>io.github.create3000.x3dv</string>
117
- <string>io.castleengine.view3dscene.x3dv</string>
118
- <string>public.data</string>
119
- </array>
114
+ <key>LSItemContentTypes</key>
115
+ <array>
116
+ <string>io.github.create3000.x3dv</string>
117
+ <string>io.castleengine.view3dscene.x3dv</string>
118
+ <string>public.data</string>
119
+ </array>
120
120
  </dict>
121
121
  <dict>
122
122
  <key>CFBundleTypeExtensions</key>
@@ -129,7 +129,7 @@
129
129
  <string>model/x3d+json</string>
130
130
  </array>
131
131
  <key>CFBundleTypeName</key>
132
- <string>X3D Model (JSON Encoding)</string>
132
+ <string>X3D Model (JSON Encoding)</string>
133
133
  <key>CFBundleTypeIconFile</key>
134
134
  <string>electron.icns</string>
135
135
  <key>CFBundleTypeRole</key>
@@ -138,12 +138,12 @@
138
138
  <string>Owner</string>
139
139
  <key>LSIsAppleDefaultForType</key>
140
140
  <true/>
141
- <key>LSItemContentTypes</key>
142
- <array>
143
- <string>io.github.create3000.x3dj</string>
144
- <string>io.castleengine.view3dscene.x3dj</string>
145
- <string>public.data</string>
146
- </array>
141
+ <key>LSItemContentTypes</key>
142
+ <array>
143
+ <string>io.github.create3000.x3dj</string>
144
+ <string>io.castleengine.view3dscene.x3dj</string>
145
+ <string>public.data</string>
146
+ </array>
147
147
  </dict>
148
148
  <dict>
149
149
  <key>CFBundleTypeExtensions</key>
@@ -159,7 +159,7 @@
159
159
  <string>application/gzip</string>
160
160
  </array>
161
161
  <key>CFBundleTypeName</key>
162
- <string>X3D Model (JSON Encoding)</string>
162
+ <string>X3D Model (JSON Encoding)</string>
163
163
  <key>CFBundleTypeIconFile</key>
164
164
  <string>electron.icns</string>
165
165
  <key>CFBundleTypeRole</key>
@@ -168,12 +168,12 @@
168
168
  <string>Owner</string>
169
169
  <key>LSIsAppleDefaultForType</key>
170
170
  <true/>
171
- <key>LSItemContentTypes</key>
172
- <array>
173
- <string>io.github.create3000.x3dj</string>
174
- <string>io.castleengine.view3dscene.x3dj</string>
175
- <string>public.data</string>
176
- </array>
171
+ <key>LSItemContentTypes</key>
172
+ <array>
173
+ <string>io.github.create3000.x3dj</string>
174
+ <string>io.castleengine.view3dscene.x3dj</string>
175
+ <string>public.data</string>
176
+ </array>
177
177
  </dict>
178
178
  <dict>
179
179
  <key>CFBundleTypeExtensions</key>
@@ -189,7 +189,7 @@
189
189
  <string>x-world/x-vrml</string>
190
190
  </array>
191
191
  <key>CFBundleTypeName</key>
192
- <string>VRML Document</string>
192
+ <string>VRML Document</string>
193
193
  <key>CFBundleTypeIconFile</key>
194
194
  <string>electron.icns</string>
195
195
  <key>CFBundleTypeRole</key>
@@ -198,12 +198,12 @@
198
198
  <string>Owner</string>
199
199
  <key>LSIsAppleDefaultForType</key>
200
200
  <true/>
201
- <key>LSItemContentTypes</key>
202
- <array>
203
- <string>io.github.create3000.vrml</string>
204
- <string>io.castleengine.view3dscene.vrml</string>
205
- <string>public.data</string>
206
- </array>
201
+ <key>LSItemContentTypes</key>
202
+ <array>
203
+ <string>io.github.create3000.vrml</string>
204
+ <string>io.castleengine.view3dscene.vrml</string>
205
+ <string>public.data</string>
206
+ </array>
207
207
  </dict>
208
208
  <dict>
209
209
  <key>CFBundleTypeExtensions</key>
@@ -220,7 +220,7 @@
220
220
  <string>application/gzip</string>
221
221
  </array>
222
222
  <key>CFBundleTypeName</key>
223
- <string>VRML Document</string>
223
+ <string>VRML Document</string>
224
224
  <key>CFBundleTypeIconFile</key>
225
225
  <string>electron.icns</string>
226
226
  <key>CFBundleTypeRole</key>
@@ -229,12 +229,12 @@
229
229
  <string>Owner</string>
230
230
  <key>LSIsAppleDefaultForType</key>
231
231
  <true/>
232
- <key>LSItemContentTypes</key>
233
- <array>
234
- <string>io.github.create3000.vrml</string>
235
- <string>io.castleengine.view3dscene.vrml</string>
236
- <string>public.data</string>
237
- </array>
232
+ <key>LSItemContentTypes</key>
233
+ <array>
234
+ <string>io.github.create3000.vrml</string>
235
+ <string>io.castleengine.view3dscene.vrml</string>
236
+ <string>public.data</string>
237
+ </array>
238
238
  </dict>
239
239
  <dict>
240
240
  <key>CFBundleTypeExtensions</key>
@@ -541,6 +541,7 @@ tr.disabled ~ tr > td > div {
541
541
  left: 50%;
542
542
  top: 50%;
543
543
  transform: translate(-50%,-50%);
544
+ background-color: var(--system-gray7);
544
545
  }
545
546
 
546
547
  #secondary-toolbar {
@@ -541,6 +541,7 @@ tr.disabled ~ tr > td > div {
541
541
  left: 50%;
542
542
  top: 50%;
543
543
  transform: translate(-50%,-50%);
544
+ background-color: var(--system-gray7);
544
545
  }
545
546
 
546
547
  #secondary-toolbar {
@@ -1,101 +0,0 @@
1
- "use strict"
2
-
3
- const
4
- $ = require ("jquery"),
5
- X3D = require ("../X3D"),
6
- Dialog = require ("../Controls/Dialog"),
7
- _ = require ("../Application/GetText")
8
-
9
- module .exports = new class BrowserSize extends Dialog
10
- {
11
- constructor ()
12
- {
13
- super ("Sunrize.BrowserSize.")
14
-
15
- this .setup ()
16
- }
17
-
18
- initialize ()
19
- {
20
- super .initialize ()
21
-
22
- // Add class.
23
-
24
- this .element .addClass ("browser-size")
25
-
26
- this .table = $("<table></table>") .appendTo (this .element)
27
- this .table .header = $("<thead></thead>") .appendTo (this .table)
28
- this .table .body = $("<tbody></tbody>") .appendTo (this .table)
29
-
30
- $("<tr></tr>")
31
- .append ($("<th></th>")
32
- .attr ("colspan", "2")
33
- .text (_("Browser Size")))
34
- .appendTo (this .table .header)
35
-
36
- this .enabled = $("<input></input>")
37
- .attr ("id", "browser-size-enabled")
38
- .attr ("type", "checkbox")
39
- .on ("change", () => this .onchange ())
40
-
41
- $("<tr></tr>")
42
- .append ($("<th></th>"))
43
- .append ($("<td></td>")
44
- .append (this .enabled)
45
- .append ($("<label></label>")
46
- .attr ("for", "browser-size-enabled")
47
- .text (_("Enabled"))))
48
- .appendTo (this .table .body)
49
-
50
- this .numerator = $("<input></input>")
51
- .attr ("type", "number")
52
- .attr ("step", "1")
53
- .css ("width", "calc((100% - 20px) / 2)")
54
- .on ("change", () => this .onchange ())
55
-
56
- const slash = $("<span></span>")
57
- .css ({ "display": "inline-block", "width": "20px", "text-align": "center" })
58
- .text ("/")
59
-
60
- this .denominator = $("<input></input>")
61
- .attr ("type", "number")
62
- .attr ("step", "1")
63
- .css ("width", "calc((100% - 20px) / 2)")
64
- .on ("change", () => this .onchange ())
65
-
66
- $("<tr></tr>")
67
- .append ($("<th></th>")
68
- .text (_("Aspect Ratio")))
69
- .append ($("<td></td>")
70
- .append (this .numerator)
71
- .append (slash)
72
- .append (this .denominator))
73
- .appendTo (this .table .body)
74
- }
75
-
76
- configure ()
77
- {
78
- super .configure ({ size: [400, 100] })
79
-
80
- // Set default config values.
81
-
82
- this .config .file .setDefaultValues ({
83
- enabled: false,
84
- numerator: 1,
85
- denominator: 1,
86
- })
87
-
88
- this .enabled .prop ("checked", this .config .file .enabled)
89
- this .numerator .val (this .config .file .numerator)
90
- this .denominator .val (this .config .file .denominator)
91
- }
92
-
93
- onchange ()
94
- {
95
- this .config .file .enabled = this .enabled .prop ("checked")
96
- this .config .file .numerator = parseFloat (this .numerator .val ())
97
- this .config .file .denominator = parseFloat (this .denominator .val ())
98
-
99
- require ("../Application/Window") .onresize ()
100
- }
101
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- const X3DSnapNodeTool = require ("./X3DSnapNodeTool");
4
-
5
- class SnapTargetTool extends X3DSnapNodeTool
6
- {
7
- constructor (executionContext)
8
- {
9
- super (executionContext);
10
- }
11
-
12
- async initializeTool ()
13
- {
14
- await super .initializeTool ();
15
-
16
- this .tool .type = "SNAP_TARGET";
17
- }
18
- }
19
-
20
- module .exports = SnapTargetTool;