Skip to content

Commit

Permalink
add section on events
Browse files Browse the repository at this point in the history
  • Loading branch information
sghall committed Jun 14, 2017
1 parent 26dd05d commit 80f41da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/routes/documentation/NodeGroup/README2.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ You can specify just the things you want to override on your timing key.

The events are the same as those on D3 transitions. You can fire a function on transition start, end and interrupt.

```js
update={({ startAngle, endAngle }) => ({
startAngle: [startAngle],
endAngle: [endAngle],
events: {
interrupt: () => {
console.log('interrupt!!!');
},
},
timing: { duration: 500 },
})}
```

### Interpolators

Interpolators are inferred from what you specify in your transition object.
Expand Down

0 comments on commit 80f41da

Please sign in to comment.