svg-layout-designer-react/src/Interfaces/IProperties.ts
Siklos dd2079b975
Some checks failed
continuous-integration/drone/push Build is failing
Fix width and height not being numbers
2022-08-15 22:52:09 +02:00

23 lines
708 B
TypeScript

import * as React from 'react';
import { XPositionReference } from '../Enums/XPositionReference';
/**
* Properties of a container
* @property id id of the container
* @property parentId id of the parent container
* @property x horizontal offset of the container
* @property y vertical offset of the container
* @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'> {
id: string
parentId: string | null
x: number
y: number
width: number
height: number
isRigidBody: boolean
isAnchor: boolean
XPositionReference?: XPositionReference
}