xyj3d API 文档 - v1.0.0
    正在准备搜索索引...

    类 AttackArrow

    攻击箭头(军标):由若干控制点算出箭头面,positions 驱动。

    层级 (查看层级一览)

    索引

    构造函数

    • 构造函数

      参数

      参数名称类型默认值描述信息
      positionsunknown—坐标数组,任意类型的坐标数组,最终转换为自定义Position数组对象

      返回 AttackArrow

      Position

    属性

    graphicId: string

    地图覆盖物基础类

    id: string

    地图覆盖物基础类

    show: boolean

    地图覆盖物基础类

    attr: Record<string, unknown>

    地图覆盖物基础类

    allowDrillPicking: unknown

    地图覆盖物基础类

    graphicEvent: GraphicEvent

    地图覆盖物基础类

    graphic: Graphic

    地图覆盖物基础类

    state: string

    地图覆盖物基础类

    contextMenu: unknown

    地图覆盖物基础类

    headHeightFactor: unknown

    构造函数

    坐标数组,任意类型的坐标数组,最终转换为自定义Position数组对象

    Position

    headWidthFactor: unknown

    构造函数

    坐标数组,任意类型的坐标数组,最终转换为自定义Position数组对象

    Position

    neckHeightFactor: unknown

    构造函数

    坐标数组,任意类型的坐标数组,最终转换为自定义Position数组对象

    Position

    neckWidthFactor: unknown

    构造函数

    坐标数组,任意类型的坐标数组,最终转换为自定义Position数组对象

    Position

    headTailFactor: unknown

    构造函数

    坐标数组,任意类型的坐标数组,最终转换为自定义Position数组对象

    Position

    type: string

    类型

    positions: Position[]

    设置坐标,数组类型的

    方法

    • 参数

      参数名称类型默认值描述信息
      typestring—

      返回 unknown

    • 参数

      参数名称类型默认值描述信息
      typestring—

      返回 unknown

    • 把当前实体从所属图层移除

      返回 Graphic

      this - 当前实体对象

    • 将实体加入图层

      参数

      参数名称类型默认值描述信息
      layerxyj3d—图层

      返回 Graphic

      this - 当前实体对象

      Layer

    • 注册图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型
      callbackunknown—事件回调
      contextRecord—回调上下文

      返回 Graphic

      this - 当前实体对象

    • 取消图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型
      callbackunknown—事件回调
      contextRecord—回调上下文

      返回 Graphic

      this - 当前实体对象

    • 触发图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型
      paramsRecord—事件携带参数

      返回 Graphic

      this - 当前实体对象

    • 触发图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型

      返回 Graphic

      this - 当前实体对象

    • 触发图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型

      返回 Graphic

      this - 当前实体对象

    • 设置文字

      参数

      参数名称类型默认值描述信息
      textstring—文字
      textStyleRecord—文字样式,css样式

      返回 Graphic

      当前对象,链式调用

    • 设置样式

      参数

      参数名称类型默认值描述信息
      styleRecord—样式对象,css样式

      返回 Graphic