MemberState interface 参考
适用版本:@shengwang/whiteboard 0.2.11。
白板工具状态,包含当前教具、颜色、线宽和文本等属性。
可从 @shengwang/whiteboard 直接导入 MemberState。仅用于类型声明,不能作为构造函数调用 new。
类型结构(源码声明)
下方源码文件的 export 声明不等同于 SDK 包入口导出;业务导入方式以上方说明为准。
export interface MemberState
| currentApplianceName | currentApplianceName?: Appliance |
| shapeType | shapeType?: ShapeType |
| strokeColor | strokeColor?: [number, number, number] |
| strokeWidth | strokeWidth?: number |
| textSize | textSize?: number |
| textColor | textColor?: [number, number, number] |
变量说明
currentApplianceName
currentApplianceName?: Appliance
shapeType
shapeType?: ShapeType
strokeColor
strokeColor?: [number, number, number]
strokeWidth
strokeWidth?: number
textSize
textSize?: number
textColor
textColor?: [number, number, number]