python-lottie  0.6.11+devcecd248
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.BoundingBox Class Reference

Shape bounding box. More...

Public Member Functions

def __init__ (self, x1=None, y1=None, x2=None, y2=None)
def include (self, x, y)
 Expands the box to include the point at x, y. More...
def expand (self, other)
 Expands the bounding box to include another bounding box. More...
def center (self)
 Center point of the bounding box. More...
def isnull (self)
 Whether the box is default-initialized. More...
def __repr__ (self)
def width (self)
def height (self)
def size (self)

Public Attributes


Detailed Description

Shape bounding box.

Definition at line 8 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.BoundingBox.__init__ (   self,
  x1 = None,
  y1 = None,
  x2 = None,
  y2 = None 

Definition at line 12 of file

Member Function Documentation

◆ __repr__()

def lottie.objects.shapes.BoundingBox.__repr__ (   self)

Definition at line 52 of file

◆ center()

def (   self)

Center point of the bounding box.

Definition at line 40 of file

◆ expand()

def lottie.objects.shapes.BoundingBox.expand (   self,

Expands the bounding box to include another bounding box.

Definition at line 33 of file

◆ height()

def lottie.objects.shapes.BoundingBox.height (   self)

Definition at line 62 of file

◆ include()

def lottie.objects.shapes.BoundingBox.include (   self,

Expands the box to include the point at x, y.

Definition at line 18 of file

◆ isnull()

def lottie.objects.shapes.BoundingBox.isnull (   self)

Whether the box is default-initialized.

Definition at line 46 of file

◆ size()

def lottie.objects.shapes.BoundingBox.size (   self)

Definition at line 67 of file

◆ width()

def lottie.objects.shapes.BoundingBox.width (   self)

Definition at line 56 of file

Member Data Documentation

◆ x1


Definition at line 13 of file

◆ x2


Definition at line 15 of file

◆ y1


Definition at line 14 of file

◆ y2


Definition at line 16 of file

The documentation for this class was generated from the following file: