x_ite 8.6.8 → 8.6.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/.vscode/tasks.json +1 -1
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +18 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +25 -27
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -19
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +18 -18
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +907 -660
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/docs/_posts/getting-started.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +4 -4
- package/package.json +1 -1
- package/src/assets/shaders/webgl1/Pointing.fs.js +1 -1
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +19 -2
- package/src/assets/shaders/webgl1/include/Point.glsl.js +10 -2
- package/src/assets/shaders/webgl1/include/Texture.glsl.js +31 -1
- package/src/assets/shaders/webgl1/include/Vertex.glsl.js +24 -0
- package/src/assets/shaders/webgl2/Pointing.fs.js +1 -1
- package/src/assets/shaders/webgl2/include/Fragment.glsl.js +20 -1
- package/src/assets/shaders/webgl2/include/Point.glsl.js +12 -4
- package/src/assets/shaders/webgl2/include/Texture.glsl.js +17 -20
- package/src/assets/shaders/webgl2/include/Vertex.glsl.js +24 -0
- package/src/bookmarks.js +1 -1
- package/src/tests.js +2 -1
- package/src/x_ite/Browser/Core/BrowserOptions.js +3 -0
- package/src/x_ite/Browser/Core/BrowserTimings.js +12 -11
- package/src/x_ite/Browser/Core/Context.js +66 -64
- package/src/x_ite/Browser/Core/ContextMenu.js +0 -9
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +1 -1
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +8 -0
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +1 -1
- package/src/x_ite/Components/Core/X3DBindableNode.js +0 -2
- package/src/x_ite/Components/Core/X3DNode.js +3 -8
- package/src/x_ite/Components/Layering/X3DLayerNode.js +6 -2
- package/src/x_ite/Components/Navigation/NavigationInfo.js +1 -0
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +34 -21
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +2 -4
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +5 -19
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +6 -12
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -8
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +30 -27
- package/src/x_ite/Components/Shape/Material.js +4 -0
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +4 -0
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -0
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +21 -19
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +4 -0
- package/src/x_ite/Components/Texturing/ImageTexture.js +80 -46
- package/src/x_ite/Components/Texturing/MultiTexture.js +7 -4
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +19 -16
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +16 -32
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +2 -8
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +2 -8
- package/src/x_ite/Execution/NamedNodesHandling.js +84 -0
- package/src/x_ite/Execution/X3DExecutionContext.js +7 -37
- package/src/x_ite/Execution/X3DScene.js +5 -0
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/InputOutput/Generator.js +32 -81
- package/src/x_ite/Parser/GLTF2Parser.js +109 -43
- package/src/x_ite/Parser/OBJParser.js +42 -30
- package/src/x_ite/Parser/STLAParser.js +3 -0
- package/src/x_ite/Parser/SVGParser.js +4 -0
- package/src/x_ite/Rendering/X3DRenderObject.js +1 -0
- package/src/x_ite.html +53 -47
- package/x_ite.min.html +53 -47
- /package/docs/assets/X3D/{Michroma-Regular.ttf → teaser/Michroma-Regular.ttf} +0 -0
- /package/docs/assets/X3D/{peakpx.jpg → teaser/peakpx.jpg} +0 -0
- /package/docs/assets/X3D/{teaser.x3d → teaser/teaser.x3d} +0 -0
package/src/x_ite.html
CHANGED
|
@@ -93,7 +93,7 @@ X3D (function ()
|
|
|
93
93
|
if (location .href .includes (".min.html") && url .startsWith ("tests/"))
|
|
94
94
|
url = "src/" + url;
|
|
95
95
|
|
|
96
|
-
$("
|
|
96
|
+
$("#file") .removeClass ("loaded");
|
|
97
97
|
|
|
98
98
|
bookmarks .loadURL (url);
|
|
99
99
|
}
|
|
@@ -113,32 +113,38 @@ X3D (function ()
|
|
|
113
113
|
console .log (Browser .toJSONString ());
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
function viewAll ()
|
|
117
|
+
{
|
|
118
|
+
Browser .viewAll ();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const bookmarks = new Bookmarks (Browser, $("#examples-box"));
|
|
117
122
|
|
|
118
123
|
bookmarks .setup ([X_ITE_EXAMPLES, X_ITE_TESTS]);
|
|
119
124
|
loadURL (localStorage ["Bookmarks.url"] || "https://create3000.github.io/media/x_ite/info/info.x3d");
|
|
120
125
|
|
|
121
|
-
$("
|
|
122
|
-
$("
|
|
123
|
-
$("
|
|
124
|
-
$("
|
|
125
|
-
$("
|
|
126
|
-
$("
|
|
126
|
+
$("#version") .text (Browser .name + " v" + Browser .version);
|
|
127
|
+
$("#location-entry") .val (localStorage ["Bookmarks.history"] [index])
|
|
128
|
+
$("#location-go") .on ("click", () => loadURL ($("#location-entry") .val ()));
|
|
129
|
+
$("#print-vrml") .on ("click", toVRMLString);
|
|
130
|
+
$("#print-xml") .on ("click", toXMLString);
|
|
131
|
+
$("#print-json") .on ("click", toJSONString);
|
|
132
|
+
$("#view-all") .on ("click", viewAll);
|
|
127
133
|
$("#browser") .on ("initialized", () => localStorage ["Bookmarks.url"] = Browser .getWorldURL ());
|
|
128
134
|
|
|
129
|
-
$("
|
|
135
|
+
$("#location-entry") .keydown (event =>
|
|
130
136
|
{
|
|
131
137
|
switch (event .key)
|
|
132
138
|
{
|
|
133
139
|
case "Enter":
|
|
134
|
-
return loadURL ($("
|
|
140
|
+
return loadURL ($("#location-entry") .val ())
|
|
135
141
|
case "ArrowUp":
|
|
136
142
|
if (index > 0)
|
|
137
|
-
$("
|
|
143
|
+
$("#location-entry") .val (localStorage ["Bookmarks.history"] [--index])
|
|
138
144
|
return
|
|
139
145
|
case "ArrowDown":
|
|
140
146
|
if (index < localStorage ["Bookmarks.history"] .length - 1)
|
|
141
|
-
$("
|
|
147
|
+
$("#location-entry") .val (localStorage ["Bookmarks.history"] [++index])
|
|
142
148
|
return
|
|
143
149
|
}
|
|
144
150
|
});
|
|
@@ -189,46 +195,46 @@ main.color-management {
|
|
|
189
195
|
background: #2E8BE6;
|
|
190
196
|
}
|
|
191
197
|
|
|
192
|
-
main.color-management
|
|
198
|
+
main.color-management #browser {
|
|
193
199
|
box-shadow: none;
|
|
194
200
|
}
|
|
195
201
|
|
|
196
|
-
|
|
202
|
+
#version {
|
|
197
203
|
margin: 10px 40px 10px 20px;
|
|
198
204
|
font-weight: bold;
|
|
199
205
|
font-size: 52px;
|
|
200
206
|
}
|
|
201
207
|
|
|
202
|
-
|
|
208
|
+
#file {
|
|
203
209
|
margin: 10px 40px 10px 20px;
|
|
204
210
|
border-color: white;
|
|
205
211
|
}
|
|
206
212
|
|
|
207
|
-
|
|
213
|
+
#file.loaded {
|
|
208
214
|
color: #ffe32d;
|
|
209
215
|
}
|
|
210
216
|
|
|
211
|
-
|
|
217
|
+
#file a {
|
|
212
218
|
margin-left: 10px;
|
|
213
219
|
padding-left: 10px;
|
|
214
220
|
border-left: 1px solid white;
|
|
215
221
|
color: inherit;
|
|
216
222
|
}
|
|
217
223
|
|
|
218
|
-
|
|
224
|
+
#file.loaded a {
|
|
219
225
|
border-color: #ffe32d;
|
|
220
226
|
}
|
|
221
227
|
|
|
222
|
-
|
|
228
|
+
#browser {
|
|
223
229
|
display: block;
|
|
224
230
|
margin: 10px 0px;
|
|
225
|
-
aspect-ratio: 16 / 9;
|
|
226
231
|
width: 100%;
|
|
227
232
|
height: auto;
|
|
233
|
+
aspect-ratio: 16 / 9;
|
|
228
234
|
box-shadow: 0px 2px 12px 1px rgba(0, 0, 0, 0.75);
|
|
229
235
|
}
|
|
230
236
|
|
|
231
|
-
|
|
237
|
+
#browser:focus {
|
|
232
238
|
box-shadow: 0px 2px 6px 3px black;
|
|
233
239
|
}
|
|
234
240
|
|
|
@@ -237,7 +243,7 @@ main.color-management .browser {
|
|
|
237
243
|
text-align: center;
|
|
238
244
|
}
|
|
239
245
|
|
|
240
|
-
|
|
246
|
+
#location-entry {
|
|
241
247
|
display: block;
|
|
242
248
|
float: left;
|
|
243
249
|
box-sizing: border-box;
|
|
@@ -251,7 +257,7 @@ main.color-management .browser {
|
|
|
251
257
|
font-size: 10pt;
|
|
252
258
|
}
|
|
253
259
|
|
|
254
|
-
|
|
260
|
+
#location-go {
|
|
255
261
|
display: block;
|
|
256
262
|
float: left;
|
|
257
263
|
box-sizing: border-box;
|
|
@@ -266,37 +272,37 @@ main.color-management .browser {
|
|
|
266
272
|
font-size: 10pt;
|
|
267
273
|
}
|
|
268
274
|
|
|
269
|
-
|
|
275
|
+
#location-go:hover {
|
|
270
276
|
background: #363636;
|
|
271
277
|
}
|
|
272
278
|
|
|
273
|
-
|
|
279
|
+
#location-go:active {
|
|
274
280
|
background: #515151;
|
|
275
281
|
}
|
|
276
282
|
|
|
277
|
-
|
|
283
|
+
#buttons {
|
|
278
284
|
margin: 10px 0px;
|
|
279
285
|
float: left;
|
|
280
286
|
}
|
|
281
287
|
|
|
282
|
-
|
|
288
|
+
#links {
|
|
283
289
|
margin: 10px 0px;
|
|
284
290
|
text-align: right;
|
|
285
291
|
}
|
|
286
292
|
|
|
287
|
-
|
|
288
|
-
|
|
293
|
+
#buttons a,
|
|
294
|
+
#links a {
|
|
289
295
|
padding: 0px 5px;
|
|
290
296
|
border-left: 1px solid white;
|
|
291
297
|
}
|
|
292
298
|
|
|
293
|
-
|
|
294
|
-
|
|
299
|
+
#buttons a:first-child,
|
|
300
|
+
#links a:first-child {
|
|
295
301
|
border-left: none;
|
|
296
302
|
}
|
|
297
303
|
|
|
298
|
-
|
|
299
|
-
|
|
304
|
+
#buttons a:last-child,
|
|
305
|
+
#links a:last-child {
|
|
300
306
|
border-right: 0px;
|
|
301
307
|
}
|
|
302
308
|
|
|
@@ -307,8 +313,8 @@ main.color-management .browser {
|
|
|
307
313
|
}
|
|
308
314
|
|
|
309
315
|
.clearfix,
|
|
310
|
-
|
|
311
|
-
|
|
316
|
+
#location-bar:after,
|
|
317
|
+
#links:after {
|
|
312
318
|
content: ".";
|
|
313
319
|
clear: both;
|
|
314
320
|
display: block;
|
|
@@ -316,14 +322,14 @@ main.color-management .browser {
|
|
|
316
322
|
height: 0px;
|
|
317
323
|
}
|
|
318
324
|
|
|
319
|
-
|
|
325
|
+
#examples-box {
|
|
320
326
|
overflow-x: scroll;
|
|
321
327
|
display: block;
|
|
322
328
|
width: calc(100% + 5px);
|
|
323
329
|
white-space: nowrap;
|
|
324
330
|
}
|
|
325
331
|
|
|
326
|
-
|
|
332
|
+
#examples-box:after {
|
|
327
333
|
visibility: hidden;
|
|
328
334
|
display: block;
|
|
329
335
|
font-size: 0;
|
|
@@ -387,14 +393,14 @@ main.color-management .browser {
|
|
|
387
393
|
<div class="page">
|
|
388
394
|
<header>
|
|
389
395
|
<div>
|
|
390
|
-
<h1
|
|
391
|
-
<p
|
|
396
|
+
<h1 id="version"></h1>
|
|
397
|
+
<p id="file"></p>
|
|
392
398
|
</div>
|
|
393
399
|
</header>
|
|
394
400
|
<main>
|
|
395
401
|
<div>
|
|
396
402
|
<form action="javascript:alert('form submitted')">
|
|
397
|
-
<x3d-canvas id="browser"
|
|
403
|
+
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false" onload="$('#file') .addClass ('loaded')" x-url='"tests/empty.x3dv"'>
|
|
398
404
|
<p class="fallback">
|
|
399
405
|
Sorry,<br/>
|
|
400
406
|
it wasn't me!<br/>
|
|
@@ -405,17 +411,17 @@ main.color-management .browser {
|
|
|
405
411
|
</p>
|
|
406
412
|
</x3d-canvas>
|
|
407
413
|
</form>
|
|
408
|
-
<div
|
|
409
|
-
<input
|
|
410
|
-
<button
|
|
414
|
+
<div id="location-bar">
|
|
415
|
+
<input id="location-entry" value="https://www.web3d.org/x3d/content/examples/Basic/ChemicalMarkupLanguage/ButanedioicAcid.x3d"/>
|
|
416
|
+
<button id="location-go" type="button">Load URL</button>
|
|
411
417
|
</div>
|
|
412
|
-
<div
|
|
413
|
-
<a
|
|
418
|
+
<div id="buttons">
|
|
419
|
+
<a href="#" id="view-all">▣</a><a id="print-xml" href="#">XML</a><a id="print-vrml" href="#">VRML</a><a id="print-json" href="#">JSON</a><a href="../dist/example.html">example page</a><a href="tests/d3-x3d/">d3-x3d</a><a href="tests/dom-integration/">dom-integration</a><a href="tests/legacy/">legacy</a>
|
|
414
420
|
</div>
|
|
415
|
-
<div
|
|
421
|
+
<div id="links">
|
|
416
422
|
<a href="../x_ite.min.html">x_ite.min.html</a><a href="https://rawgit.com/create3000/x_ite/main/x_ite.min.html">github</a>
|
|
417
423
|
</div>
|
|
418
|
-
<div
|
|
424
|
+
<div id="examples-box"></div>
|
|
419
425
|
</div>
|
|
420
426
|
</main>
|
|
421
427
|
<footer><div class="console x_ite-console"></div></footer>
|
package/x_ite.min.html
CHANGED
|
@@ -74,7 +74,7 @@ X3D (function ()
|
|
|
74
74
|
if (location .href .includes (".min.html") && url .startsWith ("src/tests/"))
|
|
75
75
|
url = "src/" + url;
|
|
76
76
|
|
|
77
|
-
$("
|
|
77
|
+
$("#file") .removeClass ("loaded");
|
|
78
78
|
|
|
79
79
|
bookmarks .loadURL (url);
|
|
80
80
|
}
|
|
@@ -94,32 +94,38 @@ X3D (function ()
|
|
|
94
94
|
console .log (Browser .toJSONString ());
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
function viewAll ()
|
|
98
|
+
{
|
|
99
|
+
Browser .viewAll ();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const bookmarks = new Bookmarks (Browser, $("#examples-box"));
|
|
98
103
|
|
|
99
104
|
bookmarks .setup ([X_ITE_EXAMPLES, X_ITE_TESTS]);
|
|
100
105
|
loadURL (localStorage ["Bookmarks.url"] || "https://create3000.github.io/media/x_ite/info/info.x3d");
|
|
101
106
|
|
|
102
|
-
$("
|
|
103
|
-
$("
|
|
104
|
-
$("
|
|
105
|
-
$("
|
|
106
|
-
$("
|
|
107
|
-
$("
|
|
107
|
+
$("#version") .text (Browser .name + " v" + Browser .version);
|
|
108
|
+
$("#location-entry") .val (localStorage ["Bookmarks.history"] [index])
|
|
109
|
+
$("#location-go") .on ("click", () => loadURL ($("#location-entry") .val ()));
|
|
110
|
+
$("#print-vrml") .on ("click", toVRMLString);
|
|
111
|
+
$("#print-xml") .on ("click", toXMLString);
|
|
112
|
+
$("#print-json") .on ("click", toJSONString);
|
|
113
|
+
$("#view-all") .on ("click", viewAll);
|
|
108
114
|
$("#browser") .on ("initialized", () => localStorage ["Bookmarks.url"] = Browser .getWorldURL ());
|
|
109
115
|
|
|
110
|
-
$("
|
|
116
|
+
$("#location-entry") .keydown (event =>
|
|
111
117
|
{
|
|
112
118
|
switch (event .key)
|
|
113
119
|
{
|
|
114
120
|
case "Enter":
|
|
115
|
-
return loadURL ($("
|
|
121
|
+
return loadURL ($("#location-entry") .val ())
|
|
116
122
|
case "ArrowUp":
|
|
117
123
|
if (index > 0)
|
|
118
|
-
$("
|
|
124
|
+
$("#location-entry") .val (localStorage ["Bookmarks.history"] [--index])
|
|
119
125
|
return
|
|
120
126
|
case "ArrowDown":
|
|
121
127
|
if (index < localStorage ["Bookmarks.history"] .length - 1)
|
|
122
|
-
$("
|
|
128
|
+
$("#location-entry") .val (localStorage ["Bookmarks.history"] [++index])
|
|
123
129
|
return
|
|
124
130
|
}
|
|
125
131
|
});
|
|
@@ -170,46 +176,46 @@ main.color-management {
|
|
|
170
176
|
background: #2E8BE6;
|
|
171
177
|
}
|
|
172
178
|
|
|
173
|
-
main.color-management
|
|
179
|
+
main.color-management #browser {
|
|
174
180
|
box-shadow: none;
|
|
175
181
|
}
|
|
176
182
|
|
|
177
|
-
|
|
183
|
+
#version {
|
|
178
184
|
margin: 10px 40px 10px 20px;
|
|
179
185
|
font-weight: bold;
|
|
180
186
|
font-size: 52px;
|
|
181
187
|
}
|
|
182
188
|
|
|
183
|
-
|
|
189
|
+
#file {
|
|
184
190
|
margin: 10px 40px 10px 20px;
|
|
185
191
|
border-color: white;
|
|
186
192
|
}
|
|
187
193
|
|
|
188
|
-
|
|
194
|
+
#file.loaded {
|
|
189
195
|
color: #ffe32d;
|
|
190
196
|
}
|
|
191
197
|
|
|
192
|
-
|
|
198
|
+
#file a {
|
|
193
199
|
margin-left: 10px;
|
|
194
200
|
padding-left: 10px;
|
|
195
201
|
border-left: 1px solid white;
|
|
196
202
|
color: inherit;
|
|
197
203
|
}
|
|
198
204
|
|
|
199
|
-
|
|
205
|
+
#file.loaded a {
|
|
200
206
|
border-color: #ffe32d;
|
|
201
207
|
}
|
|
202
208
|
|
|
203
|
-
|
|
209
|
+
#browser {
|
|
204
210
|
display: block;
|
|
205
211
|
margin: 10px 0px;
|
|
206
|
-
aspect-ratio: 16 / 9;
|
|
207
212
|
width: 100%;
|
|
208
213
|
height: auto;
|
|
214
|
+
aspect-ratio: 16 / 9;
|
|
209
215
|
box-shadow: 0px 2px 12px 1px rgba(0, 0, 0, 0.75);
|
|
210
216
|
}
|
|
211
217
|
|
|
212
|
-
|
|
218
|
+
#browser:focus {
|
|
213
219
|
box-shadow: 0px 2px 6px 3px black;
|
|
214
220
|
}
|
|
215
221
|
|
|
@@ -218,7 +224,7 @@ main.color-management .browser {
|
|
|
218
224
|
text-align: center;
|
|
219
225
|
}
|
|
220
226
|
|
|
221
|
-
|
|
227
|
+
#location-entry {
|
|
222
228
|
display: block;
|
|
223
229
|
float: left;
|
|
224
230
|
box-sizing: border-box;
|
|
@@ -232,7 +238,7 @@ main.color-management .browser {
|
|
|
232
238
|
font-size: 10pt;
|
|
233
239
|
}
|
|
234
240
|
|
|
235
|
-
|
|
241
|
+
#location-go {
|
|
236
242
|
display: block;
|
|
237
243
|
float: left;
|
|
238
244
|
box-sizing: border-box;
|
|
@@ -247,37 +253,37 @@ main.color-management .browser {
|
|
|
247
253
|
font-size: 10pt;
|
|
248
254
|
}
|
|
249
255
|
|
|
250
|
-
|
|
256
|
+
#location-go:hover {
|
|
251
257
|
background: #363636;
|
|
252
258
|
}
|
|
253
259
|
|
|
254
|
-
|
|
260
|
+
#location-go:active {
|
|
255
261
|
background: #515151;
|
|
256
262
|
}
|
|
257
263
|
|
|
258
|
-
|
|
264
|
+
#buttons {
|
|
259
265
|
margin: 10px 0px;
|
|
260
266
|
float: left;
|
|
261
267
|
}
|
|
262
268
|
|
|
263
|
-
|
|
269
|
+
#links {
|
|
264
270
|
margin: 10px 0px;
|
|
265
271
|
text-align: right;
|
|
266
272
|
}
|
|
267
273
|
|
|
268
|
-
|
|
269
|
-
|
|
274
|
+
#buttons a,
|
|
275
|
+
#links a {
|
|
270
276
|
padding: 0px 5px;
|
|
271
277
|
border-left: 1px solid white;
|
|
272
278
|
}
|
|
273
279
|
|
|
274
|
-
|
|
275
|
-
|
|
280
|
+
#buttons a:first-child,
|
|
281
|
+
#links a:first-child {
|
|
276
282
|
border-left: none;
|
|
277
283
|
}
|
|
278
284
|
|
|
279
|
-
|
|
280
|
-
|
|
285
|
+
#buttons a:last-child,
|
|
286
|
+
#links a:last-child {
|
|
281
287
|
border-right: 0px;
|
|
282
288
|
}
|
|
283
289
|
|
|
@@ -288,8 +294,8 @@ main.color-management .browser {
|
|
|
288
294
|
}
|
|
289
295
|
|
|
290
296
|
.clearfix,
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
#location-bar:after,
|
|
298
|
+
#links:after {
|
|
293
299
|
content: ".";
|
|
294
300
|
clear: both;
|
|
295
301
|
display: block;
|
|
@@ -297,14 +303,14 @@ main.color-management .browser {
|
|
|
297
303
|
height: 0px;
|
|
298
304
|
}
|
|
299
305
|
|
|
300
|
-
|
|
306
|
+
#examples-box {
|
|
301
307
|
overflow-x: scroll;
|
|
302
308
|
display: block;
|
|
303
309
|
width: calc(100% + 5px);
|
|
304
310
|
white-space: nowrap;
|
|
305
311
|
}
|
|
306
312
|
|
|
307
|
-
|
|
313
|
+
#examples-box:after {
|
|
308
314
|
visibility: hidden;
|
|
309
315
|
display: block;
|
|
310
316
|
font-size: 0;
|
|
@@ -368,14 +374,14 @@ main.color-management .browser {
|
|
|
368
374
|
<div class="page">
|
|
369
375
|
<header>
|
|
370
376
|
<div>
|
|
371
|
-
<h1
|
|
372
|
-
<p
|
|
377
|
+
<h1 id="version"></h1>
|
|
378
|
+
<p id="file"></p>
|
|
373
379
|
</div>
|
|
374
380
|
</header>
|
|
375
381
|
<main>
|
|
376
382
|
<div>
|
|
377
383
|
<form action="javascript:alert('form submitted')">
|
|
378
|
-
<x3d-canvas id="browser"
|
|
384
|
+
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false" onload="$('#file') .addClass ('loaded')" x-url='"src/tests/empty.x3dv"'>
|
|
379
385
|
<p class="fallback">
|
|
380
386
|
Sorry,<br/>
|
|
381
387
|
it wasn't me!<br/>
|
|
@@ -386,17 +392,17 @@ main.color-management .browser {
|
|
|
386
392
|
</p>
|
|
387
393
|
</x3d-canvas>
|
|
388
394
|
</form>
|
|
389
|
-
<div
|
|
390
|
-
<input
|
|
391
|
-
<button
|
|
395
|
+
<div id="location-bar">
|
|
396
|
+
<input id="location-entry" value="https://www.web3d.org/x3d/content/examples/Basic/ChemicalMarkupLanguage/ButanedioicAcid.x3d"/>
|
|
397
|
+
<button id="location-go" type="button">Load URL</button>
|
|
392
398
|
</div>
|
|
393
|
-
<div
|
|
394
|
-
<a
|
|
399
|
+
<div id="buttons">
|
|
400
|
+
<a href="#" id="view-all">▣</a><a id="print-xml" href="#">XML</a><a id="print-vrml" href="#">VRML</a><a id="print-json" href="#">JSON</a><a href="dist/example.html">example page</a><a href="src/tests/d3-x3d/">d3-x3d</a><a href="src/tests/dom-integration/">dom-integration</a><a href="src/tests/legacy/">legacy</a>
|
|
395
401
|
</div>
|
|
396
|
-
<div
|
|
402
|
+
<div id="links">
|
|
397
403
|
<a href="src/x_ite.html">src/x_ite.html</a><a href="https://rawgit.com/create3000/x_ite/main/x_ite.min.html">github</a>
|
|
398
404
|
</div>
|
|
399
|
-
<div
|
|
405
|
+
<div id="examples-box"></div>
|
|
400
406
|
</div>
|
|
401
407
|
</main>
|
|
402
408
|
<footer><div class="console x_ite-console"></div></footer>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|