با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
بلوک > شبکه > (سازنده)
Grid.(سازنده)
یک نمونه جدید از کلاس Grid
می سازد
امضا:
constructor(pattern: SVGElement, options: GridOptions);
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
الگوی | SVGElement | الگوی SVG شبکه، ایجاد شده در حین تزریق. |
گزینه ها | GridOptions | فرهنگ لغت گزینه های نرمال شده برای شبکه. به مستندات شبکه مراجعه کنید: https://developers.google.com/blockly/guides/configure/web/grid |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-13 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-13 بهوقت ساعت هماهنگ جهانی."],[[["The `Grid` class constructor initializes a new grid instance for the Blockly workspace."],["It requires an SVG element for the grid pattern and a GridOptions object to configure grid properties like spacing, color, and length."],["Developers can refer to the provided link for detailed information about grid configuration options."]]],["The `Grid` class constructor creates a new grid instance. It requires two parameters: `pattern`, an SVGElement representing the grid's SVG pattern, and `options`, a `GridOptions` dictionary containing normalized grid settings. The pattern is created during the injection process. Further details about grid configuration can be found in the grid documentation.\n"]]