File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 2626#include " portable.h"
2727
2828// top part of the interactive SVG header
29- static const char svgZoomHeader1 [] = R"svg(
29+ static const char svgZoomHeader0 [] = R"svg(
3030<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
31+ )svg" ;
32+
33+ static const char svgZoomHeader0_noinit[] = R"svg(
34+ <svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
35+ )svg" ;
36+
37+ static const char svgZoomHeader1[] = R"svg(
3138<style type="text/css"><![CDATA[
3239.node, .edge {opacity: 0.7;}
3340.node.selected, .edge.selected {opacity: 1;}
@@ -364,6 +371,11 @@ bool DotFilePatcher::run() const
364371 {
365372 // insert special replacement header for interactive SVGs
366373 t << " <!--zoomable " << height << " -->\n " ;
374+ t << svgZoomHeader0;
375+ }
376+ else
377+ {
378+ t << svgZoomHeader0_noinit;
367379 }
368380 t << svgZoomHeader1;
369381 if (useNagivation)
You can’t perform that action at this time.
0 commit comments