Skip to content

EIP sprite library #8

@nikolay-martynov

Description

@nikolay-martynov

There is EIP library by aheil https://github.com/aheil/EIP-PlantUML but:
. it lacks catalog of all what it offers
. there are bugs in it leading to some images not being shown at all
. it does too much with stereotypes and so on limiting where you can use those images due to syntax errors after macro expansion

Instead, i've created another library https://github.com/nikolay-martynov/eip-for-plantuml based on MIT licensed SVG's from https://github.com/comsysto/enterprise-integration-pattern-shapes-for-gliffy
There's quite a number of pictures for enterprise integration patterns.

Being a pure sprite library like Cloud Inside standard library you have lots of freedom about how you like your diagram to look like.

I've also made a full catalog that makes it easier to pick sprite you need and copy its name. You can find it description of project and it could also be linked from githubpages:
https://camo.githubusercontent.com/343945ec5319da62cd7955fa7f4c7b18a79e77be/68747470733a2f2f6e696b6f6c61792d6d617274796e6f762e6769746875622e696f2f6569702d666f722d706c616e74756d6c2f67656e6572617465642d6578616d706c65732f616c6c2d737072697465732e737667

Here's example diagram from EIP book (same as in project description):

@startuml
!includeurl https://raw.githubusercontent.com/nikolay-martynov/eip-for-plantuml/master/dist/eip-for-plantuml.puml
legend top
    You can use sprite
    anywhere you can use text.
    Rectangle content is most
    convenient.
endlegend
rectangle "<$EIP_MessageDouble>\nNew order" as newOrder
rectangle "<$EIP_Splitter>\nSplitter" as splitter
rectangle "<$EIP_MessageSingleGreen>\nOrder item 1" as item1
rectangle "<$EIP_MessageSingleOrange>\nOrder item 2" as item2
newOrder -> splitter
splitter -> item1
item1 -[hidden] item2
@enduml

It renders as the following on demo server: http://www.plantuml.com/plantuml/uml/XOz1IyD048Nl-HLZyPg4zYXIUb34WrRiILHacup9ucPscPrjpBztDqshKiGSminxVFFUhhmebj2Px4nJPKADWGsq8ivVb2MhlcYqj64RF79bIP2ag6nNalwmHWrv5-c1xAv4xV9toxapYjAzibDUaCjQUpan2vSI3JP8DOXr6SJloGQe546C0kzO2uwoeg5laH667xxWfnIZ_OYLA6eCmbGFj8VEUabkqdP8EhNEOjO-CUCZCxiylxvzUBj3xrM3LpPi3IvVw1vxi5mZpq1v8EpNQJdbDive4UI8xCU9yDFoPz969_664IcoutM83-vWdlXndFy3hpbw-9jU7Eb5TcWD-VAxps68uXGo_Y5_RdLT8xrEy0gf3ftv0W00

Please consider adopting the sprites.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions