Skip to content

Conversation

@yaooqinn
Copy link
Member

What changes were proposed in this pull request?

Enlarge the SVG viewBox attribute of Job DAG initialization from a 100*100 window to an available width of the window * 1000.

Why are the changes needed?

improve the visualization while the graphics are being painted

Does this PR introduce any user-facing change?

No, the final sizes of these SVGs will be adjusted to the actual needs

How was this patch tested?

tested in Chrome DevTools

Was this patch authored or co-authored using generative AI tooling?

no

@yaooqinn yaooqinn requested a review from Copilot November 18, 2025 02:46
Copilot finished reviewing on behalf of yaooqinn November 18, 2025 02:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enlarges the initial SVG viewBox attribute for Job DAG visualization to improve rendering quality during the painting phase. The viewBox is expanded from a fixed 100x100 window to use the available screen width by 1000 pixels.

Key Changes:

  • Modified the SVG initialization to set an initial viewBox using window.screen.availWidth and a height of 1000 pixels
  • Refactored the SVG creation from a single-line chain to a multi-line statement for better readability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…iz.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@yaooqinn
Copy link
Member Author

Thank you, @HyukjinKwon
Merged to master

@yaooqinn yaooqinn closed this in c5468b9 Nov 19, 2025
@yaooqinn yaooqinn deleted the SPARK-54373 branch November 19, 2025 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants