Skip to content

Commit ddbe63a

Browse files
committed
[mj-single] GetSVG(): add metadata to result
1 parent 0575517 commit ddbe63a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/mj-single.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,17 @@ function GetSVG(result) {
648648
' />'
649649
].join("");
650650
}
651+
652+
//
653+
// Add metadata to the results
654+
//
655+
if (data.svg){
656+
result.svg = svgdata;
657+
result.width = svg.getAttribute("width");
658+
result.height = svg.getAttribute("height");
659+
result.style = svg.style.cssText;
660+
}
661+
651662
}
652663

653664
//

0 commit comments

Comments
 (0)