Merge pull request #31 from NunoSempere/opinionatedQualityOfLife
Makes four opinionated changes which improve my user experience:
This commit is contained in:
commit
ad42a1d404
|
@ -171,7 +171,7 @@ let make = () => {
|
||||||
~schema,
|
~schema,
|
||||||
~onSubmit=({state}) => {None},
|
~onSubmit=({state}) => {None},
|
||||||
~initialState={
|
~initialState={
|
||||||
guesstimatorString: "40 to 8000",
|
guesstimatorString: "mm(normal(10, 2), uniform(16, 20), normal(15,1))",
|
||||||
domainType: "Complete",
|
domainType: "Complete",
|
||||||
xPoint: "50.0",
|
xPoint: "50.0",
|
||||||
xPoint2: "60.0",
|
xPoint2: "60.0",
|
||||||
|
|
|
@ -264,7 +264,7 @@ module DistPlusChart = {
|
||||||
yMaxContinuousDomainFactor
|
yMaxContinuousDomainFactor
|
||||||
?discrete
|
?discrete
|
||||||
?continuous
|
?continuous
|
||||||
color={`hex("5f6b7e")}
|
color={`hex("1894d6")}
|
||||||
onHover
|
onHover
|
||||||
timeScale
|
timeScale
|
||||||
/>;
|
/>;
|
||||||
|
@ -291,7 +291,7 @@ module IntegralChart = {
|
||||||
minX
|
minX
|
||||||
maxX
|
maxX
|
||||||
?continuous
|
?continuous
|
||||||
color={`hex("5f6b7e")}
|
color={`hex("1894d6")}
|
||||||
timeScale
|
timeScale
|
||||||
onHover
|
onHover
|
||||||
/>;
|
/>;
|
||||||
|
|
|
@ -30,10 +30,12 @@ let changeHeight = (currentHeight, foo: [ | `increment | `decrement]) =>
|
||||||
| (2, `decrement) => 1
|
| (2, `decrement) => 1
|
||||||
| (3, `decrement) => 2
|
| (3, `decrement) => 2
|
||||||
| (4, `decrement) => 3
|
| (4, `decrement) => 3
|
||||||
|
| (5, `decrement) => 4
|
||||||
| (1, `increment) => 2
|
| (1, `increment) => 2
|
||||||
| (2, `increment) => 3
|
| (2, `increment) => 3
|
||||||
| (3, `increment) => 4
|
| (3, `increment) => 4
|
||||||
| (4, `increment) => 4
|
| (4, `increment) => 5
|
||||||
|
| (5, `increment) => 5
|
||||||
| _ => 1
|
| _ => 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -43,6 +45,7 @@ let heightToPix =
|
||||||
| 2 => 140
|
| 2 => 140
|
||||||
| 3 => 240
|
| 3 => 240
|
||||||
| 4 => 340
|
| 4 => 340
|
||||||
|
| 5 => 440
|
||||||
| _ => 140;
|
| _ => 140;
|
||||||
|
|
||||||
let distributionReducer = (index, state: list(chartConfig), action) => {
|
let distributionReducer = (index, state: list(chartConfig), action) => {
|
||||||
|
@ -69,7 +72,7 @@ let distributionReducer = (index, state: list(chartConfig), action) => {
|
||||||
| (ADD_DIST, Some(_)) =>
|
| (ADD_DIST, Some(_)) =>
|
||||||
E.L.append(
|
E.L.append(
|
||||||
state,
|
state,
|
||||||
[{yLog: false, xLog: false, isCumulative: false, height: 2}],
|
[{yLog: false, xLog: false, isCumulative: false, height: 4}],
|
||||||
)
|
)
|
||||||
| _ => state
|
| _ => state
|
||||||
};
|
};
|
||||||
|
@ -103,7 +106,6 @@ let init = {
|
||||||
showParams: false,
|
showParams: false,
|
||||||
showPercentiles: true,
|
showPercentiles: true,
|
||||||
distributions: [
|
distributions: [
|
||||||
{yLog: false, xLog: false, isCumulative: false, height: 2},
|
{yLog: false, xLog: false, isCumulative: false, height: 4},
|
||||||
{yLog: false, xLog: false, isCumulative: true, height: 1},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user