refactor(libs) add width, height and positionAbsolute props to NodeProps
This commit is contained in:
@@ -191,8 +191,9 @@
|
||||
{dragging}
|
||||
{dragHandle}
|
||||
isConnectable={connectable}
|
||||
xPos={positionX}
|
||||
yPos={positionY}
|
||||
positionAbsolute={{ x: positionX, y: positionY }}
|
||||
{width}
|
||||
{height}
|
||||
on:connectstart
|
||||
on:connect
|
||||
on:connectend
|
||||
|
||||
@@ -11,14 +11,14 @@ export type NodeWrapperProps = Pick<
|
||||
| 'selected'
|
||||
| 'selectable'
|
||||
| 'style'
|
||||
| 'width'
|
||||
| 'height'
|
||||
| 'type'
|
||||
| 'sourcePosition'
|
||||
| 'targetPosition'
|
||||
| 'dragHandle'
|
||||
| 'hidden'
|
||||
> & {
|
||||
width?: number;
|
||||
height?: number;
|
||||
type: string;
|
||||
positionX: number;
|
||||
positionY: number;
|
||||
|
||||
Reference in New Issue
Block a user