2016-05-12 00:40:43 +02:00
|
|
|
# PlantUML Icon-Font Sprites
|
2016-05-11 00:07:51 +02:00
|
|
|
|
2016-05-12 00:40:43 +02:00
|
|
|
## Getting Started
|
2016-05-11 00:07:51 +02:00
|
|
|
|
2016-05-12 00:40:43 +02:00
|
|
|
The common.puml is required for the rest to work.
|
|
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
```puml
|
|
|
|
|
!include ../common.puml
|
|
|
|
|
```
|
|
|
|
|
or via url
|
|
|
|
|
```puml
|
|
|
|
|
!define ICONURL https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/v2.0.0
|
|
|
|
|
!includeurl ICONURL/common.puml
|
|
|
|
|
```
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
Import the sprites that you want
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
```puml
|
|
|
|
|
!include ../devicons/mysql.puml
|
|
|
|
|
!include ../font-awesome/database.puml
|
|
|
|
|
!include ../font-awesome-5/database.puml
|
|
|
|
|
```
|
|
|
|
|
or via url
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
```puml
|
|
|
|
|
!includeurl ICONURL/common.puml
|
|
|
|
|
!includeurl ICONURL/devicons/mysql.puml
|
|
|
|
|
!includeurl ICONURL/font-awesome/database.puml
|
|
|
|
|
!includeurl ICONURL/font-awesome-5/database.puml
|
|
|
|
|
```
|
2016-05-12 00:40:43 +02:00
|
|
|
|
|
|
|
|
To use the sprites add one of the macros
|
|
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
```puml
|
|
|
|
|
DEV_MYSQL(db)
|
|
|
|
|
```
|
2016-05-12 00:40:43 +02:00
|
|
|
|
|
|
|
|
The macros are prefixed with the set and the name of the icon
|
|
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
```puml
|
|
|
|
|
<prefix>_<name>(alias)
|
|
|
|
|
<prefix>_<name>(alias,label)
|
|
|
|
|
<prefix>_<name>(alias,label,shape)
|
|
|
|
|
<prefix>_<name>(alias,label,shape,color)
|
|
|
|
|
```
|
|
|
|
|
|
2016-05-12 00:40:43 +02:00
|
|
|
Using the icon from devicons for mysql
|
|
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
```puml
|
|
|
|
|
DEV_MYSQL(db1)
|
|
|
|
|
DEV_MYSQL(db2,label of db2)
|
|
|
|
|
DEV_MYSQL(db3,label of db3,database)
|
|
|
|
|
DEV_MYSQL(db4,label of db4,database,red) #DeepSkyBlue
|
|
|
|
|
```
|
2016-05-12 00:40:43 +02:00
|
|
|
|
|
|
|
|

|
2016-05-11 00:07:51 +02:00
|
|
|
|
2016-05-12 00:40:43 +02:00
|
|
|
## Icon Sets
|
|
|
|
|
|
2016-05-17 22:18:58 +02:00
|
|
|
The following icon sets are included:
|
|
|
|
|
|
2018-06-17 11:20:55 +02:00
|
|
|
| Name | Index |
|
|
|
|
|
| ------------------------------------------------- | ----------------------------------------- |
|
2018-06-28 11:23:49 +02:00
|
|
|
| [Font-Awesome 4](https://fontawesome.com/v4.7.0/) | [List of macros](font-awesome/index.md) |
|
|
|
|
|
| [Font-Awesome 5](http://fontawesome.io/) | [List of macros](font-awesome-5/index.md) |
|
2018-06-17 11:20:55 +02:00
|
|
|
| [Devicons](http://vorillaz.github.io/devicons) | [List of macros](devicons/index.md) |
|
|
|
|
|
| [Govicons](http://govicons.io/) | [List of macros](govicons/index.md) |
|
|
|
|
|
| [Weather](https://erikflowers.github.io/weather-icons/) | [List of macros](weather/index.md) |
|
|
|
|
|
| [Material](http://google.github.io/material-design-icons/) | [List of macros](material/index.md) |
|
2016-05-12 00:40:43 +02:00
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
```puml
|
|
|
|
|
@startuml
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
skinparam defaultTextAlignment center
|
|
|
|
|
|
|
|
|
|
!define ICONURL https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/v2.0.0
|
|
|
|
|
|
|
|
|
|
!includeurl ICONURL/common.puml
|
2018-06-16 14:20:19 +02:00
|
|
|
!includeurl ICONURL/devicons/mysql.puml
|
2018-06-16 13:22:19 +02:00
|
|
|
!includeurl ICONURL/font-awesome/server.puml
|
|
|
|
|
!includeurl ICONURL/font-awesome-5/database.puml
|
|
|
|
|
|
|
|
|
|
title Styling example
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
FA_SERVER(web1,WEB1) #Green
|
|
|
|
|
FA_SERVER(web2,WEB1) #Yellow
|
|
|
|
|
FA_SERVER(web3,WEB1) #Blue
|
|
|
|
|
FA_SERVER(web4,WEB1) #YellowGreen
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
FA5_DATABASE(db1,LIVE,database,white) #RoyalBlue
|
|
|
|
|
DEV_MYSQL(db2,SPARE,database) #Red
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
db1 <--> db2
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
web1 <--> db1
|
|
|
|
|
web2 <--> db1
|
|
|
|
|
web3 <--> db1
|
|
|
|
|
web4 <--> db1
|
2016-05-11 00:07:51 +02:00
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
@enduml
|
|
|
|
|
```
|
2016-05-11 00:07:51 +02:00
|
|
|
|
2016-05-12 00:40:43 +02:00
|
|
|

|
|
|
|
|
|
2018-06-16 13:22:19 +02:00
|
|
|
More examples can be found [here](examples/)
|
2016-05-12 00:40:43 +02:00
|
|
|
|
2017-09-27 13:25:14 +02:00
|
|
|
## Note
|
|
|
|
|
* All brand icons are trademarks of their respective owners.
|
2018-06-16 13:22:19 +02:00
|
|
|
* Thanks to milo-minderbinder for [AWS-PlantUML](https://github.com/milo-minderbinder/AWS-PlantUML)
|
2017-09-27 13:25:14 +02:00
|
|
|
|
2018-06-16 14:04:52 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
|
|
#### v2.0.0
|
|
|
|
|
|
2018-06-17 11:20:55 +02:00
|
|
|
* Added fa5, weather, gov and material
|
2018-06-16 14:04:52 +02:00
|
|
|
* Updated dev and fa to latest version
|
|
|
|
|
* Fixed aspect ratios
|
|
|
|
|
|
|
|
|
|
#### v1.0.0
|
|
|
|
|
|
|
|
|
|
* Intital release
|
|
|
|
|
|
|
|
|
|
|
2016-05-12 00:40:43 +02:00
|
|
|
Enjoy!
|
2016-05-11 00:07:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|