Fix Issue 478: markers, filters and clip paths now survive the conversion to path

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1394 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2010-02-16 18:54:41 +00:00
parent d6037a742e
commit 8753c552f8
1 changed files with 9 additions and 0 deletions

View File

@ -5331,6 +5331,15 @@ function BatchCommand(text) {
"visibility":"hidden"
};
// any attribute on the element not covered by the above
// TODO: make this list global so that we can properly maintain it
// TODO: what about @transform, @clip-rule, @fill-rule, etc?
$.each(['marker-start', 'marker-end', 'marker-mid', 'filter', 'clip-path'], function() {
if (elem.getAttribute(this)) {
attrs[this] = elem.getAttribute(this);
}
});
var path = addSvgElementFromJson({
"element": "path",
"attr": attrs