Skip to content

When param H changed the wave height not changed #10

@Ayaybob

Description

@Ayaybob

It's good only if I call setWaterHeightfunction in ref callback.

                    <Wave ref={(wave) => wave && wave.setWaterHeight(150 * score / scoreTotal)}
                        style={{ width: 150, aspectRatio: 1, overflow: 'hidden', backgroundColor: '#FEB25780', borderRadius: 75 }}
                        H={150 * score / scoreTotal} animated={true} waveParams={[
                            { A: 10, T: 180, fill: '#FEB25780' },
                            { A: 10, T: 180, fill: '#FEB25780' },
                            { A: 10, T: 180, fill: '#FEB25780' },
                        ]}
                    />

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