modelBinder

Type: Object

How to get modelBinder?

JavaScript

import modelBinder from 'fontoxml-stencils/src/modelBinder.js'

The modelBinder provides various functions which can help with syncing between models and aligned stencils

Static properties

getSelectionRange

Type: Function

Get the selectionRange prefered by the stencil, if any. It does this using the selection.start / selection.end gaps

Refer to modelBinder for more information on how to import and use this function.

Arguments

Returns

syncModelToStencil

Type: Function

Write a model to an aligned stencil

Refer to modelBinder for more information on how to import and use this function.

Arguments

syncStencilToModel

Type: Function

Write a model to an aligned stencil

Refer to modelBinder for more information on how to import and use this function.

Arguments