From 80f41da2dc3341063a93449d88aa8dc44e7a4fd3 Mon Sep 17 00:00:00 2001 From: Steve Hall Date: Wed, 14 Jun 2017 09:30:55 -0700 Subject: [PATCH] add section on events --- docs/src/routes/documentation/NodeGroup/README2.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/src/routes/documentation/NodeGroup/README2.md b/docs/src/routes/documentation/NodeGroup/README2.md index 9b5717d..ea3b7a4 100644 --- a/docs/src/routes/documentation/NodeGroup/README2.md +++ b/docs/src/routes/documentation/NodeGroup/README2.md @@ -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.