গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
ব্লকলি > IDragStrategy
IDragStrategy ইন্টারফেস
স্বাক্ষর:
export interface IDragStrategy
পদ্ধতি
পদ্ধতি | বর্ণনা |
---|
টেনে আনুন (নতুন অবস্থান, ই) | নতুন অবস্থানে স্থানান্তরিত উপাদানগুলি পরিচালনা করে এবং এর উপর ভিত্তি করে যেকোন ভিজ্যুয়াল আপডেট করা (যেমন ব্লকের জন্য সংযোগ পূর্বরূপ)। |
এন্ডড্র্যাগ(ই) | যেকোনো ড্র্যাগ ক্লিনআপ পরিচালনা করে, যেমন ব্লক সংযোগ করা বা মুছে ফেলা। |
অস্থাবর() | উপাদানটি বর্তমানে চলমান থাকলে সত্য প্রদান করে। |
revertDrag() | টেনে আনার শুরুতে যেখানে ছিল সেখানে টেনে আনা যায়। |
শুরু টানুন(ই) | যেকোন ড্র্যাগ স্টার্টআপ পরিচালনা করে (যেমন, কর্মক্ষেত্রের সামনের অংশে সরানো)। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `IDragStrategy` interface defines methods for managing the dragging behavior of elements, such as blocks, within a Blockly workspace."],["It includes methods for initiating, handling, and concluding drag operations, as well as reverting to the original position if necessary."],["The interface handles visual updates during the drag, like connection previews, and ensures elements are moved and cleaned up appropriately."],["`IDragStrategy` determines the movability of elements and enables the execution of specific actions based on drag events."]]],["The `IDragStrategy` interface defines methods for managing drag operations. Key actions include: `drag`, which moves elements and updates visuals; `endDrag`, which finalizes the drag, connecting or deleting elements; `startDrag`, which initiates the drag; `revertDrag`, which returns elements to their original position; and `isMovable`, which checks if an element can be moved. These methods collectively control the lifecycle and behavior of draggable elements within the system.\n"]]