গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
ব্লকলি > IConnectionPreviewer > preview Replacement
IConnectionPreviewer.previewReplacement() পদ্ধতি
একটি সংযোগ পূর্বরূপ প্রদর্শন করুন যেখানে draggedCon staticCon এর সাথে সংযোগ করে, প্রতিস্থাপিতBlock (বর্তমানে staticCon এর সাথে সংযুক্ত) প্রতিস্থাপন করে।
স্বাক্ষর:
previewReplacement(draggedConn: RenderedConnection, staticConn: RenderedConnection, replacedBlock: BlockSvg): void;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
টেনে আনে | রেন্ডারড কানেকশন | |
স্ট্যাটিককন | রেন্ডারড কানেকশন | |
প্রতিস্থাপিত ব্লক | ব্লকএসভিজি | ব্লকটি বর্তমানে staticCon এর সাথে সংযুক্ত যা প্রতিস্থাপন করা হচ্ছে। |
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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 `previewReplacement` method visually displays how a dragged connection would connect to a static connection, replacing an existing block."],["It takes three parameters: the dragged connection, the static connection, and the block being replaced."],["This method is part of the `IConnectionPreviewer` interface and doesn't return any value."]]],["The `previewReplacement` method, part of the `IConnectionPreviewer` interface, shows a connection preview. This preview illustrates how a `draggedConn` would connect to a `staticConn`, effectively replacing a `replacedBlock` that is currently connected to the `staticConn`. The method takes three parameters: `draggedConn` (the connection being dragged), `staticConn` (the stationary connection), and `replacedBlock` (the block being replaced). The method returns void.\n"]]