summaryrefslogtreecommitdiff
path: root/public/bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bundle.js')
-rw-r--r--public/bundle.js14
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',