Path Effect — pathData order reversal when moving a vertex

Hi Rive team,

I'm building a custom path effect (tapered stroke) and I've noticed that pathData passed to the update function can have its command order completely reversed when a path vertex is moved.

Reproducible case:

  • Open path with 3 points: P1 (top), P2 (middle), P3 (bottom)

  • Apply a path effect on a Fill that reads pathData command indices

  • Drag P2 slightly left/right — at a certain threshold, pathData[1] (moveTo) switches from P1 to P3, and the entire command order reverses


export-1779958760343.mp4

Debug output showing the flip:

Before: [1] moveTo (408.5, -659.5) → [2] lineTo → [3] lineTo (405.5, -96.5)

After:  [1] moveTo (405.5, -96.5)  → [2] lineTo → [3] line

To (408.5, -659.5)

This appears to happen when the middle vertex crosses the implicit line between the two endpoints, causing the signed area of the polygon to change sign.

My questions:

  1. Is this reversal intentional (e.g. to maintain consistent winding for fills)?

  2. Is there any way for a path effect to receive the path commands in a stable, user-defined order — i.e. always starting from the point the user placed first?

  3. If not, is there a property or flag available in NodeReadData that indicates the current winding or path direction?

This makes it very difficult to reliably anchor path effect properties (like stroke width) to specific path endpoints.

Thank you!