|
SILICON
|
Go to the source code of this file.
Classes | |
| class | SVGTreeBuilder |
Namespaces | |
| namespace | normalize |
Functions | |
| ET.Element | parse_svg (bytes data) |
| dict | load_palette (Path path=PALETTE_PATH) |
| bool | sanitize_svg (ET.Element root) |
| bytes | serialize (ET.Element root) |
| dict | import_svg (bytes data, Path config=DEFAULT_CONFIG) |
| None | resolve_palette (ET.Element root, dict colors) |
| bytes | optimize (bytes source, Path config) |
| ET.Element | optimize_svg (ET.Element root, Path config) |
| bytes | export_svg (bytes source, dict palette) |
| None | process_file (Path source, Path destination, Path config) |
| str | export_name (str source, set used, bool overwrite=False, reserved=None) |
| bytes | export_archive (list files, dict palette, bool overwrite=False) |
| make_server (list[dict] sources, dict palette, Path config, int port=0) | |
| int | main () |
Variables | |
| str | SVG_NS = "http://www.w3.org/2000/svg" |
| SCRIPT_DIR = Path(__file__).resolve().parent | |
| str | PALETTE_PATH = SCRIPT_DIR.parents[1] / "resources/app/palette.json" |
| str | DEFAULT_CONFIG = SCRIPT_DIR / "svgo.config.mjs" |
| int | MAX_SVG_BYTES = 10 * 1024 * 1024 |
| int | MAX_REQUEST_BYTES = MAX_SVG_BYTES * 6 + 1024 |