primitives

Type: Object

How to get primitives?

JavaScript

import primitives from 'fontoxml-base-flow/src/primitives.js'

Base flow primitives express modular edits on the dom which always output a schema-valid result, making decisions based on flow configuration.

Properties

applyModelUsingStencil

collapseElements

collapseElementsInRange

convertElement

convertTextCase

createDefaultTextContainer

deleteCharacterData

deleteNodesInRange

deleteTextInRange

ensureValidSelection

exitNodeUntil

importNodes

insertNodeHorizontal

insertNodes

insertText

movePositionToTextInsertionPoint

processPositionsDirectionally

removeNodes

setCursorToFirstOrLastTextPosition

setValidSelectionOrClear

wrapInMultipleElements

wrapInSingleElemen