x_ite 4.7.7 → 4.7.8
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/build/parts/x_ite.end.frag.js +3 -1
- package/build/parts/x_ite.start.frag.js +2 -1
- package/dist/example.html +2 -2
- package/dist/x_ite.css +2 -2
- package/dist/x_ite.js +39 -10
- package/dist/x_ite.min.js +27 -27
- package/dist/x_ite.zip +0 -0
- package/docs/Accessing-the-External-Browser.md +1 -1
- package/docs/_config.yml +1 -1
- package/docs/index.md +2 -2
- package/package.json +2 -2
- package/src/x_ite/Browser/Networking/urls.js +7 -0
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Parser/X3DParser.js +11 -4
- package/src/x_ite/X3D.js +6 -1
- package/src/x_ite.js +8 -1
|
@@ -22,4 +22,6 @@ for (const key in x_iteNoConfict)
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
})
|
|
25
|
-
(typeof module === "object" ? module : undefined,
|
|
25
|
+
(typeof module === "object" ? module : undefined,
|
|
26
|
+
typeof require === "function" ? require : undefined,
|
|
27
|
+
typeof process === "object" ? process : undefined);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
(function (globalModule, globalRequire)
|
|
1
|
+
(function (globalModule, globalRequire, globalProcess)
|
|
2
2
|
{
|
|
3
3
|
|
|
4
4
|
if (typeof __filename === "undefined")
|
|
5
5
|
{
|
|
6
6
|
globalModule = undefined;
|
|
7
7
|
globalRequire = undefined;
|
|
8
|
+
globalProcess = undefined;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
// Undefine global variables.
|
package/dist/example.html
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8"/>
|
|
5
|
-
<link rel="stylesheet" type="text/css" href="https://create3000.github.io/code/x_ite/4.7.
|
|
6
|
-
<script type="text/javascript" src="https://create3000.github.io/code/x_ite/4.7.
|
|
5
|
+
<link rel="stylesheet" type="text/css" href="https://create3000.github.io/code/x_ite/4.7.8/dist/x_ite.css"/>
|
|
6
|
+
<script type="text/javascript" src="https://create3000.github.io/code/x_ite/4.7.8/dist/x_ite.min.js"></script>
|
|
7
7
|
<style>
|
|
8
8
|
X3DCanvas {
|
|
9
9
|
width: 1000px;
|
package/dist/x_ite.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v4.7.
|
|
1
|
+
/* X_ITE v4.7.8-1134 */
|
|
2
2
|
@charset "utf-8";
|
|
3
3
|
@import url(https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic);
|
|
4
4
|
X3DCanvas .x_ite-private-splash-screen {
|
|
@@ -315,7 +315,7 @@ X3DCanvas #context-menu-layer {
|
|
|
315
315
|
z-index: 0 !important;
|
|
316
316
|
}
|
|
317
317
|
.x_ite-private-menu.x_ite-private-menu-title:before {
|
|
318
|
-
content: "X_ITE Browser v4.7.
|
|
318
|
+
content: "X_ITE Browser v4.7.8";
|
|
319
319
|
display: block;
|
|
320
320
|
padding: 4px 32px 4px 8px;
|
|
321
321
|
font-weight: bold;
|
package/dist/x_ite.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
/* X_ITE v4.7.
|
|
1
|
+
/* X_ITE v4.7.8-1134 */
|
|
2
2
|
|
|
3
|
-
(function (globalModule, globalRequire)
|
|
3
|
+
(function (globalModule, globalRequire, globalProcess)
|
|
4
4
|
{
|
|
5
5
|
|
|
6
6
|
if (typeof __filename === "undefined")
|
|
7
7
|
{
|
|
8
8
|
globalModule = undefined;
|
|
9
9
|
globalRequire = undefined;
|
|
10
|
+
globalProcess = undefined;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
// Undefine global variables.
|
|
@@ -24883,7 +24884,7 @@ function (SFBool,
|
|
|
24883
24884
|
|
|
24884
24885
|
define ('x_ite/Browser/VERSION',[],function ()
|
|
24885
24886
|
{
|
|
24886
|
-
return "4.7.
|
|
24887
|
+
return "4.7.8";
|
|
24887
24888
|
});
|
|
24888
24889
|
|
|
24889
24890
|
/* -*- Mode: JavaScript; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*-
|
|
@@ -34134,15 +34135,22 @@ define ('x_ite/Parser/X3DParser',[],function ()
|
|
|
34134
34135
|
for (const component of components)
|
|
34135
34136
|
{
|
|
34136
34137
|
const providerUrl = component .providerUrl;
|
|
34137
|
-
|
|
34138
|
-
if (providerUrl .match (componentsUrl))
|
|
34138
|
+
if (providerUrl .match (componentsUrl))
|
|
34139
34139
|
providerUrls .add (providerUrl);
|
|
34140
34140
|
}
|
|
34141
34141
|
|
|
34142
34142
|
if (typeof globalRequire === "function")
|
|
34143
34143
|
{
|
|
34144
|
-
|
|
34145
|
-
|
|
34144
|
+
if (typeof globalProcess === "object" && globalProcess .platform === "win32")
|
|
34145
|
+
{
|
|
34146
|
+
for (const url of providerUrls)
|
|
34147
|
+
globalRequire (url);
|
|
34148
|
+
}
|
|
34149
|
+
else
|
|
34150
|
+
{
|
|
34151
|
+
for (const url of providerUrls)
|
|
34152
|
+
globalRequire (new URL (url) .pathname);
|
|
34153
|
+
}
|
|
34146
34154
|
}
|
|
34147
34155
|
|
|
34148
34156
|
return Array .from (providerUrls);
|
|
@@ -39911,6 +39919,13 @@ define ('x_ite/Browser/Networking/urls',[],function ()
|
|
|
39911
39919
|
if (getScriptURL () .match (/\.min\.js$/))
|
|
39912
39920
|
file += ".min";
|
|
39913
39921
|
|
|
39922
|
+
if (typeof globalProcess === "object" && globalProcess .platform === "win32")
|
|
39923
|
+
{
|
|
39924
|
+
const path = globalRequire ("path");
|
|
39925
|
+
|
|
39926
|
+
return path .join (path .dirname (getScriptURL ()), "assets\\components\\" + file + ".js");
|
|
39927
|
+
}
|
|
39928
|
+
|
|
39914
39929
|
return new URL ("assets/components/" + file + ".js", getScriptURL ()) .href;
|
|
39915
39930
|
}
|
|
39916
39931
|
|
|
@@ -118167,7 +118182,12 @@ function ($,
|
|
|
118167
118182
|
const url = urls .getProviderUrl (name);
|
|
118168
118183
|
|
|
118169
118184
|
if (typeof globalRequire === "function")
|
|
118170
|
-
|
|
118185
|
+
{
|
|
118186
|
+
if (typeof globalProcess === "object" && globalProcess .platform === "win32")
|
|
118187
|
+
globalRequire (url);
|
|
118188
|
+
else
|
|
118189
|
+
globalRequire (new URL (url) .pathname);
|
|
118190
|
+
}
|
|
118171
118191
|
|
|
118172
118192
|
return url;
|
|
118173
118193
|
}
|
|
@@ -118390,9 +118410,16 @@ define .hide = function ()
|
|
|
118390
118410
|
const getScriptURL = (function ()
|
|
118391
118411
|
{
|
|
118392
118412
|
if (document .currentScript)
|
|
118413
|
+
{
|
|
118393
118414
|
var src = document .currentScript .src;
|
|
118415
|
+
}
|
|
118394
118416
|
else if (typeof __filename === "string")
|
|
118395
|
-
|
|
118417
|
+
{
|
|
118418
|
+
if (typeof globalProcess === "object" && globalProcess .platform === "win32")
|
|
118419
|
+
var src = __filename;
|
|
118420
|
+
else
|
|
118421
|
+
var src = "file://" + __filename;
|
|
118422
|
+
}
|
|
118396
118423
|
|
|
118397
118424
|
return function ()
|
|
118398
118425
|
{
|
|
@@ -118546,4 +118573,6 @@ for (const key in x_iteNoConfict)
|
|
|
118546
118573
|
}
|
|
118547
118574
|
|
|
118548
118575
|
})
|
|
118549
|
-
(typeof module === "object" ? module : undefined,
|
|
118576
|
+
(typeof module === "object" ? module : undefined,
|
|
118577
|
+
typeof require === "function" ? require : undefined,
|
|
118578
|
+
typeof process === "object" ? process : undefined);
|