teleportxr 1.0.75 → 1.0.76

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 (2) hide show
  1. package/package.json +1 -1
  2. package/scene/node.js +4 -4
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "name": "teleportxr",
18
18
  "description": "Teleport Spatial Server on node.js",
19
- "version": "1.0.75",
19
+ "version": "1.0.76",
20
20
  "repository": {
21
21
  "type": "git",
22
22
  "url": "git+https://github.com/simul/teleport-nodejs.git"
package/scene/node.js CHANGED
@@ -267,12 +267,12 @@ class Node {
267
267
  this.components.push(m);
268
268
  }
269
269
  setCanvasComponent(canvas_path) {
270
- this. components.forEach((component) => {
270
+ this.components.forEach((component) => {
271
271
  if (component.getType() == NodeDataType.TextCanvas) {
272
272
  component.canvasPath = canvas_path;
273
273
  component.data_uid = resources.GetResourceUidFromUrl(
274
- core.GeometryPayloadType.FontAtlas,
275
- canvas_name
274
+ core.GeometryPayloadType.TextCanvas,
275
+ canvas_path
276
276
  );
277
277
  return;
278
278
  }
@@ -280,7 +280,7 @@ class Node {
280
280
  var tc = new TextCanvasComponent();
281
281
  tc.canvasPath = canvas_path;
282
282
  tc.data_uid = resources.GetResourceUidFromUrl(
283
- core.GeometryPayloadType.FontAtlas,
283
+ core.GeometryPayloadType.TextCanvas,
284
284
  canvas_path
285
285
  );
286
286
  this.components.push(tc);