Data type
The following data types are available in UML.
Float
Single precision floating point number, any number is of type Float.
Rect
Rectangle. Defined by [left, top, width, height] (x coordinate of top left corner, y` coordinate of top left corner, rectangle width, rectangle height, respectively).
Rect has some read-only attributes that can be accessed after definition, including:
Rect.lorRect.x:xcoordinate of top left cornerRect.torRect.y:ycoordinate of top left cornerRect.w: Width of the rectangleRect.h: Height of rectangleRect.r:xcoordinate of bottom right cornerRect.b:ycoordinate of bottom right cornerRect.cx:xcoordinate of the centerRect.cy:ycoordinate of the center
Bool
Boolean value. The value is either true or false, and can currently only be used in attributes of an element.
String
String. Text enclosed in double quotes, used to indicate button behavior, color, URL, as follows:
Color: the color. Can be a hexadecimal RGB or ARGB color value (e.g.“#ff0000”or“#7fffffff”) or a color name (e.g.“red”). Currently available color names are."white""black""red""blue""yellow""green""gray"
Action: button behavior. Available values are:“join”: Participate in the event"open:url": Opens the specified URL
- `URL': Website