WebAndroidiOSWeb文档中心/互动白板/本页总览Interface PluginInstance<C, A>v2.16.53v2.16.43v2.16.48v2.16.49v2.16.51v2.16.53复制页面组件插件对象的接口。 Properties attributesattributes: A组件插件对象的属性。 contextcontext: C自定义的组件插件上下文。 heightheight: number组件插件对象的高。 identifieridentifier: Identifier组件插件对象在房间内的唯一标识符。 isDragingisDraging: boolean是否正在拖拽组件插件对象。 true:在拖拽。 false:不在拖拽。 isPlayingisPlaying: boolean是否正在播放组件插件对象。 true:在播放。在白板实时房间内,取值一直为 true。 false:不在播放。 isResizingisResizing: boolean是否正在改变组件插件对象的大小。 true:在改变。 false:不在改变。 kindkind: string组件插件的类型,是组件插件的唯一标识符。 originXoriginX: number组件插件对象的左上角在世界坐标系(以白板初始化时的中心点为原点的坐标系)中的 X 轴坐标。 originYoriginY: number组件插件对象的左上角在世界坐标系(以白板初始化时的中心点为原点的坐标系)中的 Y 轴坐标。 playbackSpeedplaybackSpeed: number组件插件对象当前的播放速率倍率(若为实时房间,则恒为 1.0)。 playerTimestampplayerTimestamp: number组件插件对象当前播放位置的 Unix 时间戳(若为实时房间,则恒为 0)。 selectableselectable: boolean能否选中组件插件对象: true:能选中组件插件对象。 false:不能选中组件插件对象。 widthwidth: number组件插件对象的宽。 Methods putAttributesputAttributes(attributes: Partial<A>): void 修改组件插件属性中的部分字段。参数参数名描述 attributes: Partial<A>要修改的字段。返回值void removeremove(): void 删除组件插件对象。返回值void removeAttributeKeysremoveAttributeKeys<K>(...keys: K[]): void 删除组件插件属性中的部分字段。参数参数名描述 ...keys: K[]要删除的字段。返回值void updateupdate(description: PluginDescription<A>): void 修改组件插件对象的描述。参数参数名描述 description: PluginDescription<A>要修改的描述。返回值void
要修改的字段。