Skip to content
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

Server-side rendering (node) #165

Open
simzer opened this issue Feb 28, 2023 · 3 comments
Open

Server-side rendering (node) #165

simzer opened this issue Feb 28, 2023 · 3 comments

Comments

@simzer
Copy link
Member

simzer commented Feb 28, 2023

          Also, does it support server-side rendering?

Originally posted by @Zonalds in #147 (comment)

@simzer
Copy link
Member Author

simzer commented Feb 28, 2023

Hi @Zonalds,
Unfortunately, we don't have out-of-box support for server-side rendering. We had a test branch earlier based on an old version (0.3.3): https://github.com/vizzuhq/vizzu-lib/tree/nodejs, what we wanted to use for our test environment, but it did not make it to the main branch. We ended up using selenium-chromedriver to render the tests on server-side.

If there is a need, we can revisit this topic. I am curious about what would be your use case for server-side rendering.

@simzer simzer mentioned this issue Feb 28, 2023
@veghdev
Copy link
Member

veghdev commented Jul 3, 2023

nodejs branch:

  • build cvizzu (project/cmake/weblib/emcc.txt) with wlags:
    EXPORT_ES6=0
    ENVIRONMENT='node'
  • a script replace import/exports during the build
  • in not generated js files in the api if/else statements for env specific parts (vizzu.js, render.js htmlelement, performance, document)

rollup version:

  • in rollup cfg cjs
  • build cvizzu (project/cmake/weblib/emcc.txt) with wlags:
    EXPORT_ES6=1
    ENVIRONMENT='node'
  • import/exports will be good, not needed to replace during build
  • in not generated js files in the api if/else statements for env specific parts (vizzu.js, render.js htmlelement, performance, document)
  • it could place the wasm with async load in base64

@veghdev veghdev removed their assignment Jul 3, 2023
@simzer simzer changed the title Server-side rendering Server-side rendering (node) Oct 18, 2023
@schaumb
Copy link
Contributor

schaumb commented Jan 15, 2024

I was a commit that uses an HTML canvas element on text width measure. This should be hidden behind the canvas interface.
See here and here.
Probably it can be replaced to OffscreenCanvas.

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

No branches or pull requests

3 participants