python-lottie  0.7.0+devd020110
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.svg.importer.SvgParser Class Reference
Inheritance diagram for lottie.parsers.svg.importer.SvgParser:
[legend]
Collaboration diagram for lottie.parsers.svg.importer.SvgParser:
[legend]

Public Member Functions

def __init__ (self, name_mode=NameMode.Inkscape)
 
def parse_etree (self, etree, layer_frames=0, *args, **kwargs)
 
def etree_to_layer (self, animation, etree)
 
def parse_color (self, color)
 
def parse_transform (self, element, group, dest_trans)
 
def parse_style (self, element, parent_style)
 
def apply_common_style (self, style, transform)
 
def apply_visibility (self, style, object)
 
def add_shapes (self, element, shapes, shape_parent, parent_style)
 
def parse_children (self, element, shape_parent, parent_style)
 
def parse_shape (self, element, shape_parent, parent_style)
 
def get_color_url (self, color, gradientclass, shape)
 
def parse_animations (self, lottie, element)
 
def parse_animation_time (self, value)
 
- Public Member Functions inherited from lottie.parsers.svg.handler.SvgHandler
def init_etree (self)
 
def qualified (self, ns, name)
 
def simplified (self, name)
 
def unqualified (self, name)
 
def __init__ (self)
 

Public Attributes

 name_mode
 
 current_color
 
 gradients
 
 max_time
 
 defs
 
 dpi
 
 animation
 
 document
 

Additional Inherited Members

- Static Public Attributes inherited from lottie.parsers.svg.handler.SvgHandler
dictionary ns_map
 

Detailed Description

Definition at line 201 of file importer.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.parsers.svg.importer.SvgParser.__init__ (   self,
  name_mode = NameMode.Inkscape 
)

Definition at line 202 of file importer.py.

Member Function Documentation

◆ add_shapes()

def lottie.parsers.svg.importer.SvgParser.add_shapes (   self,
  element,
  shapes,
  shape_parent,
  parent_style 
)

Definition at line 413 of file importer.py.

◆ apply_common_style()

def lottie.parsers.svg.importer.SvgParser.apply_common_style (   self,
  style,
  transform 
)

Definition at line 405 of file importer.py.

◆ apply_visibility()

def lottie.parsers.svg.importer.SvgParser.apply_visibility (   self,
  style,
  object 
)

Definition at line 409 of file importer.py.

◆ etree_to_layer()

def lottie.parsers.svg.importer.SvgParser.etree_to_layer (   self,
  animation,
  etree 
)

Definition at line 260 of file importer.py.

◆ get_color_url()

def lottie.parsers.svg.importer.SvgParser.get_color_url (   self,
  color,
  gradientclass,
  shape 
)

Definition at line 732 of file importer.py.

◆ parse_animation_time()

def lottie.parsers.svg.importer.SvgParser.parse_animation_time (   self,
  value 
)

◆ parse_animations()

def lottie.parsers.svg.importer.SvgParser.parse_animations (   self,
  lottie,
  element 
)

Definition at line 867 of file importer.py.

◆ parse_children()

def lottie.parsers.svg.importer.SvgParser.parse_children (   self,
  element,
  shape_parent,
  parent_style 
)

Definition at line 636 of file importer.py.

◆ parse_color()

def lottie.parsers.svg.importer.SvgParser.parse_color (   self,
  color 
)

Definition at line 329 of file importer.py.

◆ parse_etree()

def lottie.parsers.svg.importer.SvgParser.parse_etree (   self,
  etree,
  layer_frames = 0,
args,
**  kwargs 
)

Definition at line 224 of file importer.py.

◆ parse_shape()

def lottie.parsers.svg.importer.SvgParser.parse_shape (   self,
  element,
  shape_parent,
  parent_style 
)

Definition at line 644 of file importer.py.

◆ parse_style()

def lottie.parsers.svg.importer.SvgParser.parse_style (   self,
  element,
  parent_style 
)

Definition at line 393 of file importer.py.

◆ parse_transform()

def lottie.parsers.svg.importer.SvgParser.parse_transform (   self,
  element,
  group,
  dest_trans 
)

Definition at line 332 of file importer.py.

Member Data Documentation

◆ animation

lottie.parsers.svg.importer.SvgParser.animation

Definition at line 226 of file importer.py.

◆ current_color

lottie.parsers.svg.importer.SvgParser.current_color

Definition at line 205 of file importer.py.

◆ defs

lottie.parsers.svg.importer.SvgParser.defs

Definition at line 208 of file importer.py.

◆ document

lottie.parsers.svg.importer.SvgParser.document

Definition at line 228 of file importer.py.

◆ dpi

lottie.parsers.svg.importer.SvgParser.dpi

Definition at line 209 of file importer.py.

◆ gradients

lottie.parsers.svg.importer.SvgParser.gradients

Definition at line 206 of file importer.py.

◆ max_time

lottie.parsers.svg.importer.SvgParser.max_time
Todo:

Definition at line 207 of file importer.py.

◆ name_mode

lottie.parsers.svg.importer.SvgParser.name_mode

Definition at line 204 of file importer.py.


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