diff --git a/CHANGELOG.md b/CHANGELOG.md index 77403c87..b7ba6b64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +# [v1.5.1](https://github.com/MyScript/iinkJS/tree/v1.5.1) + +## Bug fix +@Editor +- fix change configuration restart websocket connection +- fix lost connection due to inactivity is now displayed +- fix style is wrapped by global class and can be customized + +@examples +- fix bad position of the searching highlight in searching text example +- new examples with eraser + +## Features +- erase mode is now an option in websocket text + +## Chore +- refactor of examples + # [v1.4.5](https://github.com/MyScript/iinkJS/tree/v1.4.5) ## Bug fix diff --git a/docs/Editor.html b/docs/Editor.html index 67cdd11b..661cc0ed 100644 --- a/docs/Editor.html +++ b/docs/Editor.html @@ -407,7 +407,7 @@

behaviorSource:
@@ -471,7 +471,7 @@

behaviorsSource:
@@ -535,7 +535,7 @@

canClearSource:
@@ -599,7 +599,7 @@

canConvert<
Source:
@@ -663,7 +663,7 @@

canExportSource:
@@ -727,7 +727,7 @@

canRedoSource:
@@ -791,7 +791,7 @@

canUndoSource:
@@ -856,7 +856,7 @@

configur
Source:
@@ -920,7 +920,7 @@

configur
Source:
@@ -984,7 +984,7 @@

domElement<
Source:
@@ -1058,7 +1058,7 @@

eastereggs<
Source:
@@ -1122,7 +1122,7 @@

emitSource:
@@ -1186,7 +1186,7 @@

exportsSource:
@@ -1250,7 +1250,7 @@

exportTime
Source:
@@ -1324,7 +1324,7 @@

grabberSource:
@@ -1388,7 +1388,7 @@

grabber
Source:
@@ -1462,7 +1462,7 @@

idleSource:
@@ -1526,7 +1526,7 @@

initialize
Source:
@@ -1590,7 +1590,7 @@

isEmptySource:
@@ -1654,7 +1654,7 @@

localTheme<
Source:
@@ -1728,7 +1728,7 @@

modelSource:
@@ -1802,7 +1802,7 @@

notifyTime
Source:
@@ -1876,7 +1876,7 @@

penStyleSource:
@@ -1940,7 +1940,7 @@

penStyleSource:
@@ -2004,7 +2004,7 @@

penSty
Source:
@@ -2068,7 +2068,7 @@

penSty
Source:
@@ -2132,7 +2132,7 @@

pngSource:
@@ -2196,7 +2196,7 @@

poss
Source:
@@ -2260,7 +2260,7 @@

recognizer<
Source:
@@ -2324,7 +2324,7 @@

rendererSource:
@@ -2388,7 +2388,7 @@

render
Source:
@@ -2462,7 +2462,7 @@

resizeTime
Source:
@@ -2536,7 +2536,7 @@

strokerSource:
@@ -2600,7 +2600,7 @@

themeSource:
@@ -2664,7 +2664,7 @@

themeSource:
@@ -2728,7 +2728,7 @@

undoSta
Source:
@@ -2802,7 +2802,7 @@

(async) clearSource:
@@ -2906,7 +2906,7 @@

closeSource:
@@ -3010,7 +3010,7 @@

convertSource:
@@ -3174,7 +3174,7 @@

export_Source:
@@ -3309,7 +3309,7 @@

forceChang
Source:
@@ -3392,7 +3392,7 @@

<
Source:
@@ -3496,7 +3496,7 @@

import_Source:
@@ -3680,7 +3680,7 @@

pointerDow
Source:
@@ -3913,7 +3913,7 @@

pointerE
Source:
@@ -4069,7 +4069,7 @@

pointerMov
Source:
@@ -4204,7 +4204,7 @@

pointerUpSource:
@@ -4339,7 +4339,7 @@

(async) redoSource:
@@ -4441,7 +4441,7 @@

reDrawSource:
@@ -4592,7 +4592,7 @@

resizeSource:
@@ -4675,7 +4675,7 @@

setGuidesSource:
@@ -4851,7 +4851,7 @@

(async) undoSource:
@@ -4955,7 +4955,7 @@

unloadSource:
@@ -5038,7 +5038,7 @@

waitForIdl
Source:
@@ -5111,7 +5111,7 @@

Returns:

- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:48 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/Editor.js.html b/docs/Editor.js.html index 16910647..6b3c9470 100644 --- a/docs/Editor.js.html +++ b/docs/Editor.js.html @@ -70,7 +70,7 @@

Editor.js

