Fix multple bugs #11

Merged
Siklos merged 7 commits from dev.rigidbody into dev 2022-08-05 07:32:57 -04:00
Showing only changes of commit 415318a81c - Show all commits

View file

@ -17,6 +17,7 @@ export class Container extends React.Component<IContainerProps> {
const containersElements = this.props.model.children.map(child => new Container({ model: child } as IContainerProps).render());
const xText = Number(this.props.model.properties.width) / 2;
const yText = Number(this.props.model.properties.height) / 2;
const transform = `translate(${Number(this.props.model.properties.x)}, ${Number(this.props.model.properties.y)})`;
// g style
const defaultStyle = {
@ -46,7 +47,7 @@ export class Container extends React.Component<IContainerProps> {
return (
<g
style={defaultStyle}
transform={`translate(${this.props.model.properties.x}, ${this.props.model.properties.y})`}
transform={transform}
key={`container-${this.props.model.properties.id}`}
>
<Dimension