blockly >气泡 >TextBubble >(构造函数)
bubbles.TextBubble.(constructor)
构造 TextBubble 类的新实例
Signature:
constructor(text: string, workspace: WorkspaceSvg, anchor: Coordinate, ownerRect?: Rect | undefined);
参数
| 参数 | 类型 | 说明 |
|---|---|---|
| text | 字符串 | |
| 工作区 | WorkspaceSvg | |
| anchor | 坐标 | |
| ownerRect | 矩形 |未定义 | (可选) |