סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > blockRendering > ניתנות למדידה
blockRendering.מחלקה ניתנת למדידה
מחלקת הבסיס שמייצגת חלק מבלוק שתופס מקום במהלך העיבוד. ה-constructor של כל מקש מפריד שלא ניתן למדידה מתעד את הגודל של רכיב הבלוק (למשל: שדה, קלט בהצהרה).
Signature:
export declare class Measurable
יצרנים
מאפיינים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["The `blockRendering.Measurable` class is the foundation for representing parts of a block that occupy space during rendering, like fields or inputs."],["Each `Measurable` instance stores the size of the corresponding block element and provides properties for dimensions and position."],["Key properties include `height`, `width`, `xPos` (x-position), `centerline`, and `notchOffset` for positioning and layout calculations."],["A `ConstantProvider` associated with the renderer gives access to rendering constants for consistent block appearance."]]],["The `Measurable` class represents a block component that occupies space during rendering. Each `Measurable` instance, except spacers, stores the dimensions of a block element, such as a field or input. It has properties to store size, including `width` and `height`, positioning such as `xPos`, and layout information such as `centerline` and `notchOffset`. It is built with a constructor and it has a renderer's constant provider stored in a property `constants_`.\n"]]