python-lottie
0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
|
Public Member Functions | |
def | __init__ (self) |
Public Member Functions inherited from lottie.objects.shapes.ShapeElement | |
def | bounding_box (self, time=0) |
Bounding box of the shape element at the given time. More... | |
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... | |
def | clone_into (self, other) |
Public Member Functions inherited from lottie.objects.base.LottieObjectMeta | |
def | __new__ (cls, name, bases, attr) |
Public Member Functions inherited from lottie.objects.helpers.Transform | |
def | to_matrix (self, time, auto_orient=False) |
Public Attributes | |
anchor_point | |
Public Attributes inherited from lottie.objects.shapes.ShapeElement | |
property_index | |
Property index. More... | |
hidden | |
Hide element. More... | |
blend_mode | |
Blend mode. More... | |
css_class | |
CSS class used by the SVG renderer. More... | |
layer_xml_id | |
id attribute used by the SVG renderer More... | |
Public Attributes inherited from lottie.objects.helpers.VisualObject | |
name | |
match_name | |
Public Attributes inherited from lottie.objects.helpers.Transform | |
anchor_point | |
Transform Anchor Point. More... | |
position | |
Transform Position. More... | |
scale | |
Transform Scale. More... | |
rotation | |
Transform Rotation. More... | |
opacity | |
Transform Opacity. More... | |
skew | |
Transform Skew. More... | |
skew_axis | |
Transform Skew Axis. More... | |
orientation | |
Static Public Attributes | |
string | type = "tr" |
Shape type. More... | |
Static Public Attributes inherited from lottie.objects.shapes.ShapeElement | |
type = None | |
Shape type. More... | |
Group transform.
Lottie name | Type | Description | Attribute |
---|---|---|---|
nm | str | name | |
mn | str | match_name | |
hd | bool | Hide element. | hidden |
ty | str = 'tr' | Shape type. | type |
bm | BlendMode | Blend mode. | blend_mode |
ix | int | Property index. | property_index |
cl | str | CSS class used by the SVG renderer. | css_class |
ln | str | id attribute used by the SVG renderer | layer_xml_id |
a | PositionValue | anchor_point | |
p | PositionValue | Transform Position. | position |
s | MultiDimensional | Transform Scale. | scale |
r | Value | Transform Rotation. | rotation |
o | Value | Transform Opacity. | opacity |
sk | Value | Transform Skew. | skew |
sa | Value | Transform Skew Axis. | skew_axis |
or | MultiDimensional | orientation |
def lottie.objects.shapes.TransformShape.__init__ | ( | self | ) |
Reimplemented from lottie.objects.helpers.Transform.
|
static |