Reset Class Properties to separate css style into a property

This commit is contained in:
Eric NGUYEN 2022-08-16 10:11:16 +02:00
parent 3d7baafc17
commit 706f9624cc
6 changed files with 17 additions and 16 deletions

View file

@ -10,7 +10,7 @@ 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 Omit<React.CSSProperties, 'width' | 'height'> {
export default interface IProperties {
id: string
parentId: string | null
x: number
@ -19,5 +19,6 @@ export default interface IProperties extends Omit<React.CSSProperties, 'width' |
height: number
isRigidBody: boolean
isAnchor: boolean
XPositionReference?: XPositionReference
xPositionReference?: XPositionReference
style?: React.CSSProperties
}