গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
ব্লকলি > সাধারণ > ডিফাইন ব্লক
common.defineBlocks() ফাংশন
ব্লক সংজ্ঞা অভিধানে (Blockly.Blocks) নির্দিষ্ট ব্লক সংজ্ঞা যোগ করুন।
স্বাক্ষর:
export declare function defineBlocks(blocks: {
[key: string]: BlockDefinition;
}): void;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
ব্লক | { [কী: স্ট্রিং]: ব্লক ডেফিনিশন; } | সংজ্ঞা ব্লক করতে ব্লক ধরনের নামের একটি মানচিত্র। |
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-05 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `defineBlocks` function adds new block definitions to Blockly's block definitions dictionary, making them available for use."],["It accepts a single argument: a dictionary/object where keys are block type names and values are the corresponding block definitions."],["This function does not return any value, it simply updates Blockly's internal block definitions."]]],["The `common.defineBlocks()` function adds block definitions to the `Blockly.Blocks` dictionary. It accepts a parameter named `blocks`, which is a map. This map contains block type names as keys and their corresponding block definitions (of type `BlockDefinition`) as values. The function's signature indicates it takes this map as input and does not return any value (void). The main action is to populate the Blockly block dictionary with user-specified definitions.\n"]]