janusweb 1.5.34 → 1.5.38

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.
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  function getTagRegexp(tagName, anchored) {
53
- return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i");
53
+ return new RegExp((anchored ? "^" : "") + "<\/\\s*" + tagName + "\\s*>", "i");
54
54
  }
55
55
 
56
56
  function addTags(from, to) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "janusweb",
3
3
  "description": "Web client for JanusVR worlds",
4
- "version": "1.5.34",
4
+ "version": "1.5.38",
5
5
  "main": "scripts/janusweb.js",
6
6
  "author": "James Baicoianu",
7
7
  "license": "MIT",
@@ -286,7 +286,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
286
286
  this.ghost.setHeadOrientation(this.head.orientation, true);
287
287
  if (this.ghost._target.head) {
288
288
  //this.ghost._target.face.position.copy(this.head.position);
289
- this.ghost.head.orientation.copy(this.head.orientation).invert();
289
+ this.ghost.head.orientation.copy(this.head.orientation);
290
290
  }
291
291
  }
292
292
  }
@@ -373,7 +373,6 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
373
373
  if (this.head) {
374
374
  this.head.objects['3d'].matrixWorld.extractBasis(v.view_xdir, v.view_ydir, v.view_zdir);
375
375
  v.head_pos.setFromMatrixPosition(this.head.objects['3d'].matrixWorld);
376
- v.view_zdir.negate();
377
376
  }
378
377
 
379
378
  if (this.gaze && this.gaze.object) {
@@ -491,7 +490,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
491
490
  avatar_src: 'data:text/plain,' + encodeURIComponent(avatar),
492
491
  showlabel: false,
493
492
  //pos: V(0, -this.fatness, 0),
494
- rotation: V(0, 180, 0),
493
+ //rotation: V(0, 180, 0),
495
494
  renderorder: 101,
496
495
  });
497
496
  this.ghost.orientation.set(0,1,0,0);
@@ -655,7 +654,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
655
654
  avatar_src: 'data:text/plain,' + encodeURIComponent(avatar),
656
655
  showlabel: false,
657
656
  //pos: V(0, -this.fatness, 0),
658
- rotation: V(0, 180, 0),
657
+ //rotation: V(0, 180, 0),
659
658
  renderorder: 101,
660
659
  });
661
660
 
package/scripts/portal.js CHANGED
@@ -3,7 +3,7 @@ elation.require(['janusweb.janusbase'], function() {
3
3
  this.postinit = function() {
4
4
  this.defineProperties({
5
5
  'url': { type: 'string', set: this.updateTitle },
6
- 'title': { type: 'string' },
6
+ 'title': { type: 'string', set: this.updateTitle },
7
7
  'janus': { type: 'object' },
8
8
  'room': { type: 'object' },
9
9
  //'color': { type: 'color', default: new THREE.Color(0xffffff), set: this.updateMaterial },
@@ -11,7 +11,6 @@ elation.require(['janusweb.janusbase'], function() {
11
11
  'open': { type: 'boolean', default: false },
12
12
  'collision_id': { type: 'string', default: 'cube', set: this.updateCollider },
13
13
  'collision_scale': { type: 'vector3', set: this.updateCollider },
14
- 'title': { type: 'string', set: this.updateTitle },
15
14
  'seamless': { type: 'boolean', default: false },
16
15
  'draw_text': { type: 'boolean', default: true, set: this.updateTitle },
17
16
  'draw_glow': { type: 'boolean', default: true, refreshGeometry: true},
package/utils/init.sh CHANGED
@@ -32,6 +32,6 @@ if [ ! -d elation ]; then
32
32
 
33
33
  cd ..
34
34
  ./elation web init
35
- ./elation component enable elation engine physics share elements janusweb ui utils
35
+ ./elation component enable elation engine physics share elements janusweb utils
36
36
  fi
37
37
  echo "done"