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

 x1
 
 y1
 
 x2
 
 y2
 

Detailed Description

Shape bounding box.

Definition at line 8 of file shapes.py.

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 shapes.py.

Member Function Documentation

◆ __repr__()

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

Definition at line 52 of file shapes.py.

◆ center()

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

Center point of the bounding box.

Definition at line 40 of file shapes.py.

◆ expand()

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

Expands the bounding box to include another bounding box.

Definition at line 33 of file shapes.py.

◆ height()

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

Definition at line 62 of file shapes.py.

◆ include()

def lottie.objects.shapes.BoundingBox.include (   self,
  x,
  y 
)

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

Definition at line 18 of file shapes.py.

◆ isnull()

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

Whether the box is default-initialized.

Definition at line 46 of file shapes.py.

◆ size()

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

Definition at line 67 of file shapes.py.

◆ width()

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

Definition at line 56 of file shapes.py.

Member Data Documentation

◆ x1

lottie.objects.shapes.BoundingBox.x1

Definition at line 13 of file shapes.py.

◆ x2

lottie.objects.shapes.BoundingBox.x2

Definition at line 15 of file shapes.py.

◆ y1

lottie.objects.shapes.BoundingBox.y1

Definition at line 14 of file shapes.py.

◆ y2

lottie.objects.shapes.BoundingBox.y2

Definition at line 16 of file shapes.py.


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