MCPcopy Create free account
hub / github.com/Image-Py/imagepy / zoomin

Method zoomin

imagepy/ui/canvas.py:265–270  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

263 self.ips.update()
264
265 def zoomin(self, x, y):
266 if self.scaleidx == 0:return
267 #x,y = self.to_data_coor(x, y)
268 self.scaleidx -= 1
269 self.zoom(self.scales[self.scaleidx], x,y)
270 self.ips.update()
271
272 def get_scale(self):
273 return self.scales[self.scaleidx]

Callers 3

mouse_downMethod · 0.80
mouse_wheelMethod · 0.80
mouse_wheelMethod · 0.80

Calls 2

zoomMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected