Comment expressions are special comments for backward compatibility; they are executed. Format:
js
#>exp(attr1: value1, attr2: value2, ...)
exp is the expression type; the parentheses hold optional attributes. Many expressions must be followed by a #>pop to end their scope (from that line to the next #>pop).
If your UML uses features not in V2, wrap content in this so older clients can be prompted to upgrade. In V1, comment expressions are ignored; #if-no-v2 effectively ignores its block.
Comment expressions
Comment expressions are special comments for backward compatibility; they are executed. Format:
expis the expression type; the parentheses hold optional attributes. Many expressions must be followed by a#>popto end their scope (from that line to the next#>pop).End
#>popEnds the scope of the previous comment expression.
Rotate
#>rotangle(required): angle in radianscx,cy(required): center x and yTranslate
#>trdx(optional, default 0): horizontal offsetdy(optional, default 0): vertical offsetAlpha
#>alphaa(optional, default 0): opacity in [0,1]; 0 transparent, 1 opaqueMatrix
#>mat4×4 matrix entries (default 0). Used for scale, translate, rotate, etc.
Conditional
#>ifetc. condition: any expression; 0 is false, non-zero is true. Use#>fito end, not#>pop.Legacy compatibility
#>if-no-v2If your UML uses features not in V2, wrap content in this so older clients can be prompted to upgrade. In V1, comment expressions are ignored;
#if-no-v2effectively ignores its block.