blueprintMutations

Type: Object

How to get blueprintMutations?

JavaScript

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

Blueprint mutations are atomic mutations on the dom. Using these instead of the methods on Blueprint has the advantage that it takes positions into account.

Blueprint mutations do not validate their outcome. They can be chained to mutate multiple things in a structure.

Static properties

unsafeCollapseElement

unsafeInsertNodes

unsafeMoveCharacterData

unsafeMoveNodes

unsafeSetMultipleAttributes

unsafeSplitNode

unsafeSplitUntil

unsafeWrapInSingleElement