blockly > blockRendering > InputConnection
Die Basisklasse für eine Eingabe, die beim Rendern Platz in einem Block beansprucht.
Unterschrift:
export declare class InputConnection extends Connection
Erweitert:Verbindung
Konstruktoren
Attribute
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-08 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-08 (UTC)."],[[["`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"]]