@vived/app 4.35.2 → 4.35.3

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.
@@ -73,11 +73,9 @@ class SerializeHideableObjectsImp extends SerializeHideableObjects {
73
73
  }
74
74
  });
75
75
  hiddenObjectsIds.forEach((remainingObjectId) => {
76
- const appObject = this.appObjects.get(remainingObjectId);
77
- if (appObject) {
78
- const hideable = Hideable_1.Hideable.addIfMissing(appObject);
79
- hideable.isHidden = true;
80
- }
76
+ const appObject = this.appObjects.getOrCreate(remainingObjectId);
77
+ const hideable = Hideable_1.Hideable.addIfMissing(appObject);
78
+ hideable.isHidden = true;
81
79
  });
82
80
  }
83
81
  applyDefaultState() {
@@ -70,10 +70,8 @@ class SerializeCustomLabelsImp extends SerializeCustomLabels {
70
70
  });
71
71
  customLabelsLookup.forEach((customLabel, objectId) => {
72
72
  const appObject = this.appObjects.getOrCreate(objectId);
73
- if (appObject) {
74
- const label = Entities_1.LabelEntity.addIfMissing(appObject);
75
- label.custom = customLabel;
76
- }
73
+ const label = Entities_1.LabelEntity.addIfMissing(appObject);
74
+ label.custom = customLabel;
77
75
  });
78
76
  }
79
77
  applyDefaultState() {
@@ -71,10 +71,8 @@ class SerializeOverlayColoredObjectsImp extends SerializeOverlayColoredObjects {
71
71
  });
72
72
  overlayLookup.forEach((desiredColor, remainingObjectId) => {
73
73
  const appObject = this.appObjects.getOrCreate(remainingObjectId);
74
- if (appObject) {
75
- const overlayColor = OverlayColor_1.OverlayColor.addIfMissing(appObject);
76
- overlayColor.overlayColor = desiredColor;
77
- }
74
+ const overlayColor = OverlayColor_1.OverlayColor.addIfMissing(appObject);
75
+ overlayColor.overlayColor = desiredColor;
78
76
  });
79
77
  }
80
78
  applyDefaultState() {
@@ -70,11 +70,9 @@ class SerializeTransparentObjectsImp extends SerializeTransparentObjects {
70
70
  }
71
71
  });
72
72
  transparentObjectsIds.forEach((remainingObjectId) => {
73
- const appObject = this.appObjects.get(remainingObjectId);
74
- if (appObject) {
75
- const hideable = Entities_1.Transparency.addIfMissing(appObject);
76
- hideable.isTransparent = true;
77
- }
73
+ const appObject = this.appObjects.getOrCreate(remainingObjectId);
74
+ const hideable = Entities_1.Transparency.addIfMissing(appObject);
75
+ hideable.isTransparent = true;
78
76
  });
79
77
  }
80
78
  applyDefaultState() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vived/app",
3
- "version": "4.35.2",
3
+ "version": "4.35.3",
4
4
  "description": "Public package for the VIVED Learning App system",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",