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 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
|
||||
parentId: string | null
|
||||
x: number
|
||||
y: number
|
||||
width: number
|
||||
height: number
|
||||
isRigidBody: boolean
|
||||
isAnchor: boolean
|
||||
XPositionReference?: XPositionReference
|
||||
|
|
|
@ -55,8 +55,10 @@ const GetSVGLayoutConfiguration = () => {
|
|||
Type: 'Chassis',
|
||||
Width: 500,
|
||||
Style: {
|
||||
fillOpacity: 0,
|
||||
fillOpacity: 1,
|
||||
borderWidth: 2,
|
||||
stroke: 'red',
|
||||
fill: '#78350F',
|
||||
stroke: 'red'
|
||||
}
|
||||
},
|
||||
|
@ -67,9 +69,10 @@ const GetSVGLayoutConfiguration = () => {
|
|||
Width: 480,
|
||||
Height: 180,
|
||||
Style: {
|
||||
fillOpacity: 0,
|
||||
fillOpacity: 1,
|
||||
borderWidth: 2,
|
||||
stroke: 'green'
|
||||
stroke: 'green',
|
||||
fill: 'white'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -89,7 +92,7 @@ const GetSVGLayoutConfiguration = () => {
|
|||
fillOpacity: 0,
|
||||
borderWidth: 2,
|
||||
stroke: '#713f12',
|
||||
fill: '#713f12'
|
||||
fill: '#713f12',
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue