blueprintRangeQuery

How to get blueprintRangeQuery

import blueprintRangeQuery from 'fontoxml-blueprints/src/blueprintRangeQuery.js'

Type: Object

BlueprintRangeQuery provides convenience methods to work with DOM Ranges.

In contexts where a Blueprint is available, always use blueprintRangeQuery instead of domRangeQuery to ensure the correct state of the DOM is used.

Static methods

Name Description
findNodesContainedInRange

Find all nodes matching the given nodespec, optionally also including matching descendants, instead of only top level matches.

Refer to blueprintRangeQuery for more information on how to import and use this function.


  Arguments
# Name Type Description
1. blueprint Blueprint
2. range Range
3. spec NodeSpec
  Default value
true
4. includeMatchingDescendants Boolean
  Default value
false
  Returns

Type: Array<Node>

Was this page helpful?