bruce-cesium 3.0.7 → 3.0.8

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.
@@ -8874,21 +8874,20 @@
8874
8874
  }
8875
8875
  }
8876
8876
  else {
8877
- if (!(location === null || location === void 0 ? void 0 : location.latitude)) {
8878
- return;
8877
+ if ((location === null || location === void 0 ? void 0 : location.latitude) || (location === null || location === void 0 ? void 0 : location.longitude)) {
8878
+ var translationMatrix = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(EnsureNumber(transform.x), EnsureNumber(transform.y), EnsureNumber(transform.z)), new Cesium.Matrix4());
8879
+ var pos3d = Cesium.Cartesian3.fromDegrees(EnsureNumber(location.longitude), EnsureNumber(location.latitude), EnsureNumber(location.altitude));
8880
+ var m1 = Cesium.Transforms.eastNorthUpToFixedFrame(pos3d);
8881
+ var hpr = Cesium.HeadingPitchRoll.fromDegrees(EnsureNumber(transform.heading), EnsureNumber(transform.pitch), EnsureNumber(transform.roll), new Cesium.HeadingPitchRoll());
8882
+ var hprRotation = Cesium.Matrix3.fromHeadingPitchRoll(hpr);
8883
+ var scaleMatrix = Cesium.Matrix4.fromUniformScale(EnsureNumber(transform.scale), new Cesium.Matrix4());
8884
+ var combinedMatrix = Cesium.Matrix4.multiply(m1, translationMatrix, new Cesium.Matrix4());
8885
+ combinedMatrix = Cesium.Matrix4.multiply(combinedMatrix, Cesium.Matrix4.fromRotation(hprRotation), new Cesium.Matrix4());
8886
+ combinedMatrix = Cesium.Matrix4.multiply(combinedMatrix, scaleMatrix, new Cesium.Matrix4());
8887
+ root.transform = combinedMatrix;
8888
+ // Force matrix to update
8889
+ root.updateTransform();
8879
8890
  }
8880
- var translationMatrix = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(EnsureNumber(transform.x), EnsureNumber(transform.y), EnsureNumber(transform.z)), new Cesium.Matrix4());
8881
- var pos3d = Cesium.Cartesian3.fromDegrees(EnsureNumber(location.longitude), EnsureNumber(location.latitude), EnsureNumber(location.altitude));
8882
- var m1 = Cesium.Transforms.eastNorthUpToFixedFrame(pos3d);
8883
- var hpr = Cesium.HeadingPitchRoll.fromDegrees(EnsureNumber(transform.heading), EnsureNumber(transform.pitch), EnsureNumber(transform.roll), new Cesium.HeadingPitchRoll());
8884
- var hprRotation = Cesium.Matrix3.fromHeadingPitchRoll(hpr);
8885
- var scaleMatrix = Cesium.Matrix4.fromUniformScale(EnsureNumber(transform.scale), new Cesium.Matrix4());
8886
- var combinedMatrix = Cesium.Matrix4.multiply(m1, translationMatrix, new Cesium.Matrix4());
8887
- combinedMatrix = Cesium.Matrix4.multiply(combinedMatrix, Cesium.Matrix4.fromRotation(hprRotation), new Cesium.Matrix4());
8888
- combinedMatrix = Cesium.Matrix4.multiply(combinedMatrix, scaleMatrix, new Cesium.Matrix4());
8889
- root.transform = combinedMatrix;
8890
- // Force matrix to update
8891
- root.updateTransform();
8892
8891
  }
8893
8892
  // Store data in the tileset as we can't interpret it using the cesium primitive later.
8894
8893
  var cTilesetExt = cTileset;
@@ -18397,7 +18396,7 @@
18397
18396
  ViewerUtils.CreateWidgets = CreateWidgets;
18398
18397
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
18399
18398
 
18400
- var VERSION$1 = "3.0.7";
18399
+ var VERSION$1 = "3.0.8";
18401
18400
 
18402
18401
  exports.VERSION = VERSION$1;
18403
18402
  exports.CesiumParabola = CesiumParabola;