blockly > Grid > (建構函式)

Grid.(constructor)

建構 Grid 類別的新執行個體

Signature:

constructor(pattern: SVGElement, options: GridOptions);

參數

參數 類型 說明
圖案 SVGElement 格線的 SVG 模式,在插入期間建立。
選項 GridOptions 格線的正規化選項字典。請參閱格線說明文件:https://developers.google.com/blockly/guides/configure/web/grid