:pencil2: :cloud: The easy way to integrate text handwriting recognition in your web app.
myscript-text-web
now supports all the features introduced by the version 4.2.0 of MyScriptJS.
This update contains the new dependency to myscript-common-element
that includes the new update of MyScriptJS.
In order to be consistent with the native API :
disableguidelines
renamed to disableguides
in the configuration.disablesmartguide
property to disable smart guide.disablesmartguidefadeout
and smartguidefadeoutduration
to disable smart guide fadeout or modify the duration.usepointerlisteners
property used to force the pointer events use.disableguidelines
to disable the guides.V4
.penStyleClasses
property. Used to change the theme using classes passed using the theme
property (see the example).importContent()
and exportContent()
respectively renamed to import_()
and export_()
.importInk(strokes)
changed to pointerEvents(events)
.unloaded
flag to control component state. load
event will be trigger once the editor will be fully loaded.configuration
attribute. Changing the configuration will clear the underlying editor, all currents strokes and results will be lost. To do it, set unloaded=true
after changing configuration, and wait for a load
event.editor
property that allow you to access to the underlying editor object (see MyScriptJS documentation for more details).resulttypes
, language
, typeset
, textparameters
, mathparameters
, shapeparameters
, musicparameters
, analyzerparameters
are replaced by the unique configuration
attribute (see MyScriptJS documentation for a complete spec).timeout
attribute to recognitiontriggerdelay
delete()
property to clear()
ssl
attribute to a scheme
attribute (i.e. ssl=true
will be replaced by scheme=https
)getAvailableLanguages()
have been replaced by a new web-component. You can use it to retrieve the list of available languages for your configuration.For more details about attributes, look at the documentation.
myscript-text-web
does not support pure shadow DOM. Still some issues to use underlying css.strokecolor
attribute to setup/change stroke color settingsstrokewidth
attribute to setup/change stroke width settingshost
attributeprotocol
attributeresultdetail
attributeinputmode
attribute to change mode from CURSIVE or SUPERIMPOSED to anotherrecognitioncandidates
attribute to set desired candidates countpredictioncandidates
attribute to set desired predicted candidates countcompletioncandidates
attribute to set desired completed candidates countavailablelanguages
output attribute to get authorized language listcandidates
output attribute to get candidates with score and tagsselectedcandidate
output attribute to get the best recognition candidateselect
feature to explicitly change the selected candidatemyscript-common-element
onesmyscript-common-element
ones