Skip to content

Commit

Permalink
Change all double quotes, ", to single quotes, ', except for "use str…
Browse files Browse the repository at this point in the history
…ict"
  • Loading branch information
mramato committed Jun 8, 2012
1 parent 6ade5e0 commit d8032f3
Show file tree
Hide file tree
Showing 239 changed files with 4,773 additions and 4,773 deletions.
24 changes: 12 additions & 12 deletions Examples/Sandbox/CodeSnippets/Advanced.js
Expand Up @@ -27,18 +27,18 @@
};

Sandbox.ExamplePrimitive.prototype.update = function(context, sceneState) {
var vs = "";
vs += "attribute vec4 position;";
vs += "void main()";
vs += "{";
vs += " gl_Position = agi_modelViewProjection * position;";
vs += "}";
var fs = "";
fs += "uniform vec4 u_color;";
fs += "void main()";
fs += "{";
fs += " gl_FragColor = u_color;";
fs += "}";
var vs = '';
vs += 'attribute vec4 position;';
vs += 'void main()';
vs += '{';
vs += ' gl_Position = agi_modelViewProjection * position;';
vs += '}';
var fs = '';
fs += 'uniform vec4 u_color;';
fs += 'void main()';
fs += '{';
fs += ' gl_FragColor = u_color;';
fs += '}';

var zLength = this._ellipsoid.getRadii().getMaximumComponent() * 0.1;
var mesh = Cesium.MeshFilters.toWireframeInPlace(
Expand Down
24 changes: 12 additions & 12 deletions Examples/Sandbox/CodeSnippets/Billboard.js
Expand Up @@ -14,15 +14,15 @@
});
primitives.add(billboards);
};
image.src = "Images/logoColor.png";
image.src = 'Images/logoColor.png';
};
};

Sandbox.SeveralBillboards = function (scene, ellipsoid, primitives) {
this.code = function () {
Cesium.Chain.run(
Cesium.Jobs.downloadImage("Images/logoColor.png"),
Cesium.Jobs.downloadImage("Images/facility.gif")).thenRun(
Cesium.Jobs.downloadImage('Images/logoColor.png'),
Cesium.Jobs.downloadImage('Images/facility.gif')).thenRun(
function () {
// Once both images are downloaded, they are combined into one image,
// called a texture atlas, which is assigned to a billboard-collection.
Expand All @@ -31,8 +31,8 @@

var billboards = new Cesium.BillboardCollection(undefined);
billboards.setTextureAtlas(scene.getContext().createTextureAtlas([
this.images["Images/logoColor.png"],
this.images["Images/facility.gif"]
this.images['Images/logoColor.png'],
this.images['Images/facility.gif']
]));

billboards.add({
Expand Down Expand Up @@ -63,14 +63,14 @@
//
// The 2D canvas can draw much more than circles. See:
// https://developer.mozilla.org/en/Canvas_tutorial
var canvas = document.createElement("canvas");
var canvas = document.createElement('canvas');
canvas.width = 16;
canvas.height = 16;
var context2D = canvas.getContext("2d");
var context2D = canvas.getContext('2d');
context2D.beginPath();
context2D.arc(8, 8, 8, 0, Cesium.Math.TWO_PI, true);
context2D.closePath();
context2D.fillStyle="rgb(255, 255, 255)";
context2D.fillStyle='rgb(255, 255, 255)';
context2D.fill();

var billboards = new Cesium.BillboardCollection(undefined);
Expand Down Expand Up @@ -189,7 +189,7 @@
});
primitives.add(billboards);
};
image.src = "Images/whiteShapes.png";
image.src = 'Images/whiteShapes.png';
};
};

Expand All @@ -212,7 +212,7 @@
});
primitives.add(billboards);
};
image.src = "Images/logoColor.png";
image.src = 'Images/logoColor.png';
};
};

Expand All @@ -236,7 +236,7 @@

primitives.add(billboards);
};
image.src = "Images/logoColor.png";
image.src = 'Images/logoColor.png';
};
};

