Skip to content

Conversation

ld-cd
Copy link
Contributor

@ld-cd ld-cd commented Jun 20, 2025

#4 Part 2/2

For Enums I monkey patched in a new renderer to d3-wave based on the RowRendererEnum. Obviously this is not exactly ideal (and its also my first time writing js/ts), so if you want to reject this part I can split this PR into two.

Closes #2

Copy link
Member

@whitequark whitequark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, on careful examination it looks like this is how you're supposed to extend d3wave. Looks good to me!

@whitequark whitequark merged commit bc3f896 into amaranth-lang:main Jun 20, 2025
3 checks passed
@whitequark
Copy link
Member

It looks like you've introduced a few type errors:

image

Do you want to try your hand at investigating why these happen, or should I just fix them?

whitequark added a commit that referenced this pull request Jun 20, 2025
@whitequark
Copy link
Member

@ld-cd I ended up doing it myself, can you verify that it all works fine on your end? #8

I don't think d3-wave was ever intended to be used with TypeScript, so it's kind of dirty, but works.

@ld-cd
Copy link
Contributor Author

ld-cd commented Jun 21, 2025

Sorry was walking the dog and did not see this, didn't realize typescript would actually run without the types being right

@ld-cd
Copy link
Contributor Author

ld-cd commented Jun 21, 2025

What linter do you use if I end up finding time to dig into #5

@whitequark
Copy link
Member

I just use VS Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Waveform renderer disappears for FSM signals and string reprs
2 participants