Skip to content

Commit 77c467f

Browse files
committed
Initial update for interactions flow API
1 parent e44cd9e commit 77c467f

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
XD Release 33.0.12 (September 2020)
4+
-------------------------------------
5+
6+
### New APIs
7+
8+
The [flows](./reference/interactions.md#module_interactions-flows) API Returns an array of [FlowInfo] for all flows across the entire document.
9+
10+
311
XD Release 32.0.12 (August 2020)
412
-------------------------------------
513

reference/interactions.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ See [Interaction documentation](#Interaction) below for an example of what an In
3939

4040
* [interactions](#module_interactions)
4141
* [.homeArtboard](#module_interactions-homeArtboard) : <code>?Artboard</code>
42+
* [.flows](#module_interactions-flows) : <code>!Array&lt;FlowInfo&gt;</code>
4243
* [.allInteractions](#module_interactions-allInteractions) : <code>!Array&lt;!{triggerNode: !SceneNode, interactions: !Array&lt;!Interaction&gt;}&gt;</code>
4344
* Typedefs:
4445
* [Interaction](#Interaction)
4546
* [Trigger](#Trigger)
4647
* [Action](#Action)
4748
* [Transition](#Transition)
49+
* [FlowInfo](#FlowInfo)
4850

4951

5052
## Typedefs
@@ -169,6 +171,18 @@ Animation style with which `"goToArtboard"` and `"overlay"` actions transition f
169171
| duration | number | Length of animation in seconds. |
170172
| easing | string | One of: `"linear"`, `"ease-in"`, `"ease-out"`, `"ease-in-out"`, `"wind-up"`, `"bounce"`, `"snap"` |
171173

174+
<a name="flowInfo" id="flowInfo"></a>
175+
176+
### Typedef flowInfo
177+
A `flow` or a `design flow` can be defined as a series or set of artboards starting from one artboard (called a home artboard), which are connected to other artboards or screens via wires or interactions.
178+
179+
| Property | Type | Description |
180+
| --- | --- | --- |
181+
| name | string | User gesture or other event which will trigger the action. |
182+
| homeArtboard | \![Artboard](./scenegraph.md#Artboard) | Artboard from which a particular flow or a prototype experience begins |
183+
| url | string | URL is the latest published link associated with a particular flow and can be `null` in case no link is published for that flow |
184+
185+
NOTE: All `url` returned via {@link interactions#flows} are related to published flows and are usually a subset of the URLs returned via {@link cloud#getSharedArtifacts}. However, the reverse may or may not always hold true.
172186

173187
* * *
174188

@@ -187,6 +201,20 @@ In case there are multiple interactive prototype experiences (flows), implying m
187201
**See**: [`Artboard.isHomeArtboard`](./scenegraph.md#Artboard-isHomeArtboard)
188202

189203

204+
* * *
205+
206+
<a name="module_interactions-flows"></a>
207+
208+
### *interactions.flows : <code>!Array&lt;flowInfo</code>*
209+
Returns a collection of information on *all* flows across the entire document.
210+
211+
**Since**: XD 33
212+
213+
A document can have zero or multiple (one or more than one) flows and can therefore have zero or multiple home artboards. Each entry in the return array represents a `FlowInfo` object.
214+
215+
**Kind**: static property of [<code>interactions</code>](#FlowInfo)
216+
**Read only**: true
217+
190218
* * *
191219

192220
<a name="module_interactions-allInteractions"></a>

0 commit comments

Comments
 (0)