Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Blockly > BlockRendering > Drawer > LayoutField_
Метод blockRendering.Drawer.layoutField_()
Переместите новую позицию поля или значка в корень SVG.
Подпись:
protected layoutField_(fieldInfo: Icon | Field): void;
Параметры
Параметр | Тип | Описание |
---|
полеИнформация | Значок | Поле | Информация о рендеринге поля или значка. |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-04 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"]],["Последнее обновление: 2025-01-04 UTC."],[[["The `layoutField_` method updates the SVG positioning of a field or icon within a Blockly block."],["It takes a single argument: `fieldInfo`, which contains rendering details for the field or icon being positioned."],["This method is used internally by the Drawer class during block rendering and is not intended for direct use by developers."]]],["The `layoutField_()` method, part of the `blockRendering.Drawer` class, is designed to update the position of a field or icon within its SVG root. It accepts a `fieldInfo` parameter, which can be either an `Icon` or a `Field` object, containing the necessary rendering information. This method then utilizes the `fieldInfo` to adjust the field or icon's position in the SVG. The method does not return any value.\n"]]