x_ite 4.7.7 → 4.7.11
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/default.end.frag.js +1 -2
- package/build/parts/default.start.frag.js +1 -8
- package/build/parts/x_ite.end.frag.js +0 -8
- package/build/parts/x_ite.start.frag.js +0 -5
- package/dist/assets/components/annotation.js +2 -10
- package/dist/assets/components/annotation.min.js +1 -1
- package/dist/assets/components/cad-geometry.js +2 -10
- package/dist/assets/components/cad-geometry.min.js +1 -1
- package/dist/assets/components/cube-map-texturing.js +2 -10
- package/dist/assets/components/cube-map-texturing.min.js +1 -1
- package/dist/assets/components/dis.js +2 -10
- package/dist/assets/components/dis.min.js +1 -1
- package/dist/assets/components/event-utilities.js +2 -10
- package/dist/assets/components/event-utilities.min.js +1 -1
- package/dist/assets/components/geometry2d.js +2 -10
- package/dist/assets/components/geometry2d.min.js +1 -1
- package/dist/assets/components/geospatial.js +2 -10
- package/dist/assets/components/geospatial.min.js +2 -2
- package/dist/assets/components/h-anim.js +2 -10
- package/dist/assets/components/h-anim.min.js +1 -1
- package/dist/assets/components/key-device-sensor.js +2 -10
- package/dist/assets/components/key-device-sensor.min.js +1 -1
- package/dist/assets/components/layout.js +2 -10
- package/dist/assets/components/layout.min.js +1 -1
- package/dist/assets/components/nurbs.js +2 -10
- package/dist/assets/components/nurbs.min.js +2 -2
- package/dist/assets/components/particle-systems.js +2 -10
- package/dist/assets/components/particle-systems.min.js +2 -2
- package/dist/assets/components/picking.js +2 -10
- package/dist/assets/components/picking.min.js +1 -1
- package/dist/assets/components/projective-texture-mapping.js +2 -10
- package/dist/assets/components/projective-texture-mapping.min.js +1 -1
- package/dist/assets/components/rigid-body-physics.js +2 -10
- package/dist/assets/components/rigid-body-physics.min.js +17 -17
- package/dist/assets/components/scripting.js +2 -10
- package/dist/assets/components/scripting.min.js +1 -1
- package/dist/assets/components/texturing-3d.js +2 -10
- package/dist/assets/components/texturing-3d.min.js +41 -41
- package/dist/assets/components/volume-rendering.js +2 -10
- package/dist/assets/components/volume-rendering.min.js +3 -3
- package/dist/assets/components/x_ite.js +2 -10
- package/dist/assets/components/x_ite.min.js +1 -1
- package/dist/example.html +2 -2
- package/dist/x_ite.css +14 -9
- package/dist/x_ite.js +177 -86
- package/dist/x_ite.min.js +41 -41
- package/dist/x_ite.zip +0 -0
- package/docs/Accessing-the-External-Browser.md +2 -16
- package/docs/_config.yml +1 -1
- package/docs/index.md +24 -3
- package/docs/reference/Browser-Services.md +2 -2
- package/package.json +5 -4
- package/src/locale/de.po +4 -4
- package/src/locale/fr.po +4 -4
- package/src/standard/Utility/DataStorage.js +16 -2
- package/src/x_ite/Basic/X3DBaseNode.js +1 -1
- package/src/x_ite/Browser/Core/BrowserTimings.js +1 -3
- package/src/x_ite/Browser/Core/ContextMenu.js +69 -5
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +1 -3
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Fields/SFColor.js +15 -2
- package/src/x_ite/Fields/SFDouble.js +1 -1
- package/src/x_ite/Fields/SFFloat.js +1 -1
- package/src/x_ite/Fields/SFMatrix3.js +4 -4
- package/src/x_ite/Fields/SFMatrix4.js +5 -5
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +14 -3
- package/src/x_ite/Fields/SFRotation.js +4 -4
- package/src/x_ite/Fields/SFTime.js +1 -1
- package/src/x_ite/Fields/SFVec2.js +4 -4
- package/src/x_ite/Fields/SFVec3.js +4 -4
- package/src/x_ite/Fields/SFVec4.js +4 -4
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +6 -5
- package/src/x_ite/InputOutput/Generator.js +14 -3
- package/src/x_ite/Parser/X3DParser.js +2 -2
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -1
- package/src/x_ite/X3D.js +2 -2
- package/src/x_ite.config.js +0 -5
- package/src/x_ite.css +14 -8
- package/src/x_ite.html +3 -3
- package/src/x_ite.js +2 -2
- package/x_ite.min.html +3 -3
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -812,5 +805,4 @@ function (Components,
|
|
|
812
805
|
|
|
813
806
|
|
|
814
807
|
|
|
815
|
-
})
|
|
816
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
808
|
+
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(){var module={},exports,process;const define=X3D.define,require=X3D.require;define("x_ite/Browser/Scripting/evaluate",[],function(){return function(){with(arguments[0])return eval(arguments[1])}}),define("x_ite/Components/Scripting/X3DScriptNode",["x_ite/Components/Core/X3DChildNode","x_ite/Components/Networking/X3DUrlObject","x_ite/Bits/X3DConstants"],function(t,e,i){"use strict";function n(n){t.call(this,n),e.call(this,n),this.addType(i.X3DScriptNode)}return n.prototype=Object.assign(Object.create(t.prototype),e.prototype,{constructor:n}),n}),define("x_ite/Components/Scripting/Script",["jquery","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Basic/X3DField","x_ite/Basic/X3DArrayField","x_ite/Fields","x_ite/Browser/X3DBrowser","x_ite/Configuration/ComponentInfo","x_ite/Configuration/ComponentInfoArray","x_ite/Configuration/ProfileInfo","x_ite/Configuration/ProfileInfoArray","x_ite/Configuration/UnitInfo","x_ite/Configuration/UnitInfoArray","x_ite/Execution/X3DExecutionContext","x_ite/Execution/X3DScene","x_ite/Prototype/ExternProtoDeclarationArray","x_ite/Prototype/ProtoDeclarationArray","x_ite/Prototype/X3DExternProtoDeclaration","x_ite/Prototype/X3DProtoDeclaration","x_ite/Routing/RouteArray","x_ite/Routing/X3DRoute","x_ite/Browser/Scripting/evaluate","x_ite/Components/Scripting/X3DScriptNode","x_ite/InputOutput/FileLoader","x_ite/Bits/X3DConstants","x_ite/Fields/SFNodeCache"],function(t,e,i,n,o,r,s,a,c,u,l,p,d,h,f,_,F,v,g,S,x,M,m,E,y,D){function w(t){m.call(this,t),this.addChildObjects("buffer",new r.MFString),this.addType(y.Script),this.pauseTime=0}return w.prototype=Object.assign(Object.create(m.prototype),{constructor:w,fieldDefinitions:new i([new e(y.inputOutput,"metadata",new r.SFNode),new e(y.inputOutput,"url",new r.MFString),new e(y.inputOutput,"autoRefresh",new r.SFTime),new e(y.inputOutput,"autoRefreshTimeLimit",new r.SFTime(3600)),new e(y.initializeOnly,"directOutput",new r.SFBool),new e(y.initializeOnly,"mustEvaluate",new r.SFBool)]),getTypeName:function(){return"Script"},getComponentName:function(){return"Scripting"},getContainerField:function(){return"children"},initialize:function(){m.prototype.initialize.call(this),this.url_.addInterest("set_url__",this),this.buffer_.addInterest("set_buffer__",this),this.getUserDefinedFields().forEach(function(t){t.setModificationTime(0)}),this.set_url__()},set_url__:function(){this.setLoadState(y.NOT_STARTED_STATE),this.requestImmediateLoad()},getExtendedEventHandling:function(){return!1},hasUserDefinedFields:function(){return!0},getSourceText:function(){return this.url_},requestImmediateLoad:function(t=!0){this.checkLoadState()!==y.COMPLETE_STATE&&this.checkLoadState()!==y.IN_PROGRESS_STATE&&0!==this.url_.length&&(this.setCache(t),this.setLoadState(y.IN_PROGRESS_STATE),this.buffer_=this.url_)},set_buffer__:function(){new E(this).loadScript(this.buffer_,function(t){null===t?this.setLoadState(y.FAILED_STATE):(this.setLoadState(y.COMPLETE_STATE),this.initialize__(t))}.bind(this))},getContext:function(t){try{const e=["initialize","prepareEvents","eventsProcessed","shutdown"];this.getUserDefinedFields().forEach(function(t){switch(t.getAccessType()){case y.inputOnly:e.push(t.getName());break;case y.inputOutput:e.push("set_"+t.getName())}}),t+="\n;var "+e.join(",")+";",t+="\n["+e.join(",")+"];",this.global=this.getGlobal();const i=this.evaluate(t),n={};for(let t=0;t<e.length;++t)n[e[t]]=i[t];return n}catch(t){return this.setError("while evaluating script source",t),{}}},evaluate:function(t){return M(this.global,t)},getGlobal:function(){function t(t){const e=M.createX3DFromString(String(t)),i=e.getRootNodes();if(E.addFieldInterest(e.isLive()),e.setLive(E.getValue()),e.setPrivate(m.getPrivate()),e.setExecutionContext(m),i.length&&i[0])return D.add(i[0].getValue(),this);throw new Error("SFNode.new: invalid argument, must be 'string' is 'undefined'.")}const M=this.getBrowser(),m=this.getExecutionContext(),E=this.isLive();t.prototype=r.SFNode.prototype;const w={NULL:{value:null},FALSE:{value:!1},TRUE:{value:!0},print:{value:function(){M.println.apply(M,arguments)}},trace:{value:function(){M.println.apply(M,arguments)}},Browser:{value:M},X3DConstants:{value:y},X3DBrowser:{value:s},X3DExecutionContext:{value:h},X3DScene:{value:f},ComponentInfo:{value:a},ComponentInfoArray:{value:c},ProfileInfo:{value:u},ProfileInfoArray:{value:l},UnitInfo:{value:p},UnitInfoArray:{value:d},ExternProtoDeclarationArray:{value:_},ProtoDeclarationArray:{value:F},X3DExternProtoDeclaration:{value:v},X3DProtoDeclaration:{value:g},RouteArray:{value:S},X3DRoute:{value:x},X3DFieldDefinition:{value:e},FieldDefinitionArray:{value:i},X3DField:{value:n},X3DArrayField:{value:o},SFColor:{value:r.SFColor},SFColorRGBA:{value:r.SFColorRGBA},SFImage:{value:r.SFImage},SFMatrix3d:{value:r.SFMatrix3d},SFMatrix3f:{value:r.SFMatrix3f},SFMatrix4d:{value:r.SFMatrix4d},SFMatrix4f:{value:r.SFMatrix4f},SFNode:{value:t},SFRotation:{value:r.SFRotation},SFVec2d:{value:r.SFVec2d},SFVec2f:{value:r.SFVec2f},SFVec3d:{value:r.SFVec3d},SFVec3f:{value:r.SFVec3f},SFVec4d:{value:r.SFVec4d},SFVec4f:{value:r.SFVec4f},VrmlMatrix:{value:r.VrmlMatrix},MFBool:{value:r.MFBool},MFColor:{value:r.MFColor},MFColorRGBA:{value:r.MFColorRGBA},MFDouble:{value:r.MFDouble},MFFloat:{value:r.MFFloat},MFImage:{value:r.MFImage},MFInt32:{value:r.MFInt32},MFMatrix3d:{value:r.MFMatrix3d},MFMatrix3f:{value:r.MFMatrix3f},MFMatrix4d:{value:r.MFMatrix4d},MFMatrix4f:{value:r.MFMatrix4f},MFNode:{value:r.MFNode},MFRotation:{value:r.MFRotation},MFString:{value:r.MFString},MFTime:{value:r.MFTime},MFVec2d:{value:r.MFVec2d},MFVec2f:{value:r.MFVec2f},MFVec3d:{value:r.MFVec3d},MFVec3f:{value:r.MFVec3f},MFVec4d:{value:r.MFVec4d},MFVec4f:{value:r.MFVec4f}};return this.getUserDefinedFields().forEach(function(t){const e=t.getName();t.getAccessType()!==y.inputOnly&&(e in w||(w[e]={get:t.valueOf.bind(t),set:t.setValue.bind(t)}),t.getAccessType()===y.inputOutput&&(w[e+"_changed"]={get:t.valueOf.bind(t),set:t.setValue.bind(t)}))}),Object.create(Object.prototype,w)},processOutstandingEvents:function(){this.getUserDefinedFields().forEach(function(e){if(!(e.getModificationTime()<=this.pauseTime))switch(e.getAccessType()){case y.inputOnly:{const i=this.context[e.getName()];t.isFunction(i)&&this.set_field__(e,i);break}case y.inputOutput:{const i=this.context["set_"+e.getName()];t.isFunction(i)&&this.set_field__(e,i);break}}},this)},initialize__:function(t){this.context=this.getContext(t),this.isLive().addInterest("set_live__",this),this.set_live__()},set_live__:function(){if(this.context)if(this.isLive().getValue()){if(!this.initialized){if(this.initialized=!0,t.isFunction(this.context.initialize)){const t=this.getBrowser();t.getScriptStack().push(this);try{this.context.initialize()}catch(t){this.setError("in function 'initialize'",t)}t.getScriptStack().pop()}t.isFunction(this.context.shutdown)&&t(window).on("unload",this.shutdown__.bind(this))}t.isFunction(this.context.prepareEvents)&&this.getBrowser().prepareEvents().addInterest("prepareEvents__",this),t.isFunction(this.context.eventsProcessed)&&this.addInterest("eventsProcessed__",this),this.getUserDefinedFields().forEach(function(e){switch(e.getAccessType()){case y.inputOnly:{const i=this.context[e.getName()];t.isFunction(i)&&e.addInterest("set_field__",this,i);break}case y.inputOutput:{const i=this.context["set_"+e.getName()];t.isFunction(i)&&e.addInterest("set_field__",this,i);break}}},this),this.processOutstandingEvents()}else this.context.prepareEvents&&this.getBrowser().prepareEvents().removeInterest("prepareEvents__",this),this.context.eventsProcessed&&this.removeInterest("eventsProcessed__",this),this.getUserDefinedFields().forEach(function(t){switch(t.getAccessType()){case y.inputOnly:case y.inputOutput:t.removeInterest("set_field__",this)}},this),this.initialized&&(this.pauseTime=performance.now())},prepareEvents__:function(){const t=this.getBrowser();t.getScriptStack().push(this);try{this.context.prepareEvents(t.getCurrentTime()),t.addBrowserEvent()}catch(t){this.setError("in function 'prepareEvents'",t)}t.getScriptStack().pop()},set_field__:function(t,e){const i=this.getBrowser();t.setTainted(!0),i.getScriptStack().push(this);try{e(t.valueOf(),i.getCurrentTime())}catch(e){this.setError("in function '"+t.getName()+"'",e)}i.getScriptStack().pop(),t.setTainted(!1)},eventsProcessed__:function(){const t=this.getBrowser();t.getScriptStack().push(this);try{this.context.eventsProcessed()}catch(t){this.setError("in function 'eventsProcessed'",t)}t.getScriptStack().pop()},shutdown__:function(){const t=this.getBrowser();t.getScriptStack().push(this);try{this.context.shutdown()}catch(t){this.setError("in function 'shutdown'",t)}t.getScriptStack().pop()},setError:function(t,e){console.error("JavaScript Error in Script '"+this.getName()+"', "+t+"\nworld url is '"+this.getExecutionContext().getWorldURL()+"':"),console.error(e)}}),w}),define(require.getComponentUrl("scripting"),["x_ite/Components","x_ite/Components/Scripting/Script","x_ite/Components/Scripting/X3DScriptNode"],function(t,e,i){"use strict";t.addComponent({name:"Scripting",types:{Script:e},abstractTypes:{X3DScriptNode:i}})})}();
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -10060,5 +10053,4 @@ function (Components,
|
|
|
10060
10053
|
|
|
10061
10054
|
|
|
10062
10055
|
|
|
10063
|
-
})
|
|
10064
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
10056
|
+
})();
|