研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly > blockRendering > InputConnection
表示在渲染期间占用块空间的输入的基类。
Signature:
export declare class InputConnection extends Connection
扩展: 连接
构造函数
属性
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["`InputConnection` is the base class for rendering inputs on Blockly blocks, extending the `Connection` class."],["It manages the visual representation and connection logic of block inputs."],["Includes properties for alignment, connected blocks, and connection offsets."],["Constructed with connection constants and an `Input` object."]]],["The `InputConnection` class, extending `Connection`, represents an input on a block during rendering. It's instantiated with a constructor that takes `constants` and `input`. Key properties include: `align` (a number), `connectedBlock` (a `BlockSvg` or null), `connectedBlockHeight` and `connectedBlockWidth` (numbers), `connectionOffsetX` and `connectionOffsetY` (numbers), and `input` (an `Input`). These properties define how the input connects to other blocks and its dimensions during the rendering process.\n"]]