blueprint Query
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
compare Node Positions
Type: compareNodePositions
compare Offset Positions
Type: compareOffsetPositions
compare Positions
Type: comparePositions
contains
Type: contains
find All Ancestors
Type: findAllAncestors
find Child
Type: findChild
find Children
Type: findChildren
find Closest Ancestor
Type: findClosestAncestor
find Common Ancestor
Type: findCommonAncestor
find Descendants
Type: findDescendants
find Next Sibling
Type: findNextSibling
find Previous Sibling
Type: findPreviousSibling
get Child At
Type: getChildAt
get Document Node
Type: getDocumentNode
get Highest Level Nodes
Type: getHighestLevelNodes
get Node Length
Type: getNodeLength
get Parent Child Index
Type: getParentChildIndex
get Text Content
Type: getTextContent
is In Document
Type: isInDocument