Data Types
UML has these types:
Float
Single-precision floating-point value. Any numeric literal is a Float.
Rect
A rectangle, defined as [left, top, width, height], meaning top-left X, top-left Y, width, and 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 value: true or false. Currently used only in element attributes.
String
Double-quoted text. Used for button actions, colors, and 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.