Skip to content

Commit

Permalink
Update vanilla docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Aug 29, 2021
1 parent c9ee856 commit 5540eed
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/vanilla/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,22 @@ selection.on('beforestart', evt => {
});
```

Every event comes with the following properties:

```typescript
{
selection: SelectionArea // Current instance
event: TouchEvent | MouseEvent | null // TouchEvent, MouseEvent or `null` if triggered manually
store: {
touched: Array<Element> // Touched elements
selected: Array<Element> // Elements currently selected
stored: Array<Element> // Elements from the previous selection / stored selection
changed: {
added: Array<Element> // Added elements since last change
removed: Array<Element> // Removed elements since last change
}
}
}
```

> Common recipes can be found under [recipes](recipes.md).

0 comments on commit 5540eed

Please sign in to comment.