Pass showTypes and showControls in playground
This commit is contained in:
parent
74f5dbbbf0
commit
5df9d0e51b
|
@ -43,6 +43,8 @@ function FieldFloat(Props: FieldFloatProps) {
|
||||||
interface Props {
|
interface Props {
|
||||||
initialSquiggleString?: string;
|
initialSquiggleString?: string;
|
||||||
height?: number;
|
height?: number;
|
||||||
|
showTypes?: boolean;
|
||||||
|
showControls?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props2 {
|
interface Props2 {
|
||||||
|
@ -55,10 +57,6 @@ const ShowBox = styled.div<Props2>`
|
||||||
height: ${(props) => props.height};
|
height: ${(props) => props.height};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const MyComponent = styled.div`
|
|
||||||
color: ${(props) => props.theme.colors.main};
|
|
||||||
`;
|
|
||||||
|
|
||||||
interface TitleProps {
|
interface TitleProps {
|
||||||
readonly maxHeight: number;
|
readonly maxHeight: number;
|
||||||
}
|
}
|
||||||
|
@ -81,6 +79,8 @@ const Col = styled.div``;
|
||||||
let SquigglePlayground: FC<Props> = ({
|
let SquigglePlayground: FC<Props> = ({
|
||||||
initialSquiggleString = "",
|
initialSquiggleString = "",
|
||||||
height = 300,
|
height = 300,
|
||||||
|
showTypes = false,
|
||||||
|
showControls = false,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
let [squiggleString, setSquiggleString] = useState(initialSquiggleString);
|
let [squiggleString, setSquiggleString] = useState(initialSquiggleString);
|
||||||
let [sampleCount, setSampleCount] = useState(1000);
|
let [sampleCount, setSampleCount] = useState(1000);
|
||||||
|
@ -112,6 +112,8 @@ let SquigglePlayground: FC<Props> = ({
|
||||||
diagramCount={diagramCount}
|
diagramCount={diagramCount}
|
||||||
pointDistLength={pointDistLength}
|
pointDistLength={pointDistLength}
|
||||||
height={150}
|
height={150}
|
||||||
|
showTypes={showTypes}
|
||||||
|
showControls={showControls}
|
||||||
/>
|
/>
|
||||||
</Display>
|
</Display>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user