| 1675 | |
| 1676 | |
| 1677 | class DraggableAnnotation(DraggableBase): |
| 1678 | def __init__(self, annotation, use_blit=False): |
| 1679 | super().__init__(annotation, use_blit=use_blit) |
| 1680 | self.annotation = annotation |
| 1681 | |
| 1682 | def save_offset(self): |
| 1683 | ann = self.annotation |
| 1684 | self.ox, self.oy = ann.get_transform().transform(ann.xyann) |
| 1685 | |
| 1686 | def update_offset(self, dx, dy): |
| 1687 | ann = self.annotation |
| 1688 | ann.xyann = ann.get_transform().inverted().transform( |
| 1689 | (self.ox + dx, self.oy + dy)) |
no outgoing calls
no test coverage detected
searching dependent graphs…