• File: pattern.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/svgwrite/__pycache__/pattern.cpython-37.pyc
  • Date Modified: 11/23/2019 5:57 PM
  • File size: 1.89 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

s]@sLddlmZddlmZmZmZmZddlmZGdddeeeeeZ	dS))BaseElement)XLinkViewBox	TransformPresentation)	is_stringcs4eZdZdZdZdZd
fdd	Zddd	ZZS)Patterna
    A pattern is used to fill or stroke an object using a pre-defined graphic
    object which can be replicated ("tiled") at fixed intervals in x and y to
    cover the areas to be painted. Patterns are defined using a `pattern` element
    and then referenced by properties `fill` and `stroke` on a given graphics
    element to indicate that the given element shall be filled or stroked with
    the referenced pattern.
    patternZpatternTransformNcstt|jf||dk	r2|d|d<|d|d<|dk	rR|d|d<|d|d<|dk	r|t|rn||n|||jr|j|j	|j
dS)z
        :param 2-tuple insert: base point of the pattern (**x**, **y**)
        :param 2-tuple size: size of the pattern (**width**, **height**)
        :param inherit: pattern inherits properties from `inherit` see: **xlink:href**

        NrxywidthZheight)superr__init__rZset_hrefZget_iridebugZ	validatorZcheck_all_svg_attribute_valueselementnameZattribs)selfinsertsizeZinheritZextra)	__class__/pattern.pyrszPattern.__init__nonecCsd||fS)z( Returns the <FuncIRI> of the gradient. z%s %s)Zget_funciri)rdefaultrrrget_paint_server/szPattern.get_paint_server)NNN)r)	__name__
__module____qualname____doc__rZ
transformnamerr
__classcell__rr)rrrs
rN)
Z
svgwrite.baserZsvgwrite.mixinsrrrrZsvgwrite.utilsrrrrrr<module>s