mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-09 23:00:56 +08:00
squash proptype errors
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* global window */
|
/* global window */
|
||||||
import React, {Component, PropTypes} from 'react';
|
import React, {Component} from 'react';
|
||||||
import {PerspectiveViewport} from 'deck.gl';
|
import {PerspectiveViewport} from 'deck.gl';
|
||||||
import {vec3} from 'gl-matrix';
|
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 = {
|
OrbitController.defaultProps = {
|
||||||
lookAt: [0, 0, 0],
|
lookAt: [0, 0, 0],
|
||||||
rotationX: 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 = {
|
Popup.defaultProps = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
title: '',
|
title: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user