clientIO / clientIO/joint

[Bug]: JJ+ stopped rendering CSS when exporting to PNG (possibly other formats too)

Open
#2,668 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug jointjs+
Dominant language
JavaScript
Stars
5.4k
Forks
893
Avg merge
3d 3h
Merged PRs (30d)
26

Description

Current versus expected behaviour

In JJ+3.x I was able to apply CSS styles to my elements and have them exported to PNG, but this doesn't seem to be working in JJ+4.x

Steps to reproduce
  1. Go to https://codesandbox.io/p/sandbox/jj4-raster-bug-y9v98v?file=%2Fsrc%2Findex.mjs%3A14%2C29
  2. Wait a couple of seconds and a popup will open (chrome might block the popup)
  3. Compare the image in the popup with the paper
Version

4.0.3

What browsers are you seeing the problem on?

Chrome, Safari

What operating system are you seeing the problem on?

Mac

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox reproduction and compare the exported popup image with the paper in Chrome or Safari. Trace the PNG export path and verify whether CSS styling is preserved, then check whether the same regression affects other export formats. Done means the reproduced diagram exports with its CSS styling intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.