x_ite 8.6.17 → 8.6.18

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 (100) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +13 -13
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +28 -28
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -21
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -39
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +18 -18
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +27 -27
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +24 -24
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +22 -22
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +24 -23
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +20 -20
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +121 -193
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +30 -31
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +14 -14
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +174 -174
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +35 -33
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +9 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +407 -404
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.zip +0 -0
  45. package/docs/_config.yml +1 -1
  46. package/docs/_posts/reference/prototype-services.md +2 -2
  47. package/package.json +2 -2
  48. package/src/x_ite/Base/X3DBaseNode.js +8 -23
  49. package/src/x_ite/Base/X3DEventObject.js +1 -1
  50. package/src/x_ite/Base/X3DField.js +17 -18
  51. package/src/x_ite/Base/X3DObject.js +5 -1
  52. package/src/x_ite/Base/X3DObjectArrayField.js +12 -11
  53. package/src/x_ite/Base/X3DTypedArrayField.js +3 -3
  54. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +8 -6
  55. package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +2 -2
  56. package/src/x_ite/Browser/VERSION.js +1 -1
  57. package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +2 -2
  58. package/src/x_ite/Browser/X3DBrowser.js +17 -39
  59. package/src/x_ite/Components/Core/X3DNode.js +2 -2
  60. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +3 -8
  61. package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +3 -3
  62. package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +0 -8
  63. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +14 -12
  64. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +3 -3
  65. package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
  66. package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +1 -1
  67. package/src/x_ite/Components/Geospatial/GeoMetadata.js +0 -6
  68. package/src/x_ite/Components/Networking/Anchor.js +36 -33
  69. package/src/x_ite/Components/Networking/Inline.js +3 -3
  70. package/src/x_ite/Components/Networking/X3DUrlObject.js +74 -23
  71. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +6 -5
  72. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +2 -2
  73. package/src/x_ite/Components/Scripting/Script.js +93 -165
  74. package/src/x_ite/Components/Shaders/ComposedShader.js +3 -18
  75. package/src/x_ite/Components/Shaders/PackagedShader.js +0 -2
  76. package/src/x_ite/Components/Shaders/ShaderPart.js +4 -4
  77. package/src/x_ite/Components/Shaders/ShaderProgram.js +0 -2
  78. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -4
  79. package/src/x_ite/Components/Sound/AudioClip.js +3 -3
  80. package/src/x_ite/Components/Text/Text.js +2 -3
  81. package/src/x_ite/Components/Text/X3DFontStyleNode.js +4 -4
  82. package/src/x_ite/Components/Texturing/ImageTexture.js +3 -3
  83. package/src/x_ite/Components/Texturing/MovieTexture.js +3 -3
  84. package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +3 -3
  85. package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +3 -3
  86. package/src/x_ite/Components/Time/X3DTimeDependentNode.js +31 -25
  87. package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +1 -1
  88. package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +1 -1
  89. package/src/x_ite/Components/VolumeRendering/VolumeData.js +1 -1
  90. package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +11 -9
  91. package/src/x_ite/Execution/X3DExecutionContext.js +30 -32
  92. package/src/x_ite/Execution/X3DScene.js +6 -6
  93. package/src/x_ite/Fields/ArrayFields.js +2 -1
  94. package/src/x_ite/Fields/SFImage.js +0 -1
  95. package/src/x_ite/Fields/SFNode.js +4 -5
  96. package/src/x_ite/Parser/GLTF2Parser.js +45 -45
  97. package/src/x_ite/Parser/VRMLParser.js +2 -2
  98. package/src/x_ite/Parser/XMLParser.js +3 -3
  99. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
  100. package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
@@ -70,7 +70,7 @@ function ProximitySensor (executionContext)
70
70
 
71
71
  this .min = new Vector3 (0, 0, 0);
72
72
  this .max = new Vector3 (0, 0, 0);
73
- this .viewpointNode = null;
73
+ this .layerNode = null;
74
74
  this .modelMatrix = new Matrix4 ();
75
75
  this .inside = false;
76
76
  }
@@ -156,15 +156,17 @@ ProximitySensor .prototype = Object .assign (Object .create (X3DEnvironmentalSen
156
156
  {
157
157
  if (this .inside && this .getTraversed ())
158
158
  {
159
- if (this .viewpointNode)
159
+ if (this .layerNode)
160
160
  {
161
- const modelMatrix = this .modelMatrix;
161
+ const
162
+ viewpointNode = this .layerNode .getViewpoint (),
163
+ modelMatrix = this .modelMatrix;
162
164
 
163
- centerOfRotationMatrix .assign (this .viewpointNode .getModelMatrix ());
164
- centerOfRotationMatrix .translate (this .viewpointNode .getUserCenterOfRotation ());
165
+ centerOfRotationMatrix .assign (viewpointNode .getModelMatrix ());
166
+ centerOfRotationMatrix .translate (viewpointNode .getUserCenterOfRotation ());
165
167
  centerOfRotationMatrix .multRight (invModelMatrix .assign (modelMatrix) .inverse ());
166
168
 
167
- modelMatrix .multRight (this .viewpointNode .getViewMatrix ());
169
+ modelMatrix .multRight (viewpointNode .getViewMatrix ());
168
170
  modelMatrix .get (null, orientation);
169
171
  modelMatrix .inverse ();
170
172
 
@@ -176,13 +178,13 @@ ProximitySensor .prototype = Object .assign (Object .create (X3DEnvironmentalSen
176
178
 
177
179
  if (this ._isActive .getValue ())
178
180
  {
179
- if (! this ._position_changed .getValue () .equals (position))
181
+ if (!this ._position_changed .getValue () .equals (position))
180
182
  this ._position_changed = position;
181
183
 
182
- if (! this ._orientation_changed .getValue () .equals (orientation))
184
+ if (!this ._orientation_changed .getValue () .equals (orientation))
183
185
  this ._orientation_changed = orientation;
184
186
 
185
- if (! this ._centerOfRotation_changed .getValue () .equals (centerOfRotation))
187
+ if (!this ._centerOfRotation_changed .getValue () .equals (centerOfRotation))
186
188
  this ._centerOfRotation_changed = centerOfRotation;
187
189
  }
188
190
  else
@@ -204,8 +206,8 @@ ProximitySensor .prototype = Object .assign (Object .create (X3DEnvironmentalSen
204
206
  }
205
207
  }
206
208
 
207
- this .inside = false;
208
- this .viewpointNode = null;
209
+ this .inside = false;
210
+ this .layerNode = null;
209
211
 
210
212
  this .setTraversed (false);
211
213
  };
@@ -222,7 +224,7 @@ ProximitySensor .prototype = Object .assign (Object .create (X3DEnvironmentalSen
222
224
  {
223
225
  case TraverseType .CAMERA:
224
226
  {
225
- this .viewpointNode = renderObject .getViewpoint ();
227
+ this .layerNode = renderObject .getLayer ();
226
228
  this .modelMatrix .assign (renderObject .getModelViewMatrix () .get ());
227
229
  return;
228
230
  }
@@ -127,7 +127,7 @@ TransformSensor .prototype = Object .assign (Object .create (X3DEnvironmentalSen
127
127
  { },
128
128
  set_enabled__: function ()
129
129
  {
130
- if (this .getLive () .getValue () && this .targetObjectNode && this ._enabled .getValue () && ! this ._size. getValue () .equals (Vector3 .Zero))
130
+ if (this .getLive () .getValue () && this .targetObjectNode && this ._enabled .getValue () && !this ._size. getValue () .equals (Vector3 .Zero))
131
131
  {
132
132
  this .setPickableObject (true);
133
133
  this .getBrowser () .addTransformSensor (this);
@@ -228,10 +228,10 @@ TransformSensor .prototype = Object .assign (Object .create (X3DEnvironmentalSen
228
228
 
229
229
  if (this ._isActive .getValue ())
230
230
  {
231
- if (! this ._position_changed .getValue () .equals (position))
231
+ if (!this ._position_changed .getValue () .equals (position))
232
232
  this ._position_changed = position;
233
233
 
234
- if (! this ._orientation_changed .getValue () .equals (orientation))
234
+ if (!this ._orientation_changed .getValue () .equals (orientation))
235
235
  this ._orientation_changed = orientation;
236
236
  }
237
237
  else
@@ -112,7 +112,7 @@ VisibilitySensor .prototype = Object .assign (Object .create (X3DEnvironmentalSe
112
112
  {
113
113
  if (this .visible && this .getTraversed ())
114
114
  {
115
- if (! this ._isActive .getValue ())
115
+ if (!this ._isActive .getValue ())
116
116
  {
117
117
  this ._isActive = true;
118
118
  this ._enterTime = this .getBrowser () .getCurrentTime ();
@@ -82,7 +82,7 @@ X3DEnvironmentalSensorNode .prototype = Object .assign (Object .create (X3DSenso
82
82
  },
83
83
  set_live__: function ()
84
84
  {
85
- if (this ._traversed .getValue () && this .getLive () .getValue () && this ._enabled .getValue () && ! (this .zeroTest && this ._size. getValue () .equals (Vector3 .Zero)))
85
+ if (this ._traversed .getValue () && this .getLive () .getValue () && this ._enabled .getValue () && !(this .zeroTest && this ._size. getValue () .equals (Vector3 .Zero)))
86
86
  {
87
87
  this .getBrowser () .sensorEvents () .addInterest ("update", this);
88
88
  }
@@ -96,12 +96,6 @@ GeoMetadata .prototype = Object .assign (Object .create (X3DInfoNode .prototype)
96
96
  },
97
97
  requestImmediateLoad: function (cache = true)
98
98
  { },
99
- requestUnload: function ()
100
- { },
101
- set_load__: function ()
102
- { },
103
- set_url__: function ()
104
- { },
105
99
  dispose: function ()
106
100
  {
107
101
  X3DUrlObject .prototype .dispose .call (this);
@@ -114,18 +114,15 @@ Anchor .prototype = Object .assign (Object .create (X3DGroupingNode .prototype),
114
114
  this .touchSensorNode ._enabled = this ._load;
115
115
  this .touchSensorNode .setup ();
116
116
 
117
- // Modify set_active__ to get immediate response to user action (click event), otherwise links are not opened in this window.
117
+ // Modify set_active__ to get immediate response to user action (click event),
118
+ // otherwise links are not opened in this window.
118
119
 
119
- const
120
- anchor = this,
121
- set_active__ = this .touchSensorNode .set_active__;
122
-
123
- this .touchSensorNode .set_active__ = function (active, hit)
120
+ this .touchSensorNode .set_active__ = (active, hit) =>
124
121
  {
125
- set_active__ .call (this, active, hit);
122
+ TouchSensor .prototype .set_active__ .call (this .touchSensorNode, active, hit);
126
123
 
127
- if (this ._isOver .getValue () && ! active)
128
- anchor .requestImmediateLoad ();
124
+ if (this .touchSensorNode ._isOver .getValue () && !active)
125
+ this .requestImmediateLoad () .catch (Function .prototype);
129
126
  };
130
127
  },
131
128
  set_load__: function ()
@@ -137,34 +134,40 @@ Anchor .prototype = Object .assign (Object .create (X3DGroupingNode .prototype),
137
134
  this .setCache (cache);
138
135
  this .setLoadState (X3DConstants .IN_PROGRESS_STATE, false);
139
136
 
140
- new FileLoader (this) .createX3DFromURL (this ._url, this ._parameter,
141
- function (scene)
137
+ return new Promise ((resolve, reject) =>
142
138
  {
143
- if (scene)
139
+ new FileLoader (this) .createX3DFromURL (this ._url, this ._parameter,
140
+ (scene) =>
141
+ {
142
+ if (scene)
143
+ {
144
+ this .getBrowser () .replaceWorld (scene);
145
+ this .setLoadState (X3DConstants .COMPLETE_STATE, false);
146
+ resolve ();
147
+ }
148
+ else
149
+ {
150
+ this .setLoadState (X3DConstants .FAILED_STATE, false);
151
+ reject ();
152
+ }
153
+ },
154
+ (viewpointName) =>
144
155
  {
145
- this .getBrowser () .replaceWorld (scene);
156
+ this .getBrowser () .changeViewpoint (viewpointName);
146
157
  this .setLoadState (X3DConstants .COMPLETE_STATE, false);
147
- }
148
- else
149
- this .setLoadState (X3DConstants .FAILED_STATE, false);
150
- }
151
- .bind (this),
152
- function (viewpointName)
153
- {
154
- this .getBrowser () .changeViewpoint (viewpointName);
155
- this .setLoadState (X3DConstants .COMPLETE_STATE, false);
156
- }
157
- .bind (this),
158
- function (url, target)
159
- {
160
- if (target)
161
- window .open (url, target);
162
- else
163
- location = url;
158
+ resolve ();
159
+ },
160
+ (url, target) =>
161
+ {
162
+ if (target)
163
+ window .open (url, target);
164
+ else
165
+ location = url;
164
166
 
165
- this .setLoadState (X3DConstants .COMPLETE_STATE, false);
166
- }
167
- .bind (this));
167
+ this .setLoadState (X3DConstants .COMPLETE_STATE, false);
168
+ resolve ();
169
+ });
170
+ });
168
171
  },
169
172
  requestUnload ()
170
173
  { },
@@ -119,7 +119,7 @@ Inline .prototype = Object .assign (Object .create (X3DChildNode .prototype),
119
119
  this .groupNode ._isCameraObject .addFieldInterest (this ._isCameraObject);
120
120
  this .groupNode ._isPickableObject .addFieldInterest (this ._isPickableObject);
121
121
 
122
- this .requestImmediateLoad ();
122
+ this .requestImmediateLoad () .catch (Function .prototype);
123
123
  },
124
124
  getBBox: function (bbox, shadows)
125
125
  {
@@ -137,12 +137,12 @@ Inline .prototype = Object .assign (Object .create (X3DChildNode .prototype),
137
137
 
138
138
  this .scene .setLive (this .getLive () .getValue ());
139
139
  },
140
- unLoadNow: function ()
140
+ unloadData: function ()
141
141
  {
142
142
  this .abortLoading ();
143
143
  this .setInternalScene (this .getBrowser () .getDefaultScene ());
144
144
  },
145
- loadNow: function ()
145
+ loadData: function ()
146
146
  {
147
147
  this .abortLoading ();
148
148
  this .fileLoader = new FileLoader (this) .createX3DFromURL (this ._url, null, this .setInternalSceneAsync .bind (this));
@@ -45,8 +45,9 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- import Fields from "../../Fields.js";
49
- import X3DConstants from "../../Base/X3DConstants.js";
48
+ import Fields from "../../Fields.js";
49
+ import X3DConstants from "../../Base/X3DConstants.js";
50
+ import X3DProtoDeclaration from "../../Prototype/X3DProtoDeclaration.js";
50
51
 
51
52
  const
52
53
  _cache = Symbol (),
@@ -59,7 +60,7 @@ function X3DUrlObject (executionContext)
59
60
  this .addType (X3DConstants .X3DUrlObject);
60
61
 
61
62
  this .addChildObjects ("loadState", new Fields .SFInt32 (X3DConstants .NOT_STARTED_STATE),
62
- "loadNow", new Fields .SFTime ());
63
+ "loadData", new Fields .SFTime ());
63
64
 
64
65
  this [_cache] = true;
65
66
  this [_autoRefreshStartTime] = Date .now ();
@@ -74,7 +75,7 @@ X3DUrlObject .prototype =
74
75
 
75
76
  this ._load .addInterest ("set_load__", this);
76
77
  this ._url .addInterest ("set_url__", this);
77
- this ._loadNow .addInterest ("loadNow", this);
78
+ this ._loadData .addInterest ("loadData", this);
78
79
  this ._autoRefresh .addInterest ("set_autoRefresh__", this);
79
80
  this ._autoRefreshTimeLimit .addInterest ("set_autoRefresh__", this);
80
81
  },
@@ -126,27 +127,73 @@ X3DUrlObject .prototype =
126
127
  },
127
128
  requestImmediateLoad: function (cache = true)
128
129
  {
129
- const loadState = this .checkLoadState ();
130
+ return new Promise ((resolve, reject) =>
131
+ {
132
+ const loading = () =>
133
+ {
134
+ const _loading = Symbol ();
130
135
 
131
- if (loadState === X3DConstants .COMPLETE_STATE || loadState === X3DConstants .IN_PROGRESS_STATE)
132
- return;
136
+ this ._loadState .addFieldCallback (_loading, () =>
137
+ {
138
+ switch (this .checkLoadState ())
139
+ {
140
+ case X3DConstants .COMPLETE_STATE:
141
+ this ._loadState .removeFieldCallback (_loading);
142
+ resolve ();
143
+ break;
144
+ case X3DConstants .FAILED_STATE:
145
+ this ._loadState .removeFieldCallback (_loading);
146
+ reject ();
147
+ break;
148
+ }
149
+ })
150
+ };
133
151
 
134
- if (!this ._load .getValue ())
135
- return;
152
+ const loadState = this .checkLoadState ();
136
153
 
137
- if (this ._url .length === 0)
138
- return;
154
+ if (loadState === X3DConstants .COMPLETE_STATE)
155
+ {
156
+ resolve ();
157
+ return;
158
+ }
139
159
 
140
- this .setCache (cache);
141
- this .setLoadState (X3DConstants .IN_PROGRESS_STATE);
160
+ if (loadState === X3DConstants .IN_PROGRESS_STATE)
161
+ {
162
+ loading ();
163
+ return;
164
+ }
142
165
 
143
- if (this .isInitialized ())
144
- // Buffer prevents double load of the scene if load and url field are set at the same time.
145
- this ._loadNow = this .getBrowser () .getCurrentTime ();
146
- else
147
- this .loadNow ();
166
+ if (!this ._load .getValue ())
167
+ {
168
+ reject ();
169
+ return;
170
+ }
171
+
172
+ if (this ._url .length === 0)
173
+ {
174
+ resolve ();
175
+ return;
176
+ }
177
+
178
+ this .setCache (cache);
179
+ this .setLoadState (X3DConstants .IN_PROGRESS_STATE);
180
+
181
+ if (this .isInitialized ())
182
+ // Buffer prevents double load of the scene if load and url field are set at the same time.
183
+ this ._loadData = this .getBrowser () .getCurrentTime ();
184
+ else
185
+ this .loadData ();
186
+
187
+ loading ();
188
+ });
148
189
  },
149
190
  loadNow: function ()
191
+ {
192
+ this .setLoadState (X3DConstants .NOT_STARTED_STATE);
193
+
194
+ return this .requestImmediateLoad ();
195
+ },
196
+ loadData: function ()
150
197
  { },
151
198
  requestUnload: function ()
152
199
  {
@@ -156,9 +203,13 @@ X3DUrlObject .prototype =
156
203
  return;
157
204
 
158
205
  this .setLoadState (X3DConstants .NOT_STARTED_STATE);
159
- this .unLoadNow ();
206
+ this .unloadData ();
207
+ },
208
+ unloadNow: function ()
209
+ {
210
+ this .requestUnload ();
160
211
  },
161
- unLoadNow: function ()
212
+ unloadData: function ()
162
213
  { },
163
214
  setAutoRefreshTimer: function (autoRefreshInterval)
164
215
  {
@@ -180,7 +231,7 @@ X3DUrlObject .prototype =
180
231
  performAutoRefresh: function ()
181
232
  {
182
233
  this .setLoadState (X3DConstants .NOT_STARTED_STATE);
183
- this .requestImmediateLoad (false);
234
+ this .requestImmediateLoad (false) .catch (Function .prototype);
184
235
  },
185
236
  set_live__: function ()
186
237
  {
@@ -192,7 +243,7 @@ X3DUrlObject .prototype =
192
243
  set_load__: function ()
193
244
  {
194
245
  if (this ._load .getValue ())
195
- this .requestImmediateLoad ();
246
+ this .requestImmediateLoad () .catch (Function .prototype);
196
247
  else
197
248
  this .requestUnload ();
198
249
  },
@@ -202,7 +253,7 @@ X3DUrlObject .prototype =
202
253
  return;
203
254
 
204
255
  this .setLoadState (X3DConstants .NOT_STARTED_STATE);
205
- this .requestImmediateLoad ();
256
+ this .requestImmediateLoad () .catch (Function .prototype);
206
257
  },
207
258
  set_autoRefresh__: function ()
208
259
  {
@@ -124,18 +124,19 @@ X3DPickSensorNode .prototype = Object .assign (Object .create (X3DSensorNode .pr
124
124
  },
125
125
  getPickShape: (function ()
126
126
  {
127
- var pickShapes = new WeakMap ();
127
+ const pickShapes = new WeakMap ();
128
128
 
129
129
  return function (geometryNode)
130
130
  {
131
- var pickShape = pickShapes .get (geometryNode);
131
+ const pickShape = pickShapes .get (geometryNode);
132
132
 
133
133
  if (pickShape !== undefined)
134
134
  return pickShape;
135
135
 
136
- var
137
- shapeNode = this .getExecutionContext () .createNode ("Shape", { setup: false, warn: false }),
138
- collidableShapeNode = this .getExecutionContext () .createNode ("CollidableShape", { setup: false, warn: false });
136
+ const
137
+ browser = this .getBrowser (),
138
+ shapeNode = browser .getPrivateScene () .createNode ("Shape", false),
139
+ collidableShapeNode = browser .getPrivateScene () .createNode ("CollidableShape", false);
139
140
 
140
141
  shapeNode .setPrivate (true);
141
142
  collidableShapeNode .setPrivate (true);
@@ -259,12 +259,12 @@ CollisionSensor .prototype = Object .assign (Object .create (X3DSensorNode .prot
259
259
  })(),
260
260
  getContact: function (index)
261
261
  {
262
- var contactNode = this .contactCache [index];
262
+ const contactNode = this .contactCache [index];
263
263
 
264
264
  if (contactNode)
265
265
  return contactNode;
266
266
 
267
- contactNode = this .contactCache [index] = this .getExecutionContext () .createNode ("Contact", { setup: false });
267
+ contactNode = this .contactCache [index] = this .getExecutionContext () .createNode ("Contact", false);
268
268
 
269
269
  contactNode .setup ();
270
270