SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > > site-packages > svgwrite


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11//site-packages/svgwrite

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
data Directory - -
extensions Directory - -
__init__.py File 2506 bytes April 17 2025 13:10:58.
animate.py File 6663 bytes April 17 2025 13:10:58.
base.py File 8624 bytes April 17 2025 13:10:58.
container.py File 10741 bytes April 17 2025 13:10:58.
drawing.py File 5291 bytes April 17 2025 13:10:58.
elementfactory.py File 2297 bytes April 17 2025 13:10:58.
etree.py File 1361 bytes April 17 2025 13:10:58.
filters.py File 8002 bytes April 17 2025 13:10:58.
gradients.py File 4702 bytes April 17 2025 13:10:58.
image.py File 2493 bytes April 17 2025 13:10:58.
masking.py File 1856 bytes April 17 2025 13:10:58.
mixins.py File 10749 bytes April 17 2025 13:10:58.
params.py File 1903 bytes April 17 2025 13:10:58.
path.py File 2848 bytes April 17 2025 13:10:58.
pattern.py File 1973 bytes April 17 2025 13:10:58.
shapes.py File 5310 bytes April 17 2025 13:10:58.
solidcolor.py File 1734 bytes April 17 2025 13:10:58.
text.py File 8138 bytes April 17 2025 13:10:58.
utils.py File 7421 bytes April 17 2025 13:10:58.
validator2.py File 6205 bytes April 17 2025 13:10:58.
version.py File 1119 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib64/python3.11//site-packages/svgwrite/masking.py

#!/usr/bin/env python
#coding:utf-8
# Author:  mozman --<mozman@gmx.at>
# Purpose: masking module
# Created: 30.10.2010
# Copyright (C) 2010, Manfred Moitzi
# License: MIT License

from svgwrite.base import BaseElement
from svgwrite.mixins import Transform


class ClipPath(BaseElement, Transform):
    """
    The clipping path restricts the region to which paint can be applied.
    Conceptually, any parts of the drawing that lie outside of the region
    bounded by the currently active clipping path are not drawn. A clipping
    path can be thought of as a mask wherein those pixels outside the clipping
    path are black with an alpha value of zero and those pixels inside the
    clipping path are white with an alpha value of one (with the possible
    exception of anti-aliasing along the edge of the silhouette).

    A **clipPath** element can contain **path** elements, **text** elements,
    basic shapes (such as **circle**) or a **use** element. If a **use**
    element is a child of a **clipPath** element, it must directly reference
    **path**, **text** or basic shape elements. Indirect references are an
    error.
    """
    elementname = 'clipPath'


class Mask(BaseElement):
    """
    In SVG, you can specify that any other graphics object or **g** element
    can be used as an alpha mask for compositing the current object into the
    background.

    A **mask** can contain any graphical elements or container elements such
    as a **g**.
    """
    elementname = 'mask'

    def __init__(self, start=None, size=None, **extra):
        super(Mask, self).__init__(**extra)
        if start is not None:
            self['x'] = start[0]
            self['y'] = start[1]
        if size is not None:
            self['width'] = size[0]
            self['height'] = size[1]

SILENT KILLER Tool