yaooqinn commented on PR #53864:
URL: https://github.com/apache/spark/pull/53864#issuecomment-3959239261
@sarutak Have you tried this fix? — instead of setting viewBox (which
changes the coordinate system), set only width and height on the initial SVG:
```gitdiff
function renderPlanViz() {
- var svg = planVizContainer()
- .append("svg")
- .attr("viewBox", `${-PlanVizConstants.svgMarginX}
${-PlanVizConstants.svgMarginY} ${window.innerWidth || 1920} 1000`);
+ var svg = planVizContainer()
+ .append("svg")
+ .attr("width", window.innerWidth || 1920)
+ .attr("height", 1000);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]