blueprintQuery

Type: Object

How to get blueprintQuery?

JavaScript

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

blueprintQuery provides convenience methods to traverse the XML DOM represented by a Blueprint.

While these functions can still be used, XPaths are more powerful and usually more readable.

In contexts where a Blueprint is available, always use blueprintQuery instead of domQuery to ensure the correct state of the DOM is used. Whenever possible, use XPath instead of either of these to avoid this distinction.

Properties

compareNodePositions

compareOffsetPositions

comparePositions

contains

Type: contains

findAllAncestors

findChild

Type: findChild

findChildren

findClosestAncestor

findCommonAncestor

findDescendants

findNextSibling

findPreviousSibling

getChildAt

getDocumentNode

getHighestLevelNodes

getNodeLength

getParentChildIndex

getTextContent

isInDocument