blockly > blockRendering > Renderer > refreshDom
Metodo blockRendering.Renderer.refreshDom()
Aggiorna il renderer dopo una modifica del tema.
Firma:
refreshDom(svg: SVGElement, theme: Theme): void;
Parametri
Parametro |
Tipo |
Descrizione |
svg |
SVGElement |
La radice del file SVG dell'area di lavoro. |
tema |
Tema |
L'oggetto tema dell'area di lavoro. |
Resi:
null
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-21 UTC.
[null,null,["Ultimo aggiornamento 2024-08-21 UTC."],[[["Refreshes the visual representation of Blockly blocks after a theme change."],["Takes the workspace's SVG root and the new theme as input for updating the block visuals."],["The `refreshDom` method is part of the `Renderer` class within the `blockRendering` namespace in Blockly."],["This method is crucial for applying visual changes immediately after a theme is altered, ensuring the workspace reflects the new style."]]],[]]