Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > blockRendering > ConstantProvider > shapeFor
Méthode blockRendering.ConstantProvider.shapeFor()
Obtenez un objet avec des informations sur la forme et la taille de la connexion en fonction du type de connexion.
Signature :
shapeFor(connection: RenderedConnection): Shape;
Paramètres
Paramètre |
Type |
Description |
connexion |
RenderedConnection |
Connexion permettant de trouver un objet de forme pour |
Renvoie :
Forme
Objet de forme de la connexion.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/08/29 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/08/29 (UTC)."],[[["The `blockRendering.ConstantProvider.shapeFor()` method retrieves the shape and size information for a given connection on a block."],["This method accepts a `RenderedConnection` object as input, representing the connection in question."],["It returns a `Shape` object containing the relevant shape and sizing details for the specified connection."]]],["The `shapeFor()` method, part of `blockRendering.ConstantProvider`, retrieves shape and sizing data for a given connection. It accepts a `RenderedConnection` as input and returns a `Shape` object. This `Shape` object contains details about the connection's appearance, determined by its type. The method's primary action is mapping a connection to its corresponding visual representation, facilitating block rendering.\n"]]