python-lottie  0.6.8+dev6bb61be
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.Ellipse Class Reference

Ellipse shape. More...

Inheritance diagram for lottie.objects.shapes.Ellipse:
[legend]
Collaboration diagram for lottie.objects.shapes.Ellipse:
[legend]

Public Member Functions

def __init__ (self, position=None, size=None)
 
def bounding_box (self, time=0)
 Bounding box of the shape element at the given time. More...
 
def to_bezier (self)
 Returns a Shape corresponding to this ellipse. More...
 
- Public Member Functions inherited from lottie.objects.shapes.Shape
def __init__ (self)
 
- Public Member Functions inherited from lottie.objects.shapes.ShapeElement
def __str__ (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObject
def to_dict (self)
 Serializes into a JSON object fit for the Lottie format. More...
 
def load (cls, lottiedict)
 Loads from a JSON object. More...
 
def find (self, search, propname="name")
 Recursively searches for child objects with a matching property. More...
 
def find_all (self, type, predicate=None, include_self=True)
 Find all child objects that match a predicate. More...
 
def clone (self)
 Returns a copy of the object. More...
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 position
 Ellipse's position. More...
 
 size
 Ellipse's size. More...
 
- Public Attributes inherited from lottie.objects.shapes.Shape
 direction
 After Effect's Direction. More...
 
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 name
 After Effect's Name. More...
 
 property_index
 Property index. More...
 
 hidden
 Hide element. More...
 
 bm
 

Static Public Attributes

string type = "el"
 Shape type. More...
 
- Static Public Attributes inherited from lottie.objects.shapes.ShapeElement
 type = None
 Shape type. More...
 

Detailed Description

Ellipse shape.

Lottie JSON
Lottie name Type Description Attribute
hd bool Hide element.   hidden
nm str After Effect's Name.   name
ty str = 'el' Shape type.   type
cix int Property index.   property_index
bm int   bm
d float After Effect's Direction.   direction
p MultiDimensional Ellipse's position.   position
s MultiDimensional Ellipse's size.   size

Definition at line 333 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.Ellipse.__init__ (   self,
  position = None,
  size = None 
)

Definition at line 344 of file shapes.py.

Member Function Documentation

◆ bounding_box()

def lottie.objects.shapes.Ellipse.bounding_box (   self,
  time = 0 
)

Bounding box of the shape element at the given time.

Reimplemented from lottie.objects.shapes.ShapeElement.

Definition at line 351 of file shapes.py.

◆ to_bezier()

def lottie.objects.shapes.Ellipse.to_bezier (   self)

Returns a Shape corresponding to this ellipse.

Reimplemented from lottie.objects.shapes.Shape.

Definition at line 362 of file shapes.py.

Member Data Documentation

◆ position

lottie.objects.shapes.Ellipse.position

Ellipse's position.

Definition at line 347 of file shapes.py.

◆ size

lottie.objects.shapes.Ellipse.size

Ellipse's size.

Definition at line 349 of file shapes.py.

◆ type

string lottie.objects.shapes.Ellipse.type = "el"
static

Shape type.

Definition at line 342 of file shapes.py.


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