গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
ব্লকলি > ব্লক রেন্ডারিং > পাথঅবজেক্ট > আপডেট শেপ ফর ইনপুট হাইলাইট
স্টাইলিং যোগ করুন বা সরান যা দেখায় যে যদি ড্র্যাগিং ব্লক বাদ দেওয়া হয়, তাহলে এই ব্লকটি ইনপুটের সাথে সংযুক্ত হবে।
স্বাক্ষর:
updateShapeForInputHighlight(_conn: Connection, _enable: boolean): void;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
_কন | সংযোগ | হাইলাইট করার জন্য ইনপুটে সংযোগ। |
_সক্ষম করুন | বুলিয়ান | সত্য যদি স্টাইলিং যোগ করা উচিত. |
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-12 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-12 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["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"]]