decktile 0.2.1__tar.gz → 0.2.2__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.
Files changed (56) hide show
  1. {decktile-0.2.1 → decktile-0.2.2}/PKG-INFO +19 -1
  2. {decktile-0.2.1 → decktile-0.2.2}/README.md +18 -0
  3. {decktile-0.2.1 → decktile-0.2.2}/pyproject.toml +1 -1
  4. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/templates/base.css +18 -0
  5. {decktile-0.2.1 → decktile-0.2.2}/LICENSE +0 -0
  6. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/__init__.py +0 -0
  7. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/__main__.py +0 -0
  8. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/assets/lucide/VENDORED.md +0 -0
  9. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/assets/lucide/lucide.css +0 -0
  10. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/assets/lucide/lucide.ttf +0 -0
  11. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/cli.py +0 -0
  12. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/parser/__init__.py +0 -0
  13. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/parser/ast.py +0 -0
  14. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/parser/markdown.py +0 -0
  15. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/plugins/cards.py +0 -0
  16. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/plugins/directives.py +0 -0
  17. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/plugins/fenced.py +0 -0
  18. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/plugins/layouts.py +0 -0
  19. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/plugins/lucide.py +0 -0
  20. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/plugins/lucide_font.py +0 -0
  21. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/__init__.py +0 -0
  22. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/html.py +0 -0
  23. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/ir.py +0 -0
  24. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/odf/__init__.py +0 -0
  25. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/odf/geometry.py +0 -0
  26. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/odf/shapes.py +0 -0
  27. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/odf/styles.py +0 -0
  28. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/odp.py +0 -0
  29. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/pdf.py +0 -0
  30. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/pdg.py +0 -0
  31. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/seaborn.py +0 -0
  32. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/templates/decktile.js +0 -0
  33. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/render/templates/shell.html +0 -0
  34. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/seaborn_styles/__init__.py +0 -0
  35. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/seaborn_styles/ossummit_europe.py +0 -0
  36. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/theme/__init__.py +0 -0
  37. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/theme/colors.py +0 -0
  38. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/theme/loader.py +0 -0
  39. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/theme/parser.py +0 -0
  40. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/themes/default.css +0 -0
  41. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/themes/kcd_vietnam.css +0 -0
  42. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/themes/kubecon_china.css +0 -0
  43. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/themes/kubecon_japan.css +0 -0
  44. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/themes/ossummit_europe.css +0 -0
  45. {decktile-0.2.1 → decktile-0.2.2}/src/decktile/themes/ossummit_korea.css +0 -0
  46. {decktile-0.2.1 → decktile-0.2.2}/tests/__init__.py +0 -0
  47. {decktile-0.2.1 → decktile-0.2.2}/tests/test_cli.py +0 -0
  48. {decktile-0.2.1 → decktile-0.2.2}/tests/test_geometry.py +0 -0
  49. {decktile-0.2.1 → decktile-0.2.2}/tests/test_html.py +0 -0
  50. {decktile-0.2.1 → decktile-0.2.2}/tests/test_ir.py +0 -0
  51. {decktile-0.2.1 → decktile-0.2.2}/tests/test_odf_shapes.py +0 -0
  52. {decktile-0.2.1 → decktile-0.2.2}/tests/test_odp.py +0 -0
  53. {decktile-0.2.1 → decktile-0.2.2}/tests/test_parser.py +0 -0
  54. {decktile-0.2.1 → decktile-0.2.2}/tests/test_pdg.py +0 -0
  55. {decktile-0.2.1 → decktile-0.2.2}/tests/test_seaborn_styles.py +0 -0
  56. {decktile-0.2.1 → decktile-0.2.2}/tests/test_video.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: decktile
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Markdown to designed slides: HTML, PDF and editable ODP
5
5
  Author-Email: Reza Jelveh <git@jelveh.me>
6
6
  License: GPL-3.0-or-later
@@ -402,6 +402,24 @@ slide's body font. Put a `css { … }` block inside the diagram to change anythi
402
402
  See predictygraph's [spec](https://github.com/predictygraph/predictygraph/blob/master/docs/SPEC.md)
403
403
  for the full syntax.
404
404
 
405
+ ### Animated diagrams
406
+
407
+ In the HTML deck, diagrams can move. PDF and ODP get a clean still frame of the
408
+ same diagram, so nothing extra is needed for print.
409
+
410
+ ````markdown
411
+ ```pdg
412
+ graph dir=TB
413
+ user "User" .green border=pulse
414
+ gpu "GPU pool" .yellow shape=cylinder border=glow
415
+ user -> gpu flow=forward "request"
416
+ ```
417
+ ````
418
+
419
+ - `flow=forward`, `reverse`, `both` or `auto`: dots travel along an edge. `flow-speed=0.8s` sets the pace.
420
+ - `border=pulse`, `march` or `glow`: the outline of a node or group breathes, crawls or glows. `border-speed=` sets the pace.
421
+ - Set them per edge or node, with `default edge flow=forward`, or in CSS: `edge.hot { flow: forward; }`.
422
+
405
423
  Wrap a diagram in `::: card {blueprint}` for an engineering-drawing look:
406
424
  blue grid card, light lines and text, translucent node fills, with the
407
425
  node classes as brighter accents. Works the same under any theme.
@@ -373,6 +373,24 @@ slide's body font. Put a `css { … }` block inside the diagram to change anythi
373
373
  See predictygraph's [spec](https://github.com/predictygraph/predictygraph/blob/master/docs/SPEC.md)
374
374
  for the full syntax.
375
375
 
376
+ ### Animated diagrams
377
+
378
+ In the HTML deck, diagrams can move. PDF and ODP get a clean still frame of the
379
+ same diagram, so nothing extra is needed for print.
380
+
381
+ ````markdown
382
+ ```pdg
383
+ graph dir=TB
384
+ user "User" .green border=pulse
385
+ gpu "GPU pool" .yellow shape=cylinder border=glow
386
+ user -> gpu flow=forward "request"
387
+ ```
388
+ ````
389
+
390
+ - `flow=forward`, `reverse`, `both` or `auto`: dots travel along an edge. `flow-speed=0.8s` sets the pace.
391
+ - `border=pulse`, `march` or `glow`: the outline of a node or group breathes, crawls or glows. `border-speed=` sets the pace.
392
+ - Set them per edge or node, with `default edge flow=forward`, or in CSS: `edge.hot { flow: forward; }`.
393
+
376
394
  Wrap a diagram in `::: card {blueprint}` for an engineering-drawing look:
377
395
  blue grid card, light lines and text, translucent node fills, with the
378
396
  node classes as brighter accents. Works the same under any theme.
@@ -23,7 +23,7 @@ dependencies = [
23
23
  ]
24
24
  requires-python = ">=3.11"
25
25
  readme = "README.md"
26
- version = "0.2.1"
26
+ version = "0.2.2"
27
27
 
28
28
  [project.license]
29
29
  text = "GPL-3.0-or-later"
@@ -259,6 +259,24 @@ LOGO_CSS
259
259
  .pdg-animated .pdg-still { display: block; }
260
260
  }
261
261
 
262
+ /* @row: put the following blocks side by side, sharing the width equally */
263
+ .row {
264
+ display: flex;
265
+ gap: 1.5em;
266
+ align-items: flex-start;
267
+ justify-content: center;
268
+ width: 100%;
269
+ }
270
+ .row > * {
271
+ flex: 1 1 0;
272
+ min-width: 0;
273
+ }
274
+ /* diagrams side by side keep one scale, so labels match across them */
275
+ .row .pdg-plot svg {
276
+ width: auto;
277
+ max-width: 100%;
278
+ }
279
+
262
280
  /* ---- ::: card {blueprint}: engineering-drawing panel for diagrams ----
263
281
  Theme-independent on purpose (same blue on light and dark slides); a
264
282
  ```pdg fence inside it renders with the matching blueprint palette
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