MCPcopy Index your code
hub / github.com/clips/pattern / add

Method add

pattern/web/pdf/utils.py:234–243  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

232
233 # add(obj): place an object.
234 def add(self, obj):
235 for k in self._getrange((obj.x0, obj.y0, obj.x1, obj.y1)):
236 if k not in self._grid:
237 r = []
238 self._grid[k] = r
239 else:
240 r = self._grid[k]
241 r.append(obj)
242 self._objs.append(obj)
243 return
244
245 # remove(obj): displace an object.
246 def remove(self, obj):

Callers 15

__init__Method · 0.95
group_textboxesMethod · 0.95
canvas.jsFile · 0.45
intertextualityFunction · 0.45
uniqFunction · 0.45
findMethod · 0.45
end_figureMethod · 0.45
render_imageMethod · 0.45
paint_pathMethod · 0.45
render_charMethod · 0.45
uniqueFunction · 0.45
dijkstra_shortest_pathFunction · 0.45

Calls 2

_getrangeMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected