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

refactor: ssr support devicePixelRatio #6647

Merged
merged 3 commits into from
Dec 18, 2024
Merged

refactor: ssr support devicePixelRatio #6647

merged 3 commits into from
Dec 18, 2024

Conversation

Aarebecca
Copy link
Contributor

SSR 支持配置 devicePixelRatio

@Aarebecca Aarebecca added the publish PR merges with this tag will perform the publication label Dec 18, 2024
@@ -12,7 +12,7 @@ import type { Options } from './types';
* @returns <zh/> [G6 画布, NodeCanvas 画布] | <en/> [G6Canvas, NodeCanvas]
*/
export function createCanvas(options: Options): [G6Canvas, NodeCanvas] {
const { width, height, background, outputType } = options;
const { width, height, background, outputType, devicePixelRatio = 1 } = options;
Copy link
Member

Choose a reason for hiding this comment

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

要不直接默认 2,看看 1 的时候,截图清晰不?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

那我更新下截图

@Aarebecca Aarebecca merged commit 94b2ac3 into v5 Dec 18, 2024
2 checks passed
@Aarebecca Aarebecca deleted the refactor/ssr branch December 18, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
publish PR merges with this tag will perform the publication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants