Class

PointEntity

PointEntity(position)

Constructor

# new PointEntity(position)

自定义点

Parameters:
Name Type Description
position Position

任意类型的坐标

Author:
  • xyj

Extends

Members

# position

Position

# readonly position

图形坐标

string

# readonly type

类型

Methods

# addTo(layer) → {Graphic}

将实体加入图层

Parameters:
Name Type Description
layer Layer

图层

Overrides:
See:

this - 当前实体对象

Graphic

# setStyle() → {CorridorEntity}

设置样式

  • 返回自己,链式调用

# static fromEntity(entity) → {PointEntity}

从实体对象转化为自定义对象

Parameters:
Name Type Description
entity Object

其他对象实体

  • 自定义实体
PointEntity