blockly > blockRendering > Renderer > refreshDom

blockRendering.Renderer.refreshDom() 方法

在主題變更後重新整理轉譯器。

Signature:

refreshDom(svg: SVGElement, theme: Theme, injectionDivIfIsParent?: HTMLElement): void;

參數

參數 類型 說明
svg SVGElement 工作區的 SVG 根目錄。
主題 主題 工作區主題物件。
injectionDivIfIsParent HTMLElement (選用) 如果此轉譯器是用於父項工作區,則包含父項工作區和所有相關工作區和區塊容器的 div。代表 SVG 圖案的 CSS 變數會套用至這個容器。子工作區不應覆寫父項建立的 CSS 變數,因此不需要存取插入 div。

退貨:

void