Fx构造函数
# new IconSymbol3DLayer(typeopt, anchoropt, anchorPositionopt, materialopt, outlineopt, resourceopt, sizeopt)
三维图标图层
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
type |
String |
<optional> |
类型,只能是'icon' |
|
anchor |
Anchor |
<optional> |
'center' | 锚点位置, 可选"center"|"left"|"right"|"top"|"bottom"|"top-left"|"top-right"|"bottom-left"|"bottom-right"|"relative" |
anchorPosition |
Object |
<optional> |
{x:0, y:0} | 锚点偏移 |
material |
Object |
<optional> |
材质 |
|
color |
String |
<optional> |
材质颜色 |
|
outline |
Object |
<optional> |
轮廓 {color: 'rgba(255, 255,255,1)', size: 4} |
|
color |
String |
<optional> |
轮廓颜色 |
|
size |
Number |
<optional> |
轮廓大小 |
|
resource |
Object |
<optional> |
{ primitive: "circle" } | 资源,默认{ primitive: "circle" } |
primitive |
Object |
<optional> |
"circle" | 资源-图元,使用内置的形状'circle', 'square', 'cross','x', 'kite','triangle' |
href |
Object |
<optional> |
资源-引用,引用SVG的路径URL/URI,SVG的root node必须设置width和height |
|
size |
Number |
<optional> |
12 | 大小 |