コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >共通 >createBlockDefinitionsFromJsonArray
common.createBlockDefinitionsFromJsonArray() 関数
JSON ブロック定義の配列からブロックを定義します。Blockly デベロッパー ツールで生成できます。
署名:
export declare function createBlockDefinitionsFromJsonArray(jsonArray: any[]): {
[key: string]: BlockDefinition;
};
パラメータ
パラメータ |
型 |
説明 |
jsonArray |
任意 |
JSON ブロック定義の配列。 |
戻り値:
{ [key: string]: BlockDefinition;}
作成されたブロック定義のマップ。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-28 UTC。
[null,null,["最終更新日 2025-07-28 UTC。"],[],["The `createBlockDefinitionsFromJsonArray` function defines blocks from an array of JSON block definitions. It accepts a `jsonArray` parameter, which is an array of these definitions. The function then returns a map where each key corresponds to a block definition and its value is the associated `BlockDefinition`. This effectively translates a JSON array into a set of usable block definitions.\n"]]