There are five figure types: Cx.Text, Cx.Shape, Cx.Raster, Cx.Group and Cx.ProxyGroup. They all share the same base: Cx.Figure. These are the common properties and functions.
Properties
Properties
Type
Def
Definition
name
String
null
Figure name
xType
String
'CadX.Figure'
Figure type
pen
Pen
empty
Figure outline
brush
Brush
empty
Figure fill
alpha
0…1
1
Global alpha
locked
Boolean
false
If true, the figure can not be selected
hidden
Boolean
false
If true, the figure is not visible
visible
Boolean
true
Opposite of hidden
anchor
Anchor
Relative (0.5,0.5)
Figure anchor generator
preMatrix22
Matrix22
Identity
Transformation applied before processes
processes
Process Array
[]
Figure effects
matrix22
Matrix22
Identity
Figure transformation
pin
Point
(0, 0)
Figure position
powerClipContents
PowerClipContent Array
[]
Power clipped figures
metadata
Metadata
empty
App metadata
Read only properties
Properties
Type
Def
Definition
localId
Integer
unique
Client based unique id, not serialized
canBeSelected
Boolean
true
Is visible and is not locked
outputFigure
Figure
null
Processed figure output
grouped
Boolean
false
The figure is inside a group
isEmpty
Boolean
false
Text with no lines, shape with not polyregions, group with no figures