gcode parser thing

This commit is contained in:
2019-08-05 11:04:59 +03:00
parent 17891a2a64
commit 348d6e80c8
5 changed files with 150 additions and 27 deletions

View File

@@ -0,0 +1,32 @@
import * as React from "react";
import { Layer, Rect, Stage, Group } from "react-konva";
interface IGcodeVisualiserProps {
gcodeLinesSent: string[];
gcodeLinesQueue: string[];
}
export default class GcodeVisualiser extends React.PureComponent<
IGcodeVisualiserProps,
{}
> {
constructor(props: IGcodeVisualiserProps) {
super(props);
}
render() {
return (
<Stage width={700} height={700}>
<Layer>
<Rect
x={10}
y={10}
width={50}
height={50}
fill={"black"}
shadowBlur={10}
/>
</Layer>
</Stage>
);
}
}