Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
🐛 Bug Fixes.
Browse files Browse the repository at this point in the history
- Fixed exception when pressing the erosion button.
  • Loading branch information
Faraz Shaikh authored and Faraz Shaikh committed Aug 12, 2020
1 parent 6796f40 commit 9126b57
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion src/Components/ui/MiscComponents/BasicButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ export default class BasicButton extends Component {

render() {
return (
<div className={this.props.classOverride ? this.props.classOverride : 'ResolutionInputView-button'} onMouseDown={this.props.onMouseDown}>
<div
className={this.props.classOverride ? this.props.classOverride : 'ResolutionInputView-button'}
onMouseDown={this.props.onMouseDown}
>
{this.props.buttonLabel}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component } from 'react';
import BasicButton from '../../MiscComponents/BasicButton';
import { erode } from '../../../3dView/main/Erosion/Erosion';


export default class ErodeButtonView extends Component {
Expand All @@ -9,8 +8,8 @@ export default class ErodeButtonView extends Component {
return (
<div className={'ErodeButtonView-container'}>
<BasicButton
buttonLabel={'Erode'}
onMouseDown={() => erode()}
buttonLabel={'Erosion Coming Soon!'}
onMouseDown={() => console.log('Erosion Coming Soon')}
classOverride={'ErodeButtonView-button'}
/>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/Components/ui/ProjectSettings/ErodeButton/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
margin-top: 8px;
margin-bottom: 8px;

background-color: #212121;
background-color: white;
padding: 8px;
text-align: center;
font-family: sans-serif;
font-size: 13px;
font-weight: 300;
cursor: pointer;
cursor: default;
transition: all 300ms ease-in-out;
color: black;
-webkit-user-select: none; /* Safari */
Expand All @@ -24,7 +24,7 @@
user-select: none; /* Standard */
}

.ErodeButtonView-button:hover {
/* .ErodeButtonView-button:hover {
background-color: #212121;
color: black;
}
} */
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class IconContainerViewController extends Component {
{
icon: Icon_resolution,
label: 'Resolution',
value: `${numeral(this.props.resolutionValue).format('0,0')}`,
value: `${numeral(this.props.mapResValue).format('0,0')}px`,
},
{
icon: Icon_renderTime,
Expand Down
1 change: 1 addition & 0 deletions src/Components/ui/ProjectSettings/ProjectInfoRootView.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default class ProjectInfoRootView extends Component {
/>
<IconContainerViewController
resolutionValue={this.props.resolutionValue}
mapResValue={this.props.mapResValue}

timeDisplace={this.props.timeDisplace}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/Redux/Defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Defaults = {
GEN_xOff: 0,
GEN_yOff: 0,

TIME_displace: 2000,
TIME_displace: 0,

MAP_Resolution: 256,
}
Expand Down

0 comments on commit 9126b57

Please sign in to comment.