-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] view images exporting as vector graphics #77
Comments
With current realization maybe would be simple enough to do it with Plotly JS library |
We already have a SVG exporter plug-in but it needs some refactoring so that it can be used by jArchi. The SVG data will have to be returned in a re-usable format - perhaps the SVG DOM Element could be returned as a String. Then this could be saved as a file, or converted into another format consumed by JS. This will have to be added to the "to do" list. |
Try d3.js its a very powerful js graphic framework , i think it could be converted in SVG |
To convert Archi diagrams to SVG requires special code. If/when the SVG export is implemented in jArchi, the likely format will be a String of the SVG DOM Element. |
Would like to see this at the roadmap )
@Phillipus , I could not find how to make SVG export happen in Archi GUI itself for 4.7 or 4.7.1 beta. Is it currently available as a feature |
Choose "SVG Image" from the "Export as Image" dialog. https://www.archimatetool.com/downloads/Archi%20User%20Guide.pdf page 45 |
@Phillipus , found. Could you provide some advice how to use vector fonts in generated images ? Seems like now it uses rasters with a specific resolutoin and zooming in results in low quality text, like this one: And seems like also objects are generated somehow in raster manner , |
It seems you didn't use SVG format. Are you sure you selected it from the list ? |
Pretty sure. I've been wondering as well about it.
File is saved as SVG. I can even open it as SVG XML. And it contains XML. |
In this case which software did you use to open the SVG? Can you try in a browser like chrome if not already done? |
XNView. |
I'm pretty sure xnview create a raster image when loading the svg, which should explain your issue. Chrome can zoom, but you first have to export from archi without setting the bounding box. |
Yeah seems like this is the issue. But second thought is How can i build up SVG images for 60+ views in model while updating a project documentation based on model in a collaboration tool like Confluence ? Currently we have continous integration toolchain to support documentation update. Using SVG (or other vector format) images would greatly improve documentation readaility. Toolchain is currently generates HTML report referenced by pages. But it only makes things to use PNG images. |
I've refactored the SVG code in Archi to support this for Archi 4.9, and added a method in jArchi. It would then be possible to do the following in a similar pattern to saving to other formats:
Depends on Archi 4.9. |
Hi Phillipus, Btw, I am planning to use this feature when a user publishes a Change via the "coArchi" Plugin to the git Repo. Is there some way of "event hook" for "before commit" or "after push" to hook into this workflow with a jArchi script? Thanks in advance! BR Dominic |
We are working on Archi 4.9 aiming for a release over the coming weeks. Once this has been released and any bugs fixed, we will then add new features to jArchi for specializations, and include the SVG support. There won't be any new releases of jArchi until all of the pre-requisites are completed.
No, jArchi is not linked to coArchi. We might consider this for coArchi 2. Regards, Phil |
Hi Phil, Thanks for your update to your envisioned roadmap.
Is there any way to "easily" achieve to execute either:
Thanks in advance |
Hi Dominic, jArchi scripts cannot be triggered by other actions, but a script file can be run from the ACLI (https://github.com/archimatetool/archi/wiki/Archi-Command-Line-Interface). coArchi does have a couple of ACLI commands that could probably be called indirectly from a jArchi script, but there's no more interaction than that. Phil |
Hi Phil, I built the jArchi plugin from the When I switch to windows OS and use the same plugin jar's I used on Mac OS, the following error happens: Thanks in advance, |
Just to add to my last comment, it only works when i run Archi 4.9 (master branch) in Eclipse from source together with the jarchi plugin from the Maybe an outdated dependency in the Beta builds? |
Btw... Since i am trying to provide a "publish to PNG/SVG" automation when a model author wants a commit changes via coArchi, i forked both plugins (https://github.com/flexarts/archi-modelrepository-plugin and https://github.com/flexarts/archi-scripting-plugin) and combined the two for my workflow via a "command" execution pre-commit vom coArchi -> jArchi. for coArchi: for jArchi: Kind regards, |
@flexarts Dominic, the |
Hi Phil, |
Hi Phil,
|
@flexarts Thanks for that stacktrace. I'm getting that here, as well. Investigating... |
...bug found...a fix and a deeper investigation of the cause incoming... |
Thanks a lot Phil... I began to think my system setup was the problem... |
...cause found, fix is done but will upload it tomorrow. |
Could you plan a jArchi method to render views as a vector graphics format format with jArchi script ? Would be very usefull to have such an option to export LARGE images.
Currently there is only renderviewasbase64 method available.
The text was updated successfully, but these errors were encountered: