GUI HCS Analysis - clear rendered data (request re-draw fixed)
@@ -52,11 +52,6 @@ function colorToVec4 (aColor) {
@inject('themes')
@observer
class HcsCellSelector extends React.Component {
- /**
- * Size of the unit (field) in pixels; unitScale > 0
- * @type {number}
- */
- unitScale = 1.0;
width = 1;
height = 1;
needRender = true;
@@ -89,6 +84,10 @@ class HcsCellSelector extends React.Component {
selectedColor = [0, 1, 1, 1.0];
selectedHoverColor = [0, 1, 1, 1.0];
+ setNeedRedraw = () => {
+ this.needRender = true;
+ }
+
updateColors = () => {
const {themes} = this.props;
let backgroundColor = 'rgba(255, 255, 255, 1)';
@@ -302,10 +301,6 @@ class HcsCellSelector extends React.Component {
this.defaultGlProgram = undefined;
}
- setNeedRedraw = () => {
- this.needRender = true;
- }
-
initializeViewport = () => {
const {
width = 1,
