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):
|
||||
"""
|
||||
Returns the number of times an ID is referenced as well as all elements
|
||||
that reference it. node is the node at which to start the search. The
|
||||
return value is a map which has the id as key and each value is an array
|
||||
where the first value is a count and the second value is a list of nodes
|
||||
that referenced it.
|
||||
Returns IDs of all referenced elements
|
||||
- node is the node at which to start the search.
|
||||
- returns a map which has the id as key and
|
||||
each value is is a list of nodes
|
||||
|
||||
Currently looks at fill, stroke, clip-path, mask, marker, and
|
||||
xlink:href attributes.
|
||||
Currently looks at 'xlink:href' and all attributes in 'referencingProps'
|
||||
"""
|
||||
global referencingProps
|
||||
if ids is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue