python-lottie  0.7.0+dev418bd09
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.Path Class Reference

Animatable Bezier curve. More...

Inheritance diagram for lottie.objects.shapes.Path:
Collaboration diagram for lottie.objects.shapes.Path:

Public Member Functions

def __init__ (self, bezier=None)
def bounding_box (self, time=0)
 Bounding box of the shape element at the given time. More...
def to_bezier (self)
 Returns a Path corresponding to this Shape. 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...
def clone_into (self, other)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Public Attributes

 Shape's vertices. More...
- Public Attributes inherited from lottie.objects.shapes.Shape
 After Effect's Direction. More...
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 Property index. More...
 Hide element. More...
 Blend mode. More...
 CSS class used by the SVG renderer. More...
 id attribute used by the SVG renderer More...
- Public Attributes inherited from lottie.objects.helpers.VisualObject

Static Public Attributes

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

Detailed Description

Animatable Bezier curve.

Lottie JSON
Lottie name Type Description Attribute
nm str   name
mn str   match_name
hd bool Hide element.   hidden
ty str = 'sh' 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
d ShapeDirection After Effect's Direction.   direction
ks ShapeProperty Shape's vertices.   shape
ind int   index

Definition at line 401 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.Path.__init__ (   self,
  bezier = None 

Definition at line 412 of file

Member Function Documentation

◆ bounding_box()

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

Bounding box of the shape element at the given time.

Reimplemented from lottie.objects.shapes.ShapeElement.

Definition at line 419 of file

◆ to_bezier()

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

Returns a Path corresponding to this Shape.

Reimplemented from lottie.objects.shapes.Shape.

Definition at line 430 of file

Member Data Documentation

◆ index


Definition at line 417 of file

◆ shape


Shape's vertices.

Definition at line 415 of file

◆ type

string lottie.objects.shapes.Path.type = "sh"

Shape type.

Definition at line 410 of file

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