Skip to content

Question: Spline endContent point value #536

@eric-blue

Description

@eric-blue

Hey sorry if this is not the place for this. I was wondering if there was a way to get the value of the end/endContent slot for the spline, or some util that i can use to access the end value and insert it myself?

<Spline motion="tween" draw={{ duration: 2300 }} y={(d) => d.y1} stroke="#dad">
     {#snippet end({ point })} // for some reason endContent doesn't do anything for me
         <Text value={point.value} verticalAnchor="middle" dx={4} />
     {/snippet}
</Spline> 

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions