Skip to content

Commit 379eea9

Browse files
author
Dmitry Marov
committed
wip
1 parent b10f225 commit 379eea9

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎content/features/rectangular-selection.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ Hold the `ctrl` key to activate rectangular selection in the demo below.
5959

6060
### Rectangular Selection Configuration Parameters
6161

62-
| Name | Type | Description | Required | Default |
63-
|--------------------------|----------------------------|----------------------------------------------------------------------------------------------|----------|----------------------------------------------------|
64-
| `rectangleElement` | `Element` | Visual element to be placed inside the selection. Should have `width` and `height` of `100%`. | no | Transparent blue rectangle with a grey dashed border |
65-
| `onSelectionStarted` | `() => void` | Function to call when the selection is started | no | `() => {}` |
66-
| `onSelectionChange` | `(rect: DOMRect) => void` | Function to call when the selection rectangle is updated | no | `() => {}` |
67-
| `onSelectionFinished` | `(rect: DOMRect) => void` | Function to call when the selection is finished | no | `() => {}` |
68-
| `onSelectionInterrupted` | `(rect: DOMRect) => void` | Function to call when the selection is interrupted in progress (e.g., mouse moved outside) | no | `() => {}` |
69-
| `mouseDownEventVerifier` | `(event) => boolean` | Function to verify whether a mouse event should initiate the node selection process | no | `(event) => event.button === 0 && event.ctrlKey` |
70-
| `mouseUpEventVerifier` | `(event) => boolean` | Function to verify whether a mouse event should apply the node selection | no | `(event) => event.button === 0 && event.ctrlKey` |
62+
| Name | Type | Description | Required | Default |
63+
|--------------------------|----------------------------|-----------------------------------------------------------------------------------------------|----------|----------------------------------------------------|
64+
| `rectangleElement` | `Element` | Visual element to be placed inside the selection. Should have `width` and `height` of `100%`. | no | Semi-transparent blue rectangle with a grey dashed border |
65+
| `onSelectionStarted` | `() => void` | Function to call when the selection is started | no | `() => {}` |
66+
| `onSelectionChange` | `(rect: DOMRect) => void` | Function to call when the selection rectangle is updated | no | `() => {}` |
67+
| `onSelectionFinished` | `(rect: DOMRect) => void` | Function to call when the selection is finished | no | `() => {}` |
68+
| `onSelectionInterrupted` | `(rect: DOMRect) => void` | Function to call when the selection is interrupted in progress (e.g., mouse moved outside) | no | `() => {}` |
69+
| `mouseDownEventVerifier` | `(event) => boolean` | Function to verify whether a mouse event should initiate the node selection process | no | `(event) => event.button === 0 && event.ctrlKey` |
70+
| `mouseUpEventVerifier` | `(event) => boolean` | Function to verify whether a mouse event should apply the node selection | no | `(event) => event.button === 0 && event.ctrlKey` |

0 commit comments

Comments
 (0)