new TextMaterial(options)
base/symbol/support/material/TextMaterial.js, line 6
文字材质,适用于所有三维符号
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
构造参数
|
Members
-
repeatArray.<Number>
-
文字XY轴重复次数
- Default Value: [1,1]
symbolMapGISTextSymbol
符号样式
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 jsonObject 材质属性的 JSON 对象
Returns:
Type Description TextMaterial 新的 TextMaterial 实例