-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: support g6 ssr #6454
Merged
feat: support g6 ssr #6454
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aarebecca
force-pushed
the
feat/ssr
branch
2 times, most recently
from
October 30, 2024 11:11
920914a
to
81f661d
Compare
Aarebecca
changed the title
refactor: canvas support disable mutiple layers
feat: support g6 ssr
Oct 30, 2024
cli 有必要加一个 export 命令参数吗? |
g2 的也这样搞一个版本。 |
hustcc
reviewed
Oct 30, 2024
理论上这样会规范一些,保不准后面会有其他的命令 |
那放到什么位置呢?antvis 下? |
hustcc
approved these changes
Oct 30, 2024
放 g2-extensions 中。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SSR extension for G6 5.0
This extension package provides SSR support for G6 5.0, which supports canvas rendering in server side.
Usage
Install
Render in JavaScript API
Render in CLI
npx g6-ssr export -i [graph-options].json -o ./image
Export SVG / PDF
When render in JavaScript API, you can pass
outputType
option to export SVG or PDF.When render in CLI, you can pass
-t
or--type
option to export SVG or PDF.npx g6-ssr export -i [graph-options].json -o ./file -t pdf
License
MIT