Class

VideoPrimitive

VideoPrimitive(position, video)

Constructor

# new VideoPrimitive(position, video)

视频 Primitive

Parameters:
Name Type Description
position Array.<Position>

任意类型的坐标数组

video string

视频链接

Author:
  • xyj

Extends

Members

# positions

# positions

string

# readonly type

图形类型

# video

string

# readonly video

视频链接

Methods

# addTo(layer) → {Graphic}

将实体加入图层

Parameters:
Name Type Description
layer Layer

图层

Overrides:
See:

this - 当前实体对象

Graphic

# setStyle() → {VideoPrimitive}

设置样式

  • 返回自己,链式调用