Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > IASTNodeLocationSvg > setMarkerSvg
Método IASTNodeLocationSvg.setMarkerSvg()
Agrega el SVG del marcador al grupo de SVG de este nodo.
Signature:
setMarkerSvg(markerSvg: SVGElement | null): void;
Parámetros
Parámetro |
Tipo |
Descripción |
markerSvg |
SVGElement | nulo |
La raíz de SVG del marcador que se agregará al grupo de SVG. |
Muestra:
void
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-09-20 (UTC)
[null,null,["Última actualización: 2024-09-20 (UTC)"],[[["The `setMarkerSvg` method adds a marker SVG to the node's SVG group within Blockly's IASTNodeLocationSvg interface."],["It takes one argument: `markerSvg`, which is either an SVGElement or null, representing the root of the marker SVG to be added."],["The method does not return any value (void)."]]],["The `setMarkerSvg` method, part of `IASTNodeLocationSvg`, adds an SVG marker to a node's SVG group. It accepts a single parameter, `markerSvg`, which can be an `SVGElement` or `null`. This `markerSvg` represents the root of the marker to be added. The method returns nothing (`void`) after adding the provided SVG marker to the group.\n"]]