diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 13:34:26 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 13:34:26 +0200 |
| commit | a952ae8a1633b7650d5d3c51ba51b3e16a8639ad (patch) | |
| tree | c1d093ff67b670a7b3c1d7abcbe3054b2ba8fc9f /public/bundle.js | |
| parent | 0b4241c0a8e0d3fa9c130d3ca6b3d64cdda43cac (diff) | |
player is working and its dope
Diffstat (limited to 'public/bundle.js')
| -rw-r--r-- | public/bundle.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/public/bundle.js b/public/bundle.js index 66c44b3..cf517bf 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -282,6 +282,9 @@ var Slider = function (_Component) { if (this.props.type === 'int') { new_value = parseInt(new_value); } + if (this.props.type === 'odd') { + new_value = parseInt(Math.floor(new_value / 2) * 2 + 1); + } if (old_value !== new_value) { this.setState({ value: new_value }); this.props.actions.set_param(this.props.name, new_value); @@ -298,6 +301,9 @@ var Slider = function (_Component) { if (this.props.type === 'int') { new_value = parseInt(new_value); } + if (this.props.type === 'odd') { + new_value = parseInt(Math.floor(new_value / 2) * 2 + 1); + } this.setState({ value: new_value }); this.timeout = setTimeout(function () { _this2.props.actions.set_param(_this2.props.name, new_value); @@ -595,11 +601,11 @@ var App = function (_Component) { }, (0, _preact.h)(_slider2.default, { name: 'recursive_frac', - min: 0.01, max: 0.3, type: 'float' + min: 0.0, max: 0.5, type: 'float' }), (0, _preact.h)(_slider2.default, { name: 'recurse_roll', - min: -5, max: 5, type: 'int' + min: -64, max: 64, type: 'int' }), (0, _preact.h)(_slider2.default, { name: 'recurse_roll_axis', @@ -614,7 +620,7 @@ var App = function (_Component) { }, (0, _preact.h)(_slider2.default, { name: 'sequence_frac', - min: 0.01, max: 0.3, type: 'float' + min: 0.0, max: 0.5, type: 'float' }), (0, _preact.h)(_slider2.default, { name: 'process_frac', @@ -659,7 +665,7 @@ var App = function (_Component) { }, (0, _preact.h)(_slider2.default, { name: 'blur_radius', - min: 3, max: 7, type: 'int' + min: 3, max: 7, type: 'odd' }), (0, _preact.h)(_slider2.default, { name: 'blur_sigma', |
