y-takey / atom-mermaid

Preview mermaid on atom editor
MIT License
42 stars 7 forks source link

Save as PNG misses last few rows of pixels #25

Closed ChristopherMeek closed 8 years ago

ChristopherMeek commented 8 years ago

When right-clicking the preview and selecting "Save as PNG" the exported file does not include the lower hundred or so pixels.

I'll put together an example diagram and post it shortly.

ChristopherMeek commented 8 years ago

Ok, so here is an example

sequenceDiagram
participant Alice
participant Robert
participant Christopher
participant Louis
participant Alfred
Alice->>Robert: A Random message sent this way
Robert->>Christopher: Message Received
Christopher->>Louis: process message
Louis->>Christopher: message processed and waiting
Note over Christopher: set internal variables and stuff
Christopher->>Alfred: get results list
Christopher->>Robert: send results list
Robert->>Alice: render results list

Screen grab of the preview window and exported image attached.

Preview Screenshot

previewscreenshot

Exported File error diag

ChristopherMeek commented 8 years ago

Oops, didn;t mean to close with that last comment.

ChristopherMeek commented 8 years ago

It seems to be sensitive to the size of the preview window. If I make the preview window bigger than the images don't get cropped.

y-takey commented 8 years ago

Hi @ChristopherMeek,

Thanks for your reporting. I've fixed the bug. and published the newer atom package.(to v0.3.6) Please upgrade your atom-mermaid, then try it.

Thanks,

ChristopherMeek commented 8 years ago

Works for me now!

y-takey commented 8 years ago

Thanks!