Skip to content

Latest commit

 

History

History
103 lines (72 loc) · 1.34 KB

README.md

File metadata and controls

103 lines (72 loc) · 1.34 KB

Objects

<-Home

Contents

Component
Interface
Rectangle
Actor
Artifact

@startuml
component [component] as myComponent
@enduml

Component

@startuml
() "This is an interface" as myInterface
@enduml

Interface

@startuml
rectangle "This is a Rectangle"
@enduml

Rectangle

Rectangles can group other objects:

@startuml
rectangle "This is a Rectangle with things in it" {
    () " " as o1
    () " " as o2
    :Actor:
    [Component]
}
@enduml

Rectangle

Note that if you use keyword 'actor', it will assume format of a sequence diagram. Use colons around actor name instead.

@startuml
:"Alice":
@enduml

Actor

Can change colour etc with skinparams:

@startuml
skinparam ActorBorderColor black
skinparam ActorBackgroundColor white
:"Alice":
actor "Bob"
@enduml

Actor

An artifact in UML is generally a file

@startuml
artifact "config.json"
@enduml

Actor