Text

构造函数

关系

Implements

Text Implements IGraphicText

实现接口: IGraphicText

构造函数

Text

构造函数

new Text(position, text, style, spatialReference?)

参数

  • position: number 文本的位置坐标
  • text: string 文本内容
  • style: TextStyle 文本样式
  • spatialReference?: object 空间参考

返回:Text Text对象

属性

position

文本位置

position: number[]

类型: number[]

spatialReference

空间坐标系

spatialReference: object

类型: object

style

文本样式

style: TextStyle

类型: TextStyle

方法

convertSymbol

样式转换

convertSymbol(text, style): object

参数

  • text: string 文本内容
  • style: TextStyle 文本样式

返回:object

BIMFlux AI