Skip to content

Commit

Permalink
Merge pull request #2729 from icholy/master
Browse files Browse the repository at this point in the history
Fix type annotations
  • Loading branch information
hpinkos committed May 19, 2015
2 parents 0af79be + 9fed54c commit d880e17
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Source/Core/GeographicTilingScheme.js
Expand Up @@ -75,7 +75,7 @@ define([
/**
* Gets the map projection used by this tiling scheme.
* @memberof GeographicTilingScheme.prototype
* @type {Projection}
* @type {MapProjection}
*/
projection : {
get : function() {
Expand Down Expand Up @@ -200,7 +200,7 @@ define([
*
* @param {Cartographic} position The position.
* @param {Number} level The tile level-of-detail. Zero is the least detailed.
* @param {Cartesian} [result] The instance to which to copy the result, or undefined if a new instance
* @param {Cartesian2} [result] The instance to which to copy the result, or undefined if a new instance
* should be created.
* @returns {Cartesian2} The specified 'result', or a new object containing the tile x, y coordinates
* if 'result' is undefined.
Expand Down Expand Up @@ -243,4 +243,4 @@ define([
};

return GeographicTilingScheme;
});
});
4 changes: 2 additions & 2 deletions Source/Core/IndexDatatype.js
Expand Up @@ -121,8 +121,8 @@ define([
*
* @param {Number} numberOfVertices Number of vertices that the indices will reference.
* @param {ArrayBuffer} sourceArray Passed through to the typed array constructor.
* @param {byteOffset} byteOffset Passed through to the typed array constructor.
* @param {length} length Passed through to the typed array constructor.
* @param {Number} byteOffset Passed through to the typed array constructor.
* @param {Number} length Passed through to the typed array constructor.
* @returns {Uint16Array|Uint32Array} A <code>Uint16Array</code> or <code>Uint32Array</code> constructed with <code>sourceArray</code>, <code>byteOffset</code>, and <code>length</code>.
*
*/
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/IntersectionTests.js
Expand Up @@ -579,7 +579,7 @@ define([
*
* @param {Ray} ray The ray.
* @param {Ellipsoid} ellipsoid The ellipsoid.
* @returns {Cartesian} The nearest planetodetic point on the ray.
* @returns {Cartesian3} The nearest planetodetic point on the ray.
*/
IntersectionTests.grazingAltitudeLocation = function(ray, ellipsoid) {
//>>includeStart('debug', pragmas.debug);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/TileProviderError.js
Expand Up @@ -29,7 +29,7 @@ define([
var TileProviderError = function TileProviderError(provider, message, x, y, level, timesRetried, error) {
/**
* The {@link ImageryProvider} or {@link TerrainProvider} that experienced the error.
* @type {ImageryProvider|TerainProvider}
* @type {ImageryProvider|TerrainProvider}
*/
this.provider = provider;

Expand Down
6 changes: 3 additions & 3 deletions Source/Core/TilingScheme.js
Expand Up @@ -47,7 +47,7 @@ define([
/**
* Gets the map projection used by the tiling scheme.
* @memberof TilingScheme.prototype
* @type {Projection}
* @type {MapProjection}
*/
projection : {
get : DeveloperError.throwInstantiationError
Expand Down Expand Up @@ -121,12 +121,12 @@ define([
*
* @param {Cartographic} position The position.
* @param {Number} level The tile level-of-detail. Zero is the least detailed.
* @param {Cartesian} [result] The instance to which to copy the result, or undefined if a new instance
* @param {Cartesian2} [result] The instance to which to copy the result, or undefined if a new instance
* should be created.
* @returns {Cartesian2} The specified 'result', or a new object containing the tile x, y coordinates
* if 'result' is undefined.
*/
TilingScheme.prototype.positionToTileXY = DeveloperError.throwInstantiationError;

return TilingScheme;
});
});
6 changes: 3 additions & 3 deletions Source/Core/WebMercatorTilingScheme.js
Expand Up @@ -91,7 +91,7 @@ define([
/**
* Gets the map projection used by this tiling scheme.
* @memberof WebMercatorTilingScheme.prototype
* @type {Projection}
* @type {MapProjection}
*/
projection : {
get : function() {
Expand Down Expand Up @@ -212,7 +212,7 @@ define([
*
* @param {Cartographic} position The position.
* @param {Number} level The tile level-of-detail. Zero is the least detailed.
* @param {Cartesian} [result] The instance to which to copy the result, or undefined if a new instance
* @param {Cartesian2} [result] The instance to which to copy the result, or undefined if a new instance
* should be created.
* @returns {Cartesian2} The specified 'result', or a new object containing the tile x, y coordinates
* if 'result' is undefined.
Expand Down Expand Up @@ -257,4 +257,4 @@ define([
};

return WebMercatorTilingScheme;
});
});

0 comments on commit d880e17

Please sign in to comment.