From a95fa229731f2bfd4167e248c581fbde9d2106d2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Oct 2025 18:28:34 +0000 Subject: [PATCH 1/2] Initial plan From c032b5d6f8b731ffa6a33ae02a15abb5cbcb82f8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Oct 2025 18:35:42 +0000 Subject: [PATCH 2/2] Fix zoom control: Initialize SVG viewBox on creation Set viewBox attribute when SVG is created to match initial dimensions (100% zoom). This prevents unexpected visual changes on first zoom control interaction. Fixes issue where graph would jump/resize on first click of zoom slider even at 100%. Co-authored-by: sei-vsarvepalli <19911912+sei-vsarvepalli@users.noreply.github.com> --- docs/ssvc-explorer/simple.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/ssvc-explorer/simple.js b/docs/ssvc-explorer/simple.js index 408ef3a2..82a337f5 100644 --- a/docs/ssvc-explorer/simple.js +++ b/docs/ssvc-explorer/simple.js @@ -131,6 +131,7 @@ const graphModule = (function() { .attr("class","mgraph") .attr("width", svg_width) .attr("height", svg_height) + .attr("viewBox", "0 0 " + svg_width + " " + svg_height) .append("g") .attr("transform", default_translate) .attr("id","pgroup");