new VideoPrimitive(positions, video)
overlay/primitive/VideoPrimitive.js, line 40
Name | Type | Default | Description |
---|---|---|---|
positions |
Array.<Position> |
坐标串 |
|
video |
HTMLCanvasElement |
video 标签对应的 dom |
|
options.rotation |
number | 0 |
optional
视频材质旋转的角度(弧度制) |
Extends
Classes
Members
-
attr
-
覆盖物的额外属性设置
-
readonlydelegate
-
覆盖物的代理对象
-
id
-
设置覆盖物的业务 id
-
readonlyoverlayEvent
-
覆盖物的事件对象
-
readonlyoverlayId
-
覆盖物唯一标识
-
positions
-
设置/获取坐标串
-
show
-
覆盖物的可见性
-
readonlystate
-
覆盖物的状态
-
stRotation
-
设置/获取材质旋转角度
-
video
-
设置/获取 video dom
Methods
-
添加到指定图层
Name Type Description layer
EntityLayer 指定图层
Returns:
Type Description Overlay -
触发事件
Name Type Description type
* params
* Returns:
Type Description Overlay -
注销事件
Name Type Description type
* 事件类型
callback
* 监听回调
context
* Returns:
Type Description Overlay -
注册事件
Name Type Description type
* 事件类型
callback
* 监听回调
context
* Returns:
Type Description Overlay -
从图层上移出
Returns:
Type Description Overlay -
设置文字标签
Name Type Description text
Property | string 指定文本的属性。支持显式换行符'\ n'。
textStyle
Object text 样式
Returns:
Type Description Overlay -
设置样式
Name Type Description style
Object Returns:
Type Description Overlay