Class

LightCylinderPrimitive

LightCylinderPrimitive(center, length, topRadius, bottomRadius)

Constructor

# new LightCylinderPrimitive(center, length, topRadius, bottomRadius)

发光圆柱Primitive

Parameters:
Name Type Description
center Position

任意类型的坐标

length number

圆柱高度

topRadius number

上部半径

bottomRadius number

底部半径

Author:
  • xyj

Extends

Members

# bottomRadius

number

# readonly bottomRadius

圆柱底部半径

# center

Position

# readonly center

图形坐标

# length

number

# readonly length

圆柱高度

# topRadius

number

# readonly topRadius

圆柱上部半径

string

# readonly type

类型

Methods

# addTo(layer) → {Graphic}

将实体加入图层

Parameters:
Name Type Description
layer Layer

图层

Overrides:
See:

this - 当前实体对象

Graphic

# destroy() → {Boolean}

销毁自身

Boolean

# setStyle() → {LightCylinderPrimitive}

设置样式

  • 返回自己,链式调用

# update()

更新当前状态

See: