Comments (9)
Sorry @pao, I mistakenly tested the view option instead of download.
I was able to reproduce the issue on Firefox 85.0 (64-bit) macOS.
from mermaid-live-editor.
⬇️ Image below ⬇️ 😄
Obtained through (same as "Steps to reproduce")
https://mermaid-js.github.io/mermaid-live-editor/#/view/eyJjb2RlIjoic2VxdWVuY2VEaWFncmFtXG4gICAgQWxpY2UtPj4rSm9objogSGVsbG8gSm9obiwgaG93IGFyZSB5b3U_XG4gICAgQWxpY2UtPj4rSm9objogSm9obiwgY2FuIHlvdSBoZWFyIG1lP1xuICAgIEpvaG4tLT4-LUFsaWNlOiBIaSBBbGljZSwgSSBjYW4gaGVhciB5b3UhXG4gICAgSm9obi0tPj4tQWxpY2U6IEkgZmVlbCBncmVhdCFcbiAgICAgICAgICAgICIsIm1lcm1haWQiOnsidGhlbWUiOiJkZWZhdWx0IiwidGhlbWVWYXJpYWJsZXMiOnsiYmFja2dyb3VuZCI6IndoaXRlIiwicHJpbWFyeUNvbG9yIjoiI0VDRUNGRiIsInNlY29uZGFyeUNvbG9yIjoiI2ZmZmZkZSIsInRlcnRpYXJ5Q29sb3IiOiJoc2woODAsIDEwMCUsIDk2LjI3NDUwOTgwMzklKSIsInByaW1hcnlCb3JkZXJDb2xvciI6ImhzbCgyNDAsIDYwJSwgODYuMjc0NTA5ODAzOSUpIiwic2Vjb25kYXJ5Qm9yZGVyQ29sb3IiOiJoc2woNjAsIDYwJSwgODMuNTI5NDExNzY0NyUpIiwidGVydGlhcnlCb3JkZXJDb2xvciI6ImhzbCg4MCwgNjAlLCA4Ni4yNzQ1MDk4MDM5JSkiLCJwcmltYXJ5VGV4dENvbG9yIjoiIzEzMTMwMCIsInNlY29uZGFyeVRleHRDb2xvciI6IiMwMDAwMjEiLCJ0ZXJ0aWFyeVRleHRDb2xvciI6InJnYig5LjUwMDAwMDAwMDEsIDkuNTAwMDAwMDAwMSwgOS41MDAwMDAwMDAxKSIsImxpbmVDb2xvciI6IiMzMzMzMzMiLCJ0ZXh0Q29sb3I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SwgOTYuMjc0NTA5ODAzOSUpIiwiZmlsbFR5cGUzIjoiaHNsKDEyNCwgMTAwJSwgOTMuNTI5NDExNzY0NyUpIiwiZmlsbFR5cGU0IjoiaHNsKDE3NiwgMTAwJSwgOTYuMjc0NTA5ODAzOSUpIiwiZmlsbFR5cGU1IjoiaHNsKC00LCAxMDAlLCA5My41Mjk0MTE3NjQ3JSkiLCJmaWxsVHlwZTYiOiJoc2woOCwgMTAwJSwgOTYuMjc0NTA5ODAzOSUpIiwiZmlsbFR5cGU3IjoiaHNsKDE4OCwgMTAwJSwgOTMuNTI5NDExNzY0NyUpIn19LCJ1cGRhdGVFZGl0b3IiOmZhbHNlfQ
from mermaid-live-editor.
@Cilyan can you confirm if the issue is resolved in the latest release?
from mermaid-live-editor.
Does the live-editor at https://mermaid-js.github.io/mermaid-live-editor/ reflects this new version? Currently, this is still buggy for me.
- OS: Linux (Arch)
- Browser: Firefox 84.0.1 (64 bits)
- Mermaid version 8.8.4
from mermaid-live-editor.
This might be a Firefox-only issue?
Did not work in: Windows 10, mermaid-live-editor master-0-g449276c, Firefox 78.6.1esr (64-bit)
Worked in: Windows 10, mermaid-live-editor master-0-g449276c, Chrome 88.0.4324.104 (Official Build) (64-bit)
from mermaid-live-editor.
Works in Firefox 85.0 (64-bit) and 84.0.2 (64-bit) macOS.
Can you please share the console output when the error occurs? (Right Click -> Inspect Element -> Console -> Refresh)
from mermaid-live-editor.
There is no error, and the console clears after clicking the "Download PNG" button.
[WDS] Disconnected! client:172
Object { theme: "default" }
undefined Config.svelte:39:12
Mounting config Config.svelte:46:12
Detecting diagram type based on the text graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
View.svelte:11:12
view fail TypeError: elem.ownerSVGElement.getScreenCTM() is null
getCoords create-edge-paths.js:91
points create-edge-paths.js:107
enter create-edge-paths.js:107
attrFunction attr.js:29
default each.js:5
default attr.js:53
enter create-edge-paths.js:104
createEdgePaths create-edge-paths.js:14
fn render.js:32
draw mermaid.core.js:10330
render mermaid.core.js:23366
unsubscribe View.svelte:75
subscribe index.mjs:51
instance View.svelte:60
run index.mjs:18
mount_component index.mjs:1280
flush index.mjs:622
init index.mjs:1363
App bundle.js:254113
js main.js:3
Webpack 5
View.svelte:78:16
state from url {"code":"sequenceDiagram\n Alice->>+John: Hello John, how are you?\n Alice->>+John: John, can you hear me?\n John-->>-Alice: Hi Alice, I can hear you!\n John-->>-Alice: I feel great!\n ","mermaid":{},"updateEditor":false} code-store.js:21
Object { }
true Config.svelte:39:12
Object { }
Config.svelte:21:12
Object { }
Config.svelte:21:12
Detecting diagram type based on the text sequenceDiagram
Alice->>+John: Hello John, how are you?
Alice->>+John: John, can you hear me?
John-->>-Alice: Hi Alice, I can hear you!
John-->>-Alice: I feel great!
View.svelte:11:12
Object { }
false Config.svelte:39:12
Detecting diagram type based on the text sequenceDiagram
Alice->>+John: Hello John, how are you?
Alice->>+John: John, can you hear me?
John-->>-Alice: Hi Alice, I can hear you!
John-->>-Alice: I feel great!
View.svelte:11:12
Object { }
false Config.svelte:39:12
Detecting diagram type based on the text sequenceDiagram
Alice->>+John: Hello John, how are you?
Alice->>+John: John, can you hear me?
John-->>-Alice: Hi Alice, I can hear you!
John-->>-Alice: I feel great!
View.svelte:11:12
Object { }
false Config.svelte:39:12
Detecting diagram type based on the text sequenceDiagram
Alice->>+John: Hello John, how are you?
Alice->>+John: John, can you hear me?
John-->>-Alice: Hi Alice, I can hear you!
John-->>-Alice: I feel great!
View.svelte:11:12
Object { }
false Config.svelte:39:12
Detecting diagram type based on the text sequenceDiagram
Alice->>+John: Hello John, how are you?
Alice->>+John: John, can you hear me?
John-->>-Alice: Hi Alice, I can hear you!
John-->>-Alice: I feel great!
View.svelte:11:12
[WDS] Live Reloading enabled. client:52
ga: send event render sequence sequence View.svelte:51:14
The .png file appears to have the correct dimensions, but no diagram elements.
I do get the same result from a Flowchart as well (no diagram elements) so I don't think this is sequence diagram specific.
from mermaid-live-editor.
I found that it is different in the Actions section firefox and chrome.
from mermaid-live-editor.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
from mermaid-live-editor.
Related Issues (20)
- DDD Context Maps HOT 1
- Load from Gists functionality not working
- Clear diagram, or plain text editor HOT 1
- can't force-insert vertical spacer or etc between subgraph title and content in live editor
- Support HTML in Markdown strings.
- files diagram lost HOT 1
- Diagram with `%%-----` in comments freezes browser HOT 2
- Formatting of diagram is changed when exported to svg, pdf or png
- Subscripts are bunched in a corner in Safari
- Broken link
- PNG export fails with #nbsp in the note text
- Building on Windows
- Add word completion for reserved terms
- Mermaid diagram WYSIWYG GUI Editor
- node:::hidden property still renders to png file
- Add accTitle and accDescr parameters to sample diagrams
- mermaidjs : Gantt Diagram Non Overlapping Tasks in Single Row
- class diagram: arrows to and from namespace
- Class diagramm: giving the namespace a specific name just like I do with classes
- An option to have transparent background for exported PNG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mermaid-live-editor.