Added symbol as an element that is referred to when uniquifying elements, added a TODO for connectors/markers
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1902 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
e5ce3448b1
commit
53962cabb8
|
@ -6375,7 +6375,15 @@ this.randomizeIds = function() {
|
|||
// g - The parent element of the tree to give unique IDs
|
||||
var uniquifyElems = this.uniquifyElems = function(g) {
|
||||
var ids = {};
|
||||
var ref_elems = ["filter", "linearGradient", "pattern", "radialGradient", "textPath", "use"];
|
||||
// TODO: Handle markers and connectors. These are not yet re-identified properly
|
||||
// as their referring elements do not get remapped.
|
||||
//
|
||||
// <marker id='se_marker_end_svg_7'/>
|
||||
// <polyline id='svg_7' se:connector='svg_1 svg_6' marker-end='url(#se_marker_end_svg_7)'/>
|
||||
//
|
||||
// Problem #1: if svg_1 gets renamed, we do not update the polyline's se:connector attribute
|
||||
// Problem #2: if the polyline svg_7 gets renamed, we do not update the marker id nor the polyline's marker-end attribute
|
||||
var ref_elems = ["filter", "linearGradient", "pattern", "radialGradient", "symbol", "textPath", "use"];
|
||||
|
||||
svgedit.utilities.walkTree(g, function(n) {
|
||||
// if it's an element node
|
||||
|
|
Loading…
Reference in New Issue