how to best use the new icon features

0 votes
asked 6 days ago in Wanted features by Jacy
This works great

http://www.plantuml.com/plantuml/png/TP9HJy8m58NV-okkyK5CDXS6lXX2d83612DXWl79TEiL5hjsQJkdCVvtRq4GYBuqFVUxvpIzxQLrtBYwbEm49f8hDxiRWtL25XaetK2XSbaBj72RQnLUQ-KWhKpXq1v1YWXBvofx4KMBmYthx2pNPUJgYWlJYIeVHybXuQqlP0tjsihOqKykz5Prtg3L9KPaBxNg_uSjcZSq_sB17S-unTq6tjW_KdrrWGeDbn7jSwbhiTtq6NE5amYf-v25MW2-yxAIo9XzBLJ53I_1OEwuMb3J9mEZQoK6sb1UhvSyfeFn_MpOxqDypY3JHg3nIRZ71BTB51i-q5BlUxMXU6HVZ6sABHgS2oJFK0RRuqyPW-laEHrDvwDfgy6i7VZb58vl3A8wWB67CS4db58t1xJZQOVebQpnW7KzwswTw_1Lpp1vIAwITDGITFRuTZuADiyGD4jwRF9CzGUNsz0TGnoaasJww_2zD1G6b0MzCAGnPJ59VwMDRgzal2yx-xBxAozH2Vg3tm00

This works as expected

http://www.plantuml.com/plantuml/png/TP9VIyCm5CNVyock-E06hSLkliWOTdyKOQAiEl59qkQw5TEa9Abr3B-xDzDDDznBoRc_UqxeQI-juyRLfMGdS2-vSe-t4x1Eo283fHieL2vhWHPkSgt2AwqSf9Kf7DeZI15XuLnbBw9eNhX5dPtckenSNN5XEb7buoWvBBprbQoX_ROoTlIJ2xtrd3TeTOaHsKkj-eUmHVEEvY0MtF6CM_oxm1lxJwgVpb6XuJAYSovrBRQ7FcEkS18XTKjPg3dW1oyhYOpPjq9LtF0I3EQEgpajhHWONIinr8RoUhtaAHrExXv7_Jx4vmmoRGGQduGxJ72xGB7XGotrhbSRYaVsoTXcsABYN21vXhAzOWokafTqF9sDfwq6ixF0FzfmV6qGrHwCFOm9FgEKkjcZ7KyxH0UonZtMzQoxTNw7htT6oKCoID9nIz3TavlPEDYq7pGB-iRacUebbzlGFuOuIE-JwQ_3xr8N32WBUc58xMGnIVzA6tssbl6kxEpAxg-atYvH2VhxlW00

But unfortunately this fails

http://www.plantuml.com/plantuml/png/TP9HJy8m58NV-okkyK5CDXS7lXX2d8Z612DXYl79TEiL5hjsQJkd8VntRq50YBmqFVUxvpIzxPLrtBYwbEm4Hf8hz_mm1Ek4B39Gke52vR8MQE4-rogyrSf1Mfd2eJs2515cpbNsCegcXPlLsLckoyZL5HUc7LK-ZfB3mblVoHhQbPMnezzSw2xhl46hIup8NchLEuGjcayq1x7WZcVSujy6tjX_KdrrYWeDbn7jSwbhiTdq67E5amYf-vQ5cW9-yRAIo9ZzA5J53I_1OEwucbBJd87HjH9zRIYlsqrUqlxmyVccruFuWa6cZK3Zat272MvdADQyhwNUzMf3ySWMZAsBBHgS2oJFK0QRuq_dZC5jyfOEnfF1kDLWTXxuvHIExmoYseEnXp71LvHIDtkqxMcRwBMiSOzrFEjidAlmPSzDyfHS9-cW9UZiuVra4ApV8MXczDha6UjlBZUXVmnna8wIyTRXUsag32WBkc58SyfYalvAQts-bF6kRE_ApbOks1KgGT_m1m00

If there is a better way please tell.

Also would it be possible to control the icon location? AWS diagrams put the icon over the border, but in lieu of that being able to make the icon [right | center | left] justified would be very cool.

Thanks for your attention

2 Answers

0 votes
answered 4 days ago by plantuml (135,550 points)

This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Could you tell us if it's working for you ?

Thanks!

commented 4 days ago by jacy
very nice - thanks
0 votes
answered 4 days ago by plantuml (135,550 points)

With last beta 17: http://beta.plantuml.net/plantuml.jar

You can have:

@startuml
skinparam packageTitleAlignment left

!include <font-awesome/common>
!include <font-awesome/server>
!include <font-awesome/database>
!include <aws/common>
!include <aws/general/awscloud/awscloud>

title Styling example

skinparam rectangle {
 roundCorner<<AWSCLOUD>> 25
 borderStyle<<AWSCLOUD>> dashed
 borderColor<<AWSCLOUD>> orange
}

AWSCLOUD(test,label,rectangle){

 FA_SERVER(web1,web1) #Green
 FA_SERVER(web2,web2) #Yellow
 FA_SERVER(web3,web3) #Blue
 FA_SERVER(web4,web4) #YellowGreen

 FA_DATABASE(db1,LIVE,database,white) #RoyalBlue
 FA_DATABASE(db2,SPARE,database) #Red

 db1 <--> db2

 web1 <--> db1
 web2 <--> db1
 web3 <--> db1
 web4 <--> db1
}
@enduml

Is this what you were expecting ?

...