研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >blockRendering >MarkerSvg >positionPrevious_
blockRendering.MarkerSvg.positionPrevious_() 方法
放置上一个连接的标记。会显示一个顶部有一个凹口的半矩形,用来表示之前的连接。
Signature:
protected positionPrevious_(width: number, markerOffset: number, markerHeight: number, connectionShape: Notch): void;
参数
参数 |
类型 |
说明 |
width |
number |
砌块的宽度。 |
markerOffset |
number |
标记相对于图块周围的偏移量。 |
markerHeight |
number |
标记的高度。 |
connectionShape |
凹口 |
连接的形状对象。 |
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-09。
[null,null,["最后更新时间 (UTC):2024-09-09。"],[[["The `blockRendering.MarkerSvg.positionPrevious_()` method positions a marker to visually represent a previous connection on a block."],["This method utilizes the block's width, marker offset, marker height, and connection shape to accurately place a half-rectangle marker with a notch, indicating the previous connection point."],["The function is called internally during block rendering and does not return any value."]]],["The `positionPrevious_` method in `blockRendering.MarkerSvg` positions a marker for a previous connection, visually represented as a half rectangle with a notch. This method takes four parameters: `width` (block's width), `markerOffset` (marker's offset), `markerHeight` (marker's height), and `connectionShape` (connection's shape object). It modifies the marker's position to represent the previous connection. The method does not return a value.\n"]]