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
apply Model Using Stencil
Type: applyModelUsingStencil
collapse Elements
Type: collapseElements
collapse Elements In Range
Type: collapseElementsInRange
convert Element
Type: convertElement
convert Text Case
Type: convertTextCase
create Default Text Container
delete Character Data
Type: deleteCharacterData
delete Nodes In Range
Type: deleteNodesInRange
delete Text In Range
Type: deleteTextInRange
ensure Valid Selection
Type: ensureValidSelection
exit Node Until
Type: exitNodeUntil
import Nodes
Type: importNodes
insert Node Horizontal
Type: insertNodeHorizontal
insert Nodes
Type: insertNodes
insert Text
Type: insertText
move Position To Text Insertion Point
process Positions Directionally
remove Nodes
Type: removeNodes
set Cursor To First Or Last Text Position
set Valid Selection Or Clear
Type: Function
wrap In Multiple Elements
Type: wrapInMultipleElements
wrap In Single Elemen
Type: wrapInSingleElement