wavedrom / zoom

🔍 Zoomable Waveform viewer for the Web
MIT License
43 stars 1 forks source link

Embedding #9

Open drom opened 5 years ago

drom commented 5 years ago

Embeddable so it can be integrated as a component into bigger UI application

DOM Type ?

IDE

drom commented 5 years ago
  1. I would like to use Zoom (like WaveDrom) in Sphinx for generating documentations on ReadTheDocs or any other GitHub-Pages / GitLab-Pages HTTP(s) deploy server.

Originally posted by @Paebbels in https://github.com/wavedrom/zoom/issues/1#issuecomment-434989122

drom commented 5 years ago

If i can add some of my though: My user-case for using Zoom would be in a CI settings. I wold like to run unit-test on gitlab runners and if they fail, a way to show the result via web-browser.

Originally posted by @wifasoi in https://github.com/wavedrom/zoom/issues/1#issuecomment-435323819

DrSensor commented 5 years ago

I actually would like to use Zoom in:

I don't know if this is possible but probably someone needs to render it on the server side (SSR). This may be a really difficult task but can be a good feature for performance critical app.

If I'm allowed to give some tips...make it framework agnostic and avoid using framework/lib that needs runtime libraries (e.g Vue, React, Angular, Inferno, Preact, etc).

drom commented 5 years ago

It is easier embedding React (Virtual DOM) component into real DOM then the other way around. If we develop a library that directly touches DOM we will have problems with any Virtual DOM libraries. Problems similar to D3 being a great library but struggles with React.

drom commented 5 years ago

Having Virtual DOM component simplifies SSR task. React, Preact, ... most of them have server rendering capability.

drom commented 5 years ago

I am inclining to write React-style stateless functional components. This style: https://github.com/drom/BG7TBL-RF-USB/blob/master/src/re-plot.js It requires only $ = createElement function being passed from your Virtual DOM library.

I wrote mostly for React and I am new to Vue. @DrSensor how Vue feels about React components? What is your favorite Virtual DOM lib?

DrSensor commented 5 years ago

Hi @drom, as for me, I have 3 favorites:

Ah yes, all of them have SSR capabilities 😉

About React component in Vue. Actually, it's always a bad idea for integrating component specific framework into another framework. Most people don't want to have to install another framework just to use it. It's a waste of resource.

In majority, no one want to do this in their Vue/Angular project :slightly_smiling_face:
```console npm install react ``` or their `public/index.html` become like this ```xml Githubissues.
  • Githubissues is a development platform for aggregating issues.