Fx构造函数
# new TextSymbol3DLayer(typeopt, backgroundopt, fontopt, haloopt, horizontalAlignmentopt, lineHeightopt, materialopt, sizeopt, textopt, verticalAlignmentopt)
三维文本图层
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
type |
String |
<optional> |
类型,只能是'text' |
|
background |
Object |
<optional> |
背景 |
|
color |
String |
<optional> |
背景-颜色 |
|
font |
Font |
<optional> |
字体 |
|
halo |
Object |
<optional> |
光晕 |
|
color |
Object |
<optional> |
'rgb(0,0,0)' | 光晕颜色,默认'rgb(0,0,0)' |
size |
Object |
<optional> |
0 | 光晕大小,默认0 |
horizontalAlignment |
HorizontalAlignment |
<optional> |
'center' | 水平方向,可选"left"|"right"|"center" |
lineHeight |
Number |
<optional> |
1.0 | 行高 |
material |
Object |
<optional> |
材质 |
|
color |
Object |
<optional> |
'rgb(255,255,255)' | 材质-颜色,默认白色 |
size |
Number |
<optional> |
9 | 大小 |
text |
String |
<optional> |
显示内容 |
|
verticalAlignment |
VerticalAlignment |
<optional> |
'baseline' | 垂直对齐,可选"baseline"|"top"|"middle"|"bottom" |