python-lottie  0.6.10+dev4166086
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.base.CustomObject Class Reference

Allows extending the Lottie shapes with custom Python classes. More...

Inheritance diagram for lottie.objects.base.CustomObject:
[legend]
Collaboration diagram for lottie.objects.base.CustomObject:
[legend]

Public Member Functions

def __init__ (self)
 
def load (cls, lottiedict)
 Loads from a JSON object. More...
 
def clone (self)
 Returns a copy of the object. More...
 
def to_dict (self)
 Serializes into a JSON object fit for the Lottie format. More...
 
def refresh (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObject
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 __str__ (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 wrapped
 

Static Public Attributes

 wrapped_lottie = LottieObject
 

Detailed Description

Allows extending the Lottie shapes with custom Python classes.

Definition at line 318 of file base.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.base.CustomObject.__init__ (   self)

Definition at line 324 of file base.py.

Member Function Documentation

◆ clone()

def lottie.objects.base.CustomObject.clone (   self)

Returns a copy of the object.

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 339 of file base.py.

◆ load()

def lottie.objects.base.CustomObject.load (   cls,
  lottiedict 
)

Loads from a JSON object.

Returns
An instance of the class

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 328 of file base.py.

◆ refresh()

def lottie.objects.base.CustomObject.refresh (   self)

Definition at line 353 of file base.py.

◆ to_dict()

def lottie.objects.base.CustomObject.to_dict (   self)

Serializes into a JSON object fit for the Lottie format.

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 344 of file base.py.

Member Data Documentation

◆ wrapped

lottie.objects.base.CustomObject.wrapped

Definition at line 325 of file base.py.

◆ wrapped_lottie

lottie.objects.base.CustomObject.wrapped_lottie = LottieObject
static

Definition at line 322 of file base.py.


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