研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >blockRendering >PreviousConnection >(构造函数)
blockRendering.PreviousConnection.(constructor)
构造 PreviousConnection
类的新实例
Signature:
constructor(constants: ConstantProvider, connectionModel: RenderedConnection);
参数
参数 |
类型 |
说明 |
constants |
ConstantProvider |
渲染常量提供程序。 |
connectionModel |
RenderedConnection |
所代表的块上的连接对象。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["Initializes a new `PreviousConnection` object for rendering a block's previous connection point."],["Takes a `ConstantProvider` for rendering constants and a `RenderedConnection` representing the block's connection as input."],["The `PreviousConnection` class is part of Blockly's block rendering system and handles the visual representation of a block's previous connection."]]],["The `PreviousConnection` class constructor creates a new instance, taking two parameters: `constants` and `connectionModel`. `constants` is a `ConstantProvider` object that supplies rendering constants. `connectionModel` is a `RenderedConnection` object, representing the connection on the block. The constructor sets up a `PreviousConnection` object, using the provided constant provider and connection model for a specific block connection.\n"]]