Closed sakirtemel closed 1 year ago
Here is a beta with the standard library embedded http://beta.plantuml.net/plantuml-wasm-v5.jar
This is really an intermediate version: we just would like to be sure that the the standard library is working that way.
The main drawback of this solution is that the main jar file is now 16 MB large. So even diagrams not using standard library are impacted.
The next step we are thinking of is taking advantage of the /app/
mount point:
We would compress each folder of the standard library in an independent zip file (so we'll get C4.zip
, DomainStory.zip
, archimate.zip
, aws.zip
, awslib10.zip
, awslib14.zip
, azure.zip
...)
All those files must be hosted on the root server:
Needed zip files would be load from the Java/JS code only if needed (that is only if some !include <...>
is done)
Drawback: I'm not sure this will work from a local browser (that is, is the HTML file is opened locally on the browser).
Drawback: I'm not sure this will work from a local browser (that is, is the HTML file is opened locally on the browser).
nothing works locally right now, that's how cheerpj works. imo we can evaluate this concern later on, 👍 for the idea of having the zip files.
Java is run in "/app" folder, so when it looks for a file in the same directory, like "C4.zip", it then downloads the file and gives it to java.
It worked 🎉 , after adding https://github.com/plantuml/plantuml-wasm/issues/5#issuecomment-1406916805
https://github.com/plantuml/plantuml/issues/803#issuecomment-1404126757
We should find a way for such content to work: