cmSvgWriter.c : Removed pan-zoom code from HTML header.
This commit is contained in:
parent
cc334c8d7f
commit
b43b6af509
@ -185,7 +185,14 @@ void _cmSvgWriterFlipY( cmSvg_t* p, unsigned height )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
"<script type=\"text/javascript\" src=\"svg-pan-zoom.min.js\"></script>\n"
|
||||||
|
"<script>\n"
|
||||||
|
" var panZoom = null;\n"
|
||||||
|
" function doOnLoad() { panZoom = svgPanZoom(document.querySelector('#mysvg'), { controlIconsEnabled:true } ) }\n"
|
||||||
|
"</script>\n"
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
cmSvgRC_t cmSvgWriterWrite( cmSvgH_t h, const cmChar_t* cssFn, const cmChar_t* outFn )
|
cmSvgRC_t cmSvgWriterWrite( cmSvgH_t h, const cmChar_t* cssFn, const cmChar_t* outFn )
|
||||||
{
|
{
|
||||||
@ -204,11 +211,6 @@ cmSvgRC_t cmSvgWriterWrite( cmSvgH_t h, const cmChar_t* cssFn, const cmChar_t*
|
|||||||
"<head>\n"
|
"<head>\n"
|
||||||
"<meta charset=\"utf-8\">\n"
|
"<meta charset=\"utf-8\">\n"
|
||||||
"<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n"
|
"<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n"
|
||||||
"<script type=\"text/javascript\" src=\"svg-pan-zoom.min.js\"></script>\n"
|
|
||||||
"<script>\n"
|
|
||||||
" var panZoom = null;\n"
|
|
||||||
" function doOnLoad() { panZoom = svgPanZoom(document.querySelector('#mysvg'), { controlIconsEnabled:true } ) }\n"
|
|
||||||
"</script>\n"
|
|
||||||
"</head>\n"
|
"</head>\n"
|
||||||
"<body onload=\"doOnLoad()\">\n"
|
"<body onload=\"doOnLoad()\">\n"
|
||||||
"<svg id=\"mysvg\" width=\"%f\" height=\"%f\">\n";
|
"<svg id=\"mysvg\" width=\"%f\" height=\"%f\">\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user