blockly > blockRendering > IPathObject
Interface blockRendering.IPathObject
Interface pour l'objet de chemin d'un bloc.
Signature :
export interface IPathObject
Propriétés
Propriété | Modificateurs | Type | Description |
---|---|---|---|
constantes | ConstantProvider | Fournisseur de constantes du moteur de rendu. | |
style | BlockStyle | Chemin principal du bloc. | |
svgPath | SVGElement | Chemin principal du bloc. |
Méthodes
Method | Description |
---|---|
addConnectionHighlight(connection, connectionPath, offset, rtl) ? | (Facultatif) Ajoute le chemin donné en tant que point d'intérêt pour la connexion donnée. |
applyColour(block) ? | (Facultatif) Appliquez les couleurs stockées au chemin du bloc, en tenant compte du fait que les chemins appartiennent ou non à un bloc d'ombre. |
flipRTL() | Inversez les chemins SVG en mode RTL. |
removeConnectionHighlight(connection) ? | (Facultatif) Supprime tout surlignage associé à la connexion donnée, le cas échéant. |
setPath(pathString) | Définissez le chemin généré par le moteur de rendu sur l'élément SVG correspondant. |
setStyle(blockStyle) ? | (Facultatif) Mettez à jour le style. |
updateDraggingDelete(enabled) | Ajoutez ou supprimez un style indiquant qu'un bloc est glissé sur une zone de suppression. |
updateHighlighted(highlighted) | Définissez si le bloc affiche une mise en surbrillance ou non. La mise en surbrillance des blocs est souvent utilisée pour marquer visuellement les blocs en cours d'exécution. |
updateInsertionMarker(enabled) | Ajoutez ou supprimez un style indiquant qu'un bloc est un repère d'insertion. |
updateMovable(enabled) | Ajoutez ou supprimez un style indiquant qu'un bloc est déplaçable. |
updateSelected(enabled) | Ajouter ou supprimer un style indiquant qu'un bloc est sélectionné. |