Lines Matching refs:depth_limit
224 def __init__(self, svg, ti, depth_limit): argument
228 self.depth_limit = depth_limit
241 if self.depth_limit is not None and len(self.ti) >= self.depth_limit:
247 self.iterators.append(self.__class__(s, self.ti + (i,), self.depth_limit))
249 self.iterators.append(self.__class__(s, self.ti + (k,), self.depth_limit))
255 def depth_first(self, depth_limit=None): argument
258 return self.SVGDepthIterator(self, (), depth_limit)
260 def breadth_first(self, depth_limit=None): argument
311 return self.xml(depth_limit=0)
317 def tree(self, depth_limit=None, sub=True, attr=True, text=True, tree_width=20, obj_width=80): argument
333 for ti, s in self.depth_first(depth_limit):
350 def xml(self, indent=u" ", newl=u"\n", depth_limit=None, depth=0): argument
372 if depth_limit is None or depth_limit > depth:
376 substr.append(s.xml(indent, newl, depth_limit, depth + 1) + newl)