mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 11:48:12 +08:00
squash proptype errors
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* global window */
|
||||
import React, {Component, PropTypes} from 'react';
|
||||
import React, {Component} from 'react';
|
||||
import {PerspectiveViewport} from 'deck.gl';
|
||||
import {vec3} from 'gl-matrix';
|
||||
|
||||
@@ -141,26 +141,6 @@ export default class OrbitController extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
OrbitController.propTypes = {
|
||||
// target position
|
||||
lookAt: PropTypes.arrayOf(PropTypes.number),
|
||||
// camera distance
|
||||
distance: PropTypes.number.isRequired,
|
||||
minDistance: PropTypes.number,
|
||||
maxDistance: PropTypes.number,
|
||||
// rotation
|
||||
rotationX: PropTypes.number,
|
||||
rotationY: PropTypes.number,
|
||||
// field of view
|
||||
fov: PropTypes.number,
|
||||
// viewport width in pixels
|
||||
width: PropTypes.number.isRequired,
|
||||
// viewport height in pixels
|
||||
height: PropTypes.number.isRequired,
|
||||
// callback
|
||||
onChangeViewport: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
OrbitController.defaultProps = {
|
||||
lookAt: [0, 0, 0],
|
||||
rotationX: 0,
|
||||
|
||||
@@ -36,13 +36,6 @@ export class Popup extends PureComponent {
|
||||
};
|
||||
}
|
||||
|
||||
Popup.propTypes = {
|
||||
id: React.PropTypes.string,
|
||||
title: React.PropTypes.string,
|
||||
x: React.PropTypes.number,
|
||||
y: React.PropTypes.number,
|
||||
};
|
||||
|
||||
Popup.defaultProps = {
|
||||
id: 'id',
|
||||
title: '',
|
||||
|
||||
Reference in New Issue
Block a user