blockly > icone > Icona > getWeight
Metodo icon.Icon.getWeight()
Firma:
getWeight(): number;
Resi:
numero
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 2023-12-01 UTC.
[null,null,["Ultimo aggiornamento 2023-12-01 UTC."],[[["This method, belonging to the `Icon` class within Blockly's `icons` namespace, is used to retrieve the weight of an icon."],["It has no input parameters and returns a numerical value representing the icon's weight."]]],["The `getWeight()` method, part of the `icons.Icon` class, is defined within the Blockly project. This method's core action is to return a numerical value. Specifically, it is designed to return a number representing the weight associated with an icon. The method has no parameters and provides a single output: a number. This numerical output is crucial for operations that rely on relative icon importance.\n"]]