Merged PR 203: Improve responsive design and refactor layout

This commit is contained in:
Eric Nguyen 2022-10-03 12:05:16 +00:00
parent 50626218ba
commit 0d05f0959c
27 changed files with 968 additions and 485 deletions

View file

@ -9,6 +9,7 @@ interface IContainerProps {
model: IContainerModel
depth: number
scale: number
selectContainer: (containerId: string) => void
}
/**
@ -22,6 +23,7 @@ export function Container(props: IContainerProps): JSX.Element {
model={child}
depth={props.depth + 1}
scale={props.scale}
selectContainer={props.selectContainer}
/>);
const width: number = props.model.properties.width;
@ -54,6 +56,7 @@ export function Container(props: IContainerProps): JSX.Element {
width={width}
height={height}
style={style}
onClick={() => props.selectContainer(props.model.properties.id)}
>
</rect>);