NodeHighlightManager

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

setHighlight

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

setRecursive

Type: Function

Determines whether the given highlight type also applies to all descendants of matching nodes.

Arguments

styleAsActiveHighlight

Type: Function

Use the active highlight style for the given type (solid border)

Arguments

styleAsHoverHighlight

Type: Function

Use the hover highlight style for the given type (dotted border)

Arguments

styleAsSelectionHighlight

Type: Function

Use the selection highlight style for the given type (plain background / overlay color)

Arguments