code: def _local_to_shape(self, local_x, local_y):
          
          return (
              local_x - self.shape_offset_x,
              local_y - self.shape_offset_y
          )
docs: Translate local coordinates point to shape coordinates.
  
          Shape coordinates have the same unit as local coordinates, but are
          offset such that the origin of the shape coordinate system (0, 0) is
          located at the top-left corner of the shape bounding box.