Class: TextMaterial

TextMaterial

new TextMaterial(options)

base/symbol/support/material/TextMaterial.js, line 6

文字材质,适用于所有三维符号

Name Type Description
options Object

构造参数

Name Type Description
color Color 可选

材质颜色

symbol MapGISTextSymbol 可选

符号样式

repeat Array.<Number> 可选

符号样式的XY轴重复次数

Members

repeatArray.<Number>

文字XY轴重复次数

Default Value:
[1,1]

符号样式

typeString

材质类型

Methods

clone(){TextMaterial}

base/symbol/support/material/TextMaterial.js, line 64

克隆并返回一个新的TextMaterial对象

Returns:
Type Description
TextMaterial 新的TextMaterial对象

toJSON(){Object}

base/symbol/support/material/TextMaterial.js, line 52

导出为json数据

Returns:
Type Description
Object 导出的json数据

TextMaterial.fromJSON(json){TextMaterial}

base/symbol/support/material/TextMaterial.js, line 44

通过 JSON 数据构造并返回一个新的 TextMaterial 实例(静态工厂方法)。

Name Type Description
json Object

材质属性的 JSON 对象

Returns:
Type Description
TextMaterial 新的 TextMaterial 实例