با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > blockRendering > PathObject > updateShapeForInputHighlight
اضافه کردن یا حذف یک ظاهر طراحی شده که نشان می دهد اگر بلوک درگ حذف شود، این بلوک به ورودی متصل می شود.
امضا:
updateShapeForInputHighlight(_conn: Connection, _enable: boolean): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
_conn | اتصال | اتصال در ورودی برای برجسته کردن. |
_فعال کردن | بولی | درست است اگر یک ظاهر طراحی اضافه شود. |
برمیگرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-12 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-12 بهوقت ساعت هماهنگ جهانی."],[[["The `updateShapeForInputHighlight` method visually indicates whether a dragged block, if dropped, will connect to a specific input."],["This method modifies the appearance of a block to highlight the connection point if a connection is possible, and removes the highlight if not."],["It takes the connection point and a boolean value indicating whether to add or remove the styling as parameters."],["This method belongs to the `PathObject` class within the `blockRendering` namespace of the Blockly library."]]],["The `updateShapeForInputHighlight` method within `blockRendering.PathObject` modifies the styling of a block to indicate a potential connection. It accepts two parameters: `_conn`, a `Connection` object representing the input connection, and `_enable`, a boolean determining whether to add or remove the highlighting style. If `_enable` is true, it adds styling; otherwise, it removes it. The method's return type is void, signifying it does not return any value.\n"]]