Skip to content

Commit

Permalink
docs(MotionPath): Fix sync with draw example when changing path data …
Browse files Browse the repository at this point in the history
…({#key})
  • Loading branch information
techniq committed Dec 13, 2024
1 parent 9d9e64a commit 529c9e2
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@
<Axis placement="left" grid rule />
<Axis placement="bottom" rule />
{#if show}
<MotionPath duration="3s" let:pathId let:objectId>
<Spline id={pathId} {curve} draw={{ duration: 3000, easing: linear }} />
<circle id={objectId} r={5} class="fill-surface-100 stroke-surface-content" />
</MotionPath>
{#key data}
<MotionPath duration="3s" let:pathId let:objectId>
<Spline id={pathId} {curve} draw={{ duration: 3000, easing: linear }} />
<circle id={objectId} r={5} class="fill-surface-100 stroke-surface-content" />
</MotionPath>
{/key}
{/if}
</Svg>
</Chart>
Expand Down

0 comments on commit 529c9e2

Please sign in to comment.