Skip to content

Commit

Permalink
Correct React PropTypes usage for Layer and Effects props (#250)
Browse files Browse the repository at this point in the history
* Correct React PropTypes usage for Layer and Effects props

* Bump version and CHANGELOG
  • Loading branch information
ibgreen authored Dec 1, 2016
1 parent 7c86482 commit f327ea6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Ref: http://keepachangelog.com/en/0.3.0/

### deck.gl v3

#### [3.1.1] - 2016-12-1

- FIX: ExtrudedChoroplethLayer64 - Now updates uniforms when props change
- HOTFIX ScatterplotLayer: Fix instancePositions regression in 3.1.0
- HOTFIX DeckGL: Fix PropType warning regression in 3.1.0 (layers/effects props)

#### [3.1.0] - 2016-11-30

- LineLayer: Support elevations (z coords on positions)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "deck.gl",
"description": "A suite of 3D-enabled data visualization overlays, suitable for react-map-gl",
"license": "MIT",
"version": "3.1.0",
"version": "3.1.1",
"keywords": [
"webgl",
"visualization",
Expand Down
4 changes: 2 additions & 2 deletions src/react/deckgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default class DeckGL extends React.Component {
id: PropTypes.string,
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
layers: PropTypes.arrayOf(Layer).isRequired,
effects: PropTypes.arrayOf(Effect),
layers: PropTypes.arrayOf(PropTypes.instanceOf(Layer)).isRequired,
effects: PropTypes.arrayOf(PropTypes.instanceOf(Effect)),
gl: PropTypes.object,
debug: PropTypes.bool,
onWebGLInitialized: noop,
Expand Down

0 comments on commit f327ea6

Please sign in to comment.