blockly > WorkspaceSvg > getDragTarget
متد WorkspaceSvg.getDragTarget().
هدف کشیدن را برمیگرداند که رویداد نشانگر به پایان رسیده است.
امضا:
getDragTarget(e: PointerEvent): IDragTarget | null;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
ه | PointerEvent | رویداد حرکت اشاره گر |
برمیگرداند:
IDragTarget | تهی
اگر بیش از یک هدف کشیدن نباشد، باطل است، یا هدف کشیدن رویداد به پایان رسیده است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["The `getDragTarget` method helps identify which element on the Blockly workspace is currently being targeted during a drag operation."],["It takes a PointerEvent as input and returns an IDragTarget object representing the targeted element or null if no target is found."],["This method is part of the WorkspaceSvg class within the Blockly library, used for managing the visual representation of the workspace."]]],[]]