python-lottie
0.6.11+deva0e77a1
A framework to work with lottie files and telegram animated stickers (tgs)
|
Base class for all elements of ShapeLayer and Group. More...
Public Member Functions | |
def | __init__ (self) |
def | bounding_box (self, time=0) |
Bounding box of the shape element at the given time. More... | |
def | __str__ (self) |
![]() | |
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... | |
def | clone_into (self, other) |
![]() | |
def | __new__ (cls, name, bases, attr) |
Public Attributes | |
property_index | |
Property index. More... | |
hidden | |
Hide element. More... | |
blend_mode | |
Blend mode. More... | |
![]() | |
name | |
match_name | |
Static Public Attributes | |
type = None | |
Shape type. More... | |
Base class for all elements of ShapeLayer and Group.
Lottie name | Type | Description | Attribute |
---|---|---|---|
nm | str | name | |
mn | str | match_name | |
hd | bool | Hide element. | hidden |
ty | str | Shape type. | type |
cix | int | Property index. | property_index |
bm | BlendMode | Blend mode. | blend_mode |
def lottie.objects.shapes.ShapeElement.__init__ | ( | self | ) |
Reimplemented from lottie.objects.helpers.VisualObject.
Reimplemented in lottie.objects.shapes.OffsetPath, lottie.objects.shapes.ZigZag, lottie.objects.shapes.PuckerBloat, lottie.objects.shapes.Twist, lottie.objects.shapes.Merge, lottie.objects.shapes.Trim, lottie.objects.shapes.TransformShape, lottie.objects.shapes.Group, lottie.objects.shapes.Star, and lottie.objects.shapes.Shape.
def lottie.objects.shapes.ShapeElement.__str__ | ( | self | ) |
Reimplemented from lottie.objects.base.LottieObject.
def lottie.objects.shapes.ShapeElement.bounding_box | ( | self, | |
time = 0 |
|||
) |
Bounding box of the shape element at the given time.
Reimplemented in lottie.objects.shapes.GradientStroke, lottie.objects.shapes.Group, lottie.objects.shapes.Path, lottie.objects.shapes.Ellipse, lottie.objects.shapes.Star, and lottie.objects.shapes.Rect.
lottie.objects.shapes.ShapeElement.property_index |
|
static |