Comments (12)
You're right with svg then I probably won't need png. How about in your hover menu can we make a "save as" option to save the picture? I click on the VS Code File then save menu and it didn't seem to let me save the svg.
from vscode-yuml.
We already have "SVG export" since the very beginning (use the {generate:true}
directive).
Said that, converting SVG to a PNG is not a "straightforward" task for a javascript application. It is needed an entire rendering engine and usually will require native tools that won't work on every platform.
from vscode-yuml.
Why would you have a PNG when you can have a SVG? I'm just curious of the use-case.
from vscode-yuml.
You can always use a screenshot tool
from vscode-yuml.
+1 for PNG!
from vscode-yuml.
Oh sure, I read the docs and figured that out. It's super useful. Thank you.
After getting other people to start using the plugin, something that comes up is a set of buttons like on https://github.com/AleksandarDev/vscode-sequence-diagrams to export SVG and PNG. It's great to export sequence diagrams in this way and I'm holding out hope here too! I do understand the technical aspects enough to know it isn't trivial and get it's a huge commitment. Still giving it a +1 ;-)
from vscode-yuml.
I dare to think, primary use case for yUML and this plugin, is not for drawing, but for creating a documentation with diagrams in it.
Thus the primary printing use-case is the one for printing the md files into documents. pdf documents will be super usefull.
Now. "Markdown PDF" extension is doing it but not supporting this extension. It is supporting PlantUML. But PlantUML I do not wish to use. That plugin requires complex external to VS Code, setup to be able to actually render the diagrams.
So do "we" nicely ask them to incorporate diagrams from this plugin too?
But, I am not aware of any pluginm that has the concept of page and paper sizes. Something rudimentary will do, like notepad for example.
Or have I missed a nugget in the ocean of VS Code plugins?
from vscode-yuml.
Hi @DBJDBJ et all,
Currently we have the capability to export to svg, and that image can be incorporated in a Markdown file. You just need to use the {generate: true} directive, as shown:
You can reference the generated svg from the markdown document, as shown:
The image will be shown in the markdown preview, at least using the Markdown Extended extension (jebbs.markdown-extended
)
The Markdown PDF extension (yzane.markdown-pdf
) is able to export the markdown along with the svg into PDF documents. The output for the example above is shown here:
All this capability sounds better than exporting the diagram directly to PDF. Why you would like to have a PDF file containing only one diagram? That said, I consider the request as satisfied and will close this post.
I am aware that some extensions are able to show PlantUML diagrams but I don't know if they will be keen on doing the same with yuml-diagram. I will try to contact them.
from vscode-yuml.
Many thanks @jaime-olivares . Clarifications (me drawing an diagram might be better :) )
I, and all the people delivering any kind of documentation dare I say, we do not require "a single diagram as pdf", we do require document as pdf . Documents. We have folders and files in them. We have no source code in there. We just do write document using markdown and yUML. With ot wouthout VS Code.
I for example am using HUGO.
And some of those documents do contain diagrams. Just like auto-generated code documentation with yUML diagrams added here and there. And then the ability to print all or some of them into the pdf's.
I do understand we are here out of the scope of yUML plugin. Your previous answer contains enough pointers for me to try and proceed.
Thanks ...
from vscode-yuml.
@jaime-olivares where and how your followers can "request of you" to develop a theme for HUGO that will contain the ability to "write" yUML diagrams using MarkDown extension. For example
```yuml
(start)-->(end)
```
Above should generate yUML diagram in place. There is a theme doing this for "Mermaid" diagrams.
Mermaid is sort-of-a emulating PlantUML. Which is by now too big and too complex, yUML is much shorter lighter and functional. PlantUML is legacy.
Also, your work on formalizing the yUML syntax makes yUML approach more consistent.
from vscode-yuml.
As you mentioned, this topic is out of the scope of this VSCode plugin. However, I already separated the diagram functionality from the plugin functionality. You can find the diagram functionality here: https://github.com/jaime-olivares/yuml-diagram
Any developer familiarized with development of HUGO plugins (I am not at all) can use the diagraming library for building a similar plugin.
from vscode-yuml.
Ah ok ball is in my court then ;) Alas I left JS and turned (again) to C++ ... Ok I shall give it a due dilligence ... Thanks
from vscode-yuml.
Related Issues (20)
- Diagrams not shown HOT 8
- No preview HOT 3
- Dark color theme for sequence diagram is wrong HOT 3
- Same rendering as Yuml.me HOT 1
- Chinese character shows out of the box when type is sequence HOT 1
- snippets not working in markdown HOT 2
- Make TopBar optional
- Wiki copy error of the example code from package diagram HOT 1
- Object node is showed incorrectly HOT 4
- Need help with YUML and Mediawiki extension HOT 1
- Extension issue HOT 1
- Feature: override theme background color on preview
- Editor window becomes unresponsive HOT 3
- Extension causes high cpu load HOT 2
- Allow the preview window to Zoom In and Zoom Out
- Allow to save diagrams as an image HOT 3
- Can not use yuml in vscode 1.60.2 HOT 1
- Preview is not consistent with the official website
- Add possibility to export generated yUML HOT 2
- Export .yuml file to other formats like .png, jpg, pdf,...
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 vscode-yuml.