blockly > Marker > setCurNode
متد Marker.setCurNode().
مکان نشانگر را تنظیم کنید و روش به روز رسانی را فراخوانی کنید. تنظیم isStack روی true فقط در صورتی کار می کند که newLocation بالاترین خروجی یا اتصال قبلی در یک پشته باشد.
امضا:
setCurNode(newNode: ASTNode): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
newNode | ASTNode | مکان جدید نشانگر. |
برمی گرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-05 بهوقت ساعت هماهنگ جهانی."],[[["The `setCurNode` method updates the marker's location within the Blockly workspace based on the provided ASTNode."],["It triggers a visual update of the marker to reflect its new position and can optionally indicate if it's on a stack's top."],["The method accepts a single argument, `newNode`, which represents an ASTNode defining the marker's target location."]]],["The `setCurNode` method of the `Marker` class updates the marker's location. It accepts an `ASTNode` as `newNode`, which represents the marker's new position. The method also triggers an update of the marker after the location change. If `isStack` is true, the `newNode` must be at the top of an output or previous connection within a stack. This method does not return any value.\n"]]