קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > blockRendering > ConstantProvider > shapeFor
שיטת blockRendering.ConstantProvider.shapeFor()
אחזור אובייקט עם נתוני הגדרת הגודל והצורה של החיבור, בהתאם לסוג החיבור.
Signature:
shapeFor(connection: RenderedConnection): Shape;
פרמטרים
פרמטר |
סוג |
תיאור |
חיבור |
RenderedConnection |
החיבור לחיפוש אובייקט של צורה עבור |
החזרים:
צורה
אובייקט הצורה של החיבור.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-28 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-28 (שעון UTC)."],[],["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"],null,[]]