Node Highlight Manager
Type: Class
How to get nodeHighlightManager?
JavaScript
import nodeHighlightManager from 'fontoxml-focus-highlight-view/src/nodeHighlightManager.js'
The nodeHighlightManager can be used to highlight nodes on the canvas.
Make sure to call one of the styleAs* methods in an install.js to specify how a highlight should be rendered.
Methods
set Highlight
Type: Function
Set node ids to highlight for the given type. Returns a function that can be used to safely clear the highlight in cases where multiple components control the same highlight type.
Arguments
Returns
set Recursive
Type: Function
Determines whether the given highlight type also applies to all descendants of matching nodes.
Arguments
style As Active Highlight
Type: Function
Use the active highlight style for the given type (solid border)
Arguments
style As Hover Highlight
Type: Function
Use the hover highlight style for the given type (dotted border)
Arguments
style As Selection Highlight
Type: Function
Use the selection highlight style for the given type (plain background / overlay color)
Arguments