blockly > ícones > MutatorIcon > PESO
Propriedade ícones.MutatorIcon.WEIGHT
O peso desse ícone em relação a outros ícones. Ícones com valores de peso mais positivos são renderizados mais perto do fim do bloco.
Signature:
static readonly WEIGHT = 1;
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-09-12 UTC.
[null,null,["Última atualização 2024-09-12 UTC."],[[["`MutatorIcon.WEIGHT` is a static read-only property that determines the rendering order of icons within a block."],["Icons with higher `WEIGHT` values are positioned towards the end of the block, allowing prioritization and visual organization."],["The default `WEIGHT` value for `MutatorIcon` is set to `1`, indicating a moderate priority level."]]],["The `WEIGHT` property within the `MutatorIcon` class determines an icon's rendering position relative to other icons on a block. A higher positive `WEIGHT` value places the icon closer to the block's end. Specifically, the `MutatorIcon.WEIGHT` is a static, read-only property with a value of `1`. This means that, by default, mutator icons will have a weight of 1.\n"]]