Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
блочный > BlockSvg > startDrag
Метод BlockSvg.startDrag()
Начинает перетаскивание блока.
Подпись:
startDrag(e?: PointerEvent): void;
Параметры
Параметр | Тип | Описание |
---|
е | УказательСобытие | (Необязательный) |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-09 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-09 UTC."],[[["The `startDrag` method initiates a drag operation on a BlockSvg object within Blockly."],["It optionally takes a PointerEvent as input, providing details about the drag initiation."],["Executing this method results in the visual dragging of the block within the Blockly workspace."],["This function is primarily used for user interactions where a block is dragged and repositioned."]]],["The `startDrag` method, part of the `BlockSvg` class, initiates a drag operation on a block. It accepts an optional `PointerEvent` parameter (`e`). This method, when called, begins the dragging interaction. The method returns nothing (`void`). The core action is starting the dragging process on a block element. No specific details about the nature of the drag are mentioned.\n"]]