refactor(nodes): Remove DraggableCore component and use composable

* Remove node-element prop from NodeProps
This commit is contained in:
Braks
2022-04-11 11:30:10 +02:00
parent 676c984e07
commit 4f026e841a
2 changed files with 101 additions and 98 deletions
+1 -3
View File
@@ -52,8 +52,6 @@ export interface GraphNode<Data = ElementData> extends Node<Data> {
/** these props are passed to node components */
export interface NodeProps<Data = ElementData> {
id: string
/** node DOM-element */
nodeElement: HTMLDivElement
type: string
data?: Data
selected: boolean
@@ -62,7 +60,7 @@ export interface NodeProps<Data = ElementData> {
computedPosition: XYZPosition
/** x, y position */
position: XYPosition
/** node dimensions (width, height) */
/** dom element dimensions (width, height) */
dimensions: Dimensions
label?:
| string