Fix width and height not being numbers
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
4fbc67835c
commit
dd2079b975
2 changed files with 10 additions and 5 deletions
|
@ -10,11 +10,13 @@ import { XPositionReference } from '../Enums/XPositionReference';
|
||||||
* @property isRigidBody if true apply rigid body behaviors
|
* @property isRigidBody if true apply rigid body behaviors
|
||||||
* @property isAnchor if true apply anchor behaviors
|
* @property isAnchor if true apply anchor behaviors
|
||||||
*/
|
*/
|
||||||
export default interface IProperties extends React.CSSProperties {
|
export default interface IProperties extends Omit<React.CSSProperties, 'width' | 'height'> {
|
||||||
id: string
|
id: string
|
||||||
parentId: string | null
|
parentId: string | null
|
||||||
x: number
|
x: number
|
||||||
y: number
|
y: number
|
||||||
|
width: number
|
||||||
|
height: number
|
||||||
isRigidBody: boolean
|
isRigidBody: boolean
|
||||||
isAnchor: boolean
|
isAnchor: boolean
|
||||||
XPositionReference?: XPositionReference
|
XPositionReference?: XPositionReference
|
||||||
|
|
|
@ -55,8 +55,10 @@ const GetSVGLayoutConfiguration = () => {
|
||||||
Type: 'Chassis',
|
Type: 'Chassis',
|
||||||
Width: 500,
|
Width: 500,
|
||||||
Style: {
|
Style: {
|
||||||
fillOpacity: 0,
|
fillOpacity: 1,
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
|
stroke: 'red',
|
||||||
|
fill: '#78350F',
|
||||||
stroke: 'red'
|
stroke: 'red'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -67,9 +69,10 @@ const GetSVGLayoutConfiguration = () => {
|
||||||
Width: 480,
|
Width: 480,
|
||||||
Height: 180,
|
Height: 180,
|
||||||
Style: {
|
Style: {
|
||||||
fillOpacity: 0,
|
fillOpacity: 1,
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
stroke: 'green'
|
stroke: 'green',
|
||||||
|
fill: 'white'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -89,7 +92,7 @@ const GetSVGLayoutConfiguration = () => {
|
||||||
fillOpacity: 0,
|
fillOpacity: 0,
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
stroke: '#713f12',
|
stroke: '#713f12',
|
||||||
fill: '#713f12'
|
fill: '#713f12',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue