staticdash 2025.13__tar.gz → 2025.15__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2025.13
3
+ Version: 2025.15
4
4
  Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
5
  Author-email: Brian Day <brian.day1@gmail.com>
6
6
  License: CC0-1.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "staticdash"
7
- version = "2025.13"
7
+ version = "2025.15"
8
8
  description = "A lightweight static HTML dashboard generator with Plotly and pandas support."
9
9
  authors = [
10
10
  { name = "Brian Day", email = "brian.day1@gmail.com" }
@@ -361,7 +361,7 @@ class Dashboard:
361
361
  raise ValueError("add_plot must be called with a plotly.graph_objects.Figure")
362
362
  fig.update_layout(margin=dict(l=10, r=10, t=30, b=30), width=900, height=540)
363
363
  with tempfile.NamedTemporaryFile(suffix=".png", delete=False) as tmpfile:
364
- fig.write_image(tmpfile.name, width=900, height=540, scale=3, format="png", engine="kaleido")
364
+ fig.write_image(tmpfile.name, width=600, height=360, scale=2, format="png", engine="kaleido")
365
365
  with open(tmpfile.name, "rb") as imgf:
366
366
  img_bytes = imgf.read()
367
367
  img_buf = io.BytesIO(img_bytes)
@@ -383,7 +383,7 @@ class Dashboard:
383
383
 
384
384
  render_elements(page.elements)
385
385
 
386
- for i, child in enumerate(getattr(page, "children", []), start=1):
386
+ for i, child in enumerate(getattr(page, "children", []), start=0):
387
387
  story.append(PageBreak())
388
388
  child_sec_prefix = sec_prefix.copy() + [i]
389
389
  render_page(child, level=level+1, sec_prefix=child_sec_prefix)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2025.13
3
+ Version: 2025.15
4
4
  Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
5
  Author-email: Brian Day <brian.day1@gmail.com>
6
6
  License: CC0-1.0
File without changes
File without changes