Ran formatter

This commit is contained in:
Ozzie Gooen 2022-05-27 07:32:03 -04:00
parent cbc51c23de
commit 4eac2f59be

View File

@ -26,7 +26,7 @@ function getRange<a>(x: declaration<a>) {
return { floats: { min: first.value.min, max: first.value.max } }; return { floats: { min: first.value.min, max: first.value.max } };
} }
case "Date": { case "Date": {
return { time: { min: first.value.min, max: first.value.max} }; return { time: { min: first.value.min, max: first.value.max } };
} }
} }
} }
@ -229,27 +229,27 @@ const SquiggleItem: React.FC<SquiggleItemProps> = ({
case "lambda": case "lambda":
return ( return (
<VariableBox heading="Function" showTypes={showTypes}> <VariableBox heading="Function" showTypes={showTypes}>
<FunctionChart <FunctionChart
fn={expression.value} fn={expression.value}
chartSettings={chartSettings} chartSettings={chartSettings}
environment={{ environment={{
sampleCount: environment.sampleCount / 10, sampleCount: environment.sampleCount / 10,
xyPointLength: environment.xyPointLength / 10, xyPointLength: environment.xyPointLength / 10,
}} }}
/> />
</VariableBox> </VariableBox>
); );
case "lambdaDeclaration": { case "lambdaDeclaration": {
return ( return (
<VariableBox heading="Function Declaration" showTypes={showTypes}> <VariableBox heading="Function Declaration" showTypes={showTypes}>
<FunctionChart <FunctionChart
fn={expression.value.fn} fn={expression.value.fn}
chartSettings={getChartSettings(expression.value)} chartSettings={getChartSettings(expression.value)}
environment={{ environment={{
sampleCount: environment.sampleCount / 10, sampleCount: environment.sampleCount / 10,
xyPointLength: environment.xyPointLength / 10, xyPointLength: environment.xyPointLength / 10,
}} }}
/> />
</VariableBox> </VariableBox>
); );
} }