Update docstring of findReferencedElements
(to match changes in c54a7239e7)
This commit is contained in:
parent
c54a7239e7
commit
cb093e9171
1 changed files with 5 additions and 7 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue