Skip to content

chart export v3: dimmer watermark + toBlob download path + unified button style - #1440

Merged
Flotapponnier merged 2 commits into
devfrom
fix/chart-watermark-v3
Jul 25, 2026
Merged

chart export v3: dimmer watermark + toBlob download path + unified button style#1440
Flotapponnier merged 2 commits into
devfrom
fix/chart-watermark-v3

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Three follow-ups on the previous export ship.

Watermark dimmed

  • SVG: opacity 0.09 → 0.04, font 16% → 10% of plot short axis, weight 600 → 500
  • HTML: opacity 0.09 → 0.045, max font 2.6rem → 1.9rem, weight 600 → 500
  • Still readable in screenshots (survives Twitter recompression), invisible during normal chart reading

Download button fix

Switched capture from `toPng → fetch(dataURL) → blob()` to `toBlob` direct. Kills:

  • Safari OOMs on large canvases (base64 intermediate step)
  • Empty PNG on some tainted-canvas states
  • The "download blocked, click gesture expired" trap after long `await` — Blob URL is created + clicked in the same synchronous step
  • `URL.revokeObjectURL` now runs after 4s instead of immediately, avoiding Safari's race
  • `filter:` excludes the button pill itself so screenshots don't bake in "Copy"
  • `console.warn` → `console.error` for actual visibility in DevTools

Image/Video buttons — same style as Copy/DL

Both had heavy dark-ink solid squares (`p-2.5 bg-ink`) — replaced with the same light border + shadow pill style + icon+label (`Image` / `Video`), matching the ChartExportButton visually. Now the four export controls (Copy, Download, Image, Video) look like a coherent toolbar.

@Flotapponnier
Flotapponnier merged commit 278f4ad into dev Jul 25, 2026
@Flotapponnier
Flotapponnier deleted the fix/chart-watermark-v3 branch July 25, 2026 20:14
Flotapponnier added a commit that referenced this pull request Jul 25, 2026
…tton style (#1440) (#1441)

* fix: Virtuals chain detection + update methodology text for Relay/Mobula

* chart export v3: dimmer watermark, toBlob download path, unified Image/Video button style

---------

Co-authored-by: Florent Tapponnier <contact@mobula.io>
Flotapponnier added a commit that referenced this pull request Jul 25, 2026
…taset item) (#1442)

* chart export v3: dimmer watermark + toBlob download path + unified button style (#1440)

* fix: Virtuals chain detection + update methodology text for Relay/Mobula

* chart export v3: dimmer watermark, toBlob download path, unified Image/Video button style

---------

Co-authored-by: Florent Tapponnier <contact@mobula.io>

* jsonld: inline isBasedOn Dataset fields in StatisticalReport

Rich Results Test on ws-head-latency-ethereum confirmed 3 Datasets
detected (bench + isPartOf + isBasedOn) with one invalid. The mystery
3rd was the @id-only isBasedOn ref inside StatisticalReport. Same
failure mode as isPartOf (already fixed in PR #1429): Google validates
each Dataset in isolation and does not stitch @id refs even inside
the same @graph.

Inline the required fields (name, description, url, creator, license)
on the isBasedOn ref so it validates on its own. Same pattern as
isPartOf.

---------

Co-authored-by: Florent Tapponnier <contact@mobula.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant