src/connectors.ts
Provide options for how to render a drag preview. See DragSource.
Properties |
|
anchorX |
anchorX:
|
Type : number
|
Optional |
A number between 0 and 1. By default, 0.5. Specifies how the offset relative to the drag source node is translated into the the horizontal offset of the drag preview when their sizes don't match. 0 means "dock the preview to the left", 0.5 means "interpolate linearly" and 1 means "dock the preview to the right". |
anchorY |
anchorY:
|
Type : number
|
Optional |
A number between 0 and 1. By default, 0.5. Specifies how the offset relative to the drag source node is translated into the the vertical offset of the drag preview when their sizes don't match. 0 means "dock the preview to the top, 0.5 means "interpolate linearly" and 1 means "dock the preview to the bottom." |
captureDraggingState |
captureDraggingState:
|
Type : boolean
|
Optional |
By default, false. If true, the component will learn that it is being
dragged immediately as the drag starts instead of the next tick. This
means that the screenshotting would occur with |
offsetX |
offsetX:
|
Type : number
|
Optional |
By default, null. Specifies the vertical offset between the cursor and
the drag preview element. If |
offsetY |
offsetY:
|
Type : number
|
Optional |
By default, null. Specifies the vertical offset between the cursor and
the drag preview element. If |