Skip to content

Commit

Permalink
fix: fixed prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jfayot committed Nov 9, 2024
1 parent 32c8e63 commit e69487a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 30 deletions.
35 changes: 11 additions & 24 deletions Apps/Sandcastle/gallery/Entity tracking.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -21,10 +21,7 @@
></script>
<script type="module" src="../load-cesium-es6.js"></script>
</head>
<body
class="sandcastle-loading"
data-sandcastle-bucket="bucket-requirejs.html"
>
<body class="sandcastle-loading" data-sandcastle-bucket="bucket-requirejs.html">
<style>
@import url(../templates/bucket.css);
</style>
Expand All @@ -45,16 +42,12 @@

const startTime = Cesium.JulianDate.fromIso8601("2012-03-15T10:00:00Z");

const satelliteStopTime = Cesium.JulianDate.fromIso8601(
"2012-03-16T10:00:00Z"
);
const satelliteStopTime = Cesium.JulianDate.fromIso8601("2012-03-16T10:00:00Z");

const droneStopTime = Cesium.JulianDate.fromIso8601(
"2012-03-15T10:00:30Z"
);
const droneStopTime = Cesium.JulianDate.fromIso8601("2012-03-15T10:00:30Z");

const dataSource = await viewer.dataSources.add(
Cesium.CzmlDataSource.load("../../SampleData/tracking.czml")
Cesium.CzmlDataSource.load("../../SampleData/tracking.czml"),
);

const satellite = dataSource.entities.getById("Satellite/ISS");
Expand Down Expand Up @@ -83,28 +76,22 @@
{
text: "Tracking reference frame: Auto-detect",
onselect: function () {
satellite.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.AUTODETECT;
drone.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.AUTODETECT;
satellite.trackingReferenceFrame = Cesium.TrackingReferenceFrame.AUTODETECT;
drone.trackingReferenceFrame = Cesium.TrackingReferenceFrame.AUTODETECT;
},
},
{
text: "Tracking reference frame: Inertial",
onselect: function () {
satellite.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.INERTIAL;
drone.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.INERTIAL;
satellite.trackingReferenceFrame = Cesium.TrackingReferenceFrame.INERTIAL;
drone.trackingReferenceFrame = Cesium.TrackingReferenceFrame.INERTIAL;
},
},
{
text: "Tracking reference frame: Velocity",
onselect: function () {
satellite.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.VELOCITY;
drone.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.VELOCITY;
satellite.trackingReferenceFrame = Cesium.TrackingReferenceFrame.VELOCITY;
drone.trackingReferenceFrame = Cesium.TrackingReferenceFrame.VELOCITY;
},
},
]);
Expand Down
6 changes: 2 additions & 4 deletions Apps/Sandcastle/gallery/Interpolation.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,13 @@
{
text: "Tracking reference frame: East-North-Up",
onselect: function () {
entity.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.EAST_NORTH_UP;
entity.trackingReferenceFrame = Cesium.TrackingReferenceFrame.EAST_NORTH_UP;
},
},
{
text: "Tracking reference frame: Inertial",
onselect: function () {
entity.trackingReferenceFrame =
Cesium.TrackingReferenceFrame.INERTIAL;
entity.trackingReferenceFrame = Cesium.TrackingReferenceFrame.INERTIAL;
},
},
]);
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/Source/DataSources/Entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function Entity(options) {
this._show = defaultValue(options.show, true);
this._trackingReferenceFrame = defaultValue(
options.trackingReferenceFrame,
TrackingReferenceFrame.AUTODETECT
TrackingReferenceFrame.AUTODETECT,
);
this._parent = undefined;
this._propertyNames = [
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/Specs/DataSources/EntitySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("DataSources/Entity", function () {
expect(entity.wall).toBeUndefined();
expect(entity.entityCollection).toBeUndefined();
expect(entity.trackingReferenceFrame).toBe(
TrackingReferenceFrame.AUTODETECT
TrackingReferenceFrame.AUTODETECT,
);

const options = {
Expand Down

0 comments on commit e69487a

Please sign in to comment.