Expand All @@ -255,7 +255,7 @@
billboards.add({ position : new Cesium.Cartesian3(0.0, 0.0, 1000000.0) }); // up
primitives.add(billboards);
};
image.src = "Images/facility.gif";
image.src = 'Images/facility.gif';
};
};

Expand Down
8 changes: 4 additions & 4 deletions Examples/Sandbox/CodeSnippets/Imagery.js
Expand Up @@ -6,7 +6,7 @@
this.code = function () {
// Bing Maps
var bing = new Cesium.BingMapsTileProvider({
server : "dev.virtualearth.net",
server : 'dev.virtualearth.net',
mapStyle : Cesium.BingMapsStyle.AERIAL,
// Some versions of Safari support WebGL, but don't correctly implement
// cross-origin image loading, so we need to load Bing imagery using a proxy.
Expand Down Expand Up @@ -86,7 +86,7 @@
Sandbox.Single = function (scene, ellipsoid, primitives) {
this.code = function () {
// Single texture
var single = new Cesium.SingleTileProvider("Images/NE2_50M_SR_W_4096.jpg");
var single = new Cesium.SingleTileProvider('Images/NE2_50M_SR_W_4096.jpg');

primitives.getCentralBody().dayTileProvider = single;
};
Expand All @@ -96,15 +96,15 @@
this.code = function () {
// Bing Maps
var bing = new Cesium.BingMapsTileProvider({
server : "dev.virtualearth.net",
server : 'dev.virtualearth.net',
mapStyle : Cesium.BingMapsStyle.AERIAL,
// Some versions of Safari support WebGL, but don't correctly implement
// cross-origin image loading, so we need to load Bing imagery using a proxy.
proxy : Cesium.FeatureDetection.supportsCrossOriginImagery() ? undefined : new Cesium.DefaultProxy('/proxy/')
});

// Single texture
var single = new Cesium.SingleTileProvider("Images/NE2_50M_SR_W_4096.jpg");
var single = new Cesium.SingleTileProvider('Images/NE2_50M_SR_W_4096.jpg');

// Composite tile provider
var composite = new Cesium.CompositeTileProvider([{
Expand Down
22 changes: 11 additions & 11 deletions Examples/Sandbox/CodeSnippets/Label.js
Expand Up @@ -7,7 +7,7 @@
var labels = new Cesium.LabelCollection(undefined);
labels.add({
position : ellipsoid.cartographicDegreesToCartesian(new Cesium.Cartographic2(-75.10, 39.57)),
text : "Philadelphia"
text : 'Philadelphia'
});

primitives.add(labels);
Expand All @@ -19,15 +19,15 @@
var labels = new Cesium.LabelCollection(undefined);
labels.add({
position : ellipsoid.cartographicDegreesToCartesian(new Cesium.Cartographic2(-75.10, 39.57)),
text : "Philadelphia"
text : 'Philadelphia'
});
labels.add({
position : ellipsoid.cartographicDegreesToCartesian(new Cesium.Cartographic2(-80.50, 35.14)),
text : "Charlotte"
text : 'Charlotte'
});
labels.add({
position : ellipsoid.cartographicDegreesToCartesian(new Cesium.Cartographic2(-80.12, 25.46)),
text : "Miami"
text : 'Miami'
});

primitives.add(labels);
Expand All @@ -39,9 +39,9 @@
var labels = new Cesium.LabelCollection(undefined);
labels.add({
position : ellipsoid.cartographicDegreesToCartesian(new Cesium.Cartographic2(-75.10, 39.57)),
text : "Philadelphia",
text : 'Philadelphia',
// CSS font-family
font : "36px Helvetica",
font : '36px Helvetica',
fillColor : { red : 0.0, blue : 1.0, green : 1.0, alpha : 1.0 },
outlineColor : { red : 0.0, blue : 0.0, green : 0.0, alpha : 1.0 },
style : Cesium.LabelStyle.FILL_AND_OUTLINE
Expand All @@ -56,7 +56,7 @@
var labels = new Cesium.LabelCollection(undefined);
var l = labels.add({
position : ellipsoid.cartographicDegreesToCartesian(new Cesium.Cartographic2(-75.10, 39.57)),
text : "Philadelphia"
text : 'Philadelphia'
});

l.setPosition(ellipsoid.cartographicDegreesToCartesian(new Cesium.Cartographic3(-75.10, 39.57, 300000.0)));
Expand All @@ -74,19 +74,19 @@
labels.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(center);
labels.add({
position : new Cesium.Cartesian3(0.0, 0.0, 0.0),
text : "Center"
text : 'Center'
});
labels.add({
position : new Cesium.Cartesian3(1000000.0, 0.0, 0.0),
text : "East"
text : 'East'
});
labels.add({
position : new Cesium.Cartesian3(0.0, 1000000.0, 0.0),
text : "North"
text : 'North'
});
labels.add({
position : new Cesium.Cartesian3(0.0, 0.0, 1000000.0),
text : "Up"
text : 'Up'
});

primitives.add(labels);
Expand Down
10 changes: 5 additions & 5 deletions Examples/Sandbox/CodeSnippets/Picking.js
Expand Up @@ -15,11 +15,11 @@
if (p) {
var d = Cesium.Math.cartographic2ToDegrees(ellipsoid.toCartographic2(p));
label.setShow(true);
label.setText("(" + d.longitude.toFixed(2) + ", " + d.latitude.toFixed(2) + ")");
label.setText('(' + d.longitude.toFixed(2) + ', ' + d.latitude.toFixed(2) + ')');
label.setPosition(p);
}
else {
label.setText("");
label.setText('');
}
},
Cesium.MouseEventType.MOVE
Expand Down Expand Up @@ -70,7 +70,7 @@
});
primitives.add(billboards);
};
image.src = "Images/logoColor.png";
image.src = 'Images/logoColor.png';
};

this.clear = function () {
Expand Down Expand Up @@ -164,7 +164,7 @@
billboard.highlighted = true;
primitives.add(billboards);
};
image.src = "Images/logoColor.png";
image.src = 'Images/logoColor.png';
};

this.clear = function () {
Expand Down Expand Up @@ -298,7 +298,7 @@
// Prevent multiple erosions
eroding = true;

scene.getAnimations().addProperty(sensor, "erosion", 1.0, 0.0, {
scene.getAnimations().addProperty(sensor, 'erosion', 1.0, 0.0, {
onComplete : function() {
sensors.remove(sensor);
}
Expand Down
6 changes: 3 additions & 3 deletions Examples/Sandbox/CodeSnippets/Polygon.js
Expand Up @@ -153,7 +153,7 @@
tRepeat : 1
});
};
image.src = "../../Images/Cesium_Logo_Color.jpg";
image.src = '../../Images/Cesium_Logo_Color.jpg';

primitives.add(polygon);
};
Expand Down Expand Up @@ -249,7 +249,7 @@
});
primitives.add(polygon);

scene.getAnimations().addProperty(polygon, "erosion", 0.0, 1.0);
scene.getAnimations().addProperty(polygon, 'erosion', 0.0, 1.0);
};
};

Expand Down Expand Up @@ -287,7 +287,7 @@
});
primitives.add(polygon);

scene.getAnimations().addProperty(polygon, "height", 2000000.0, 0.0);
scene.getAnimations().addProperty(polygon, 'height', 2000000.0, 0.0);
};
};

Expand Down
2 changes: 1 addition & 1 deletion Examples/Sandbox/CodeSnippets/SensorVolumes.js
Expand Up @@ -444,7 +444,7 @@
});
primitives.add(sensors);

scene.getAnimations().addProperty(sensor, "erosion", 0.0, 1.0);
scene.getAnimations().addProperty(sensor, 'erosion', 0.0, 1.0);
};

this.camera = camera;
Expand Down

1 comment on commit d8032f3

@pjcozzi
Copy link
Contributor

@pjcozzi pjcozzi commented on d8032f3 Jun 8, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mramato I assume the tests ran OK?

Please sign in to comment.