Implement MainContainer
This commit is contained in:
parent
adf86ebea1
commit
40fae7dde3
4 changed files with 88 additions and 6 deletions
23
src/SVG/Elements/Container.tsx
Normal file
23
src/SVG/Elements/Container.tsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
import * as React from 'react';
|
||||
|
||||
interface IContainerProps {
|
||||
x: number,
|
||||
y: number,
|
||||
width: number,
|
||||
height: number,
|
||||
}
|
||||
|
||||
export class Container extends React.Component<IContainerProps> {
|
||||
public render() {
|
||||
const properties = {
|
||||
x: this.props.x,
|
||||
y: this.props.y,
|
||||
width: this.props.width,
|
||||
height: this.props.height
|
||||
};
|
||||
|
||||
return (
|
||||
<rect {...properties} />
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue