Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-crow committed Jul 13, 2017
2 parents 6ce6080 + 1ae9bca commit 76b6e87
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Change Log

* Added ability to show tile urls in the 3D Tiles Inspector. [#5592](https://github.com/AnalyticalGraphicsInc/cesium/pull/5592)
* Added behavior to `Cesium3DTilesInspector` that selects the first tileset hovered over if no tilest is specified. [#5139](https://github.com/AnalyticalGraphicsInc/cesium/issues/5139)
* Added ability to provide a `width` and `height` to `scene.pick`. [#5602](https://github.com/AnalyticalGraphicsInc/cesium/pull/5602)

### 1.35.2 - 2017-07-11

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesium. The following people have contributed to Cesium, under the following agreements:

## [Corporate CLA](Documentation/Contributors/CLAs/corporate-cla-agi-v1.0.txt)

* [Analytical Graphics, Inc.](http://www.agi.com/)
* [Patrick Cozzi](https://github.com/pjcozzi)
* [Kristian Calhoun](https://github.com/kristiancalhoun)
Expand Down
6 changes: 3 additions & 3 deletions Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -2793,8 +2793,8 @@ define([
* }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
*
* @param {Cartesian2} windowPosition Window coordinates to perform picking on.
* @param {Number} [width=3] width of the pick rectangle
* @param {Number} [height=3] height of the pick rectangle
* @param {Number} [width=3] Width of the pick rectangle.
* @param {Number} [height=3] Height of the pick rectangle.
* @returns {Object} Object containing the picked primitive.
*
* @exception {DeveloperError} windowPosition is undefined.
Expand All @@ -2805,7 +2805,7 @@ define([
throw new DeveloperError('windowPosition is undefined.');
}
//>>includeEnd('debug');
// override the rectangle dimensions if defined

rectangleWidth = defaultValue(width, 3.0);
rectangleHeight = defaultValue(height, rectangleWidth);

Expand Down
4 changes: 3 additions & 1 deletion Specs/Scene/PickSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ defineSuite([
var primitiveRectangle = Rectangle.fromDegrees(-1.0, -1.0, 1.0, 1.0);

beforeAll(function() {
scene = createScene({ canvas: createCanvas(10,10) });
scene = createScene({
canvas : createCanvas(10, 10)
});
primitives = scene.primitives;
camera = scene.camera;
});
Expand Down
6 changes: 3 additions & 3 deletions Specs/addDefaultMatchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ define([
};
}

function pickPrimitiveEquals(actual, expected, x, y, pickWidth, pickHeight) {
function pickPrimitiveEquals(actual, expected, x, y, width, height) {
var scene = actual;
var windowPosition = new Cartesian2(x,y);
var result = scene.pick(windowPosition, pickWidth, pickHeight);
var windowPosition = new Cartesian2(x, y);
var result = scene.pick(windowPosition, width, height);

if (!!window.webglStub) {
return {
Expand Down

0 comments on commit 76b6e87

Please sign in to comment.