Ran prettier
This commit is contained in:
parent
f5474030ec
commit
30dc66db7c
|
@ -150,7 +150,7 @@ export const FunctionChart1Dist: React.FC<FunctionChartProps> = ({
|
||||||
fn,
|
fn,
|
||||||
chartSettings,
|
chartSettings,
|
||||||
environment,
|
environment,
|
||||||
height
|
height,
|
||||||
}: FunctionChartProps) => {
|
}: FunctionChartProps) => {
|
||||||
let [mouseOverlay, setMouseOverlay] = React.useState(0);
|
let [mouseOverlay, setMouseOverlay] = React.useState(0);
|
||||||
function handleHover(_name: string, value: unknown) {
|
function handleHover(_name: string, value: unknown) {
|
||||||
|
|
|
@ -129,7 +129,10 @@ export const FunctionChart1Number: React.FC<FunctionChartProps> = ({
|
||||||
[environment, fn]
|
[environment, fn]
|
||||||
);
|
);
|
||||||
|
|
||||||
let data = getFunctionImageMemoized.functionImage.map(({x, value}) => ({x, y:value}))
|
let data = getFunctionImageMemoized.functionImage.map(({ x, value }) => ({
|
||||||
|
x,
|
||||||
|
y: value,
|
||||||
|
}));
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SquiggleLineChart
|
<SquiggleLineChart
|
||||||
|
|
|
@ -4,10 +4,7 @@ import AceEditor from "react-ace";
|
||||||
|
|
||||||
import "ace-builds/src-noconflict/mode-json";
|
import "ace-builds/src-noconflict/mode-json";
|
||||||
import "ace-builds/src-noconflict/theme-github";
|
import "ace-builds/src-noconflict/theme-github";
|
||||||
import {
|
import { jsImports, defaultImports } from "@quri/squiggle-lang";
|
||||||
jsImports,
|
|
||||||
defaultImports,
|
|
||||||
} from "@quri/squiggle-lang";
|
|
||||||
|
|
||||||
interface CodeEditorProps {
|
interface CodeEditorProps {
|
||||||
value: string;
|
value: string;
|
||||||
|
|
|
@ -185,7 +185,7 @@ let SquigglePlayground: FC<PlaygroundProps> = ({
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<ShowBox height={height}>
|
<ShowBox height={height}>
|
||||||
<input type="checkbox" {...register("showSettingsPage")} />
|
<input type="checkbox" {...register("showSettingsPage")} />
|
||||||
<Row leftPercentage={vars.leftSizePercent || 50}>
|
<Row leftPercentage={vars.leftSizePercent || 50}>
|
||||||
<Col>
|
<Col>
|
||||||
{vars.showSettingsPage ? (
|
{vars.showSettingsPage ? (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user