*/ function manageResetState (editor, model) { // If strokes moved in the undo redo stack then a clear is mandatory before sending strokes. - if (editor.recognizer.reset && RecognizerContext.isResetRequired(editor.recognizerContext, model)) { + if (editor.recognizer.reset && !editor.isErasing && RecognizerContext.isResetRequired(editor.recognizerContext, model)) { return editor.recognizer.reset(editor.recognizerContext, model) } return null @@ -343,7 +343,9 @@

Editor.js

* @param {PenStyle} [penStyle] Custom style to apply * @param {Behaviors} [behaviors] Custom behaviors to apply */ - constructor (element, configuration, penStyle, theme, behaviors) { + constructor (element, configuration, penStyle, theme, behaviors, globalClassCss) { + globalClassCss = globalClassCss || 'ms-editor' + const styleElement = document.createElement('style') styleElement.appendChild(document.createTextNode('')) element.appendChild(styleElement) @@ -357,7 +359,7 @@

Editor.js

* @type {Element} */ this.domElement = element - this.domElement.classList.add('ms-editor') + this.domElement.classList.add(globalClassCss) // eslint-disable-next-line no-undef this.loader = document.createElement('div') @@ -393,7 +395,6 @@

Editor.js

*/ this.innerBehaviors = DefaultBehaviors.overrideDefaultBehaviors(behaviors) this.configuration = configuration - this.smartGuide = SmartGuide.createSmartGuide(this) /** * Pen color used only for pending stroke @@ -405,6 +406,9 @@

Editor.js

this.penStyle = penStyle this.penStyleClasses = '' + // To override pointerType when ERASER + this.isErasing = false + this.domElement.editor = this } @@ -416,28 +420,17 @@

Editor.js

set configuration (configuration) { this.loader.style.display = 'initial' this.error.style.display = 'none' - - /** - * Update function call when some configuration property is updated - * @param {string} value - */ - const update = (value) => { - const defaultLang = !Object.keys(Constants.Languages).includes(value) - this.theme['.text']['font-family'] = defaultLang ? Constants.Languages.default : Constants.Languages[value] - this.behavior = this.behaviors.getBehaviorFromConfiguration(this.behaviors, this.innerConfiguration) - } - - const watcher = { - update, - prop: 'lang' - } - /** * @private * @type {Configuration} */ - this.innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration, watcher) + this.innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration) this.behavior = this.behaviors.getBehaviorFromConfiguration(this.behaviors, this.innerConfiguration) + if (this.smartGuide) { + SmartGuide.reset(this.smartGuide) + } else { + this.smartGuide = SmartGuide.createSmartGuide(this) + } } /** @@ -698,6 +691,17 @@

Editor.js

return this.recognizerContext ? this.recognizerContext.initialized : false } + enableEraser () { + this.isErasing = true + this.domElement.classList.add('erasing') + } + + disableEraser () { + document.body.style.cursor = 'initial' + this.isErasing = false + this.domElement.classList.remove('erasing') + } + /** * Handle a pointer down * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates @@ -709,7 +713,9 @@

Editor.js

window.clearTimeout(this.notifyTimer) window.clearTimeout(this.exportTimer) this.model = InkModel.initPendingStroke(this.model, point, Object.assign({ pointerType, pointerId }, this.theme.ink, this.localPenStyle)) - this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker) + if (!this.isErasing) { + this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker) + } // Currently no recognition on pointer down } @@ -720,7 +726,9 @@

Editor.js

pointerMove (point) { logger.trace('Pointer move', point) this.model = InkModel.appendToPendingStroke(this.model, point) - this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker) + if (!this.isErasing) { + this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker) + } // Currently no recognition on pointer move } @@ -731,7 +739,9 @@

Editor.js

pointerUp (point) { logger.trace('Pointer up', point) this.model = InkModel.endPendingStroke(this.model, point, this.penStyle) - this.renderer.drawModel(this.rendererContext, this.model, this.stroker) + if (!this.isErasing) { + this.renderer.drawModel(this.rendererContext, this.model, this.stroker) + } if (this.recognizer.addStrokes) { addStrokes(this, this.model) @@ -1036,7 +1046,7 @@

Editor.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/EditorFacade.js.html b/docs/EditorFacade.js.html index 98f4e39c..9ed0d86a 100644 --- a/docs/EditorFacade.js.html +++ b/docs/EditorFacade.js.html @@ -49,11 +49,12 @@

EditorFacade.js

* @param {PenStyle} [penStyle] Pen style to apply * @param {Theme} [theme] Theme to apply * @param {Behaviors} [behaviors] Custom behaviors to apply + * @param {String} [globalClassCSS] Replace global class css 'ms-editor' to customize style * @return {Editor} New editor */ -export function register (element, configuration, penStyle, theme, behaviors) { +export function register (element, configuration, penStyle, theme, behaviors, globalClassCSS) { logger.debug('Registering a new editor') - return new Editor(element, configuration, penStyle, theme, behaviors) + return new Editor(element, configuration, penStyle, theme, behaviors, globalClassCSS) } /** @@ -89,7 +90,7 @@

EditorFacade.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/configuration_Constants.js.html b/docs/configuration_Constants.js.html index b3b549f8..af87aae5 100644 --- a/docs/configuration_Constants.js.html +++ b/docs/configuration_Constants.js.html @@ -113,7 +113,8 @@

configuration/Constants.js

Error: { NOT_REACHABLE: 'MyScript recognition server is not reachable. Please reload once you are connected.', WRONG_CREDENTIALS: 'Application credentials are invalid. Please check or regenerate your application key and hmackey.', - TOO_OLD: 'Session is too old. Max Session Duration Reached.' + TOO_OLD: 'Session is too old. Max Session Duration Reached.', + NO_ACTIVITY: 'Session closed due to no activity.' }, Exports: { JIIX: 'application/vnd.myscript.jiix' @@ -132,7 +133,7 @@

configuration/Constants.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/configuration_DefaultBehaviors.js.html b/docs/configuration_DefaultBehaviors.js.html index 7ede7d3a..7d1ecac6 100644 --- a/docs/configuration_DefaultBehaviors.js.html +++ b/docs/configuration_DefaultBehaviors.js.html @@ -133,7 +133,7 @@

configuration/DefaultBehaviors.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/configuration_DefaultConfiguration.js.html b/docs/configuration_DefaultConfiguration.js.html index 9cc5b163..cb29f1ab 100644 --- a/docs/configuration_DefaultConfiguration.js.html +++ b/docs/configuration_DefaultConfiguration.js.html @@ -99,6 +99,9 @@

configuration/DefaultConfiguration.js

left: 15, right: 15, top: 10 + }, + eraser: { + 'erase-precisely': false } }, text: { @@ -115,6 +118,9 @@

configuration/DefaultConfiguration.js

top: 20, left: 10, right: 10 + }, + eraser: { + 'erase-precisely': false } }, diagram: { @@ -160,15 +166,13 @@

configuration/DefaultConfiguration.js

} } -const isProxy = Symbol('isProxy') - /** * Generate parameters * @param {Configuration} configuration Configuration to be used * @param {Object} watcher: { update: function, prop: string} function to call when 'prop' is updated * @return {Configuration} Overridden configuration */ -export function overrideDefaultConfiguration (configuration, watcher) { +export function overrideDefaultConfiguration (configuration) { const confRef = configuration let currentConfiguration if (confRef && confRef.recognitionParams.server && confRef.recognitionParams.server.useWindowLocation) { @@ -180,25 +184,7 @@

configuration/DefaultConfiguration.js

} logger.debug('Override default configuration', currentConfiguration) - const handler = { - get: function (target, key) { - // Nested objects are Proxy too - if (key !== isProxy && typeof target[key] === 'object' && target[key] !== null) { - return new Proxy(target[key], handler) - } else { - return target[key] - } - }, - set: function (obj, prop, value) { - if (prop === watcher.prop) { - watcher.update(value) - } - obj[prop] = value - return true - } - } - - return new Proxy(currentConfiguration, handler) + return currentConfiguration } export default defaultConfiguration @@ -214,7 +200,7 @@

configuration/DefaultConfiguration.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/configuration_DefaultPenStyle.js.html b/docs/configuration_DefaultPenStyle.js.html index 2e4eebe7..78065d20 100644 --- a/docs/configuration_DefaultPenStyle.js.html +++ b/docs/configuration_DefaultPenStyle.js.html @@ -91,7 +91,7 @@

configuration/DefaultPenStyle.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/configuration_DefaultTheme.js.html b/docs/configuration_DefaultTheme.js.html index 7e7d3b83..0a2ad003 100644 --- a/docs/configuration_DefaultTheme.js.html +++ b/docs/configuration_DefaultTheme.js.html @@ -125,7 +125,7 @@

configuration/DefaultTheme.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/configuration_LoggerConfig.js.html b/docs/configuration_LoggerConfig.js.html index 3977d51a..e117c894 100644 --- a/docs/configuration_LoggerConfig.js.html +++ b/docs/configuration_LoggerConfig.js.html @@ -123,7 +123,7 @@

configuration/LoggerConfig.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/eastereggs_InkImporter.js.html b/docs/eastereggs_InkImporter.js.html index ba255757..73c4cb3b 100644 --- a/docs/eastereggs_InkImporter.js.html +++ b/docs/eastereggs_InkImporter.js.html @@ -138,7 +138,7 @@

eastereggs/InkImporter.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/event_Event.js.html b/docs/event_Event.js.html index 328bb54c..10b7bc56 100644 --- a/docs/event_Event.js.html +++ b/docs/event_Event.js.html @@ -65,7 +65,7 @@

event/Event.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/global.html b/docs/global.html index e3028848..876a7842 100644 --- a/docs/global.html +++ b/docs/global.html @@ -7648,7 +7648,7 @@

creat
Source:
@@ -12469,7 +12469,7 @@

Source:
@@ -14700,7 +14700,7 @@

handleSu
Source:
@@ -16175,7 +16175,7 @@

inser
Source:
@@ -20180,7 +20180,7 @@

Source:
@@ -21698,7 +21698,7 @@
Parameters:
-

register(element, configurationopt, penStyleopt, themeopt, behaviorsopt) → {Editor}

+

register(element, configurationopt, penStyleopt, themeopt, behaviorsopt, globalClassCSSopt) → {Editor}

@@ -21741,7 +21741,7 @@

registerSource:
@@ -21962,6 +21962,42 @@
Parameters:
+ + + + globalClassCSS + + + + + +String + + + + + + + + + <optional>
+ + + + + + + + + + + + Replace global class css 'ms-editor' to customize style + + + + + @@ -35584,7 +35620,7 @@
Type:

- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:48 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/grabber_PointerEventGrabber.js.html b/docs/grabber_PointerEventGrabber.js.html index 5c0e78fa..992003f3 100644 --- a/docs/grabber_PointerEventGrabber.js.html +++ b/docs/grabber_PointerEventGrabber.js.html @@ -147,7 +147,11 @@

grabber/PointerEventGrabber.js

const pointerId = evt.pointerId > 2147483647 ? -1 : evt.pointerId unfocus() evt.stopPropagation() - editor.pointerDown(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft), evt.pointerType, pointerId) + let pointerType = evt.pointerType + if (editor.isErasing) { + pointerType = 'ERASER' + } + editor.pointerDown(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft), pointerType, pointerId) } } else if (evt.target.classList.contains('ellipsis') || evt.target.classList.contains('tag-icon')) { hideMenu(evt) @@ -260,7 +264,7 @@

grabber/PointerEventGrabber.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/index.html b/docs/index.html index 4d76f7a5..e1d3de58 100644 --- a/docs/index.html +++ b/docs/index.html @@ -249,7 +249,7 @@

License


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:48 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/model_InkModel.js.html b/docs/model_InkModel.js.html index aa0b628b..e865eeef 100644 --- a/docs/model_InkModel.js.html +++ b/docs/model_InkModel.js.html @@ -410,7 +410,7 @@

model/InkModel.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/model_RecognizerContext.js.html b/docs/model_RecognizerContext.js.html index da7591ed..4d492fd3 100644 --- a/docs/model_RecognizerContext.js.html +++ b/docs/model_RecognizerContext.js.html @@ -196,7 +196,7 @@

model/RecognizerContext.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/model_StrokeComponent.js.html b/docs/model_StrokeComponent.js.html index 044be49b..34b1decc 100644 --- a/docs/model_StrokeComponent.js.html +++ b/docs/model_StrokeComponent.js.html @@ -125,7 +125,7 @@

model/StrokeComponent.js

* @return {{x: Array<Number>, y: Array<Number>, t: Array<Number>}} Simplified stroke object */ export function toJSON (stroke) { - return { x: stroke.x, y: stroke.y, t: stroke.t } + return { x: stroke.x, y: stroke.y, t: stroke.t, pointerType: stroke.pointerType } } /** @@ -198,7 +198,7 @@

model/StrokeComponent.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/model_Symbol.js.html b/docs/model_Symbol.js.html index 8b559ce1..fd1493f9 100644 --- a/docs/model_Symbol.js.html +++ b/docs/model_Symbol.js.html @@ -162,7 +162,7 @@

model/Symbol.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/model_UndoRedoContext.js.html b/docs/model_UndoRedoContext.js.html index c717c51e..976a3509 100644 --- a/docs/model_UndoRedoContext.js.html +++ b/docs/model_UndoRedoContext.js.html @@ -87,7 +87,7 @@

model/UndoRedoContext.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/model_UndoRedoManager.js.html b/docs/model_UndoRedoManager.js.html index ee730e46..a7bebbf1 100644 --- a/docs/model_UndoRedoManager.js.html +++ b/docs/model_UndoRedoManager.js.html @@ -142,7 +142,7 @@

model/UndoRedoManager.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_CryptoHelper.js.html b/docs/recognizer_CryptoHelper.js.html index b569a593..94d1f88e 100644 --- a/docs/recognizer_CryptoHelper.js.html +++ b/docs/recognizer_CryptoHelper.js.html @@ -68,7 +68,7 @@

recognizer/CryptoHelper.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_DefaultRecognizer.js.html b/docs/recognizer_DefaultRecognizer.js.html index b7e4dc02..cbbf151f 100644 --- a/docs/recognizer_DefaultRecognizer.js.html +++ b/docs/recognizer_DefaultRecognizer.js.html @@ -177,7 +177,7 @@

recognizer/DefaultRecognizer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_RecognizerService.js.html b/docs/recognizer_RecognizerService.js.html index 8f9d8af8..36ee99d2 100644 --- a/docs/recognizer_RecognizerService.js.html +++ b/docs/recognizer_RecognizerService.js.html @@ -171,6 +171,8 @@

recognizer/RecognizerService.js

// IInk error managment after refactor (err.code && err.code === 'access.not.granted')) { editorRef.error.innerText = Constants.Error.WRONG_CREDENTIALS + } else if (err.code && err.code === 'no.activity') { + editorRef.error.innerText = Constants.Error.NO_ACTIVITY } else if (err.message === 'Session is too old. Max Session Duration Reached.' || (err.code && err.code === 'session.too.old')) { editorRef.error.innerText = Constants.Error.TOO_OLD @@ -220,7 +222,7 @@

recognizer/RecognizerService.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_rest_iinkRestRecognizer.js.html b/docs/recognizer_rest_iinkRestRecognizer.js.html index 48723c0c..653dc4bf 100644 --- a/docs/recognizer_rest_iinkRestRecognizer.js.html +++ b/docs/recognizer_rest_iinkRestRecognizer.js.html @@ -274,7 +274,7 @@

recognizer/rest/iinkRestRecognizer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_rest_networkInterface.js.html b/docs/recognizer_rest_networkInterface.js.html index 69587d88..331ceeed 100644 --- a/docs/recognizer_rest_networkInterface.js.html +++ b/docs/recognizer_rest_networkInterface.js.html @@ -106,7 +106,7 @@

recognizer/rest/networkInterface.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_websocket_WsBuilder.js.html b/docs/recognizer_websocket_WsBuilder.js.html index 4919f847..f3cd6330 100644 --- a/docs/recognizer_websocket_WsBuilder.js.html +++ b/docs/recognizer_websocket_WsBuilder.js.html @@ -196,10 +196,14 @@

recognizer/websocket/WsBuilder.js

case 'close': logger.debug('Close detected stopping all recognition', message) recognizerContextRef.initialized = false - if (recognitionContext) { - recognitionContext.error(message) + if (message.reason === 'CLOSE_RECOGNIZER') { + recognitionContext.initPromise.resolve(message) } else { - recognitionContext.initPromise.reject(message) + if (recognitionContext) { + recognitionContext.error(message) + } else { + recognitionContext.initPromise.reject(message) + } } break default : @@ -219,7 +223,7 @@

recognizer/websocket/WsBuilder.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_websocket_WsRecognizerUtil.js.html b/docs/recognizer_websocket_WsRecognizerUtil.js.html index 9bced757..ac0b22a6 100644 --- a/docs/recognizer_websocket_WsRecognizerUtil.js.html +++ b/docs/recognizer_websocket_WsRecognizerUtil.js.html @@ -188,7 +188,7 @@

recognizer/websocket/WsRecognizerUtil.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_websocket_iinkWsRecognizer.js.html b/docs/recognizer_websocket_iinkWsRecognizer.js.html index c2eb9163..b9377b70 100644 --- a/docs/recognizer_websocket_iinkWsRecognizer.js.html +++ b/docs/recognizer_websocket_iinkWsRecognizer.js.html @@ -658,7 +658,7 @@

recognizer/websocket/iinkWsRecognizer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/recognizer_websocket_networkWSInterface.js.html b/docs/recognizer_websocket_networkWSInterface.js.html index b22c21c7..20d87a03 100644 --- a/docs/recognizer_websocket_networkWSInterface.js.html +++ b/docs/recognizer_websocket_networkWSInterface.js.html @@ -165,7 +165,7 @@

recognizer/websocket/networkWSInterface.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_QuadraticUtils.js.html b/docs/renderer_QuadraticUtils.js.html index f668a160..c4244b53 100644 --- a/docs/renderer_QuadraticUtils.js.html +++ b/docs/renderer_QuadraticUtils.js.html @@ -96,7 +96,7 @@

renderer/QuadraticUtils.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_canvas_CanvasRenderer.js.html b/docs/renderer_canvas_CanvasRenderer.js.html index 9c138728..5bb17d0b 100644 --- a/docs/renderer_canvas_CanvasRenderer.js.html +++ b/docs/renderer_canvas_CanvasRenderer.js.html @@ -239,7 +239,7 @@

renderer/canvas/CanvasRenderer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_canvas_ImageRenderer.js.html b/docs/renderer_canvas_ImageRenderer.js.html index fc141e23..8f4fd0ac 100644 --- a/docs/renderer_canvas_ImageRenderer.js.html +++ b/docs/renderer_canvas_ImageRenderer.js.html @@ -91,7 +91,7 @@

renderer/canvas/ImageRenderer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_canvas_stroker_QuadraticCanvasStroker.js.html b/docs/renderer_canvas_stroker_QuadraticCanvasStroker.js.html index a5885f9d..55c32c52 100644 --- a/docs/renderer_canvas_stroker_QuadraticCanvasStroker.js.html +++ b/docs/renderer_canvas_stroker_QuadraticCanvasStroker.js.html @@ -157,7 +157,7 @@

renderer/canvas/stroker/QuadraticCanvasStroker.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_canvas_symbols_MathSymbolCanvasRenderer.js.html b/docs/renderer_canvas_symbols_MathSymbolCanvasRenderer.js.html index 2063d76f..0c5d6c35 100644 --- a/docs/renderer_canvas_symbols_MathSymbolCanvasRenderer.js.html +++ b/docs/renderer_canvas_symbols_MathSymbolCanvasRenderer.js.html @@ -103,7 +103,7 @@

renderer/canvas/symbols/MathSymbolCanvasRenderer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_canvas_symbols_ShapeSymbolCanvasRenderer.js.html b/docs/renderer_canvas_symbols_ShapeSymbolCanvasRenderer.js.html index 9336f9d1..931ab84f 100644 --- a/docs/renderer_canvas_symbols_ShapeSymbolCanvasRenderer.js.html +++ b/docs/renderer_canvas_symbols_ShapeSymbolCanvasRenderer.js.html @@ -235,7 +235,7 @@

renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_canvas_symbols_StrokeSymbolCanvasRenderer.js.html b/docs/renderer_canvas_symbols_StrokeSymbolCanvasRenderer.js.html index d54ecb57..a3b72388 100644 --- a/docs/renderer_canvas_symbols_StrokeSymbolCanvasRenderer.js.html +++ b/docs/renderer_canvas_symbols_StrokeSymbolCanvasRenderer.js.html @@ -46,7 +46,7 @@

renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js

renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js

- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_canvas_symbols_TextSymbolCanvasRenderer.js.html b/docs/renderer_canvas_symbols_TextSymbolCanvasRenderer.js.html index 1a81c5ca..be8462cc 100644 --- a/docs/renderer_canvas_symbols_TextSymbolCanvasRenderer.js.html +++ b/docs/renderer_canvas_symbols_TextSymbolCanvasRenderer.js.html @@ -133,7 +133,7 @@

renderer/canvas/symbols/TextSymbolCanvasRenderer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_svg_SVGRenderer.js.html b/docs/renderer_svg_SVGRenderer.js.html index c301c916..c6565130 100644 --- a/docs/renderer_svg_SVGRenderer.js.html +++ b/docs/renderer_svg_SVGRenderer.js.html @@ -263,7 +263,7 @@

renderer/svg/SVGRenderer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_svg_stroker_QuadraticSVGStroker.js.html b/docs/renderer_svg_stroker_QuadraticSVGStroker.js.html index 1fded524..f465c202 100644 --- a/docs/renderer_svg_stroker_QuadraticSVGStroker.js.html +++ b/docs/renderer_svg_stroker_QuadraticSVGStroker.js.html @@ -149,7 +149,7 @@

renderer/svg/stroker/QuadraticSVGStroker.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/renderer_svg_symbols_StrokeSymbolSVGRenderer.js.html b/docs/renderer_svg_symbols_StrokeSymbolSVGRenderer.js.html index 368dc8aa..f7e539e6 100644 --- a/docs/renderer_svg_symbols_StrokeSymbolSVGRenderer.js.html +++ b/docs/renderer_svg_symbols_StrokeSymbolSVGRenderer.js.html @@ -62,7 +62,7 @@

renderer/svg/symbols/StrokeSymbolSVGRenderer.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/smartguide_SmartGuide.js.html b/docs/smartguide_SmartGuide.js.html index 38203e20..73130bfd 100644 --- a/docs/smartguide_SmartGuide.js.html +++ b/docs/smartguide_SmartGuide.js.html @@ -323,68 +323,11 @@

smartguide/SmartGuide.js

observer.observe(elementsRef.smartGuideElement, { childList: true, subtree: true, attributes: true }) } -/** - * Create a new smart guide - * @param {Editor} editor - A reference to the editor. - * @returns {SmartGuide} New smart guide - */ -export function createSmartGuide (editor) { - const randomString = '-' + Math.random().toString(10).substring(2, 12) - const elements = createHTMLElements(randomString) - - /** - * Clipboard from clipboard.js used to get copy across all browsers. - * @type {Clipboard} - */ - // eslint-disable-next-line no-unused-vars - const clipboard = new Clipboard(elements.copyElement) - const perfectScrollbar = new PerfectScrollbar(elements.textContainer, { suppressScrollY: true, scrollXMarginOffset: 1 }) - - const smartGuide = { - editor, - wordToChange: '', - lastWord: '', - previousLabelExport: ' ', - perfectScrollbar, - elements, - smartGuideTimeOutId: 0, - randomString - } - addListeners(editor, smartGuide) - - if (editor.configuration.recognitionParams.iink.text.smartGuideFadeOut.enable) { - callFadeOutObserver(editor.configuration.recognitionParams.iink.text.smartGuideFadeOut.duration, smartGuide) - } - - return smartGuide -} - -export function resize (smartGuide) { - const smartGuideRef = smartGuide - const elementsRef = smartGuide.elements - - const mmToPixels = 3.779527559 - let left = smartGuideRef.editor.configuration.recognitionParams.iink.text.margin.left * mmToPixels - - const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left - - // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px) - elementsRef.textContainer.style.width = `${maxWidthTextContainer}px` - elementsRef.textContainer.style.maxWidth = `${maxWidthTextContainer}px` - - left = elementsRef.tagElement.offsetWidth - left += maxWidthTextContainer - elementsRef.ellipsisElement.style.left = `${left}px` - - elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px` - smartGuideRef.perfectScrollbar.update() -} - /** * Insert the smart guide HTML elements in the DOM. * @param {SmartGuide} smartGuide - A reference to the smart guide. */ -export function insertSmartGuide (smartGuide) { +function insertSmartGuide (smartGuide) { const smartGuideRef = smartGuide const elementsRef = smartGuide.elements @@ -451,6 +394,63 @@

smartguide/SmartGuide.js

smartGuideRef.perfectScrollbar.update() } +/** + * Create a new smart guide + * @param {Editor} editor - A reference to the editor. + * @returns {SmartGuide} New smart guide + */ +export function createSmartGuide (editor) { + const randomString = '-' + Math.random().toString(10).substring(2, 12) + const elements = createHTMLElements(randomString) + + /** + * Clipboard from clipboard.js used to get copy across all browsers. + * @type {Clipboard} + */ + // eslint-disable-next-line no-unused-vars + const clipboard = new Clipboard(elements.copyElement) + const perfectScrollbar = new PerfectScrollbar(elements.textContainer, { suppressScrollY: true, scrollXMarginOffset: 1 }) + + const smartGuide = { + editor, + wordToChange: '', + lastWord: '', + previousLabelExport: ' ', + perfectScrollbar, + elements, + smartGuideTimeOutId: 0, + randomString + } + addListeners(editor, smartGuide) + + if (editor.configuration.recognitionParams.iink.text.smartGuideFadeOut.enable) { + callFadeOutObserver(editor.configuration.recognitionParams.iink.text.smartGuideFadeOut.duration, smartGuide) + } + + return smartGuide +} + +export function resize (smartGuide) { + const smartGuideRef = smartGuide + const elementsRef = smartGuide.elements + + const mmToPixels = 3.779527559 + let left = smartGuideRef.editor.configuration.recognitionParams.iink.text.margin.left * mmToPixels + + const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left + + // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px) + elementsRef.textContainer.style.width = `${maxWidthTextContainer}px` + elementsRef.textContainer.style.maxWidth = `${maxWidthTextContainer}px` + + left = elementsRef.tagElement.offsetWidth + left += maxWidthTextContainer + elementsRef.ellipsisElement.style.left = `${left}px` + + elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px` + smartGuideRef.perfectScrollbar.update() +} + /** * Launch the smartguide. * @param {SmartGuide} smartGuide - A reference to the smart guide. @@ -541,6 +541,13 @@

smartguide/SmartGuide.js

return smartGuideRef } + +export function reset (smartGuide) { + const elementsRef = smartGuide.elements + elementsRef.candidatesElement.innerHTML = '' + elementsRef.smartGuideElement.classList.add('smartguide-out') + elementsRef.smartGuideElement.classList.remove('smartguide-in') +} @@ -553,7 +560,7 @@

smartguide/SmartGuide.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/docs/util_PromiseHelper.js.html b/docs/util_PromiseHelper.js.html index 7568dec1..3e4ea279 100644 --- a/docs/util_PromiseHelper.js.html +++ b/docs/util_PromiseHelper.js.html @@ -87,7 +87,7 @@

util/PromiseHelper.js


- Generated by JSDoc 3.6.6 on Wed Nov 04 2020 13:49:47 GMT+0100 (Central European Standard Time) using the Minami theme. + Generated by JSDoc 3.6.7 on Tue Dec 14 2021 10:34:28 GMT+0100 (Central European Standard Time) using the Minami theme.
diff --git a/package-lock.json b/package-lock.json index 64e54616..ba4eaf39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "iink-js", - "version": "1.4.5", + "version": "1.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "iink-js", - "version": "1.4.5", + "version": "1.5.1", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.9.2", @@ -15083,24 +15083,28 @@ "dependencies": { "abbrev": { "version": "1.1.1", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "bundled": true, "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "bundled": true, "dev": true, "optional": true }, "aproba": { "version": "1.2.0", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "bundled": true, "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.5", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "bundled": true, "dev": true, "optional": true, @@ -15111,12 +15115,14 @@ }, "balanced-match": { "version": "1.0.0", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "bundled": true, "dev": true, "optional": true }, "brace-expansion": { "version": "1.1.11", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "bundled": true, "dev": true, "optional": true, @@ -15127,36 +15133,42 @@ }, "chownr": { "version": "1.1.4", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "bundled": true, "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "bundled": true, "dev": true, "optional": true }, "concat-map": { "version": "0.0.1", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "bundled": true, "dev": true, "optional": true }, "console-control-strings": { "version": "1.1.0", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "bundled": true, "dev": true, "optional": true }, "core-util-is": { "version": "1.0.2", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "bundled": true, "dev": true, "optional": true }, "debug": { "version": "3.2.6", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "bundled": true, "dev": true, "optional": true, @@ -15166,24 +15178,28 @@ }, "deep-extend": { "version": "0.6.0", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "bundled": true, "dev": true, "optional": true }, "delegates": { "version": "1.0.0", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "bundled": true, "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "bundled": true, "dev": true, "optional": true }, "fs-minipass": { "version": "1.2.7", + "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", "bundled": true, "dev": true, "optional": true, @@ -15193,12 +15209,14 @@ }, "fs.realpath": { "version": "1.0.0", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "bundled": true, "dev": true, "optional": true }, "gauge": { "version": "2.7.4", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "bundled": true, "dev": true, "optional": true, @@ -15215,6 +15233,7 @@ }, "glob": { "version": "7.1.6", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "bundled": true, "dev": true, "optional": true, @@ -15229,12 +15248,14 @@ }, "has-unicode": { "version": "2.0.1", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "bundled": true, "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.24", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "bundled": true, "dev": true, "optional": true, @@ -15244,6 +15265,7 @@ }, "ignore-walk": { "version": "3.0.3", + "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", "bundled": true, "dev": true, "optional": true, @@ -15253,6 +15275,7 @@ }, "inflight": { "version": "1.0.6", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "bundled": true, "dev": true, "optional": true, @@ -15263,18 +15286,21 @@ }, "inherits": { "version": "2.0.4", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "bundled": true, "dev": true, "optional": true }, "ini": { "version": "1.3.5", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "bundled": true, "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "bundled": true, "dev": true, "optional": true, @@ -15284,12 +15310,14 @@ }, "isarray": { "version": "1.0.0", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "bundled": true, "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "bundled": true, "dev": true, "optional": true, @@ -15299,12 +15327,14 @@ }, "minimist": { "version": "1.2.5", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "bundled": true, "dev": true, "optional": true }, "minipass": { "version": "2.9.0", + "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", "bundled": true, "dev": true, "optional": true, @@ -15315,6 +15345,7 @@ }, "minizlib": { "version": "1.3.3", + "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", "bundled": true, "dev": true, "optional": true, @@ -15324,6 +15355,7 @@ }, "mkdirp": { "version": "0.5.3", + "integrity": "sha512-P+2gwrFqx8lhew375MQHHeTlY8AuOJSrGf0R5ddkEndUkmwpgUob/vQuBD1V22/Cw1/lJr4x+EjllSezBThzBg==", "bundled": true, "dev": true, "optional": true, @@ -15333,12 +15365,14 @@ }, "ms": { "version": "2.1.2", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "bundled": true, "dev": true, "optional": true }, "needle": { "version": "2.3.3", + "integrity": "sha512-EkY0GeSq87rWp1hoq/sH/wnTWgFVhYlnIkbJ0YJFfRgEFlz2RraCjBpFQ+vrEgEdp0ThfyHADmkChEhcb7PKyw==", "bundled": true, "dev": true, "optional": true, @@ -15350,6 +15384,7 @@ }, "node-pre-gyp": { "version": "0.14.0", + "integrity": "sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==", "bundled": true, "dev": true, "optional": true, @@ -15368,6 +15403,7 @@ }, "nopt": { "version": "4.0.3", + "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==", "bundled": true, "dev": true, "optional": true, @@ -15378,6 +15414,7 @@ }, "npm-bundled": { "version": "1.1.1", + "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", "bundled": true, "dev": true, "optional": true, @@ -15387,12 +15424,14 @@ }, "npm-normalize-package-bin": { "version": "1.0.1", + "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", "bundled": true, "dev": true, "optional": true }, "npm-packlist": { "version": "1.4.8", + "integrity": "sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A==", "bundled": true, "dev": true, "optional": true, @@ -15404,6 +15443,7 @@ }, "npmlog": { "version": "4.1.2", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "bundled": true, "dev": true, "optional": true, @@ -15416,18 +15456,21 @@ }, "number-is-nan": { "version": "1.0.1", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "bundled": true, "dev": true, "optional": true }, "object-assign": { "version": "4.1.1", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "bundled": true, "dev": true, "optional": true }, "once": { "version": "1.4.0", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "bundled": true, "dev": true, "optional": true, @@ -15437,18 +15480,21 @@ }, "os-homedir": { "version": "1.0.2", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "bundled": true, "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "bundled": true, "dev": true, "optional": true }, "osenv": { "version": "0.1.5", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "bundled": true, "dev": true, "optional": true, @@ -15459,18 +15505,21 @@ }, "path-is-absolute": { "version": "1.0.1", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "bundled": true, "dev": true, "optional": true }, "process-nextick-args": { "version": "2.0.1", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "bundled": true, "dev": true, "optional": true }, "rc": { "version": "1.2.8", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "bundled": true, "dev": true, "optional": true, @@ -15483,6 +15532,7 @@ }, "readable-stream": { "version": "2.3.7", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "bundled": true, "dev": true, "optional": true, @@ -15498,6 +15548,7 @@ }, "rimraf": { "version": "2.7.1", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "bundled": true, "dev": true, "optional": true, @@ -15507,42 +15558,49 @@ }, "safe-buffer": { "version": "5.1.2", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "bundled": true, "dev": true, "optional": true }, "safer-buffer": { "version": "2.1.2", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "bundled": true, "dev": true, "optional": true }, "sax": { "version": "1.2.4", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "bundled": true, "dev": true, "optional": true }, "semver": { "version": "5.7.1", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "bundled": true, "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "bundled": true, "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "bundled": true, "dev": true, "optional": true }, "string_decoder": { "version": "1.1.1", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "bundled": true, "dev": true, "optional": true, @@ -15552,6 +15610,7 @@ }, "string-width": { "version": "1.0.2", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "bundled": true, "dev": true, "optional": true, @@ -15563,6 +15622,7 @@ }, "strip-ansi": { "version": "3.0.1", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "bundled": true, "dev": true, "optional": true, @@ -15572,12 +15632,14 @@ }, "strip-json-comments": { "version": "2.0.1", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "bundled": true, "dev": true, "optional": true }, "tar": { "version": "4.4.13", + "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", "bundled": true, "dev": true, "optional": true, @@ -15593,12 +15655,14 @@ }, "util-deprecate": { "version": "1.0.2", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "bundled": true, "dev": true, "optional": true }, "wide-align": { "version": "1.1.3", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "bundled": true, "dev": true, "optional": true, @@ -15608,12 +15672,14 @@ }, "wrappy": { "version": "1.0.2", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "bundled": true, "dev": true, "optional": true }, "yallist": { "version": "3.1.1", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "bundled": true, "dev": true, "optional": true diff --git a/package.json b/package.json index 09994673..ec082e24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iink-js", - "version": "1.4.5", + "version": "1.5.1", "main": "dist/iink.min.js", "module": "dist/iink.esm.js", "description": "iinkJS is the fastest way to integrate handwriting panel and recognition in your webapp",