Update docstring of findReferencedElements

(to match changes in c54a7239e7)
This commit is contained in:
Eduard Braun 2018-02-17 14:27:19 +01:00
parent c54a7239e7
commit cb093e9171

View file

@ -551,14 +551,12 @@ referencingProps = ['fill', 'stroke', 'filter', 'clip-path', 'mask', 'marker-st
def findReferencedElements(node, ids=None): def findReferencedElements(node, ids=None):
""" """
Returns the number of times an ID is referenced as well as all elements Returns IDs of all referenced elements
that reference it. node is the node at which to start the search. The - node is the node at which to start the search.
return value is a map which has the id as key and each value is an array - returns a map which has the id as key and
where the first value is a count and the second value is a list of nodes each value is is a list of nodes
that referenced it.
Currently looks at fill, stroke, clip-path, mask, marker, and Currently looks at 'xlink:href' and all attributes in 'referencingProps'
xlink:href attributes.
""" """
global referencingProps global referencingProps
if ids is None: if ids is None: