-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Question] PlantUML images from any URL? #46
Comments
do you have an example? I must've missed it, I was looking at https://plantuml.com/stdlib |
Sure! For instance, using the example from the gilbarbara-plantuml-sprites repo: @startuml
!$SPRITESURL = 'https://raw.githubusercontent.com/plantuml-stdlib/gilbarbara-plantuml-sprites/v1.0/sprites'
!include $SPRITESURL/flask.puml
!include $SPRITESURL/kafka.puml
!include $SPRITESURL/kotlin.puml
!include $SPRITESURL/cassandra.puml
rectangle "<$flask>\nwebapp" as webapp
queue "<$kafka>" as kafka
rectangle "<$kotlin>\ndaemon" as daemon
database "<$cassandra>" as cassandra
webapp -> kafka
kafka -> daemon
daemon --> cassandra
@enduml All "sprites" are loaded from remote files. Sprites are a converted form of image, but the same can be done using images: @startuml
!$IMAGEURL = 'https://raw.githubusercontent.com/plantuml-stdlib/gilbarbara-plantuml-sprites/master/pngs'
rectangle "<img:$IMAGEURL/flask.png>\nwebapp" as webapp
queue "<img:$IMAGEURL/kafka-icon.png>" as kafka
rectangle "<img:$IMAGEURL/kotlin.png>\ndaemon" as daemon
database "<img:$IMAGEURL/cassandra.png>" as cassandra
webapp -> kafka
kafka -> daemon
daemon --> cassandra
@enduml |
@Potherca Right but that's a pre-package icon set. That's what the site is saying it can do. Can it for example use your profile pic? |
Ah, I think I am beginning to understand... From the perspective of PlantUML "prepackaged" means it is part of the The PlantUML equivalent of the above could be @startuml
rectangle "<img:https://avatars.githubusercontent.com/u/195757?s=80&v=4>" as y
[x] --> y
@enduml but then the question would be if that constitutes an "icon"... 🤔 I think the different concepts in PlantUML (Image, Sprite, Icon) are also slightly skewed and confused. Especially because you can also use From my perspective, PlantUML is a great tool for all it can do, but I'm very hesitant in suggesting it to new users. |
yeah that's a reasonable definition -- i'll change it to just "packaged".
oh, that totally counts, I'll make the change that says PlantUML can load from any URL too. thank you |
I was curious regarding two statements regarding PlantUML and images/icon:
and
As far as I'm aware, in PlantUML, an icon or image can be loaded from any URL. At least, I've not had any issues thus far.
Am I missing something, or am I reading the content wrong?
The text was updated successfully, but these errors were encountered: