סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
פרטי עיבוד
השדה RenderInfo
קובע איך הרכיבים החזותיים של הבלוק יוצבו.
בלוק הוא תמיד מובנה בקלט, בחיבורים ובשדות, אבל יכול להיות שמשתמשים בהם במגוון דרכים. לדוגמה, אפשר לעבד את אותה הגדרת חסימה באמצעות קלט חיצוני או קלט מוטבע.

הפריסה נבחרת על סמך פרטי הרינדור.
בשלב הראשון של העיבוד, המידע על הרינדור בוחן את הגדרת הבלוק ואת המדידות של החלקים החזותיים שלו. לאחר מכן הוא קובע את אופן הפריסה של הבלוק, ומארגן את המידע בהתאם. המידע הופך לרכיבים ולרווחים לא חופפים, שמאורגנים בשורות לא חופפות וברווחי שורה.
לאחר מכן, חלונית ההזזה משתמשת בפרטי הפריסה המאורגנים כדי ליצור את נתיבי ה-SVG שמייצגים את הבלוק.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-07-24 (שעון UTC).
[null,null,["עדכון אחרון: 2023-07-24 (שעון UTC)."],[[["`RenderInfo` dictates the visual layout of a block's elements, such as inputs, connections, and fields, determining aspects like inline or external input placement."],["It analyzes the block definition and element measurements to establish an optimal layout, organizing the information into elements, spacers, rows, and row spacers for a non-overlapping visual structure."],["This organized layout information is then utilized by the drawer to generate the final SVG paths that visually represent the block."]]],["`RenderInfo` defines a block's visual layout. It analyzes a block's inputs, connections, and fields, considering external or inline input options. It determines the layout, organizing visual components into non-overlapping elements, spacers, rows, and row spacers. This structured information is then passed to the drawer, which generates the SVG paths for the block's visual representation. The core task of the render info is to take visual elements and organize them.\n"]]