ie 的支持

This commit is contained in:
wangliwen 2022-04-27 20:29:51 +08:00
parent 85931f3e0e
commit 940fc384aa
1 changed files with 6 additions and 0 deletions

View File

@ -372,6 +372,12 @@ var SaveModelCtrl = [ '$rootScope', '$scope', '$http', '$route', '$location',
// Parse dom to string
var svgDOM = DataManager.serialize(svgClone);
svgDOM = svgDOM.replace(/marker-start="url\("#/g,"marker-start=\"url(#").replace(/start"\)"/g,"start\)\"");
svgDOM = svgDOM.replace(/marker-mid="url\("#/g,"marker-mid=\"url(#").replace(/mid"\)"/g,"mid\)\"");
svgDOM = svgDOM.replace(/marker-end="url\("#/g,"marker-end=\"url(#").replace(/end"\)"/g,"end\)\"");
var params = {
json_xml: json,
svg_xml: svgDOM,