-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you adjust the scale of live-rendered waveforms? #22
Comments
I don't know much about HTML, but I was able to easily edit the output of Sphinx to get what I want. I only had to change the SVG height to auto and the width to a custom value. Would it be possible to set image dimensions from the reST directive for live-rendered plots? It seems like it would probably be pretty straightforward. |
Hi,
|
I did some research. It looks like it's not really possible to change the scale when live-rendering. The image tag doesn't exist until the JS runs, and Wavedrom does not have the ability to set the width or height of the output from javascript. You get what you get. However, the
We've already seen that it has become out of date as Wavedrom has evolved. I think I can add support for the |
By the way, right now |
I'd absolutely welcome such a PR.
Agreed. I think we can assume that the user has installed it and the executable is in the path. We can indeed link to the installation instructions in the README
I'm fairly sure that's also how the plantuml sphinx plugin works. Seems like a good start to me! |
For clarity, could you close this issue and open a separate one for the wavedrom-cli integration? |
Sure. See #23. |
I would prefer to live-render waveforms with inline javascript. But in some cases, the waveform is slightly wider than the page width. In those cases, I would prefer to scale down the image slightly, rather than use a scroll bar. I can accomplish this by switching to images, but it looks like images are generated using the
wavedrompy
library, which is out of date. I get very different results when rendering as an image.Is it possible to scale the rendered javascript? It looks like the image options have no effect when inline javascript is enabled. If this isn't possible right now, is that a feature that could be implemented?
The text was updated successfully, but these errors were encountered: