Data types
UML has these types:
Float
Single-precision float. Any numeric literal is a Float.
Rect
Rectangle, defined as [left, top, width, height] (top-left x, top-left y, width, height).
After definition, a Rect has read-only properties:
Rect.lorRect.x: left (x)Rect.torRect.y: top (y)Rect.w: widthRect.h: heightRect.r: right (x)Rect.b: bottom (y)Rect.cx: center xRect.cy: center y
Bool
Boolean: true or false. Currently only used in element attributes.
String
Double-quoted text. Used for button actions, colors, URLs:
- Color: hex RGB or ARGB (e.g.
"#ff0000","#7fffffff") or name:"white","black","red","blue","yellow","green","gray". - Action: button action. Values:
"join"(join event),"open:url"(open URL). - URL: web address.