Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Shapes arent shown in Preview. #20

Closed
thisisole opened this issue Jan 25, 2017 · 5 comments
Closed

Shapes arent shown in Preview. #20

thisisole opened this issue Jan 25, 2017 · 5 comments

Comments

@thisisole
Copy link

installed a new code-version... cant currently see the yellow shapes in the preview... only text and arrows are shown.

@runceel
Copy link
Owner

runceel commented Jan 26, 2017

I think that this issue is VSCode's issue.
This plugin export svg then preview. Exported svg can preview Edge and Chrome, VSCode previewer can't preview svg(can't see the yellow shapes).

You can see yellow shape. follow:

@startuml
skinparam style strictuml

write your code!!
@enduml

Relative issue is #19.

@qjebbs
Copy link

qjebbs commented Feb 13, 2017

SVG does not support all diagrams, and got issue above, so my suggestion is to switch to PNG, just like I did in https://github.com/qjebbs/vscode-plantuml.

key code here:

let task = this.exporter.exportToBuffer(diagram, "png");
task.promise.then(
    result => {
        let b64 = result.toString('base64');
        this.image = `data:image/png;base64,${b64}`
        ...
    }
);

@runceel
Copy link
Owner

runceel commented Feb 14, 2017

@qjebbs Thank you!!

I released new version. This version show correctry diagram.

@runceel runceel closed this as completed Feb 14, 2017
@l4ces
Copy link

l4ces commented Feb 17, 2017

I have the latest version and preview only displays a white empty page with a tiny white square box at the upper left corner of the PlantUML Preview window.

VSCode version 1.9.1
Java paths and graphviz paths are set up correctly :-)

@runceel
Copy link
Owner

runceel commented Feb 19, 2017

Thank you for your feedback.

This case is when export a unsaved document.
Please export after save document.

I released v0.2.1.
Please try again.(Added error message when export unsaved document.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants