predictygraph 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {predictygraph-0.3.0 → predictygraph-0.3.1}/PKG-INFO +2 -1
- {predictygraph-0.3.0 → predictygraph-0.3.1}/README.md +1 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/pyproject.toml +1 -1
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/theme.py +1 -1
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_stack.py +8 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/LICENSE +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/NOTICE +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/__init__.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/__main__.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/anim.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/cli.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/default.css +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/Carlito-Bold.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/Carlito-Regular.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/DejaVuSans-Bold.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/DejaVuSans.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationMono-Bold.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationMono-Regular.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSans-Bold.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSans-Regular.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSerif-Bold.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSerif-Regular.ttf +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/licenses/Bitstream-Vera.txt +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/licenses/OFL-1.1.txt +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/licenses/README.md +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/ir.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/layout.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/model.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/parser.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/render/__init__.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/render/apng.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/render/svg.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/route.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/safe.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/scene.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/style.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/styleutil.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/text.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-frappe.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-latte.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-macchiato.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-mocha.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/default.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/dracula.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/github-light.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/gruvbox-dark.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/hami.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/nord.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/solarized-dark.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/solarized-light.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/trunkline.toml +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_annotations.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_blocks.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_diagonal.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_fixes.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_hardening.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_predictygraph.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_routing.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_scene.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_targets.py +0 -0
- {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_trunkline.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: predictygraph
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Predictable graphs: a readable, CSS-styled diagram DSL with per-group layouts, rendered to SVG/APNG
|
|
5
5
|
Author-Email: Reza Jelveh <git@jelveh.me>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -24,6 +24,7 @@ SPDX-License-Identifier: Apache-2.0
|
|
|
24
24
|
plain-CSS styling, and static or animated SVG/APNG output (no browser).
|
|
25
25
|
Spec: [docs/SPEC.md](docs/SPEC.md). Docs: [predictygraph.github.io](https://predictygraph.github.io/).
|
|
26
26
|
Editor support: [tree-sitter-pdg](https://github.com/predictygraph/tree-sitter-pdg).
|
|
27
|
+
In the browser: [predictygraph-js](https://github.com/predictygraph/predictygraph-js).
|
|
27
28
|
Rendered examples and the gallery: [predictygraph.github.io](https://predictygraph.github.io/). This repo keeps
|
|
28
29
|
only `.pdg` sources; images live in the docs repo (git-lfs).
|
|
29
30
|
|
|
@@ -10,6 +10,7 @@ SPDX-License-Identifier: Apache-2.0
|
|
|
10
10
|
plain-CSS styling, and static or animated SVG/APNG output (no browser).
|
|
11
11
|
Spec: [docs/SPEC.md](docs/SPEC.md). Docs: [predictygraph.github.io](https://predictygraph.github.io/).
|
|
12
12
|
Editor support: [tree-sitter-pdg](https://github.com/predictygraph/tree-sitter-pdg).
|
|
13
|
+
In the browser: [predictygraph-js](https://github.com/predictygraph/predictygraph-js).
|
|
13
14
|
Rendered examples and the gallery: [predictygraph.github.io](https://predictygraph.github.io/). This repo keeps
|
|
14
15
|
only `.pdg` sources; images live in the docs repo (git-lfs).
|
|
15
16
|
|
|
@@ -62,7 +62,7 @@ def load_theme(name: str, base_dir: str = ".", _seen=()) -> dict:
|
|
|
62
62
|
if data["extends"] in _seen:
|
|
63
63
|
raise ThemeError(f"{path}: extends cycle")
|
|
64
64
|
parent = load_theme(data["extends"], str(path.parent), _seen + (name,))
|
|
65
|
-
for sect in ("palette", "roles", "shape"):
|
|
65
|
+
for sect in ("palette", "roles", "shape", "seaborn"): # [seaborn]: chart settings for decktile, unused here
|
|
66
66
|
parent.setdefault(sect, {}).update(data.get(sect, {}))
|
|
67
67
|
if "css" in data: # extra rules stack: parent's first, then the child's
|
|
68
68
|
parent["css"] = parent.get("css", "") + "\n" + data["css"]
|
|
@@ -95,3 +95,11 @@ def test_align_x_keeps_gaps_by_moving_neighbours():
|
|
|
95
95
|
|
|
96
96
|
assert abs(gap(doc) - gap(plain)) < 0.01 # b moved with a: the label still fits
|
|
97
97
|
assert doc.items["a"].ax > plain.items["a"].ax
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def test_extends_merges_seaborn_section(tmp_path):
|
|
101
|
+
from predictygraph.theme import load_theme
|
|
102
|
+
|
|
103
|
+
(tmp_path / "brand.toml").write_text('schema = 1\nextends = "hami"\n[seaborn]\npalette = ["blue"]\n')
|
|
104
|
+
t = load_theme("brand.toml", str(tmp_path))
|
|
105
|
+
assert t["seaborn"] == {"palette": ["blue"]} and t["palette"]["green"] == "#16a34a"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationMono-Regular.ttf
RENAMED
|
File without changes
|
|
File without changes
|
{predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSans-Regular.ttf
RENAMED
|
File without changes
|
{predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSerif-Bold.ttf
RENAMED
|
File without changes
|
{predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSerif-Regular.ttf
RENAMED
|
File without changes
|
{predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/licenses/Bitstream-Vera.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-macchiato.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|