با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > blockRendering > Measurable
blockRendering.کلاس قابل اندازه گیری
کلاس پایه برای نمایش بخشی از یک بلوک که در حین رندر کردن فضا اشغال می کند. سازنده برای هر غیر فاصله ساز Measurable اندازه عنصر بلوک را ثبت می کند (مثلاً فیلد، ورودی دستور).
امضا:
export declare class Measurable
سازندگان
سازنده | اصلاح کننده ها | توضیحات |
---|
(سازنده) (ثابت) | | یک نمونه جدید از کلاس Measurable می سازد |
خواص
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-12 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-11-12 بهوقت ساعت هماهنگ جهانی."],[[["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"]]