:pencil2: :cloud: The easy way to integrate mathematical expressions handwriting recognition in your web app.
myscript-math-web
now supports all the features introduced by the version 4.2.0 of MyScriptJS.
penStyleClasses
property. Used to change the theme using classes passed using the theme
property (see the example).V4
.usepointerlisteners
property used to force the pointer events use.In order to be consistent with the native API :
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-math-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 settings