python-lottie  0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.svg.builder.SvgBuilder Class Reference
Inheritance diagram for lottie.parsers.svg.builder.SvgBuilder:
[legend]
Collaboration diagram for lottie.parsers.svg.builder.SvgBuilder:
[legend]

Public Member Functions

def __init__ (self, time=0)
 
def time (self)
 
def gen_id (self, prefix="id")
 
def set_clean_id (self, dom, n)
 
def set_id (self, dom, lottieobj, inkscape_qual=None, force=False)
 
def set_transform (self, dom, transform, auto_orient=False)
 
def group_to_style (self, group)
 
def process_gradient (self, gradient)
 
def group_from_lottie (self, lottie, dom_parent, layer)
 
def build_rect (self, shape, parent)
 
def build_ellipse (self, shape, parent)
 
def build_path (self, shapes, parent)
 
def build_repeater (self, shape, child, shapegroup, out_parent)
 
def build_rouded_corners (self, shape, child, shapegroup, out_parent)
 
def build_trim_path (self, shape, child, shapegroup, out_parent)
 
def build_text (self, shape, parent)
 
- 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

 svg
 
 dom
 
 ids
 
 idc
 
 name_mode
 
 actual_time
 
 precomp_times
 
 defs
 

Static Public Attributes

bool merge_paths = True
 
tuple namestart
 
string namenostart = r"-.0-9\xB7\u0300-\u036F\u203F-\u2040"
 
 id_re = re.compile("^[%s][%s%s]*$" % (namestart, namenostart, namestart))
 
- Static Public Attributes inherited from lottie.parsers.svg.handler.SvgHandler
dictionary ns_map
 

Detailed Description

Definition at line 46 of file builder.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.parsers.svg.builder.SvgBuilder.__init__ (   self,
  time = 0 
)

Definition at line 56 of file builder.py.

Member Function Documentation

◆ build_ellipse()

def lottie.parsers.svg.builder.SvgBuilder.build_ellipse (   self,
  shape,
  parent 
)

Definition at line 494 of file builder.py.

◆ build_path()

def lottie.parsers.svg.builder.SvgBuilder.build_path (   self,
  shapes,
  parent 
)

Definition at line 504 of file builder.py.

◆ build_rect()

def lottie.parsers.svg.builder.SvgBuilder.build_rect (   self,
  shape,
  parent 
)

Definition at line 483 of file builder.py.

◆ build_repeater()

def lottie.parsers.svg.builder.SvgBuilder.build_repeater (   self,
  shape,
  child,
  shapegroup,
  out_parent 
)

Definition at line 563 of file builder.py.

◆ build_rouded_corners()

def lottie.parsers.svg.builder.SvgBuilder.build_rouded_corners (   self,
  shape,
  child,
  shapegroup,
  out_parent 
)

Definition at line 600 of file builder.py.

◆ build_text()

def lottie.parsers.svg.builder.SvgBuilder.build_text (   self,
  shape,
  parent 
)

Definition at line 712 of file builder.py.

◆ build_trim_path()

def lottie.parsers.svg.builder.SvgBuilder.build_trim_path (   self,
  shape,
  child,
  shapegroup,
  out_parent 
)

Definition at line 612 of file builder.py.

◆ gen_id()

def lottie.parsers.svg.builder.SvgBuilder.gen_id (   self,
  prefix = "id" 
)

Definition at line 79 of file builder.py.

◆ group_from_lottie()

def lottie.parsers.svg.builder.SvgBuilder.group_from_lottie (   self,
  lottie,
  dom_parent,
  layer 
)

Definition at line 429 of file builder.py.

◆ group_to_style()

def lottie.parsers.svg.builder.SvgBuilder.group_to_style (   self,
  group 
)

Definition at line 378 of file builder.py.

◆ process_gradient()

def lottie.parsers.svg.builder.SvgBuilder.process_gradient (   self,
  gradient 
)

Definition at line 397 of file builder.py.

◆ set_clean_id()

def lottie.parsers.svg.builder.SvgBuilder.set_clean_id (   self,
  dom,
  n 
)

Definition at line 88 of file builder.py.

◆ set_id()

def lottie.parsers.svg.builder.SvgBuilder.set_id (   self,
  dom,
  lottieobj,
  inkscape_qual = None,
  force = False 
)

Definition at line 98 of file builder.py.

◆ set_transform()

def lottie.parsers.svg.builder.SvgBuilder.set_transform (   self,
  dom,
  transform,
  auto_orient = False 
)

Definition at line 284 of file builder.py.

◆ time()

def lottie.parsers.svg.builder.SvgBuilder.time (   self)

Definition at line 72 of file builder.py.

Member Data Documentation

◆ actual_time

lottie.parsers.svg.builder.SvgBuilder.actual_time

Definition at line 64 of file builder.py.

◆ defs

lottie.parsers.svg.builder.SvgBuilder.defs

Definition at line 120 of file builder.py.

◆ dom

lottie.parsers.svg.builder.SvgBuilder.dom

Definition at line 59 of file builder.py.

◆ id_re

lottie.parsers.svg.builder.SvgBuilder.id_re = re.compile("^[%s][%s%s]*$" % (namestart, namenostart, namestart))
static

Definition at line 54 of file builder.py.

◆ idc

lottie.parsers.svg.builder.SvgBuilder.idc

Definition at line 62 of file builder.py.

◆ ids

lottie.parsers.svg.builder.SvgBuilder.ids

Definition at line 61 of file builder.py.

◆ merge_paths

bool lottie.parsers.svg.builder.SvgBuilder.merge_paths = True
static

Definition at line 47 of file builder.py.

◆ name_mode

lottie.parsers.svg.builder.SvgBuilder.name_mode

Definition at line 63 of file builder.py.

◆ namenostart

string lottie.parsers.svg.builder.SvgBuilder.namenostart = r"-.0-9\xB7\u0300-\u036F\u203F-\u2040"
static

Definition at line 53 of file builder.py.

◆ namestart

tuple lottie.parsers.svg.builder.SvgBuilder.namestart
static
Initial value:
= (
r":_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF" +
r"\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF" +
r"\uFDF0-\uFFFD\U00010000-\U000EFFFF"
)

Definition at line 48 of file builder.py.

◆ precomp_times

lottie.parsers.svg.builder.SvgBuilder.precomp_times

Definition at line 65 of file builder.py.

◆ svg

lottie.parsers.svg.builder.SvgBuilder.svg

Definition at line 58 of file builder.py.


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